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
739 NATIVE_SYSTEM_HEADER_DIR
772 real_target_noncanonical
773 enable_as_accelerator
787 valgrind_path_defines
817 CROSS_SYSTEM_HEADER_DIR
818 TARGET_SYSTEM_ROOT_DEFINE
820 SYSROOT_CFLAGS_FOR_TARGET
866 program_transform_name
877 ac_subst_files
='option_includes
880 enable_option_checking
883 with_native_system_header_dir
888 enable_generated_files_in_srcdir
895 enable_build_format_warnings
899 enable_gather_detailed_mem_stats
900 enable_valgrind_annotations
920 enable_sjlj_exceptions
922 enable_leading_mingw64_underscores
925 enable_win32_registry
933 enable_gnu_indirect_function
934 enable_initfini_array
936 enable_fix_cortex_a53_835769
937 enable_fix_cortex_a53_843419
939 enable_gnu_unique_object
940 enable_linker_build_id
945 enable_maintainer_mode
947 enable_version_specific_runtime_libs
950 enable_libquadmath_support
951 with_linker_hash_style
952 with_diagnostics_color
955 ac_precious_vars
='build_alias
974 # Initialize some variables set by options.
976 ac_init_version
=false
977 ac_unrecognized_opts
=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name
=s
,x
,x
,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir
='${exec_prefix}/bin'
1003 sbindir
='${exec_prefix}/sbin'
1004 libexecdir
='${exec_prefix}/libexec'
1005 datarootdir
='${prefix}/share'
1006 datadir
='${datarootdir}'
1007 sysconfdir
='${prefix}/etc'
1008 sharedstatedir
='${prefix}/com'
1009 localstatedir
='${prefix}/var'
1010 includedir
='${prefix}/include'
1011 oldincludedir
='/usr/include'
1012 docdir
='${datarootdir}/doc/${PACKAGE}'
1013 infodir
='${datarootdir}/info'
1018 libdir
='${exec_prefix}/lib'
1019 localedir
='${datarootdir}/locale'
1020 mandir
='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\
$ac_option
1034 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 # Accept the important Cygnus configure options, so we can diagnose typos.
1040 case $ac_dashdash$ac_option in
1044 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1046 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1047 bindir
=$ac_optarg ;;
1049 -build |
--build |
--buil |
--bui |
--bu)
1050 ac_prev
=build_alias
;;
1051 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1052 build_alias
=$ac_optarg ;;
1054 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1055 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1056 ac_prev
=cache_file
;;
1057 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1058 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1059 cache_file
=$ac_optarg ;;
1061 --config-cache |
-C)
1062 cache_file
=config.cache
;;
1064 -datadir |
--datadir |
--datadi |
--datad)
1066 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1067 datadir
=$ac_optarg ;;
1069 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1070 |
--dataroo |
--dataro |
--datar)
1071 ac_prev
=datarootdir
;;
1072 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1073 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1074 datarootdir
=$ac_optarg ;;
1076 -disable-* |
--disable-*)
1077 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1080 as_fn_error
"invalid feature name: $ac_useropt"
1081 ac_useropt_orig
=$ac_useropt
1082 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_
$ac_useropt"
1087 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1088 ac_unrecognized_sep
=', ';;
1090 eval enable_
$ac_useropt=no
;;
1092 -docdir |
--docdir |
--docdi |
--doc |
--do)
1094 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1095 docdir
=$ac_optarg ;;
1097 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1099 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1100 dvidir
=$ac_optarg ;;
1102 -enable-* |
--enable-*)
1103 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1106 as_fn_error
"invalid feature name: $ac_useropt"
1107 ac_useropt_orig
=$ac_useropt
1108 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1111 "enable_
$ac_useropt"
1113 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1114 ac_unrecognized_sep
=', ';;
1116 eval enable_
$ac_useropt=\
$ac_optarg ;;
1118 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1119 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1120 |
--exec |
--exe |
--ex)
1121 ac_prev
=exec_prefix
;;
1122 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1123 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1124 |
--exec=* |
--exe=* |
--ex=*)
1125 exec_prefix
=$ac_optarg ;;
1127 -gas |
--gas |
--ga |
--g)
1128 # Obsolete; use --with-gas.
1131 -help |
--help |
--hel |
--he |
-h)
1132 ac_init_help
=long
;;
1133 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1134 ac_init_help
=recursive
;;
1135 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1136 ac_init_help
=short
;;
1138 -host |
--host |
--hos |
--ho)
1139 ac_prev
=host_alias
;;
1140 -host=* |
--host=* |
--hos=* |
--ho=*)
1141 host_alias
=$ac_optarg ;;
1143 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1145 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1147 htmldir
=$ac_optarg ;;
1149 -includedir |
--includedir |
--includedi |
--included |
--include \
1150 |
--includ |
--inclu |
--incl |
--inc)
1151 ac_prev
=includedir
;;
1152 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1153 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1154 includedir
=$ac_optarg ;;
1156 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1158 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1159 infodir
=$ac_optarg ;;
1161 -libdir |
--libdir |
--libdi |
--libd)
1163 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1164 libdir
=$ac_optarg ;;
1166 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1167 |
--libexe |
--libex |
--libe)
1168 ac_prev
=libexecdir
;;
1169 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1170 |
--libexe=* |
--libex=* |
--libe=*)
1171 libexecdir
=$ac_optarg ;;
1173 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1174 ac_prev
=localedir
;;
1175 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1176 localedir
=$ac_optarg ;;
1178 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1179 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1180 ac_prev
=localstatedir
;;
1181 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1182 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1183 localstatedir
=$ac_optarg ;;
1185 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1187 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1188 mandir
=$ac_optarg ;;
1190 -nfp |
--nfp |
--nf)
1191 # Obsolete; use --without-fp.
1194 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1195 |
--no-cr |
--no-c |
-n)
1198 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1199 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1202 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1203 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1204 |
--oldin |
--oldi |
--old |
--ol |
--o)
1205 ac_prev
=oldincludedir
;;
1206 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1207 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1208 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1209 oldincludedir
=$ac_optarg ;;
1211 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1213 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1214 prefix
=$ac_optarg ;;
1216 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1217 |
--program-pre |
--program-pr |
--program-p)
1218 ac_prev
=program_prefix
;;
1219 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1220 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1221 program_prefix
=$ac_optarg ;;
1223 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1224 |
--program-suf |
--program-su |
--program-s)
1225 ac_prev
=program_suffix
;;
1226 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1227 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1228 program_suffix
=$ac_optarg ;;
1230 -program-transform-name |
--program-transform-name \
1231 |
--program-transform-nam |
--program-transform-na \
1232 |
--program-transform-n |
--program-transform- \
1233 |
--program-transform |
--program-transfor \
1234 |
--program-transfo |
--program-transf \
1235 |
--program-trans |
--program-tran \
1236 |
--progr-tra |
--program-tr |
--program-t)
1237 ac_prev
=program_transform_name
;;
1238 -program-transform-name=* |
--program-transform-name=* \
1239 |
--program-transform-nam=* |
--program-transform-na=* \
1240 |
--program-transform-n=* |
--program-transform-=* \
1241 |
--program-transform=* |
--program-transfor=* \
1242 |
--program-transfo=* |
--program-transf=* \
1243 |
--program-trans=* |
--program-tran=* \
1244 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1245 program_transform_name
=$ac_optarg ;;
1247 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1249 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1250 pdfdir
=$ac_optarg ;;
1252 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1254 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1257 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1258 |
-silent |
--silent |
--silen |
--sile |
--sil)
1261 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1263 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1265 sbindir
=$ac_optarg ;;
1267 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1268 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1269 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1271 ac_prev
=sharedstatedir
;;
1272 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1273 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1274 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1276 sharedstatedir
=$ac_optarg ;;
1278 -site |
--site |
--sit)
1280 -site=* |
--site=* |
--sit=*)
1283 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1285 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1286 srcdir
=$ac_optarg ;;
1288 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1289 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1290 ac_prev
=sysconfdir
;;
1291 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1292 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1293 sysconfdir
=$ac_optarg ;;
1295 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1296 ac_prev
=target_alias
;;
1297 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1298 target_alias
=$ac_optarg ;;
1300 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1303 -version |
--version |
--versio |
--versi |
--vers |
-V)
1304 ac_init_version
=: ;;
1307 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1310 as_fn_error
"invalid package name: $ac_useropt"
1311 ac_useropt_orig
=$ac_useropt
1312 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1317 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep
=', ';;
1320 eval with_
$ac_useropt=\
$ac_optarg ;;
1322 -without-* |
--without-*)
1323 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1326 as_fn_error
"invalid package name: $ac_useropt"
1327 ac_useropt_orig
=$ac_useropt
1328 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1333 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep
=', ';;
1336 eval with_
$ac_useropt=no
;;
1339 # Obsolete; use --with-x.
1342 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1343 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1344 ac_prev
=x_includes
;;
1345 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1346 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1347 x_includes
=$ac_optarg ;;
1349 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1350 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1351 ac_prev
=x_libraries
;;
1352 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1353 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1354 x_libraries
=$ac_optarg ;;
1356 -*) as_fn_error
"unrecognized option: \`$ac_option'
1357 Try \`$0 --help' for more information."
1361 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1365 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1367 eval $ac_envvar=\
$ac_optarg
1368 export $ac_envvar ;;
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 if test -n "$ac_prev"; then
1382 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error
"missing argument to $ac_option"
1386 if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1389 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 # Check all directory arguments for consistency.
1395 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir
1400 eval ac_val
=\$
$ac_var
1401 # Remove trailing slashes.
1404 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\
$ac_val;;
1407 # Be sure to have absolute directory names.
1409 [\\/$
]* | ?
:[\\/]* ) continue;;
1410 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1412 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1415 # There might be people who depend on the old broken behavior: `$host'
1416 # used to hold the argument of --host etc.
1417 # FIXME: To remove some day.
1420 target
=$target_alias
1422 # FIXME: To remove some day.
1423 if test "x$host_alias" != x
; then
1424 if test "x$build_alias" = x
; then
1425 cross_compiling
=maybe
1426 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1427 If a cross compiler is detected then cross compile mode will be used." >&2
1428 elif test "x$build_alias" != "x$host_alias"; then
1434 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1436 test "$silent" = yes && exec 6>/dev
/null
1439 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1440 ac_ls_di
=`ls -di .` &&
1441 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1442 as_fn_error
"working directory cannot be determined"
1443 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1444 as_fn_error
"pwd does not report name of working directory"
1447 # Find the source files, if location was not specified.
1448 if test -z "$srcdir"; then
1449 ac_srcdir_defaulted
=yes
1450 # Try the directory containing this script, then the parent directory.
1451 ac_confdir
=`$as_dirname -- "$as_myself" ||
1452 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1456 $as_echo X"$as_myself" |
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475 if test ! -r "$srcdir/$ac_unique_file"; then
1479 ac_srcdir_defaulted
=no
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1483 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1485 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1489 # When building in place, set srcdir=.
1490 if test "$ac_abs_confdir" = "$ac_pwd"; then
1493 # Remove unnecessary trailing slashes from srcdir.
1494 # Double slashes in file names in object file debugging info
1495 # mess up M-x gdb in Emacs.
1497 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 for ac_var
in $ac_precious_vars; do
1500 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1502 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1507 # Report the --help message.
1509 if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1513 \`configure' configures this package to adapt to many kinds of systems.
1515 Usage: $0 [OPTION]... [VAR=VALUE]...
1517 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518 VAR=VALUE. See below for descriptions of some of the useful variables.
1520 Defaults for the options are specified in brackets.
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
1527 -q, --quiet, --silent do not print \`checking...' messages
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533 Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
1535 [$ac_default_prefix]
1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1539 By default, \`make install' will install all the files in
1540 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542 for instance \`--prefix=\$HOME'.
1544 For better control, use the options below.
1546 Fine tuning of the installation directories:
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1553 --libdir=DIR object code libraries [EPREFIX/lib]
1554 --includedir=DIR C header files [PREFIX/include]
1555 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1556 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1557 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1558 --infodir=DIR info documentation [DATAROOTDIR/info]
1559 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1560 --mandir=DIR man documentation [DATAROOTDIR/man]
1561 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1562 --htmldir=DIR html documentation [DOCDIR]
1563 --dvidir=DIR dvi documentation [DOCDIR]
1564 --pdfdir=DIR pdf documentation [DOCDIR]
1565 --psdir=DIR ps documentation [DOCDIR]
1571 --program-prefix=PREFIX prepend PREFIX to installed program names
1572 --program-suffix=SUFFIX append SUFFIX to installed program names
1573 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1576 --build=BUILD configure
for building on BUILD
[guessed
]
1577 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1578 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1582 if test -n "$ac_init_help"; then
1587 --disable-option-checking ignore unrecognized
--enable/--with options
1588 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1589 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1590 --enable-generated-files-in-srcdir
1591 put copies of generated files
in source dir intended
1592 for creating
source tarballs
for users without
1593 texinfo bison or flex
1594 --disable-largefile omit support
for large files
1595 --disable-build-format-warnings
1596 don
't use -Wformat while building GCC
1597 --enable-werror-always enable -Werror despite compiler version
1598 --enable-checking[=LIST]
1599 enable expensive run-time checks. With LIST, enable
1600 only specific categories of checks. Categories are:
1601 yes,no,all,none,release. Flags are:
1602 assert,df,extra,fold,gc,gcac,gimple,misc,
1603 rtlflag,rtl,runtime,tree,valgrind,types
1604 --enable-coverage[=LEVEL]
1605 enable compiler's code coverage collection. Use to
1606 measure compiler performance and
locate unused parts
1607 of the compiler. With LEVEL
, specify optimization.
1608 Values are opt
, noopt
, default is noopt
1609 --enable-gather-detailed-mem-stats
1610 enable detailed memory allocation stats gathering
1611 --enable-valgrind-annotations
1612 enable valgrind runtime interaction
1613 --enable-multilib enable library support
for multiple ABIs
1614 --enable-multiarch enable support
for multiarch paths
1615 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1616 --enable-decimal-float={no
,yes,bid
,dpd
}
1617 enable decimal float extension to C. Selecting
'bid'
1618 or
'dpd' choses
which decimal floating point format
1620 --enable-fixed-point enable fixed-point arithmetic extension to C
1621 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1623 --enable-tls enable or disable generation of tls code overriding
1624 the assembler check
for tls support
1625 --enable-vtable-verify enable vtable verification feature
1626 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1627 GNU Objective-C runtime
1628 --disable-shared don't provide a shared libgcc
1629 --enable-languages=LIST specify
which front-ends to build
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-sjlj-exceptions
1632 arrange to use setjmp
/longjmp exception handling
1633 --enable-secureplt enable -msecure-plt by default
for PowerPC
1634 --enable-leading-mingw64-underscores
1635 enable leading underscores on
64 bit mingw targets
1636 --enable-cld enable -mcld by default
for 32bit x86
1637 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1639 --disable-win32-registry
1640 disable lookup of installation paths
in the Registry
1642 --enable-win32-registry enable registry lookup
(default
)
1643 --enable-win32-registry=KEY
1644 use KEY instead of GCC version as the last portion
1646 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1647 --enable-static[=PKGS
] build static libraries
[default
=yes]
1648 --enable-fast-install[=PKGS
]
1649 optimize
for fast installation
[default
=yes]
1650 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1651 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1652 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1653 --enable-gnu-indirect-function
1654 enable the use of the @gnu_indirect_function to
1656 --enable-initfini-array use .init_array
/.fini_array sections
1657 --enable-comdat enable COMDAT group support
1659 --enable-fix-cortex-a53-835769
1660 enable workaround
for AArch64 Cortex-A53 erratum
1662 --disable-fix-cortex-a53-835769
1663 disable workaround
for AArch64 Cortex-A53 erratum
1667 --enable-fix-cortex-a53-843419
1668 enable workaround
for AArch64 Cortex-A53 erratum
1670 --disable-fix-cortex-a53-843419
1671 disable workaround
for AArch64 Cortex-A53 erratum
1674 --enable-gnu-unique-object
1675 enable the use of the @gnu_unique_object ELF
1676 extension on glibc systems
1677 --enable-linker-build-id
1678 compiler will always pass
--build-id to linker
1679 --enable-default-ssp enable Stack Smashing Protection as default
1680 --enable-maintainer-mode
1681 enable make rules and dependencies not useful
(and
1682 sometimes confusing
) to the casual installer
1683 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1684 thrashing on the build machine
1685 --enable-version-specific-runtime-libs
1686 specify that runtime libraries should be installed
1687 in a compiler-specific directory
1688 --enable-plugin enable plugin support
1689 --enable-host-shared build
host code as shared libraries
1690 --disable-libquadmath-support
1691 disable libquadmath support
for Fortran
1692 --enable-default-pie enable Position Independent Executable as default
1695 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1696 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1697 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1698 --with-local-prefix=DIR specifies directory to put
local include
1699 --with-native-system-header-dir=dir
1700 use dir as the directory to
look for standard
1701 system header files
in. Defaults to
/usr
/include.
1702 --with-build-sysroot=sysroot
1703 use sysroot as the system root during the build
1704 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1705 --with-gxx-include-dir=DIR
1706 specifies directory to put g
++ header files
1707 --with-cpp-install-dir=DIR
1708 install the user visible C preprocessor
in DIR
1709 (relative to PREFIX
) as well as PREFIX
/bin
1710 --with-gnu-ld arrange to work with GNU ld
1711 --with-ld arrange to use the specified ld
(full pathname
)
1712 --with-demangler-in-ld try to use demangler
in GNU ld
1713 --with-gnu-as arrange to work with GNU as
1714 --with-as arrange to use the specified as
(full pathname
)
1715 --with-stabs arrange to use stabs instead of
host debug format
1716 --with-dwarf2 force the default debug format to be DWARF
2
1717 --with-specs=SPECS add SPECS to driver command-line processing
1718 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1719 --with-bugurl=URL Direct users to URL to report a bug
1720 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1721 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1722 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1723 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1724 --with-pic try to use only PIC/non-PIC objects [default=use
1726 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1727 --with-plugin-ld=[ARG] specify the plugin linker
1728 --with-glibc-version=M.N
1729 assume GCC used with glibc version M.N or later
1730 --with-long-double-128 use 128-bit long double by default
1731 --with-gc={page,zone} this option is not supported anymore. It used to
1732 choose the garbage collection mechanism to use with
1734 --with-system-zlib use installed libz
1735 --with-linker-hash-style={sysv,gnu,both}
1736 specify the linker hash style
1737 --with-diagnostics-color={never,auto,auto-if-env,always}
1738 specify the default of -fdiagnostics-color option
1739 auto-if-env stands for -fdiagnostics-color=auto if
1740 GCC_COLOR environment variable is present and
1741 -fdiagnostics-color=never otherwise
1743 Some influential environment variables:
1744 CC C compiler command
1745 CFLAGS C compiler flags
1746 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1747 nonstandard directory <lib dir>
1748 LIBS libraries to pass to the linker, e.g. -l<library>
1749 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1750 you have headers in a nonstandard directory <include dir>
1751 CXX C++ compiler command
1752 CXXFLAGS C++ compiler flags
1753 CXXCPP C++ preprocessor
1755 GMPLIBS How to link GMP
1756 GMPINC How to find GMP include files
1757 ISLLIBS How to link isl
1758 ISLINC How to find isl include files
1760 Use these variables to override the choices made by `configure' or to
help
1761 it to
find libraries and programs with nonstandard names
/locations.
1763 Report bugs to the package provider.
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1777 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1779 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1784 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1787 ac_abs_top_builddir
=$ac_pwd
1788 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir
=$ac_top_build_prefix
1793 .
) # We are building in place.
1795 ac_top_srcdir
=$ac_top_builddir_sub
1796 ac_abs_top_srcdir
=$ac_pwd ;;
1797 [\\/]* | ?
:[\\/]* ) # Absolute name.
1798 ac_srcdir
=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir
=$srcdir
1800 ac_abs_top_srcdir
=$srcdir ;;
1802 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1806 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1808 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1819 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1827 generated by GNU Autoconf
2.64
1829 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1830 This configure
script is free software
; the Free Software Foundation
1831 gives unlimited permission to copy
, distribute and modify it.
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile
()
1845 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1846 rm -f conftest.
$ac_objext
1847 if { { ac_try
="$ac_compile"
1849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 } # ac_fn_c_try_compile
1878 # ac_fn_cxx_try_compile LINENO
1879 # ----------------------------
1880 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_cxx_try_compile ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext
1885 if { { ac_try="$ac_compile"
1887 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1888 *) ac_try_echo
=$ac_try;;
1890 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_compile") 2>conftest.err
1894 if test -s conftest.err
; then
1895 grep -v '^ *+' conftest.err
>conftest.er1
1896 cat conftest.er1
>&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_cxx_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest.
$ac_objext; then :
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.
$ac_ext >&5
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1914 } # ac_fn_cxx_try_compile
1916 # ac_fn_cxx_try_cpp LINENO
1917 # ------------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_cpp
()
1921 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1922 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1939 test ! -s conftest.err
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1951 } # ac_fn_cxx_try_cpp
1953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # ---------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1958 ac_fn_cxx_check_header_mongrel ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1979 if ac_fn_cxx_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1982 ac_header_compiler=no
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 if ac_fn_cxx_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1998 ac_header_preproc=no
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2030 eval "$3=\$ac_header_compiler"
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2036 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_cxx_check_header_mongrel
2040 # ac_fn_cxx_try_run LINENO
2041 # ------------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_cxx_try_run ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 if { { ac_try="$ac_link"
2049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2050 *) ac_try_echo
=$ac_try;;
2052 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054 (eval "$ac_link") 2>&5
2056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2058 { { case "(($ac_try" in
2059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_try") 2>&5
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; }; }; then :
2070 $as_echo "$as_me: program exited with status $ac_status" >&5
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2074 ac_retval=$ac_status
2076 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080 } # ac_fn_cxx_try_run
2082 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2083 # ---------------------------------------------------------
2084 # Tests whether HEADER exists and can be compiled using the include files in
2085 # INCLUDES, setting the cache variable VAR accordingly.
2086 ac_fn_cxx_check_header_compile ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090 $as_echo_n "checking for $2... " >&6; }
2091 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2092 $as_echo_n "(cached) " >&6
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2099 if ac_fn_cxx_try_compile "$LINENO"; then :
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2108 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 } # ac_fn_cxx_check_header_compile
2113 # ac_fn_c_try_cpp LINENO
2114 # ----------------------
2115 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 if { { ac_try="$ac_cpp conftest.$ac_ext"
2121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2122 *) ac_try_echo
=$ac_try;;
2124 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125 $as_echo "$ac_try_echo"; } >&5
2126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2128 if test -s conftest.err
; then
2129 grep -v '^ *+' conftest.err
>conftest.er1
2130 cat conftest.er1
>&5
2131 mv -f conftest.er1 conftest.err
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; } >/dev
/null
&& {
2135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2136 test ! -s conftest.err
2140 $as_echo "$as_me: failed program was:" >&5
2141 sed 's/^/| /' conftest.
$ac_ext >&5
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2150 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2151 # ----------------------------------------------
2152 # Tries to find the compile-time value of EXPR in a program that includes
2153 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2155 ac_fn_cxx_compute_int
()
2157 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2158 if test "$cross_compiling" = yes; then
2159 # Depending upon the size, compute the lo and hi bounds.
2160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array [1 - 2 * !(($2) >= 0)];
2173 if ac_fn_cxx_try_compile
"$LINENO"; then :
2176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 if ac_fn_cxx_try_compile
"$LINENO"; then :
2190 ac_hi
=$ac_mid; break
2192 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2193 if test $ac_lo -le $ac_mid; then
2197 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) < 0)];
2215 if ac_fn_cxx_try_compile
"$LINENO"; then :
2218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2231 if ac_fn_cxx_try_compile
"$LINENO"; then :
2232 ac_lo
=$ac_mid; break
2234 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2235 if test $ac_mid -le $ac_hi; then
2239 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2249 # Binary search between lo and hi bounds.
2250 while test "x$ac_lo" != "x$ac_hi"; do
2251 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2258 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265 if ac_fn_cxx_try_compile
"$LINENO"; then :
2268 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2273 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2280 static long int longval () { return $2; }
2281 static unsigned long int ulongval () { return $2; }
2288 FILE *f = fopen ("conftest.val", "w");
2293 long int i = longval ();
2296 fprintf (f, "%ld", i);
2300 unsigned long int i = ulongval ();
2303 fprintf (f, "%lu", i);
2305 /* Do not output a trailing newline, as this causes \r\n confusion
2306 on some platforms. */
2307 return ferror (f) || fclose (f) != 0;
2313 if ac_fn_cxx_try_run
"$LINENO"; then :
2314 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2318 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2319 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2323 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2326 } # ac_fn_cxx_compute_int
2328 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2329 # ---------------------------------------------
2330 # Tests whether TYPE exists after having included INCLUDES, setting cache
2331 # variable VAR accordingly.
2332 ac_fn_cxx_check_type
()
2334 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2336 $as_echo_n "checking for $2... " >&6; }
2337 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2338 $as_echo_n "(cached) " >&6
2341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2353 if ac_fn_cxx_try_compile
"$LINENO"; then :
2354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2366 if ac_fn_cxx_try_compile
"$LINENO"; then :
2371 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2373 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2380 } # ac_fn_cxx_check_type
2382 # ac_fn_c_find_intX_t LINENO BITS VAR
2383 # -----------------------------------
2384 # Finds a signed integer type with width BITS, setting cache variable VAR
2386 ac_fn_c_find_intX_t
()
2388 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2390 $as_echo_n "checking for int$2_t... " >&6; }
2391 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2395 for ac_type
in int
$2_t 'int' 'long int' \
2396 'long long int' 'short int' 'signed char'; do
2397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $ac_includes_default
2403 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2410 if ac_fn_cxx_try_compile
"$LINENO"; then :
2411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2417 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2418 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2425 if ac_fn_cxx_try_compile
"$LINENO"; then :
2432 eval "$3=\$ac_type" ;;
2435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2439 if test "x$as_val" = x
""no
; then :
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2451 } # ac_fn_c_find_intX_t
2453 # ac_fn_cxx_try_link LINENO
2454 # -------------------------
2455 # Try to link conftest.$ac_ext, and return whether this succeeded.
2456 ac_fn_cxx_try_link
()
2458 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2459 rm -f conftest.
$ac_objext conftest
$ac_exeext
2460 if { { ac_try
="$ac_link"
2462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2466 $as_echo "$ac_try_echo"; } >&5
2467 (eval "$ac_link") 2>conftest.err
2469 if test -s conftest.err; then
2470 grep -v '^ *+' conftest.err >conftest.er1
2471 cat conftest.er1 >&5
2472 mv -f conftest.er1 conftest.err
2474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2475 test $ac_status = 0; } && {
2476 test -z "$ac_cxx_werror_flag" ||
2477 test ! -s conftest.err
2478 } && test -s conftest$ac_exeext && {
2479 test "$cross_compiling" = yes ||
2480 $as_test_x conftest$ac_exeext
2484 $as_echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2489 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2490 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2491 # interfere with the next link command; also delete a directory that is
2492 # left behind by Apple's compiler. We do this before executing the actions.
2493 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2494 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2497 } # ac_fn_cxx_try_link
2499 # ac_fn_c_find_uintX_t LINENO BITS VAR
2500 # ------------------------------------
2501 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2503 ac_fn_c_find_uintX_t ()
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2507 $as_echo_n "checking for uint$2_t... " >&6; }
2508 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2509 $as_echo_n "(cached) " >&6
2512 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2513 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2516 $ac_includes_default
2520 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2532 eval "$3=\$ac_type" ;;
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537 if test "x$as_val" = x""no; then :
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2546 $as_echo "$ac_res" >&6; }
2547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_c_find_uintX_t
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2571 rm -f conftest.err conftest.$ac_ext
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_cxx_check_header_preproc
2580 # ac_fn_cxx_check_func LINENO FUNC VAR
2581 # ------------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_cxx_check_func ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2603 # include <limits.h>
2605 # include <assert.h>
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2632 if ac_fn_cxx_try_link "$LINENO"; then :
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 } # ac_fn_cxx_check_func
2647 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2648 # --------------------------------------
2649 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2650 ac_fn_cxx_check_decl ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2654 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2656 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2658 $as_echo_n "(cached) " >&6
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2666 #ifndef $as_decl_name
2668 (void) $as_decl_use;
2670 (void) $as_decl_name;
2678 if ac_fn_cxx_try_compile "$LINENO"; then :
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2687 $as_echo "$ac_res" >&6; }
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2690 } # ac_fn_cxx_check_decl
2692 # ac_fn_c_try_link LINENO
2693 # -----------------------
2694 # Try to link conftest.$ac_ext, and return whether this succeeded.
2697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2698 rm -f conftest.$ac_objext conftest$ac_exeext
2699 if { { ac_try="$ac_link"
2701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2702 *) ac_try_echo
=$ac_try;;
2704 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2705 $as_echo "$ac_try_echo"; } >&5
2706 (eval "$ac_link") 2>conftest.err
2708 if test -s conftest.err
; then
2709 grep -v '^ *+' conftest.err
>conftest.er1
2710 cat conftest.er1
>&5
2711 mv -f conftest.er1 conftest.err
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; } && {
2715 test -z "$ac_c_werror_flag" ||
2716 test ! -s conftest.err
2717 } && test -s conftest
$ac_exeext && {
2718 test "$cross_compiling" = yes ||
2719 $as_test_x conftest
$ac_exeext
2723 $as_echo "$as_me: failed program was:" >&5
2724 sed 's/^/| /' conftest.
$ac_ext >&5
2728 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2729 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2730 # interfere with the next link command; also delete a directory that is
2731 # left behind by Apple's compiler. We do this before executing the actions.
2732 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2733 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2736 } # ac_fn_c_try_link
2738 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2739 # ----------------------------------------------
2740 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2741 ac_fn_c_check_header_preproc
()
2743 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2745 $as_echo_n "checking for $2... " >&6; }
2746 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2750 /* end confdefs.h. */
2753 if ac_fn_c_try_cpp
"$LINENO"; then :
2758 rm -f conftest.err conftest.
$ac_ext
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2762 $as_echo "$ac_res" >&6; }
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2765 } # ac_fn_c_check_header_preproc
2767 # ac_fn_c_check_func LINENO FUNC VAR
2768 # ----------------------------------
2769 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2770 ac_fn_c_check_func
()
2772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2780 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2782 #define $2 innocuous_$2
2784 /* System header to define __stub macros and hopefully few prototypes,
2785 which can conflict with char $2 (); below.
2786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2787 <limits.h> exists even on freestanding compilers. */
2790 # include <limits.h>
2792 # include <assert.h>
2797 /* Override any GCC internal prototype to avoid an error.
2798 Use char because int might match the return type of a GCC
2799 builtin and then its argument prototype would still apply. */
2804 /* The GNU C library defines this for functions which it implements
2805 to always fail with ENOSYS. Some functions are actually named
2806 something starting with __ and the normal name is an alias. */
2807 #if defined __stub_$2 || defined __stub___$2
2819 if ac_fn_c_try_link
"$LINENO"; then :
2824 rm -f core conftest.err conftest.
$ac_objext \
2825 conftest
$ac_exeext conftest.
$ac_ext
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2829 $as_echo "$ac_res" >&6; }
2830 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2832 } # ac_fn_c_check_func
2833 cat >config.log
<<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.64. Invocation command line was
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2873 test -z "$as_dir" && as_dir
=.
2874 $as_echo "PATH: $as_dir"
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2898 ac_must_keep_next
=false
2904 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2905 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2906 |
-silent |
--silent |
--silen |
--sile |
--sil)
2909 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2912 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2914 as_fn_append ac_configure_args1
" '$ac_arg'"
2915 if test $ac_must_keep_next = true
; then
2916 ac_must_keep_next
=false
# Got value, back to normal.
2919 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2920 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2921 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2922 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2923 case "$ac_configure_args0 " in
2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2927 -* ) ac_must_keep_next
=true
;;
2930 as_fn_append ac_configure_args
" '$ac_arg'"
2935 { ac_configure_args0
=; unset ac_configure_args0
;}
2936 { ac_configure_args1
=; unset ac_configure_args1
;}
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log. We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944 # Save into config.log some information that might help in debugging.
2949 ## ---------------- ##
2950 ## Cache variables. ##
2951 ## ---------------- ##
2954 # The following way of writing the cache mishandles newlines in values,
2956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2957 eval ac_val=\$$ac_var
2961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2965 _ | IFS | as_nl) ;; #(
2966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2967 *) { eval $ac_var=; unset $ac_var;} ;;
2972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2973 *${as_nl}ac_space=\ *)
2975 "s/'\''/'\''\\\\'\'''\''/g;
2976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2987 ## ----------------- ##
2988 ## Output variables. ##
2989 ## ----------------- ##
2992 for ac_var in $ac_subst_vars
2994 eval ac_val=\$$ac_var
2996 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998 $as_echo "$ac_var='\''$ac_val'\''"
3002 if test -n "$ac_subst_files"; then
3004 ## ------------------- ##
3005 ## File substitutions. ##
3006 ## ------------------- ##
3009 for ac_var
in $ac_subst_files
3011 eval ac_val
=\$
$ac_var
3013 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3015 $as_echo "$ac_var='\''$ac_val'\''"
3020 if test -s confdefs.h; then
3030 test "$ac_signal" != 0 &&
3031 $as_echo "$as_me: caught signal $ac_signal"
3032 $as_echo "$as_me: exit $exit_status"
3034 rm -f core *.core core.conftest.* &&
3035 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3038 for ac_signal
in 1 2 13 15; do
3039 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3043 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3044 rm -f -r conftest
* confdefs.h
3046 $as_echo "/* confdefs.h */" > confdefs.h
3048 # Predefined preprocessor variables.
3050 cat >>confdefs.h
<<_ACEOF
3051 #define PACKAGE_NAME "$PACKAGE_NAME"
3054 cat >>confdefs.h
<<_ACEOF
3055 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3062 cat >>confdefs.h
<<_ACEOF
3063 #define PACKAGE_STRING "$PACKAGE_STRING"
3066 cat >>confdefs.h
<<_ACEOF
3067 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3070 cat >>confdefs.h
<<_ACEOF
3071 #define PACKAGE_URL "$PACKAGE_URL"
3075 # Let the site file select an alternate cache file if it wants to.
3076 # Prefer an explicitly selected file to automatically selected ones.
3079 if test -n "$CONFIG_SITE"; then
3080 ac_site_file1
=$CONFIG_SITE
3081 elif test "x$prefix" != xNONE
; then
3082 ac_site_file1
=$prefix/share
/config.site
3083 ac_site_file2
=$prefix/etc
/config.site
3085 ac_site_file1
=$ac_default_prefix/share
/config.site
3086 ac_site_file2
=$ac_default_prefix/etc
/config.site
3088 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3090 test "x$ac_site_file" = xNONE
&& continue
3091 if test -r "$ac_site_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3093 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3094 sed 's/^/| /' "$ac_site_file" >&5
3099 if test -r "$cache_file"; then
3100 # Some versions of bash will fail to source /dev/null (special
3101 # files actually), so we avoid doing that.
3102 if test -f "$cache_file"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3104 $as_echo "$as_me: loading cache $cache_file" >&6;}
3106 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3107 *) .
"./$cache_file";;
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3112 $as_echo "$as_me: creating cache $cache_file" >&6;}
3116 # Check that the precious variables saved in the cache have kept the same
3118 ac_cache_corrupted
=false
3119 for ac_var
in $ac_precious_vars; do
3120 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3121 eval ac_new_set
=\
$ac_env_${ac_var}_set
3122 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3123 eval ac_new_val
=\
$ac_env_${ac_var}_value
3124 case $ac_old_set,$ac_new_set in
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3127 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3128 ac_cache_corrupted
=: ;;
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3132 ac_cache_corrupted
=: ;;
3135 if test "x$ac_old_val" != "x$ac_new_val"; then
3136 # differences in whitespace do not lead to failure.
3137 ac_old_val_w
=`echo x $ac_old_val`
3138 ac_new_val_w
=`echo x $ac_new_val`
3139 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3141 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3142 ac_cache_corrupted
=:
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3145 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3146 eval $ac_var=\
$ac_old_val
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3149 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3151 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3154 # Pass precious variables to config.status.
3155 if test "$ac_new_set" = set; then
3157 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3158 *) ac_arg
=$ac_var=$ac_new_val ;;
3160 case " $ac_configure_args " in
3161 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3162 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3166 if $ac_cache_corrupted; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3170 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3171 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3173 ## -------------------- ##
3174 ## Main body of script. ##
3175 ## -------------------- ##
3178 ac_cpp
='$CPP $CPPFLAGS'
3179 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3180 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3181 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3188 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3191 gcc_version
=`cat $srcdir/BASE-VER`
3193 # Determine the host, build, and target systems
3195 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3196 for ac_t
in install-sh
install.sh shtool
; do
3197 if test -f "$ac_dir/$ac_t"; then
3199 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3204 if test -z "$ac_aux_dir"; then
3205 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3208 # These three variables are undocumented and unsupported,
3209 # and are intended to be withdrawn in a future Autoconf release.
3210 # They can cause serious problems if a builder's source tree is in a directory
3211 # whose full name contains unusual characters.
3212 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3213 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3214 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3217 # Make sure we can run config.sub.
3218 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3219 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3222 $as_echo_n "checking build system type... " >&6; }
3223 if test "${ac_cv_build+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3226 ac_build_alias
=$build_alias
3227 test "x$ac_build_alias" = x
&&
3228 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3229 test "x$ac_build_alias" = x
&&
3230 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3231 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3232 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3236 $as_echo "$ac_cv_build" >&6; }
3237 case $ac_cv_build in
3239 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3242 ac_save_IFS
=$IFS; IFS
='-'
3248 # Remember, the first character of IFS is used to create $*,
3249 # except with old shells:
3252 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3256 $as_echo_n "checking host system type... " >&6; }
3257 if test "${ac_cv_host+set}" = set; then :
3258 $as_echo_n "(cached) " >&6
3260 if test "x$host_alias" = x
; then
3261 ac_cv_host
=$ac_cv_build
3263 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3264 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3269 $as_echo "$ac_cv_host" >&6; }
3272 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3275 ac_save_IFS
=$IFS; IFS
='-'
3281 # Remember, the first character of IFS is used to create $*,
3282 # except with old shells:
3285 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3289 $as_echo_n "checking target system type... " >&6; }
3290 if test "${ac_cv_target+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3293 if test "x$target_alias" = x
; then
3294 ac_cv_target
=$ac_cv_host
3296 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3297 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3302 $as_echo "$ac_cv_target" >&6; }
3303 case $ac_cv_target in
3305 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3307 target
=$ac_cv_target
3308 ac_save_IFS
=$IFS; IFS
='-'
3314 # Remember, the first character of IFS is used to create $*,
3315 # except with old shells:
3318 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3321 # The aliases save the names the user supplied, while $host etc.
3322 # will get canonicalized.
3323 test -n "$target_alias" &&
3324 test "$program_prefix$program_suffix$program_transform_name" = \
3326 program_prefix
=${target_alias}-
3328 # Determine the noncanonical host name, for Ada.
3329 case ${build_alias} in
3330 "") build_noncanonical
=${build} ;;
3331 *) build_noncanonical
=${build_alias} ;;
3334 case ${host_alias} in
3335 "") host_noncanonical
=${build_noncanonical} ;;
3336 *) host_noncanonical
=${host_alias} ;;
3342 # Determine the noncanonical target name, for directory use.
3343 case ${target_alias} in
3344 "") target_noncanonical
=${host_noncanonical} ;;
3345 *) target_noncanonical
=${target_alias} ;;
3351 # Used for constructing correct paths for offload compilers.
3352 real_target_noncanonical
=${target_noncanonical}
3355 # Determine the target- and build-specific subdirectories
3357 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3358 # have matching libraries, they should use host libraries: Makefile.tpl
3359 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3360 # However, they still use the build modules, because the corresponding
3361 # host modules (e.g. bison) are only built for the host when bootstrap
3363 # - build_subdir is where we find build modules, and never changes.
3364 # - build_libsubdir is where we find build libraries, and can be overridden.
3366 # Prefix 'build-' so this never conflicts with target_subdir.
3367 build_subdir
="build-${build_noncanonical}"
3369 # Check whether --with-build-libsubdir was given.
3370 if test "${with_build_libsubdir+set}" = set; then :
3371 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3373 build_libsubdir
="$build_subdir"
3376 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3377 if ( test $srcdir = .
&& test -d gcc
) \
3378 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3379 host_subdir
="host-${host_noncanonical}"
3384 target_subdir
=${target_noncanonical}
3387 # Set program_transform_name
3388 test "$program_prefix" != NONE
&&
3389 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3390 # Use a double $ so make ignores it.
3391 test "$program_suffix" != NONE
&&
3392 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3393 # Double any \ or $.
3394 # By default was `s,x,x', remove it if useless.
3395 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3396 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3399 # Check for bogus environment variables.
3400 # Test if LIBRARY_PATH contains the notation for the current directory
3401 # since this would lead to problems installing/building glibc.
3402 # LIBRARY_PATH contains the current directory if one of the following
3404 # - one of the terminals (":" and ";") is the first or last sign
3405 # - two terminals occur directly after each other
3406 # - the path contains an element with a dot in it
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3408 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3409 case ${LIBRARY_PATH} in
3410 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3411 library_path_setting
="contains current directory"
3414 library_path_setting
="ok"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3418 $as_echo "$library_path_setting" >&6; }
3419 if test "$library_path_setting" != "ok"; then
3421 *** LIBRARY_PATH shouldn't contain the current directory when
3422 *** building gcc. Please change the environment variable
3423 *** and run configure again." "$LINENO" 5
3426 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3427 # since this would lead to problems installing/building glibc.
3428 # GCC_EXEC_PREFIX contains the current directory if one of the following
3430 # - one of the terminals (":" and ";") is the first or last sign
3431 # - two terminals occur directly after each other
3432 # - the path contains an element with a dot in it
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3434 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3435 case ${GCC_EXEC_PREFIX} in
3436 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3437 gcc_exec_prefix_setting
="contains current directory"
3440 gcc_exec_prefix_setting
="ok"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3444 $as_echo "$gcc_exec_prefix_setting" >&6; }
3445 if test "$gcc_exec_prefix_setting" != "ok"; then
3447 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3448 *** building gcc. Please change the environment variable
3449 *** and run configure again." "$LINENO" 5
3456 # Specify the local prefix
3459 # Check whether --with-local-prefix was given.
3460 if test "${with_local_prefix+set}" = set; then :
3461 withval
=$with_local_prefix; case "${withval}" in
3462 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3464 *) local_prefix
=$with_local_prefix ;;
3469 # Default local prefix if it is empty
3470 if test x
$local_prefix = x
; then
3471 local_prefix
=/usr
/local
3475 # Check whether --with-native-system-header-dir was given.
3476 if test "${with_native_system_header_dir+set}" = set; then :
3477 withval
=$with_native_system_header_dir;
3478 case ${with_native_system_header_dir} in
3479 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3480 /* |
[A-Za-z
]:[\\/]*) ;;
3481 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3483 configured_native_system_header_dir
="${withval}"
3486 configured_native_system_header_dir
=
3491 # Check whether --with-build-sysroot was given.
3492 if test "${with_build_sysroot+set}" = set; then :
3493 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3494 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3497 SYSROOT_CFLAGS_FOR_TARGET
=
3502 if test "x$prefix" = xNONE
; then
3503 test_prefix
=/usr
/local
3507 if test "x$exec_prefix" = xNONE
; then
3508 test_exec_prefix
=$test_prefix
3510 test_exec_prefix
=$exec_prefix
3514 # Check whether --with-sysroot was given.
3515 if test "${with_sysroot+set}" = set; then :
3516 withval
=$with_sysroot;
3517 case ${with_sysroot} in
3519 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3521 case ${with_sysroot} in
3522 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3523 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3526 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3527 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3529 case ${TARGET_SYSTEM_ROOT} in
3530 "${test_prefix}"|
"${test_prefix}/"*|\
3531 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3532 '${prefix}'|
'${prefix}/'*|\
3533 '${exec_prefix}'|
'${exec_prefix}/'*)
3534 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3535 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3542 TARGET_SYSTEM_ROOT_DEFINE
=
3543 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3551 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3552 # passed in by the toplevel make and thus we'd get different behavior
3553 # depending on where we built the sources.
3554 gcc_gxx_include_dir
=
3555 # Specify the g++ header file directory
3557 # Check whether --with-gxx-include-dir was given.
3558 if test "${with_gxx_include_dir+set}" = set; then :
3559 withval
=$with_gxx_include_dir; case "${withval}" in
3560 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3562 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3567 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3568 if test x
${gcc_gxx_include_dir} = x
; then
3569 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3570 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3572 libstdcxx_incdir
='include/c++/$(version)'
3573 if test x
$host != x
$target; then
3574 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3576 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3580 gcc_gxx_include_dir_add_sysroot
=0
3581 if test "${with_sysroot+set}" = set; then
3582 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3583 if test "${gcc_gxx_without_sysroot}"; then
3584 if test x
${with_sysroot} != x
/; then
3585 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3587 gcc_gxx_include_dir_add_sysroot
=1
3592 # Check whether --with-cpp_install_dir was given.
3593 if test "${with_cpp_install_dir+set}" = set; then :
3594 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3595 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3596 elif test x
$withval != xno
; then
3597 cpp_install_dir
=$withval
3602 # We would like to our source tree to be readonly. However when releases or
3603 # pre-releases are generated, the flex/bison generated files as well as the
3604 # various formats of manuals need to be included along with the rest of the
3605 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3609 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3610 # Check whether --enable-generated-files-in-srcdir was given.
3611 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3612 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3614 generated_files_in_srcdir
=no
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3619 $as_echo "$generated_files_in_srcdir" >&6; }
3621 if test "$generated_files_in_srcdir" = "yes"; then
3628 # -------------------
3629 # Find default linker
3630 # -------------------
3634 # Check whether --with-gnu-ld was given.
3635 if test "${with_gnu_ld+set}" = set; then :
3636 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3642 # With pre-defined ld
3644 # Check whether --with-ld was given.
3645 if test "${with_ld+set}" = set; then :
3646 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3649 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3650 if test ! -x "$DEFAULT_LINKER"; then
3651 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3652 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3656 cat >>confdefs.h
<<_ACEOF
3657 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3663 $as_echo_n "checking whether a default linker was specified... " >&6; }
3664 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3665 if test x
"$gnu_ld_flag" = x
"no"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3667 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3670 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3677 # With demangler in GNU ld
3679 # Check whether --with-demangler-in-ld was given.
3680 if test "${with_demangler_in_ld+set}" = set; then :
3681 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3687 # ----------------------
3688 # Find default assembler
3689 # ----------------------
3693 # Check whether --with-gnu-as was given.
3694 if test "${with_gnu_as+set}" = set; then :
3695 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3702 # Check whether --with-as was given.
3703 if test "${with_as+set}" = set; then :
3704 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3707 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3708 if test ! -x "$DEFAULT_ASSEMBLER"; then
3709 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3710 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3714 cat >>confdefs.h
<<_ACEOF
3715 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3721 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3722 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3723 if test x
"$gas_flag" = x
"no"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3725 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3728 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3739 # If a non-executable a.out is present (e.g. created by GNU as above even if
3740 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3741 # file, even when creating an executable, so an execution test fails.
3742 # Remove possible default executable files to avoid this.
3744 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3745 # Autoconf includes it.
3746 rm -f a.out a.exe b.out
3748 # Find the native compiler
3750 ac_cpp
='$CPP $CPPFLAGS'
3751 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3754 if test -n "$ac_tool_prefix"; then
3755 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3756 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if test "${ac_cv_prog_CC+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3762 if test -n "$CC"; then
3763 ac_cv_prog_CC
="$CC" # Let the user override the test.
3765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3769 test -z "$as_dir" && as_dir
=.
3770 for ac_exec_ext
in '' $ac_executable_extensions; do
3771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 if test -n "$CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3785 $as_echo "$CC" >&6; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3793 if test -z "$ac_cv_prog_CC"; then
3795 # Extract the first word of "gcc", so it can be a program name with args.
3796 set dummy gcc
; ac_word
=$2
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3798 $as_echo_n "checking for $ac_word... " >&6; }
3799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3802 if test -n "$ac_ct_CC"; then
3803 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3805 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir
=.
3810 for ac_exec_ext
in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_prog_ac_ct_CC
="gcc"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3823 if test -n "$ac_ct_CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3825 $as_echo "$ac_ct_CC" >&6; }
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828 $as_echo "no" >&6; }
3831 if test "x$ac_ct_CC" = x
; then
3834 case $cross_compiling:$ac_tool_warned in
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3838 ac_tool_warned
=yes ;;
3846 if test -z "$CC"; then
3847 if test -n "$ac_tool_prefix"; then
3848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3849 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if test "${ac_cv_prog_CC+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC
="$CC" # Let the user override the test.
3858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3862 test -z "$as_dir" && as_dir
=.
3863 for ac_exec_ext
in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3887 if test -z "$CC"; then
3888 # Extract the first word of "cc", so it can be a program name with args.
3889 set dummy cc
; ac_word
=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_CC+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3895 if test -n "$CC"; then
3896 ac_cv_prog_CC
="$CC" # Let the user override the test.
3899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir
=.
3904 for ac_exec_ext
in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3907 ac_prog_rejected
=yes
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 if test $ac_prog_rejected = yes; then
3919 # We found a bogon in the path, so make sure we never use it.
3920 set dummy
$ac_cv_prog_CC
3922 if test $# != 0; then
3923 # We chose a different compiler from the bogus one.
3924 # However, it has the same basename, so the bogon will be chosen
3925 # first if we set CC to just the basename; use the full file name.
3927 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3943 if test -z "$CC"; then
3944 if test -n "$ac_tool_prefix"; then
3945 for ac_prog
in cl.exe
3947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3948 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if test "${ac_cv_prog_CC+set}" = set; then :
3952 $as_echo_n "(cached) " >&6
3954 if test -n "$CC"; then
3955 ac_cv_prog_CC
="$CC" # Let the user override the test.
3957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3961 test -z "$as_dir" && as_dir
=.
3962 for ac_exec_ext
in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3975 if test -n "$CC"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3977 $as_echo "$CC" >&6; }
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3984 test -n "$CC" && break
3987 if test -z "$CC"; then
3989 for ac_prog
in cl.exe
3991 # Extract the first word of "$ac_prog", so it can be a program name with args.
3992 set dummy
$ac_prog; ac_word
=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3998 if test -n "$ac_ct_CC"; then
3999 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4005 test -z "$as_dir" && as_dir
=.
4006 for ac_exec_ext
in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_ac_ct_CC
="$ac_prog"
4009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4019 if test -n "$ac_ct_CC"; then
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4021 $as_echo "$ac_ct_CC" >&6; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4024 $as_echo "no" >&6; }
4028 test -n "$ac_ct_CC" && break
4031 if test "x$ac_ct_CC" = x
; then
4034 case $cross_compiling:$ac_tool_warned in
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned
=yes ;;
4047 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4049 as_fn_error
"no acceptable C compiler found in \$PATH
4050 See \`config.log' for more details." "$LINENO" 5; }
4052 # Provide some information about the compiler.
4053 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4056 for ac_option
in --version -v -V -qversion; do
4057 { { ac_try
="$ac_compiler $ac_option >&5"
4059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4066 if test -s conftest.err; then
4068 ... rest of stderr output deleted ...
4069 10q' conftest.err >conftest.er1
4070 cat conftest.er1 >&5
4071 rm -f conftest.er1 conftest.err
4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074 test $ac_status = 0; }
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 ac_clean_files_save=$ac_clean_files
4089 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4090 # Try to create an executable without -o first, disregard a.out.
4091 # It will help us diagnose broken compilers, and finding out an intuition
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4094 $as_echo_n "checking for C compiler default output file name... " >&6; }
4095 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4097 # The possible output files:
4098 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4101 for ac_file in $ac_files
4104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4110 if { { ac_try="$ac_link_default"
4112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4113 *) ac_try_echo
=$ac_try;;
4115 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 $as_echo "$ac_try_echo"; } >&5
4117 (eval "$ac_link_default") 2>&5
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }; then :
4121 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4122 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4123 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4124 # so that the user can short-circuit this test for compilers unknown to
4126 for ac_file
in $ac_files ''
4128 test -f "$ac_file" ||
continue
4130 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4133 # We found the default executable, but exeext='' is most
4137 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4139 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4141 # We set ac_cv_exeext here because the later test for it is not
4142 # safe: cross compilers may not add the suffix if given an `-o'
4143 # argument, so we may need to know it at that point already.
4144 # Even if this section looks crufty: it has the advantage of
4151 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4157 $as_echo "$ac_file" >&6; }
4158 if test -z "$ac_file"; then :
4159 $as_echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.
$ac_ext >&5
4162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164 { as_fn_set_status
77
4165 as_fn_error
"C compiler cannot create executables
4166 See \`config.log' for more details." "$LINENO" 5; }; }
4168 ac_exeext
=$ac_cv_exeext
4170 # Check that the compiler produces executables we can run. If not, either
4171 # the compiler is broken, or we cross compile.
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4173 $as_echo_n "checking whether the C compiler works... " >&6; }
4174 # If not cross compiling, check that we can run a simple program.
4175 if test "$cross_compiling" != yes; then
4176 if { ac_try
='./$ac_file'
4177 { { case "(($ac_try" in
4178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4182 $as_echo "$ac_try_echo"; } >&5
4183 (eval "$ac_try") 2>&5
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }; }; then
4189 if test "$cross_compiling" = maybe; then
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "cannot run C compiled programs.
4195 If you meant to cross compile
, use \
`--host'.
4196 See \`config.log
' for more details." "$LINENO" 5; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4201 $as_echo "yes" >&6; }
4203 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4204 ac_clean_files=$ac_clean_files_save
4205 # Check that the compiler produces executables we can run. If not, either
4206 # the compiler is broken, or we cross compile.
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4208 $as_echo_n "checking whether we are cross compiling... " >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4210 $as_echo "$cross_compiling" >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4213 $as_echo_n "checking for suffix of executables... " >&6; }
4214 if { { ac_try="$ac_link"
4216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4217 *) ac_try_echo=$ac_try;;
4219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4220 $as_echo "$ac_try_echo"; } >&5
4221 (eval "$ac_link") 2>&5
4223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4224 test $ac_status = 0; }; then :
4225 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4226 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4227 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4229 for ac_file
in conftest.exe conftest conftest.
*; do
4230 test -f "$ac_file" ||
continue
4232 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4233 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4241 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4242 See \`config.log' for more details." "$LINENO" 5; }
4244 rm -f conftest
$ac_cv_exeext
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4246 $as_echo "$ac_cv_exeext" >&6; }
4248 rm -f conftest.
$ac_ext
4249 EXEEXT
=$ac_cv_exeext
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4252 $as_echo_n "checking for suffix of object files... " >&6; }
4253 if test "${ac_cv_objext+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4267 rm -f conftest.o conftest.obj
4268 if { { ac_try
="$ac_compile"
4270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_compile") 2>&5
4277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }; then :
4279 for ac_file in conftest.o conftest.obj conftest.*; do
4280 test -f "$ac_file" || continue;
4282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4283 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4288 $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.$ac_ext >&5
4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error "cannot compute suffix of object files
: cannot compile
4294 See \
`config.log' for more details." "$LINENO" 5; }
4296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4299 $as_echo "$ac_cv_objext" >&6; }
4300 OBJEXT=$ac_cv_objext
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4303 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4304 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4321 if ac_fn_c_try_compile "$LINENO"; then :
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4331 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4332 if test $ac_compiler_gnu = yes; then
4337 ac_test_CFLAGS=${CFLAGS+set}
4338 ac_save_CFLAGS=$CFLAGS
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4340 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4341 if test "${ac_cv_prog_cc_g+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4344 ac_save_c_werror_flag=$ac_c_werror_flag
4345 ac_c_werror_flag=yes
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4359 if ac_fn_c_try_compile "$LINENO"; then :
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4374 if ac_fn_c_try_compile "$LINENO"; then :
4377 ac_c_werror_flag=$ac_save_c_werror_flag
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4390 if ac_fn_c_try_compile "$LINENO"; then :
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 ac_c_werror_flag=$ac_save_c_werror_flag
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4401 $as_echo "$ac_cv_prog_cc_g" >&6; }
4402 if test "$ac_test_CFLAGS" = set; then
4403 CFLAGS=$ac_save_CFLAGS
4404 elif test $ac_cv_prog_cc_g = yes; then
4405 if test "$GCC" = yes; then
4411 if test "$GCC" = yes; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4418 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4419 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
4422 ac_cv_prog_cc_c89=no
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4428 #include <sys/types.h>
4429 #include <sys/stat.h>
4430 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4431 struct buf { int x; };
4432 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4433 static char *e (p, i)
4439 static char *f (char * (*g) (char **, int), char **p, ...)
4444 s = g (p, va_arg (v,int));
4449 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4450 function prototypes and stuff, but not '\xHH' hex character constants.
4451 These don't provoke an error unfortunately, instead are silently treated
4452 as 'x'. The following induces an error, until -std is added to get
4453 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4454 array size at least. It's necessary to write '\x00'==0 to get something
4455 that's true only with -std. */
4456 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4458 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4459 inside strings and character constants. */
4461 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4463 int test (int i, double x);
4464 struct s1 {int (*f) (int a);};
4465 struct s2 {int (*f) (double a);};
4466 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4472 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4477 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4478 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4480 CC="$ac_save_CC $ac_arg"
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_prog_cc_c89=$ac_arg
4484 rm -f core conftest.err conftest.$ac_objext
4485 test "x$ac_cv_prog_cc_c89" != "xno" && break
4487 rm -f conftest.$ac_ext
4492 case "x$ac_cv_prog_cc_c89" in
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4495 $as_echo "none needed" >&6; } ;;
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4498 $as_echo "unsupported" >&6; } ;;
4500 CC="$CC $ac_cv_prog_cc_c89"
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4502 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4504 if test "x$ac_cv_prog_cc_c89" != xno; then :
4509 ac_cpp='$CPP $CPPFLAGS'
4510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4515 ac_cpp='$CXXCPP $CPPFLAGS'
4516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4519 if test -z "$CXX"; then
4520 if test -n "$CCC"; then
4523 if test -n "$ac_tool_prefix"; then
4524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CXX+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4533 if test -n "$CXX"; then
4534 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 if test -n "$CXX"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4556 $as_echo "$CXX" >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$CXX" && break
4566 if test -z "$CXX"; then
4568 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571 set dummy $ac_prog; ac_word=$2
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 $as_echo_n "checking for $ac_word... " >&6; }
4574 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
4577 if test -n "$ac_ct_CXX"; then
4578 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587 ac_cv_prog_ac_ct_CXX="$ac_prog"
4588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4598 if test -n "$ac_ct_CXX"; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4600 $as_echo "$ac_ct_CXX" >&6; }
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603 $as_echo "no" >&6; }
4607 test -n "$ac_ct_CXX" && break
4610 if test "x$ac_ct_CXX" = x; then
4613 case $cross_compiling:$ac_tool_warned in
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4617 ac_tool_warned=yes ;;
4625 # Provide some information about the compiler.
4626 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4629 for ac_option in --version -v -V -qversion; do
4630 { { ac_try="$ac_compiler $ac_option >&5"
4632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4633 *) ac_try_echo
=$ac_try;;
4635 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4636 $as_echo "$ac_try_echo"; } >&5
4637 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4639 if test -s conftest.err
; then
4641 ... rest of stderr output deleted ...
4642 10q' conftest.err
>conftest.er1
4643 cat conftest.er1
>&5
4644 rm -f conftest.er1 conftest.err
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4651 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4652 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4669 if ac_fn_cxx_try_compile
"$LINENO"; then :
4674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4675 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4679 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4680 if test $ac_compiler_gnu = yes; then
4685 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4686 ac_save_CXXFLAGS
=$CXXFLAGS
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4688 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4689 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4692 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4693 ac_cxx_werror_flag
=yes
4696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4707 if ac_fn_cxx_try_compile
"$LINENO"; then :
4708 ac_cv_prog_cxx_g
=yes
4711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4722 if ac_fn_cxx_try_compile
"$LINENO"; then :
4725 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_cxx_try_compile
"$LINENO"; then :
4739 ac_cv_prog_cxx_g
=yes
4741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4746 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4749 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4750 if test "$ac_test_CXXFLAGS" = set; then
4751 CXXFLAGS
=$ac_save_CXXFLAGS
4752 elif test $ac_cv_prog_cxx_g = yes; then
4753 if test "$GXX" = yes; then
4759 if test "$GXX" = yes; then
4766 ac_cpp
='$CPP $CPPFLAGS'
4767 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4768 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4769 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4776 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4782 if test -n "$GNATBIND"; then
4783 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4789 test -z "$as_dir" && as_dir
=.
4790 for ac_exec_ext
in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 GNATBIND
=$ac_cv_prog_GNATBIND
4803 if test -n "$GNATBIND"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4805 $as_echo "$GNATBIND" >&6; }
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4813 if test -z "$ac_cv_prog_GNATBIND"; then
4814 ac_ct_GNATBIND
=$GNATBIND
4815 # Extract the first word of "gnatbind", so it can be a program name with args.
4816 set dummy gnatbind
; ac_word
=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4822 if test -n "$ac_ct_GNATBIND"; then
4823 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4825 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir
=.
4830 for ac_exec_ext
in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4843 if test -n "$ac_ct_GNATBIND"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4845 $as_echo "$ac_ct_GNATBIND" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4851 if test "x$ac_ct_GNATBIND" = x
; then
4854 case $cross_compiling:$ac_tool_warned in
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned
=yes ;;
4860 GNATBIND
=$ac_ct_GNATBIND
4863 GNATBIND
="$ac_cv_prog_GNATBIND"
4866 if test -n "$ac_tool_prefix"; then
4867 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4868 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4870 $as_echo_n "checking for $ac_word... " >&6; }
4871 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4872 $as_echo_n "(cached) " >&6
4874 if test -n "$GNATMAKE"; then
4875 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4881 test -z "$as_dir" && as_dir
=.
4882 for ac_exec_ext
in '' $ac_executable_extensions; do
4883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 GNATMAKE
=$ac_cv_prog_GNATMAKE
4895 if test -n "$GNATMAKE"; then
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4897 $as_echo "$GNATMAKE" >&6; }
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4900 $as_echo "no" >&6; }
4905 if test -z "$ac_cv_prog_GNATMAKE"; then
4906 ac_ct_GNATMAKE
=$GNATMAKE
4907 # Extract the first word of "gnatmake", so it can be a program name with args.
4908 set dummy gnatmake
; ac_word
=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4914 if test -n "$ac_ct_GNATMAKE"; then
4915 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4921 test -z "$as_dir" && as_dir
=.
4922 for ac_exec_ext
in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4935 if test -n "$ac_ct_GNATMAKE"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4937 $as_echo "$ac_ct_GNATMAKE" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4943 if test "x$ac_ct_GNATMAKE" = x
; then
4946 case $cross_compiling:$ac_tool_warned in
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4950 ac_tool_warned
=yes ;;
4952 GNATMAKE
=$ac_ct_GNATMAKE
4955 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4959 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4960 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4963 cat >conftest.adb
<<EOF
4964 procedure conftest is begin null; end conftest;
4966 acx_cv_cc_gcc_supports_ada
=no
4967 # There is a bug in old released versions of GCC which causes the
4968 # driver to exit successfully when the appropriate language module
4969 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4970 # Therefore we must check for the error message as well as an
4971 # unsuccessful exit.
4972 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4973 # given a .adb file, but produce no object file. So we must check
4974 # if an object file was really produced to guard against this.
4975 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4976 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4977 acx_cv_cc_gcc_supports_ada
=yes
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4982 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4984 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4991 # Do configure tests with the C++ compiler, since that's what we build with.
4993 ac_cpp
='$CXXCPP $CPPFLAGS'
4994 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4995 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4996 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4999 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5000 # optimizations to be activated explicitly by the toplevel.
5002 */prev-gcc
/xgcc
*) ;;
5003 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5004 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5009 # Determine PICFLAG for target gnatlib.
5015 # PIC is the default on some targets or must not be used.
5017 # For darwin, common symbols are not allowed in MH_DYLIB files
5019 # If we are using a compiler supporting mdynamic-no-pic
5020 # and the option has been tested as safe to add, then cancel
5021 # it here, since the code generated is incompatible with shared
5023 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5024 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5028 # PIC is the default.
5031 # PIC is the default for 64-bit PA HP-UX.
5033 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5035 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5037 i
[34567]86-*-nto-qnx*)
5038 # QNX uses GNU C++, but need to define -shared option too, otherwise
5040 PICFLAG_FOR_TARGET
='-fPIC -shared'
5042 i
[34567]86-pc-msdosdjgpp*)
5043 # DJGPP does not support shared libraries at all.
5046 # On IA64 HP-UX, PIC is the default but the pic flag
5047 # sets the default TLS model and affects inlining.
5048 PICFLAG_FOR_TARGET
=-fPIC
5051 # PIC is the default.
5053 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5054 # All AIX code is PIC.
5057 # Some targets support both -fPIC and -fpic, but prefer the latter.
5059 i
[34567]86-*-* | x86_64-
*-*)
5060 PICFLAG_FOR_TARGET
=-fpic
5062 # FIXME: Override -fPIC default in libgcc only?
5063 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5064 PICFLAG_FOR_TARGET
=-fpic
5066 # FIXME: Simplify to sh*-*-netbsd*?
5067 sh-
*-netbsdelf* | shl
*-*-netbsdelf*)
5068 PICFLAG_FOR_TARGET
=-fpic
5070 # Default to -fPIC unless specified otherwise.
5072 PICFLAG_FOR_TARGET
=-fPIC
5076 # If the user explicitly uses -fpic/-fPIC, keep that.
5077 case "${CFLAGS_FOR_TARGET}" in
5079 PICFLAG_FOR_TARGET
=-fpic
5082 PICFLAG_FOR_TARGET
=-fPIC
5088 # -------------------------
5089 # Check C compiler features
5090 # -------------------------
5094 ac_cpp
='$CXXCPP $CPPFLAGS'
5095 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5096 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5097 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5099 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5100 if test -z "$CXXCPP"; then
5101 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5104 # Double quotes because CXXCPP needs to be expanded
5105 for CXXCPP
in "$CXX -E" "/lib/cpp"
5108 for ac_cxx_preproc_warn_flag
in '' yes
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5119 # include <limits.h>
5121 # include <assert.h>
5125 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5128 # Broken: fails on valid input.
5131 rm -f conftest.err conftest.
$ac_ext
5133 # OK, works on sane cases. Now check whether nonexistent headers
5134 # can be detected and how.
5135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <ac_nonexistent.h>
5139 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5140 # Broken: success on invalid input.
5143 # Passes both tests.
5147 rm -f conftest.err conftest.
$ac_ext
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.
$ac_ext
5152 if $ac_preproc_ok; then :
5157 ac_cv_prog_CXXCPP
=$CXXCPP
5160 CXXCPP
=$ac_cv_prog_CXXCPP
5162 ac_cv_prog_CXXCPP
=$CXXCPP
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5165 $as_echo "$CXXCPP" >&6; }
5167 for ac_cxx_preproc_warn_flag
in '' yes
5169 # Use a header file that comes with gcc, so configuring glibc
5170 # with a fresh cross-compiler works.
5171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5172 # <limits.h> exists even on freestanding compilers.
5173 # On the NeXT, cc -E runs the code through the compiler's parser,
5174 # not just through cpp. "Syntax error" is here to catch this case.
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5178 # include <limits.h>
5180 # include <assert.h>
5184 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5187 # Broken: fails on valid input.
5190 rm -f conftest.err conftest.
$ac_ext
5192 # OK, works on sane cases. Now check whether nonexistent headers
5193 # can be detected and how.
5194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <ac_nonexistent.h>
5198 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5199 # Broken: success on invalid input.
5202 # Passes both tests.
5206 rm -f conftest.err conftest.
$ac_ext
5209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5210 rm -f conftest.err conftest.
$ac_ext
5211 if $ac_preproc_ok; then :
5214 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5216 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5217 See \`config.log' for more details." "$LINENO" 5; }
5221 ac_cpp
='$CXXCPP $CPPFLAGS'
5222 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5223 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5224 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5229 if test "${ac_cv_path_GREP+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5232 if test -z "$GREP"; then
5233 ac_path_GREP_found
=false
5234 # Loop through the user's path and test for each of PROGNAME-LIST
5235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5236 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5239 test -z "$as_dir" && as_dir
=.
5240 for ac_prog
in grep ggrep
; do
5241 for ac_exec_ext
in '' $ac_executable_extensions; do
5242 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5243 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5244 # Check for GNU ac_path_GREP and select it if it is found.
5245 # Check for GNU $ac_path_GREP
5246 case `"$ac_path_GREP" --version 2>&1` in
5248 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5251 $as_echo_n 0123456789 >"conftest.in"
5254 cat "conftest.in" "conftest.in" >"conftest.tmp"
5255 mv "conftest.tmp" "conftest.in"
5256 cp "conftest.in" "conftest.nl"
5257 $as_echo 'GREP' >> "conftest.nl"
5258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5259 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5260 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5262 # Best one so far, save it but keep looking for a better one
5263 ac_cv_path_GREP
="$ac_path_GREP"
5264 ac_path_GREP_max
=$ac_count
5266 # 10*(2^10) chars as input seems more than enough
5267 test $ac_count -gt 10 && break
5269 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5272 $ac_path_GREP_found && break 3
5277 if test -z "$ac_cv_path_GREP"; then
5278 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5281 ac_cv_path_GREP
=$GREP
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5286 $as_echo "$ac_cv_path_GREP" >&6; }
5287 GREP
="$ac_cv_path_GREP"
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5291 $as_echo_n "checking for egrep... " >&6; }
5292 if test "${ac_cv_path_EGREP+set}" = set; then :
5293 $as_echo_n "(cached) " >&6
5295 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5296 then ac_cv_path_EGREP
="$GREP -E"
5298 if test -z "$EGREP"; then
5299 ac_path_EGREP_found
=false
5300 # Loop through the user's path and test for each of PROGNAME-LIST
5301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5302 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5305 test -z "$as_dir" && as_dir
=.
5306 for ac_prog
in egrep; do
5307 for ac_exec_ext
in '' $ac_executable_extensions; do
5308 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5309 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5310 # Check for GNU ac_path_EGREP and select it if it is found.
5311 # Check for GNU $ac_path_EGREP
5312 case `"$ac_path_EGREP" --version 2>&1` in
5314 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5317 $as_echo_n 0123456789 >"conftest.in"
5320 cat "conftest.in" "conftest.in" >"conftest.tmp"
5321 mv "conftest.tmp" "conftest.in"
5322 cp "conftest.in" "conftest.nl"
5323 $as_echo 'EGREP' >> "conftest.nl"
5324 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5325 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5326 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5327 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5328 # Best one so far, save it but keep looking for a better one
5329 ac_cv_path_EGREP
="$ac_path_EGREP"
5330 ac_path_EGREP_max
=$ac_count
5332 # 10*(2^10) chars as input seems more than enough
5333 test $ac_count -gt 10 && break
5335 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5338 $ac_path_EGREP_found && break 3
5343 if test -z "$ac_cv_path_EGREP"; then
5344 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5347 ac_cv_path_EGREP
=$EGREP
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5353 $as_echo "$ac_cv_path_EGREP" >&6; }
5354 EGREP
="$ac_cv_path_EGREP"
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5358 $as_echo_n "checking for ANSI C header files... " >&6; }
5359 if test "${ac_cv_header_stdc+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5363 /* end confdefs.h. */
5377 if ac_fn_cxx_try_compile
"$LINENO"; then :
5378 ac_cv_header_stdc
=yes
5380 ac_cv_header_stdc
=no
5382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5384 if test $ac_cv_header_stdc = yes; then
5385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5392 $EGREP "memchr" >/dev
/null
2>&1; then :
5395 ac_cv_header_stdc
=no
5401 if test $ac_cv_header_stdc = yes; then
5402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5409 $EGREP "free" >/dev
/null
2>&1; then :
5412 ac_cv_header_stdc
=no
5418 if test $ac_cv_header_stdc = yes; then
5419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5420 if test "$cross_compiling" = yes; then :
5423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5427 #if ((' ' & 0x0FF) == 0x020)
5428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5431 # define ISLOWER(c) \
5432 (('a' <= (c) && (c) <= 'i') \
5433 || ('j' <= (c) && (c) <= 'r') \
5434 || ('s' <= (c) && (c) <= 'z'))
5435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5443 for (i = 0; i < 256; i++)
5444 if (XOR (islower (i), ISLOWER (i))
5445 || toupper (i) != TOUPPER (i))
5450 if ac_fn_cxx_try_run
"$LINENO"; then :
5453 ac_cv_header_stdc
=no
5455 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5456 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5462 $as_echo "$ac_cv_header_stdc" >&6; }
5463 if test $ac_cv_header_stdc = yes; then
5465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5470 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5471 inttypes.h stdint.h unistd.h
5473 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5476 eval as_val
=\$
$as_ac_Header
5477 if test "x$as_val" = x
""yes; then :
5478 cat >>confdefs.h
<<_ACEOF
5479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5489 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5496 if test "$MINIX" = yes; then
5498 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5501 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5504 $as_echo "#define _MINIX 1" >>confdefs.h
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5510 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5511 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5517 # define __EXTENSIONS__ 1
5518 $ac_includes_default
5527 if ac_fn_cxx_try_compile
"$LINENO"; then :
5528 ac_cv_safe_to_define___extensions__
=yes
5530 ac_cv_safe_to_define___extensions__
=no
5532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5535 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5536 test $ac_cv_safe_to_define___extensions__ = yes &&
5537 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5539 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5541 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5543 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5545 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5549 ac_cpp
='$CPP $CPPFLAGS'
5550 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5551 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5552 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5554 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5555 # On Suns, sometimes $CPP names a directory.
5556 if test -n "$CPP" && test -d "$CPP"; then
5559 if test -z "$CPP"; then
5560 if test "${ac_cv_prog_CPP+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5563 # Double quotes because CPP needs to be expanded
5564 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5567 for ac_c_preproc_warn_flag
in '' yes
5569 # Use a header file that comes with gcc, so configuring glibc
5570 # with a fresh cross-compiler works.
5571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5572 # <limits.h> exists even on freestanding compilers.
5573 # On the NeXT, cc -E runs the code through the compiler's parser,
5574 # not just through cpp. "Syntax error" is here to catch this case.
5575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5578 # include <limits.h>
5580 # include <assert.h>
5584 if ac_fn_c_try_cpp
"$LINENO"; then :
5587 # Broken: fails on valid input.
5590 rm -f conftest.err conftest.
$ac_ext
5592 # OK, works on sane cases. Now check whether nonexistent headers
5593 # can be detected and how.
5594 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5595 /* end confdefs.h. */
5596 #include <ac_nonexistent.h>
5598 if ac_fn_c_try_cpp
"$LINENO"; then :
5599 # Broken: success on invalid input.
5602 # Passes both tests.
5606 rm -f conftest.err conftest.
$ac_ext
5609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5610 rm -f conftest.err conftest.
$ac_ext
5611 if $ac_preproc_ok; then :
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5624 $as_echo "$CPP" >&6; }
5626 for ac_c_preproc_warn_flag
in '' yes
5628 # Use a header file that comes with gcc, so configuring glibc
5629 # with a fresh cross-compiler works.
5630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5631 # <limits.h> exists even on freestanding compilers.
5632 # On the NeXT, cc -E runs the code through the compiler's parser,
5633 # not just through cpp. "Syntax error" is here to catch this case.
5634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5637 # include <limits.h>
5639 # include <assert.h>
5643 if ac_fn_c_try_cpp
"$LINENO"; then :
5646 # Broken: fails on valid input.
5649 rm -f conftest.err conftest.
$ac_ext
5651 # OK, works on sane cases. Now check whether nonexistent headers
5652 # can be detected and how.
5653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5654 /* end confdefs.h. */
5655 #include <ac_nonexistent.h>
5657 if ac_fn_c_try_cpp
"$LINENO"; then :
5658 # Broken: success on invalid input.
5661 # Passes both tests.
5665 rm -f conftest.err conftest.
$ac_ext
5668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5669 rm -f conftest.err conftest.
$ac_ext
5670 if $ac_preproc_ok; then :
5673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5675 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5676 See \`config.log' for more details." "$LINENO" 5; }
5680 ac_cpp
='$CXXCPP $CPPFLAGS'
5681 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5686 $as_echo_n "checking for inline... " >&6; }
5687 if test "${ac_cv_c_inline+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5691 for ac_kw
in inline __inline__ __inline
; do
5692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5696 static $ac_kw foo_t static_foo () {return 0; }
5697 $ac_kw foo_t foo () {return 0; }
5701 if ac_fn_cxx_try_compile
"$LINENO"; then :
5702 ac_cv_c_inline
=$ac_kw
5704 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5705 test "$ac_cv_c_inline" != no
&& break
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5710 $as_echo "$ac_cv_c_inline" >&6; }
5712 case $ac_cv_c_inline in
5715 case $ac_cv_c_inline in
5717 *) ac_val
=$ac_cv_c_inline;;
5719 cat >>confdefs.h
<<_ACEOF
5721 #define inline $ac_val
5728 # Check whether --enable-largefile was given.
5729 if test "${enable_largefile+set}" = set; then :
5730 enableval
=$enable_largefile;
5733 if test "$enable_largefile" != no
; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5736 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5737 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5740 ac_cv_sys_largefile_CC
=no
5741 if test "$GCC" != yes; then
5744 # IRIX 6.2 and later do not support large files by default,
5745 # so use the C compiler's -n32 option if that helps.
5746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 #include <sys/types.h>
5749 /* Check that off_t can represent 2**63 - 1 correctly.
5750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5751 since some C++ compilers masquerading as C compilers
5752 incorrectly reject 9223372036854775807. */
5753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5755 && LARGE_OFF_T % 2147483647 == 1)
5765 if ac_fn_cxx_try_compile
"$LINENO"; then :
5768 rm -f core conftest.err conftest.
$ac_objext
5770 if ac_fn_cxx_try_compile
"$LINENO"; then :
5771 ac_cv_sys_largefile_CC
=' -n32'; break
5773 rm -f core conftest.err conftest.
$ac_objext
5777 rm -f conftest.
$ac_ext
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5781 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5782 if test "$ac_cv_sys_largefile_CC" != no
; then
5783 CC
=$CC$ac_cv_sys_largefile_CC
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5787 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5788 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5794 #include <sys/types.h>
5795 /* Check that off_t can represent 2**63 - 1 correctly.
5796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5797 since some C++ compilers masquerading as C compilers
5798 incorrectly reject 9223372036854775807. */
5799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5801 && LARGE_OFF_T % 2147483647 == 1)
5811 if ac_fn_cxx_try_compile
"$LINENO"; then :
5812 ac_cv_sys_file_offset_bits
=no
; break
5814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 #define _FILE_OFFSET_BITS 64
5818 #include <sys/types.h>
5819 /* Check that off_t can represent 2**63 - 1 correctly.
5820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5821 since some C++ compilers masquerading as C compilers
5822 incorrectly reject 9223372036854775807. */
5823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5825 && LARGE_OFF_T % 2147483647 == 1)
5835 if ac_fn_cxx_try_compile
"$LINENO"; then :
5836 ac_cv_sys_file_offset_bits
=64; break
5838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5839 ac_cv_sys_file_offset_bits
=unknown
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5844 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5845 case $ac_cv_sys_file_offset_bits in #(
5848 cat >>confdefs.h
<<_ACEOF
5849 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5854 if test $ac_cv_sys_file_offset_bits = unknown
; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5856 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5857 if test "${ac_cv_sys_large_files+set}" = set; then :
5858 $as_echo_n "(cached) " >&6
5861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 /* Check that off_t can represent 2**63 - 1 correctly.
5865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5866 since some C++ compilers masquerading as C compilers
5867 incorrectly reject 9223372036854775807. */
5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5870 && LARGE_OFF_T % 2147483647 == 1)
5880 if ac_fn_cxx_try_compile
"$LINENO"; then :
5881 ac_cv_sys_large_files
=no
; break
5883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #define _LARGE_FILES 1
5887 #include <sys/types.h>
5888 /* Check that off_t can represent 2**63 - 1 correctly.
5889 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5890 since some C++ compilers masquerading as C compilers
5891 incorrectly reject 9223372036854775807. */
5892 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5893 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5894 && LARGE_OFF_T % 2147483647 == 1)
5904 if ac_fn_cxx_try_compile
"$LINENO"; then :
5905 ac_cv_sys_large_files
=1; break
5907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5908 ac_cv_sys_large_files
=unknown
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5913 $as_echo "$ac_cv_sys_large_files" >&6; }
5914 case $ac_cv_sys_large_files in #(
5917 cat >>confdefs.h
<<_ACEOF
5918 #define _LARGE_FILES $ac_cv_sys_large_files
5927 # sizeof(char) is 1 by definition.
5928 # The cast to long int works around a bug in the HP C Compiler
5929 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5930 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5931 # This bug is HP SR number 8606223364.
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5933 $as_echo_n "checking size of void *... " >&6; }
5934 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5937 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5940 if test "$ac_cv_type_void_p" = yes; then
5941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5943 { as_fn_set_status
77
5944 as_fn_error
"cannot compute sizeof (void *)
5945 See \`config.log' for more details." "$LINENO" 5; }; }
5947 ac_cv_sizeof_void_p
=0
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5953 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5957 cat >>confdefs.h
<<_ACEOF
5958 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5962 # The cast to long int works around a bug in the HP C Compiler
5963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5965 # This bug is HP SR number 8606223364.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5967 $as_echo_n "checking size of short... " >&6; }
5968 if test "${ac_cv_sizeof_short+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5971 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5974 if test "$ac_cv_type_short" = yes; then
5975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5977 { as_fn_set_status
77
5978 as_fn_error
"cannot compute sizeof (short)
5979 See \`config.log' for more details." "$LINENO" 5; }; }
5981 ac_cv_sizeof_short
=0
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5987 $as_echo "$ac_cv_sizeof_short" >&6; }
5991 cat >>confdefs.h
<<_ACEOF
5992 #define SIZEOF_SHORT $ac_cv_sizeof_short
5996 # The cast to long int works around a bug in the HP C Compiler
5997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5999 # This bug is HP SR number 8606223364.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6001 $as_echo_n "checking size of int... " >&6; }
6002 if test "${ac_cv_sizeof_int+set}" = set; then :
6003 $as_echo_n "(cached) " >&6
6005 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6008 if test "$ac_cv_type_int" = yes; then
6009 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6011 { as_fn_set_status
77
6012 as_fn_error
"cannot compute sizeof (int)
6013 See \`config.log' for more details." "$LINENO" 5; }; }
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6021 $as_echo "$ac_cv_sizeof_int" >&6; }
6025 cat >>confdefs.h
<<_ACEOF
6026 #define SIZEOF_INT $ac_cv_sizeof_int
6030 # The cast to long int works around a bug in the HP C Compiler
6031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6033 # This bug is HP SR number 8606223364.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6035 $as_echo_n "checking size of long... " >&6; }
6036 if test "${ac_cv_sizeof_long+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6039 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6042 if test "$ac_cv_type_long" = yes; then
6043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6045 { as_fn_set_status
77
6046 as_fn_error
"cannot compute sizeof (long)
6047 See \`config.log' for more details." "$LINENO" 5; }; }
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6055 $as_echo "$ac_cv_sizeof_long" >&6; }
6059 cat >>confdefs.h
<<_ACEOF
6060 #define SIZEOF_LONG $ac_cv_sizeof_long
6064 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6065 if test "x$ac_cv_type_long_long" = x
""yes; then :
6067 cat >>confdefs.h
<<_ACEOF
6068 #define HAVE_LONG_LONG 1
6071 # The cast to long int works around a bug in the HP C Compiler
6072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6074 # This bug is HP SR number 8606223364.
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6076 $as_echo_n "checking size of long long... " >&6; }
6077 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6080 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6083 if test "$ac_cv_type_long_long" = yes; then
6084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6086 { as_fn_set_status
77
6087 as_fn_error
"cannot compute sizeof (long long)
6088 See \`config.log' for more details." "$LINENO" 5; }; }
6090 ac_cv_sizeof_long_long
=0
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6096 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6100 cat >>confdefs.h
<<_ACEOF
6101 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6107 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6108 case $ac_cv_c_int8_t in #(
6112 cat >>confdefs.h
<<_ACEOF
6113 #define int8_t $ac_cv_c_int8_t
6118 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6119 case $ac_cv_c_int16_t in #(
6123 cat >>confdefs.h
<<_ACEOF
6124 #define int16_t $ac_cv_c_int16_t
6129 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6130 case $ac_cv_c_int32_t in #(
6134 cat >>confdefs.h
<<_ACEOF
6135 #define int32_t $ac_cv_c_int32_t
6140 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6141 case $ac_cv_c_int64_t in #(
6145 cat >>confdefs.h
<<_ACEOF
6146 #define int64_t $ac_cv_c_int64_t
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6153 $as_echo_n "checking for long long int... " >&6; }
6154 if test "${ac_cv_type_long_long_int+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 /* For now, do not test the preprocessor; as of 2007 there are too many
6161 implementations with broken preprocessors. Perhaps this can
6162 be revisited in 2012. In the meantime, code should not expect
6163 #if to work with literals wider than 32 bits. */
6164 /* Test literals. */
6165 long long int ll = 9223372036854775807ll;
6166 long long int nll = -9223372036854775807LL;
6167 unsigned long long int ull = 18446744073709551615ULL;
6168 /* Test constant expressions. */
6169 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6171 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6177 /* Test availability of runtime routines for shift and division. */
6178 long long int llmax = 9223372036854775807ll;
6179 unsigned long long int ullmax = 18446744073709551615ull;
6180 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6181 | (llmax / ll) | (llmax % ll)
6182 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6183 | (ullmax / ull) | (ullmax % ull));
6189 if ac_fn_cxx_try_link
"$LINENO"; then :
6190 if test "$cross_compiling" = yes; then :
6191 ac_cv_type_long_long_int
=yes
6193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6198 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6199 # define LLONG_MAX (HALF - 1 + HALF)
6204 long long int n = 1;
6208 long long int m = n << i;
6211 if (LLONG_MAX / 2 < m)
6219 if ac_fn_cxx_try_run
"$LINENO"; then :
6220 ac_cv_type_long_long_int
=yes
6222 ac_cv_type_long_long_int
=no
6224 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6225 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6229 ac_cv_type_long_long_int
=no
6231 rm -f core conftest.err conftest.
$ac_objext \
6232 conftest
$ac_exeext conftest.
$ac_ext
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6235 $as_echo "$ac_cv_type_long_long_int" >&6; }
6236 if test $ac_cv_type_long_long_int = yes; then
6238 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6244 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6245 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6247 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6250 test $ac_cv_type_long_long_int = yes \
6251 && ac_type
='long long int' \
6252 || ac_type
='long int'
6254 cat >>confdefs.h
<<_ACEOF
6255 #define intmax_t $ac_type
6262 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6263 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6265 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6268 for ac_type
in 'int' 'long int' 'long long int'; do
6269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6270 /* end confdefs.h. */
6271 $ac_includes_default
6275 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6282 if ac_fn_cxx_try_compile
"$LINENO"; then :
6284 cat >>confdefs.h
<<_ACEOF
6285 #define intptr_t $ac_type
6290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6291 test -z "$ac_type" && break
6296 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6297 case $ac_cv_c_uint8_t in #(
6301 $as_echo "#define _UINT8_T 1" >>confdefs.h
6304 cat >>confdefs.h
<<_ACEOF
6305 #define uint8_t $ac_cv_c_uint8_t
6310 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6311 case $ac_cv_c_uint16_t in #(
6316 cat >>confdefs.h
<<_ACEOF
6317 #define uint16_t $ac_cv_c_uint16_t
6322 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6323 case $ac_cv_c_uint32_t in #(
6327 $as_echo "#define _UINT32_T 1" >>confdefs.h
6330 cat >>confdefs.h
<<_ACEOF
6331 #define uint32_t $ac_cv_c_uint32_t
6336 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6337 case $ac_cv_c_uint64_t in #(
6341 $as_echo "#define _UINT64_T 1" >>confdefs.h
6344 cat >>confdefs.h
<<_ACEOF
6345 #define uint64_t $ac_cv_c_uint64_t
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6352 $as_echo_n "checking for unsigned long long int... " >&6; }
6353 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h. */
6359 /* For now, do not test the preprocessor; as of 2007 there are too many
6360 implementations with broken preprocessors. Perhaps this can
6361 be revisited in 2012. In the meantime, code should not expect
6362 #if to work with literals wider than 32 bits. */
6363 /* Test literals. */
6364 long long int ll = 9223372036854775807ll;
6365 long long int nll = -9223372036854775807LL;
6366 unsigned long long int ull = 18446744073709551615ULL;
6367 /* Test constant expressions. */
6368 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6370 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6376 /* Test availability of runtime routines for shift and division. */
6377 long long int llmax = 9223372036854775807ll;
6378 unsigned long long int ullmax = 18446744073709551615ull;
6379 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6380 | (llmax / ll) | (llmax % ll)
6381 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6382 | (ullmax / ull) | (ullmax % ull));
6388 if ac_fn_cxx_try_link
"$LINENO"; then :
6389 ac_cv_type_unsigned_long_long_int
=yes
6391 ac_cv_type_unsigned_long_long_int
=no
6393 rm -f core conftest.err conftest.
$ac_objext \
6394 conftest
$ac_exeext conftest.
$ac_ext
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6397 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6398 if test $ac_cv_type_unsigned_long_long_int = yes; then
6400 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6406 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6407 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6409 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6412 test $ac_cv_type_unsigned_long_long_int = yes \
6413 && ac_type
='unsigned long long int' \
6414 || ac_type
='unsigned long int'
6416 cat >>confdefs.h
<<_ACEOF
6417 #define uintmax_t $ac_type
6424 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6425 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6427 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6430 for ac_type
in 'unsigned int' 'unsigned long int' \
6431 'unsigned long long int'; do
6432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6433 /* end confdefs.h. */
6434 $ac_includes_default
6438 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6445 if ac_fn_cxx_try_compile
"$LINENO"; then :
6447 cat >>confdefs.h
<<_ACEOF
6448 #define uintptr_t $ac_type
6453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6454 test -z "$ac_type" && break
6471 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6472 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6475 # check what underlying integer type int64_t uses
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6477 $as_echo_n "checking for int64_t underlying type... " >&6; }
6478 if test "${ac_cv_int64_t_type+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6485 #ifdef HAVE_STDINT_H
6488 template <typename T> struct X { };
6490 struct X<long> { typedef long t; };
6500 if ac_fn_cxx_try_compile
"$LINENO"; then :
6501 ac_cv_int64_t_type
=long
6503 ac_cv_int64_t_type
="long long"
6505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6508 $as_echo "$ac_cv_int64_t_type" >&6; }
6509 if test "$ac_cv_int64_t_type" = "long"; then
6511 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6515 /* end confdefs.h. */
6517 #ifdef HAVE_STDINT_H
6520 template <typename T> struct X { };
6522 struct X<long long> { typedef long long t; };
6532 if ac_fn_cxx_try_compile
"$LINENO"; then :
6535 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6541 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6542 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6543 $as_echo_n "(cached) " >&6
6546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6554 int a, b; std::swap(a,b);
6559 if ac_fn_cxx_try_compile
"$LINENO"; then :
6560 ac_cv_std_swap_in_utility
=yes
6562 ac_cv_std_swap_in_utility
=no
6564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6567 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6568 if test $ac_cv_std_swap_in_utility = yes; then
6570 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6574 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6575 # If the host compiler is affected by the bug, and we build with optimization
6576 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6577 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6578 # Since there is no reliable feature check for the presence of this bug,
6579 # we simply use a GCC version number check. (This should never trigger for
6580 # stages 2 or 3 of a native bootstrap.)
6582 if test "$GCC" = yes; then
6583 saved_CXXFLAGS
="$CXXFLAGS"
6585 # The following test compilation will succeed if and only if $CXX accepts
6586 # -fno-strict-aliasing *and* is older than GCC 4.3.
6587 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6589 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6593 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6594 #error compiler not affected by placement new aliasing bug
6598 if ac_fn_cxx_try_compile
"$LINENO"; then :
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6600 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6607 CXXFLAGS
="$saved_CXXFLAGS"
6613 # ---------------------
6614 # Warnings and checking
6615 # ---------------------
6617 # Check $CC warning features (if it's GCC).
6618 # We want to use -pedantic, but we don't want warnings about
6621 # * overlong strings
6622 # * C++11 narrowing conversions in { }
6623 # So, we only use -pedantic if we can disable those warnings.
6625 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6626 # Check whether --enable-build-format-warnings was given.
6627 if test "${enable_build_format_warnings+set}" = set; then :
6628 enableval
=$enable_build_format_warnings;
6630 enable_build_format_warnings
=yes
6633 if test $enable_build_format_warnings = no
; then :
6639 ac_cpp
='$CXXCPP $CPPFLAGS'
6640 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6645 save_CXXFLAGS
="$CXXFLAGS"
6646 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6647 # Do the check with the no- prefix removed since gcc silently
6648 # accepts any -Wno-* option on purpose
6649 case $real_option in
6650 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6651 *) option
=$real_option ;;
6653 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6656 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6657 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6658 $as_echo_n "(cached) " >&6
6661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6672 if ac_fn_cxx_try_compile
"$LINENO"; then :
6673 eval "$as_acx_Woption=yes"
6675 eval "$as_acx_Woption=no"
6677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6680 eval ac_res
=\$
$as_acx_Woption
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6682 $as_echo "$ac_res" >&6; }
6683 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6684 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6687 CXXFLAGS
="$save_CXXFLAGS"
6689 ac_cpp
='$CXXCPP $CPPFLAGS'
6690 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6697 ac_cpp
='$CPP $CPPFLAGS'
6698 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6703 save_CFLAGS
="$CFLAGS"
6704 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6705 # Do the check with the no- prefix removed since gcc silently
6706 # accepts any -Wno-* option on purpose
6707 case $real_option in
6708 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6709 *) option
=$real_option ;;
6711 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6714 $as_echo_n "checking whether $CC supports $option... " >&6; }
6715 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6716 $as_echo_n "(cached) " >&6
6719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6730 if ac_fn_c_try_compile
"$LINENO"; then :
6731 eval "$as_acx_Woption=yes"
6733 eval "$as_acx_Woption=no"
6735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6738 eval ac_res
=\$
$as_acx_Woption
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6740 $as_echo "$ac_res" >&6; }
6741 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6742 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6745 CFLAGS
="$save_CFLAGS"
6747 ac_cpp
='$CXXCPP $CPPFLAGS'
6748 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6749 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6750 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6754 ac_cpp
='$CXXCPP $CPPFLAGS'
6755 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6760 save_CXXFLAGS
="$CXXFLAGS"
6761 for real_option
in -Wmissing-format-attribute; do
6762 # Do the check with the no- prefix removed since gcc silently
6763 # accepts any -Wno-* option on purpose
6764 case $real_option in
6765 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6766 *) option
=$real_option ;;
6768 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6771 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6772 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6773 $as_echo_n "(cached) " >&6
6776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6787 if ac_fn_cxx_try_compile
"$LINENO"; then :
6788 eval "$as_acx_Woption=yes"
6790 eval "$as_acx_Woption=no"
6792 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6795 eval ac_res
=\$
$as_acx_Woption
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6797 $as_echo "$ac_res" >&6; }
6798 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6799 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6802 CXXFLAGS
="$save_CXXFLAGS"
6804 ac_cpp
='$CXXCPP $CPPFLAGS'
6805 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6811 ac_cpp
='$CXXCPP $CPPFLAGS'
6812 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6816 save_CXXFLAGS
="$CXXFLAGS"
6817 for real_option
in -Woverloaded-virtual; do
6818 # Do the check with the no- prefix removed since gcc silently
6819 # accepts any -Wno-* option on purpose
6820 case $real_option in
6821 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6822 *) option
=$real_option ;;
6824 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6827 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6828 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6829 $as_echo_n "(cached) " >&6
6832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6843 if ac_fn_cxx_try_compile
"$LINENO"; then :
6844 eval "$as_acx_Woption=yes"
6846 eval "$as_acx_Woption=no"
6848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6851 eval ac_res
=\$
$as_acx_Woption
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6853 $as_echo "$ac_res" >&6; }
6854 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6855 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6858 CXXFLAGS
="$save_CXXFLAGS"
6860 ac_cpp
='$CXXCPP $CPPFLAGS'
6861 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6862 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6863 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6867 ac_cpp
='$CPP $CPPFLAGS'
6868 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6869 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6870 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6873 save_CFLAGS
="$CFLAGS"
6874 for real_option
in -Wold-style-definition -Wc++-compat; do
6875 # Do the check with the no- prefix removed since gcc silently
6876 # accepts any -Wno-* option on purpose
6877 case $real_option in
6878 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6879 *) option
=$real_option ;;
6881 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6884 $as_echo_n "checking whether $CC supports $option... " >&6; }
6885 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6886 $as_echo_n "(cached) " >&6
6889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6900 if ac_fn_c_try_compile
"$LINENO"; then :
6901 eval "$as_acx_Woption=yes"
6903 eval "$as_acx_Woption=no"
6905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6908 eval ac_res
=\$
$as_acx_Woption
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6910 $as_echo "$ac_res" >&6; }
6911 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6912 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6915 CFLAGS
="$save_CFLAGS"
6917 ac_cpp
='$CXXCPP $CPPFLAGS'
6918 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6924 ac_cpp
='$CXXCPP $CPPFLAGS'
6925 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6929 # Do the check with the no- prefix removed from the warning options
6930 # since gcc silently accepts any -Wno-* option on purpose
6931 if test "$GXX" = yes; then :
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6933 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6934 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6935 $as_echo_n "(cached) " >&6
6937 save_CXXFLAGS
="$CXXFLAGS"
6938 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6950 if ac_fn_cxx_try_compile
"$LINENO"; then :
6951 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6953 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 CXXFLAGS
="$save_CXXFLAGS"
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6959 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6960 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6961 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6966 ac_cpp
='$CXXCPP $CPPFLAGS'
6967 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6968 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6969 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6973 ac_cpp
='$CXXCPP $CPPFLAGS'
6974 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6975 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6976 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6978 # Check whether --enable-werror-always was given.
6979 if test "${enable_werror_always+set}" = set; then :
6980 enableval
=$enable_werror_always;
6982 enable_werror_always
=no
6985 if test $enable_werror_always = yes; then :
6986 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6990 ac_cpp
='$CXXCPP $CPPFLAGS'
6991 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6997 # The above macros do nothing if the compiler is not GCC. However, the
6998 # Makefile has more goo to add other flags, so these variables are used
6999 # to enable warnings only for GCC.
7002 if test "x$GCC" = "xyes"; then
7003 warn_cflags
='$(GCC_WARN_CFLAGS)'
7004 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
7009 # Disable exceptions and RTTI if building with g++
7011 ac_cpp
='$CPP $CPPFLAGS'
7012 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7017 save_CFLAGS
="$CFLAGS"
7018 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7019 # Do the check with the no- prefix removed since gcc silently
7020 # accepts any -Wno-* option on purpose
7021 case $real_option in
7022 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7023 *) option
=$real_option ;;
7025 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7028 $as_echo_n "checking whether $CC supports $option... " >&6; }
7029 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7030 $as_echo_n "(cached) " >&6
7033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7044 if ac_fn_c_try_compile
"$LINENO"; then :
7045 eval "$as_acx_Woption=yes"
7047 eval "$as_acx_Woption=no"
7049 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7052 eval ac_res
=\$
$as_acx_Woption
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7054 $as_echo "$ac_res" >&6; }
7055 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7056 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7059 CFLAGS
="$save_CFLAGS"
7061 ac_cpp
='$CXXCPP $CPPFLAGS'
7062 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7063 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7064 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7068 # Enable expensive internal checks
7070 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7074 # Check whether --enable-checking was given.
7075 if test "${enable_checking+set}" = set; then :
7076 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7079 # Determine the default checks.
7080 if test x
$is_release = x
; then
7081 ac_checking_flags
=yes,extra
7083 ac_checking_flags
=release
7087 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7088 for check
in release
$ac_checking_flags
7091 # these set all the flags to specific states
7092 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7093 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7094 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7095 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7096 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7097 ac_types_checking
=1 ;;
7098 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7099 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7100 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7101 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7102 ac_tree_checking
= ; ac_valgrind_checking
= ;
7103 ac_types_checking
= ;;
7104 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7105 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7106 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7107 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7108 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7109 ac_types_checking
=1 ;;
7110 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7111 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7112 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7113 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7114 ac_tree_checking
= ; ac_valgrind_checking
= ;
7115 ac_types_checking
= ;;
7116 # these enable particular checks
7117 assert
) ac_assert_checking
=1 ;;
7118 df
) ac_df_checking
=1 ;;
7119 extra
) ac_extra_checking
=1 ;;
7120 fold) ac_fold_checking
=1 ;;
7121 gc
) ac_gc_checking
=1 ;;
7122 gcac
) ac_gc_always_collect
=1 ;;
7123 gimple
) ac_gimple_checking
=1 ;;
7124 misc
) ac_checking
=1 ;;
7125 rtl
) ac_rtl_checking
=1 ;;
7126 rtlflag
) ac_rtlflag_checking
=1 ;;
7127 runtime
) ac_runtime_checking
=1 ;;
7128 tree
) ac_tree_checking
=1 ;;
7129 types
) ac_types_checking
=1 ;;
7130 valgrind
) ac_valgrind_checking
=1 ;;
7131 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7137 if test x
$ac_checking != x
; then
7138 if test x
$ac_extra_checking != x
; then
7142 cat >>confdefs.h
<<_ACEOF
7143 #define CHECKING_P $ac_checking
7146 nocommon_flag
=-fno-common
7148 $as_echo "#define CHECKING_P 0" >>confdefs.h
7152 if test x
$ac_df_checking != x
; then
7154 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7157 if test x
$ac_assert_checking != x
; then
7159 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7162 if test x
$ac_gimple_checking != x
; then
7164 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7168 if test x
$ac_runtime_checking != x
; then
7170 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7173 if test x
$ac_tree_checking != x
; then
7175 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7179 if test x
$ac_types_checking != x
; then
7181 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7185 if test x
$ac_rtl_checking != x
; then
7187 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7190 if test x
$ac_rtlflag_checking != x
; then
7192 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7195 if test x
$ac_gc_checking != x
; then
7197 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7200 if test x
$ac_gc_always_collect != x
; then
7202 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7205 if test x
$ac_fold_checking != x
; then
7207 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7210 valgrind_path_defines
=
7213 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7214 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7222 # It is certainly possible that there's valgrind but no valgrind.h.
7223 # GCC relies on making annotations so we must have both.
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7225 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #include <valgrind/memcheck.h>
7229 #ifndef VALGRIND_DISCARD
7230 #error VALGRIND_DISCARD not defined
7233 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7234 gcc_cv_header_valgrind_memcheck_h
=yes
7236 gcc_cv_header_valgrind_memcheck_h
=no
7238 rm -f conftest.err conftest.
$ac_ext
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7240 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7242 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7245 #include <memcheck.h>
7246 #ifndef VALGRIND_DISCARD
7247 #error VALGRIND_DISCARD not defined
7250 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7251 gcc_cv_header_memcheck_h
=yes
7253 gcc_cv_header_memcheck_h
=no
7255 rm -f conftest.err conftest.
$ac_ext
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7257 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7258 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7260 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7263 if test $gcc_cv_header_memcheck_h = yes; then
7265 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7269 if test x
$ac_valgrind_checking != x
; then
7271 # Prepare PATH_SEPARATOR.
7272 # The user is always right.
7273 if test "${PATH_SEPARATOR+set}" != set; then
7274 echo "#! /bin/sh" >conf$$.sh
7275 echo "exit 0" >>conf$$.sh
7277 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7285 # Find out how to test for executable files. Don't use a zero-byte file,
7286 # as systems may use methods other than mode bits to determine executability.
7287 cat >conf$$.
file <<_ASEOF
7291 chmod +x conf$$.
file
7292 if test -x conf$$.
file >/dev
/null
2>&1; then
7293 ac_executable_p
="test -x"
7295 ac_executable_p
="test -f"
7299 # Extract the first word of "valgrind", so it can be a program name with args.
7300 set dummy valgrind
; ac_word
=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7306 case "$valgrind_path" in
7308 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7311 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7312 for ac_dir
in $PATH; do
7314 test -z "$ac_dir" && ac_dir
=.
7315 for ac_exec_ext
in '' $ac_executable_extensions; do
7316 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7317 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7318 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7328 valgrind_path
="$ac_cv_path_valgrind_path"
7329 if test -n "$valgrind_path"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7331 $as_echo "$valgrind_path" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7337 if test "x$valgrind_path" = "x" \
7338 ||
(test $have_valgrind_h = no \
7339 && test $gcc_cv_header_memcheck_h = no \
7340 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7341 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7343 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7344 valgrind_command
="$valgrind_path -q"
7346 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7352 # Enable code coverage collection
7353 # Check whether --enable-coverage was given.
7354 if test "${enable_coverage+set}" = set; then :
7355 enableval
=$enable_coverage; case "${enableval}" in
7357 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7360 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7363 # a.k.a. --disable-coverage
7367 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7376 # Check whether --enable-gather-detailed-mem-stats was given.
7377 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7378 enableval
=$enable_gather_detailed_mem_stats;
7380 enable_gather_detailed_mem_stats
=no
7383 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7385 cat >>confdefs.h
<<_ACEOF
7386 #define GATHER_STATISTICS $gather_stats
7390 # Check whether --enable-valgrind-annotations was given.
7391 if test "${enable_valgrind_annotations+set}" = set; then :
7392 enableval
=$enable_valgrind_annotations;
7394 enable_valgrind_annotations
=no
7397 if test x
$enable_valgrind_annotations != xno \
7398 ||
test x
$ac_valgrind_checking != x
; then
7399 if (test $have_valgrind_h = no \
7400 && test $gcc_cv_header_memcheck_h = no \
7401 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7402 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7405 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7409 # -------------------------------
7410 # Miscenalleous configure options
7411 # -------------------------------
7415 # Check whether --with-stabs was given.
7416 if test "${with_stabs+set}" = set; then :
7417 withval
=$with_stabs; stabs
="$with_stabs"
7423 # Determine whether or not multilibs are enabled.
7424 # Check whether --enable-multilib was given.
7425 if test "${enable_multilib+set}" = set; then :
7426 enableval
=$enable_multilib;
7433 # Determine whether or not multiarch is enabled.
7434 # Check whether --enable-multiarch was given.
7435 if test "${enable_multiarch+set}" = set; then :
7436 enableval
=$enable_multiarch; case "${enableval}" in
7437 yes|no|auto
) enable_multiarch
=$enableval;;
7438 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7441 enable_multiarch
=auto
7444 if test x
${enable_multiarch} = xauto
; then
7445 if test x
${with_native_system_header_dir} != x
; then
7446 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7449 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7450 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7455 $as_echo_n "checking for multiarch configuration... " >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7458 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7460 # needed for setting the multiarch name for soft-float/hard-float ABIs
7464 # Enable __cxa_atexit for C++.
7465 # Check whether --enable-__cxa_atexit was given.
7466 if test "${enable___cxa_atexit+set}" = set; then :
7467 enableval
=$enable___cxa_atexit;
7471 # Enable C extension for decimal float if target supports it.
7473 # Check whether --enable-decimal-float was given.
7474 if test "${enable_decimal_float+set}" = set; then :
7475 enableval
=$enable_decimal_float;
7476 case $enable_decimal_float in
7477 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7478 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7479 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7485 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7486 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7487 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7488 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7489 enable_decimal_float
=yes
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7493 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7494 enable_decimal_float
=no
7501 # x86's use BID format instead of DPD
7502 case x
$enable_decimal_float in
7505 i?
86*-*-* | x86_64
*-*-*)
7506 enable_decimal_float
=bid
7509 enable_decimal_float
=dpd
7512 default_decimal_float
=$enable_decimal_float
7515 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7516 # dependency on libdecnumber.
7517 default_decimal_float
=dpd
7524 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7526 cat >>confdefs.h
<<_ACEOF
7527 #define ENABLE_DECIMAL_FLOAT $dfp
7531 # Use default_decimal_float for dependency.
7532 enable_decimal_float
=$default_decimal_float
7534 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7536 cat >>confdefs.h
<<_ACEOF
7537 #define ENABLE_DECIMAL_BID_FORMAT $bid
7541 # Enable C extension for fixed-point arithmetic.
7542 # Check whether --enable-fixed-point was given.
7543 if test "${enable_fixed_point+set}" = set; then :
7544 enableval
=$enable_fixed_point;
7549 enable_fixed_point
=yes
7553 enable_fixed_point
=yes
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7557 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7558 enable_fixed_point
=no
7566 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7568 cat >>confdefs.h
<<_ACEOF
7569 #define ENABLE_FIXED_POINT $fixedpoint
7574 # Pass with no value to take the default
7575 # Pass with a value to specify a thread package
7576 # Check whether --enable-threads was given.
7577 if test "${enable_threads+set}" = set; then :
7578 enableval
=$enable_threads;
7584 # Check whether --enable-tls was given.
7585 if test "${enable_tls+set}" = set; then :
7586 enableval
=$enable_tls;
7589 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7590 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7598 # Check whether --enable-vtable-verify was given.
7599 if test "${enable_vtable_verify+set}" = set; then :
7600 enableval
=$enable_vtable_verify;
7602 enable_vtable_verify
=no
7605 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7607 cat >>confdefs.h
<<_ACEOF
7608 #define ENABLE_VTABLE_VERIFY $vtable_verify
7612 # Check whether --enable-objc-gc was given.
7613 if test "${enable_objc_gc+set}" = set; then :
7614 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7625 # Check whether --with-dwarf2 was given.
7626 if test "${with_dwarf2+set}" = set; then :
7627 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7633 # Check whether --enable-shared was given.
7634 if test "${enable_shared+set}" = set; then :
7635 enableval
=$enable_shared;
7636 case $enable_shared in
7640 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7641 for pkg
in $enableval; do
7642 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7657 # Check whether --with-specs was given.
7658 if test "${with_specs+set}" = set; then :
7659 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7669 # Check whether --with-pkgversion was given.
7670 if test "${with_pkgversion+set}" = set; then :
7671 withval
=$with_pkgversion; case "$withval" in
7672 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7674 *) PKGVERSION
="($withval) " ;;
7685 # Check whether --with-bugurl was given.
7686 if test "${with_bugurl+set}" = set; then :
7687 withval
=$with_bugurl; case "$withval" in
7688 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7691 *) BUGURL
="$withval"
7695 BUGURL
="http://gcc.gnu.org/bugs.html"
7705 REPORT_BUGS_TO
="<$BUGURL>"
7706 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7713 # Sanity check enable_languages in case someone does not run the toplevel
7714 # configure # script.
7715 # Check whether --enable-languages was given.
7716 if test "${enable_languages+set}" = set; then :
7717 enableval
=$enable_languages; case ,${enable_languages}, in
7719 # go safe -- we cannot be much sure without the toplevel
7721 # analysis of which target libs are present and usable
7725 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7730 enable_languages
=c
,${enable_languages}
7738 if test x
"$enable_as_accelerator_for" != x
; then
7740 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7742 enable_as_accelerator
=yes
7745 # In this case we expect offload compiler to be built as native, so we
7746 # need to rename the driver to avoid clashes with host's drivers.
7747 program_transform_name
="s&^&${target}-&" ;;
7749 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7750 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7751 accel_dir_suffix
=/accel
/${target_noncanonical}
7752 real_target_noncanonical
=${enable_as_accelerator_for}
7758 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7759 tgt
=`echo $tgt | sed 's/=.*//'`
7761 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7767 if test x
"$offload_targets" = x
; then
7768 offload_targets
=$tgt
7770 offload_targets
="$offload_targets,$tgt"
7774 cat >>confdefs.h
<<_ACEOF
7775 #define OFFLOAD_TARGETS "$offload_targets"
7778 if test x
"$enable_offloading" != x
; then
7780 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7784 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7788 if test x
"$enable_hsa" = x1
; then
7790 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7795 # Check whether --with-multilib-list was given.
7796 if test "${with_multilib_list+set}" = set; then :
7797 withval
=$with_multilib_list; :
7799 with_multilib_list
=default
7803 # -------------------------
7804 # Checks for other programs
7805 # -------------------------
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7808 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7810 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7811 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7812 $as_echo_n "(cached) " >&6
7814 cat >conftest.
make <<\_ACEOF
7817 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7819 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7820 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7822 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7824 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7828 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7830 $as_echo "yes" >&6; }
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 SET_MAKE
="MAKE=${MAKE-make}"
7839 # Find some useful tools
7840 for ac_prog
in gawk mawk nawk
awk
7842 # Extract the first word of "$ac_prog", so it can be a program name with args.
7843 set dummy
$ac_prog; ac_word
=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_AWK+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7849 if test -n "$AWK"; then
7850 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7856 test -z "$as_dir" && as_dir
=.
7857 for ac_exec_ext
in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_prog_AWK
="$ac_prog"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 if test -n "$AWK"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7872 $as_echo "$AWK" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7879 test -n "$AWK" && break
7882 # We need awk to create options.c and options.h.
7883 # Bail out if it's missing.
7885 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7889 $as_echo_n "checking whether ln -s works... " >&6; }
7890 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7893 rm -f conftestdata_t
7894 echo >conftestdata_f
7895 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7897 gcc_cv_prog_LN_S
="ln -s"
7899 if ln conftestdata_f conftestdata_t
2>/dev
/null
7903 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7905 gcc_cv_prog_LN_S
="cp -p"
7911 rm -f conftestdata_f conftestdata_t
7914 LN_S
="$gcc_cv_prog_LN_S"
7915 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7917 $as_echo "yes" >&6; }
7919 if test "$gcc_cv_prog_LN_S" = "ln"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7921 $as_echo "no, using ln" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7924 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7929 $as_echo_n "checking whether ln works... " >&6; }
7930 if test "${acx_cv_prog_LN+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7933 rm -f conftestdata_t
7934 echo >conftestdata_f
7935 if ln conftestdata_f conftestdata_t
2>/dev
/null
7941 rm -f conftestdata_f conftestdata_t
7944 if test $acx_cv_prog_LN = no
; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7947 $as_echo "no, using $LN" >&6; }
7949 LN
="$acx_cv_prog_LN"
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7951 $as_echo "yes" >&6; }
7954 if test -n "$ac_tool_prefix"; then
7955 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7956 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7960 $as_echo_n "(cached) " >&6
7962 if test -n "$RANLIB"; then
7963 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7969 test -z "$as_dir" && as_dir
=.
7970 for ac_exec_ext
in '' $ac_executable_extensions; do
7971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7972 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7982 RANLIB
=$ac_cv_prog_RANLIB
7983 if test -n "$RANLIB"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7985 $as_echo "$RANLIB" >&6; }
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7993 if test -z "$ac_cv_prog_RANLIB"; then
7994 ac_ct_RANLIB
=$RANLIB
7995 # Extract the first word of "ranlib", so it can be a program name with args.
7996 set dummy ranlib
; ac_word
=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
8002 if test -n "$ac_ct_RANLIB"; then
8003 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8009 test -z "$as_dir" && as_dir
=.
8010 for ac_exec_ext
in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8012 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8023 if test -n "$ac_ct_RANLIB"; then
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8025 $as_echo "$ac_ct_RANLIB" >&6; }
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8031 if test "x$ac_ct_RANLIB" = x
; then
8034 case $cross_compiling:$ac_tool_warned in
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned
=yes ;;
8040 RANLIB
=$ac_ct_RANLIB
8043 RANLIB
="$ac_cv_prog_RANLIB"
8049 # Find a good install program. We prefer a C program (faster),
8050 # so one script is as good as another. But avoid the broken or
8051 # incompatible versions:
8052 # SysV /etc/install, /usr/sbin/install
8053 # SunOS /usr/etc/install
8054 # IRIX /sbin/install
8056 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8057 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8058 # ./install, which can be erroneously created by make from ./install.sh.
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8060 $as_echo_n "checking for a BSD compatible install... " >&6; }
8061 if test -z "$INSTALL"; then
8062 if test "${ac_cv_path_install+set}" = set; then :
8063 $as_echo_n "(cached) " >&6
8065 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8066 for ac_dir
in $PATH; do
8067 # Account for people who put trailing slashes in PATH elements.
8069 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8071 # OSF1 and SCO ODT 3.0 have their own names for install.
8072 for ac_prog
in ginstall scoinst
install; do
8073 if test -f $ac_dir/$ac_prog; then
8074 if test $ac_prog = install &&
8075 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8076 # AIX install. It has an incompatible calling convention.
8077 # OSF/1 installbsd also uses dspmsg, but is usable.
8080 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8091 if test "${ac_cv_path_install+set}" = set; then
8092 INSTALL
="$ac_cv_path_install"
8094 # As a last resort, use the slow shell script. We don't cache a
8095 # path for INSTALL within a source directory, because that will
8096 # break other packages using the cache if that directory is
8097 # removed, or if the path is relative.
8098 INSTALL
="$ac_install_sh"
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8102 $as_echo "$INSTALL" >&6; }
8104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8105 # It thinks the first close brace ends the variable substitution.
8106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8108 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8111 # See if cmp has --ignore-initial.
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8113 $as_echo_n "checking for cmp's capabilities... " >&6; }
8114 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8119 gcc_cv_prog_cmp_skip
=slowcompare
8120 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8121 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8124 gcc_cv_prog_cmp_skip
=gnucompare
8127 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8128 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8129 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8132 gcc_cv_prog_cmp_skip
=fastcompare
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8140 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8141 make_compare_target
=$gcc_cv_prog_cmp_skip
8145 # See if we have the mktemp command.
8146 # Extract the first word of "mktemp", so it can be a program name with args.
8147 set dummy mktemp
; ac_word
=$2
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8149 $as_echo_n "checking for $ac_word... " >&6; }
8150 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8151 $as_echo_n "(cached) " >&6
8153 if test -n "$have_mktemp_command"; then
8154 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8160 test -z "$as_dir" && as_dir
=.
8161 for ac_exec_ext
in '' $ac_executable_extensions; do
8162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8163 ac_cv_prog_have_mktemp_command
="yes"
8164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8174 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8175 if test -n "$have_mktemp_command"; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8177 $as_echo "$have_mktemp_command" >&6; }
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8180 $as_echo "no" >&6; }
8185 # See if makeinfo has been installed and is modern enough
8186 # that we can use it.
8188 # Extract the first word of "makeinfo", so it can be a program name with args.
8189 set dummy makeinfo
; ac_word
=$2
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8191 $as_echo_n "checking for $ac_word... " >&6; }
8192 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8193 $as_echo_n "(cached) " >&6
8195 if test -n "$MAKEINFO"; then
8196 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8202 test -z "$as_dir" && as_dir
=.
8203 for ac_exec_ext
in '' $ac_executable_extensions; do
8204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8205 ac_cv_prog_MAKEINFO
="makeinfo"
8206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 MAKEINFO
=$ac_cv_prog_MAKEINFO
8216 if test -n "$MAKEINFO"; then
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8218 $as_echo "$MAKEINFO" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8225 if test -n "$MAKEINFO"; then
8226 # Found it, now check the version.
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8228 $as_echo_n "checking for modern makeinfo... " >&6; }
8229 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
8232 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8233 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8235 case $ac_prog_version in
8236 '') gcc_cv_prog_makeinfo_modern
=no
;;
8237 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8238 *) gcc_cv_prog_makeinfo_modern
=no
;;
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8243 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8245 gcc_cv_prog_makeinfo_modern
=no
8247 if test $gcc_cv_prog_makeinfo_modern = no
; then
8248 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8251 if test $gcc_cv_prog_makeinfo_modern = no
; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8253 *** Makeinfo is missing or too old.
8254 *** Info documentation will not be built." >&5
8255 $as_echo "$as_me: WARNING:
8256 *** Makeinfo is missing or too old.
8257 *** Info documentation will not be built." >&2;}
8264 # Is pod2man recent enough to regenerate manpages?
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8266 $as_echo_n "checking for recent Pod::Man... " >&6; }
8267 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8269 $as_echo "yes" >&6; }
8270 GENERATED_MANPAGES
=generated-manpages
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 $as_echo "no" >&6; }
8278 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8283 # Extract the first word of "$ac_prog", so it can be a program name with args.
8284 set dummy
$ac_prog; ac_word
=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if test "${ac_cv_prog_FLEX+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8290 if test -n "$FLEX"; then
8291 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8297 test -z "$as_dir" && as_dir
=.
8298 for ac_exec_ext
in '' $ac_executable_extensions; do
8299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8300 ac_cv_prog_FLEX
="$ac_prog"
8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 FLEX
=$ac_cv_prog_FLEX
8311 if test -n "$FLEX"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8313 $as_echo "$FLEX" >&6; }
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8320 test -n "$FLEX" && break
8322 test -n "$FLEX" || FLEX
="$MISSING flex"
8326 for ac_prog
in bison
8328 # Extract the first word of "$ac_prog", so it can be a program name with args.
8329 set dummy
$ac_prog; ac_word
=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if test "${ac_cv_prog_BISON+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
8335 if test -n "$BISON"; then
8336 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir
=.
8343 for ac_exec_ext
in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_prog_BISON
="$ac_prog"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 BISON
=$ac_cv_prog_BISON
8356 if test -n "$BISON"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8358 $as_echo "$BISON" >&6; }
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8365 test -n "$BISON" && break
8367 test -n "$BISON" || BISON
="$MISSING bison"
8370 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8371 # check for build == host before using them.
8374 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8375 && test -d ..
/binutils
; then
8376 NM
='${objdir}/../binutils/nm-new'
8378 # Extract the first word of "nm", so it can be a program name with args.
8379 set dummy nm
; ac_word
=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if test "${ac_cv_prog_NM+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
8385 if test -n "$NM"; then
8386 ac_cv_prog_NM
="$NM" # Let the user override the test.
8388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8392 test -z "$as_dir" && as_dir
=.
8393 for ac_exec_ext
in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8407 if test -n "$NM"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8409 $as_echo "$NM" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8419 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8420 && test -d ..
/binutils
; then
8421 AR
='${objdir}/../binutils/ar'
8423 # Extract the first word of "ar", so it can be a program name with args.
8424 set dummy
ar; ac_word
=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if test "${ac_cv_prog_AR+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8430 if test -n "$AR"; then
8431 ac_cv_prog_AR
="$AR" # Let the user override the test.
8433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8437 test -z "$as_dir" && as_dir
=.
8438 for ac_exec_ext
in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8452 if test -n "$AR"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8454 $as_echo "$AR" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8463 # The jit documentation looks better if built with sphinx, but can be
8464 # built with texinfo if sphinx is not available.
8465 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8466 # Extract the first word of "sphinx-build", so it can be a program name with args.
8467 set dummy sphinx-build
; ac_word
=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8471 $as_echo_n "(cached) " >&6
8473 if test -n "$doc_build_sys"; then
8474 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8476 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8480 test -z "$as_dir" && as_dir
=.
8481 for ac_exec_ext
in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_prog_doc_build_sys
="sphinx"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8494 doc_build_sys
=$ac_cv_prog_doc_build_sys
8495 if test -n "$doc_build_sys"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8497 $as_echo "$doc_build_sys" >&6; }
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8505 # --------------------
8506 # Checks for C headers
8507 # --------------------
8509 # Need to reject headers which give warnings, so that the -Werror bootstrap
8510 # works later. *sigh* This needs to come before all header checks.
8512 ac_c_preproc_warn_flag
=yes
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8515 $as_echo_n "checking for ANSI C header files... " >&6; }
8516 if test "${ac_cv_header_stdc+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8534 if ac_fn_cxx_try_compile
"$LINENO"; then :
8535 ac_cv_header_stdc
=yes
8537 ac_cv_header_stdc
=no
8539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8541 if test $ac_cv_header_stdc = yes; then
8542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8549 $EGREP "memchr" >/dev
/null
2>&1; then :
8552 ac_cv_header_stdc
=no
8558 if test $ac_cv_header_stdc = yes; then
8559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8561 /* end confdefs.h. */
8565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8566 $EGREP "free" >/dev
/null
2>&1; then :
8569 ac_cv_header_stdc
=no
8575 if test $ac_cv_header_stdc = yes; then
8576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8577 if test "$cross_compiling" = yes; then :
8580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8584 #if ((' ' & 0x0FF) == 0x020)
8585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8588 # define ISLOWER(c) \
8589 (('a' <= (c) && (c) <= 'i') \
8590 || ('j' <= (c) && (c) <= 'r') \
8591 || ('s' <= (c) && (c) <= 'z'))
8592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8600 for (i = 0; i < 256; i++)
8601 if (XOR (islower (i), ISLOWER (i))
8602 || toupper (i) != TOUPPER (i))
8607 if ac_fn_cxx_try_run
"$LINENO"; then :
8610 ac_cv_header_stdc
=no
8612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8619 $as_echo "$ac_cv_header_stdc" >&6; }
8620 if test $ac_cv_header_stdc = yes; then
8622 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8627 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8628 if test "${ac_cv_header_time+set}" = set; then :
8629 $as_echo_n "(cached) " >&6
8631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 #include <sys/types.h>
8634 #include <sys/time.h>
8640 if ((struct tm *) 0)
8646 if ac_fn_cxx_try_compile
"$LINENO"; then :
8647 ac_cv_header_time
=yes
8649 ac_cv_header_time
=no
8651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8654 $as_echo "$ac_cv_header_time" >&6; }
8655 if test $ac_cv_header_time = yes; then
8657 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8662 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8663 if test "${gcc_cv_header_string+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
8666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8669 #include <strings.h>
8678 if ac_fn_cxx_try_compile
"$LINENO"; then :
8679 gcc_cv_header_string
=yes
8681 gcc_cv_header_string
=no
8683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8686 $as_echo "$gcc_cv_header_string" >&6; }
8687 if test $gcc_cv_header_string = yes; then
8689 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8694 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8695 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 #include <sys/types.h>
8701 #include <sys/wait.h>
8703 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8706 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8714 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8719 if ac_fn_cxx_try_compile
"$LINENO"; then :
8720 ac_cv_header_sys_wait_h
=yes
8722 ac_cv_header_sys_wait_h
=no
8724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8727 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8728 if test $ac_cv_header_sys_wait_h = yes; then
8730 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8735 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8736 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 #include <sys/types.h>
8742 #include <termios.h>
8748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8749 $EGREP "yes" >/dev
/null
2>&1; then :
8750 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8752 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8758 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8760 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8762 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8763 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
8766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8767 /* end confdefs.h. */
8768 #include <sys/types.h>
8769 #include <sys/ioctl.h>
8775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8776 $EGREP "yes" >/dev
/null
2>&1; then :
8777 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8779 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8785 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8787 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8789 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8794 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8795 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8796 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8797 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8799 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8800 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8801 eval as_val
=\$
$as_ac_Header
8802 if test "x$as_val" = x
""yes; then :
8803 cat >>confdefs.h
<<_ACEOF
8804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8811 # Check for thread headers.
8812 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8813 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8819 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8820 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8827 # These tests can't be done till we know if we have limits.h.
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8829 $as_echo_n "checking for CHAR_BIT... " >&6; }
8830 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835 #ifdef HAVE_LIMITS_H
8842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8843 $EGREP "found" >/dev
/null
2>&1; then :
8844 gcc_cv_decl_char_bit
=yes
8846 gcc_cv_decl_char_bit
=no
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8853 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8854 if test $gcc_cv_decl_char_bit = no
; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8856 $as_echo_n "checking number of bits in a byte... " >&6; }
8857 if test "${gcc_cv_c_nbby+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8862 while test $i -lt 65; do
8863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h. */
8870 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8871 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8877 if ac_fn_cxx_try_compile
"$LINENO"; then :
8878 gcc_cv_c_nbby
=$i; break
8880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8883 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8887 $as_echo "$gcc_cv_c_nbby" >&6; }
8888 if test $gcc_cv_c_nbby = failed
; then
8889 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8892 cat >>confdefs.h
<<_ACEOF
8893 #define CHAR_BIT $gcc_cv_c_nbby
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8899 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8900 if test "${ac_cv_c_bigendian+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8903 ac_cv_c_bigendian
=unknown
8904 # See if we're dealing with a universal compiler.
8905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8906 /* end confdefs.h. */
8907 #ifndef __APPLE_CC__
8908 not a universal capable compiler
8913 if ac_fn_cxx_try_compile
"$LINENO"; then :
8915 # Check for potential -arch flags. It is not universal unless
8916 # there are at least two -arch flags with different values.
8919 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8920 if test -n "$ac_prev"; then
8922 i?
86 | x86_64 | ppc | ppc64
)
8923 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8926 ac_cv_c_bigendian
=universal
8932 elif test "x$ac_word" = "x-arch"; then
8937 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8938 if test $ac_cv_c_bigendian = unknown
; then
8939 # See if sys/param.h defines the BYTE_ORDER macro.
8940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 #include <sys/types.h>
8943 #include <sys/param.h>
8948 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8949 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8958 if ac_fn_cxx_try_compile
"$LINENO"; then :
8959 # It does; now see whether it defined to BIG_ENDIAN or not.
8960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 #include <sys/types.h>
8963 #include <sys/param.h>
8968 #if BYTE_ORDER != BIG_ENDIAN
8976 if ac_fn_cxx_try_compile
"$LINENO"; then :
8977 ac_cv_c_bigendian
=yes
8979 ac_cv_c_bigendian
=no
8981 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8985 if test $ac_cv_c_bigendian = unknown
; then
8986 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8987 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8994 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9002 if ac_fn_cxx_try_compile
"$LINENO"; then :
9003 # It does; now see whether it defined to _BIG_ENDIAN or not.
9004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h. */
9019 if ac_fn_cxx_try_compile
"$LINENO"; then :
9020 ac_cv_c_bigendian
=yes
9022 ac_cv_c_bigendian
=no
9024 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9028 if test $ac_cv_c_bigendian = unknown
; then
9029 # Compile a test program.
9030 if test "$cross_compiling" = yes; then :
9031 # Try to guess by grepping values from an object file.
9032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034 short int ascii_mm[] =
9035 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9036 short int ascii_ii[] =
9037 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9038 int use_ascii (int i) {
9039 return ascii_mm[i] + ascii_ii[i];
9041 short int ebcdic_ii[] =
9042 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9043 short int ebcdic_mm[] =
9044 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9045 int use_ebcdic (int i) {
9046 return ebcdic_mm[i] + ebcdic_ii[i];
9053 return use_ascii (foo) == use_ebcdic (foo);
9058 if ac_fn_cxx_try_compile
"$LINENO"; then :
9059 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9060 ac_cv_c_bigendian
=yes
9062 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9063 if test "$ac_cv_c_bigendian" = unknown
; then
9064 ac_cv_c_bigendian
=no
9066 # finding both strings is unlikely to happen, but who knows?
9067 ac_cv_c_bigendian
=unknown
9071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 $ac_includes_default
9080 /* Are we little or big endian? From Harbison&Steele. */
9084 char c[sizeof (long int)];
9087 return u.c[sizeof (long int) - 1] == 1;
9093 if ac_fn_cxx_try_run
"$LINENO"; then :
9094 ac_cv_c_bigendian
=no
9096 ac_cv_c_bigendian
=yes
9098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9105 $as_echo "$ac_cv_c_bigendian" >&6; }
9106 case $ac_cv_c_bigendian in #(
9108 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9114 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9118 as_fn_error
"unknown endianness
9119 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9123 # ----------------------
9124 # Checks for C++ headers
9125 # ----------------------
9128 ac_cpp
='$CXXCPP $CPPFLAGS'
9129 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9130 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9131 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9133 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9134 if test -z "$CXXCPP"; then
9135 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9136 $as_echo_n "(cached) " >&6
9138 # Double quotes because CXXCPP needs to be expanded
9139 for CXXCPP
in "$CXX -E" "/lib/cpp"
9142 for ac_cxx_preproc_warn_flag
in '' yes
9144 # Use a header file that comes with gcc, so configuring glibc
9145 # with a fresh cross-compiler works.
9146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9147 # <limits.h> exists even on freestanding compilers.
9148 # On the NeXT, cc -E runs the code through the compiler's parser,
9149 # not just through cpp. "Syntax error" is here to catch this case.
9150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9153 # include <limits.h>
9155 # include <assert.h>
9159 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9162 # Broken: fails on valid input.
9165 rm -f conftest.err conftest.
$ac_ext
9167 # OK, works on sane cases. Now check whether nonexistent headers
9168 # can be detected and how.
9169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 #include <ac_nonexistent.h>
9173 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9174 # Broken: success on invalid input.
9177 # Passes both tests.
9181 rm -f conftest.err conftest.
$ac_ext
9184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9185 rm -f conftest.err conftest.
$ac_ext
9186 if $ac_preproc_ok; then :
9191 ac_cv_prog_CXXCPP
=$CXXCPP
9194 CXXCPP
=$ac_cv_prog_CXXCPP
9196 ac_cv_prog_CXXCPP
=$CXXCPP
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9199 $as_echo "$CXXCPP" >&6; }
9201 for ac_cxx_preproc_warn_flag
in '' yes
9203 # Use a header file that comes with gcc, so configuring glibc
9204 # with a fresh cross-compiler works.
9205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9206 # <limits.h> exists even on freestanding compilers.
9207 # On the NeXT, cc -E runs the code through the compiler's parser,
9208 # not just through cpp. "Syntax error" is here to catch this case.
9209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9212 # include <limits.h>
9214 # include <assert.h>
9218 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9221 # Broken: fails on valid input.
9224 rm -f conftest.err conftest.
$ac_ext
9226 # OK, works on sane cases. Now check whether nonexistent headers
9227 # can be detected and how.
9228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #include <ac_nonexistent.h>
9232 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9233 # Broken: success on invalid input.
9236 # Passes both tests.
9240 rm -f conftest.err conftest.
$ac_ext
9243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9244 rm -f conftest.err conftest.
$ac_ext
9245 if $ac_preproc_ok; then :
9248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9251 See \`config.log' for more details." >&5
9252 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9253 See \`config.log' for more details." >&2;}; }
9257 ac_cpp
='$CXXCPP $CPPFLAGS'
9258 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9259 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9260 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9263 for ac_header
in unordered_map
9265 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9266 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9267 cat >>confdefs.h
<<_ACEOF
9268 #define HAVE_UNORDERED_MAP 1
9274 for ac_header
in tr1/unordered_map
9276 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9277 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9278 cat >>confdefs.h
<<_ACEOF
9279 #define HAVE_TR1_UNORDERED_MAP 1
9285 for ac_header
in ext
/hash_map
9287 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9288 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9289 cat >>confdefs.h
<<_ACEOF
9290 #define HAVE_EXT_HASH_MAP 1
9298 # Dependency checking.
9301 rm -rf .tst
2>/dev
/null
9302 mkdir .tst
2>/dev
/null
9303 if test -d .tst
; then
9308 rmdir .tst
2>/dev
/null
9310 DEPDIR
="${am__leading_dot}deps"
9312 ac_config_commands
="$ac_config_commands depdir"
9315 ac_config_commands
="$ac_config_commands gccdepdir"
9318 depcc
="$CXX" am_compiler_list
=
9320 am_depcomp
=$ac_aux_dir/depcomp
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9322 $as_echo_n "checking dependency style of $depcc... " >&6; }
9323 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9326 if test -f "$am_depcomp"; then
9327 # We make a subdir and do the tests there. Otherwise we can end up
9328 # making bogus files that we don't know about and never remove. For
9329 # instance it was reported that on HP-UX the gcc test will end up
9330 # making a dummy file named `D' -- because `-MD' means `put the output
9333 # Copy depcomp to subdir because otherwise we won't find it if we're
9334 # using a relative directory.
9335 cp "$am_depcomp" conftest.dir
9337 # We will build objects and dependencies in a subdirectory because
9338 # it helps to detect inapplicable dependency modes. For instance
9339 # both Tru64's cc and ICC support -MD to output dependencies as a
9340 # side effect of compilation, but ICC will put the dependencies in
9341 # the current directory while Tru64 will put them in the object
9345 am_cv_CXX_dependencies_compiler_type
=none
9346 if test "$am_compiler_list" = ""; then
9347 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9349 for depmode
in $am_compiler_list; do
9350 if test $depmode = none
; then break; fi
9352 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9353 # Setup a source with many dependencies, because some compilers
9354 # like to wrap large dependency lists on column 80 (with \), and
9355 # we should not choose a depcomp mode which is confused by this.
9357 # We need to recreate these files for each test, as the compiler may
9358 # overwrite some of them when testing with obscure command lines.
9359 # This happens at least with the AIX C compiler.
9361 for i
in 1 2 3 4 5 6; do
9362 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9363 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9364 # Solaris 8's {/usr,}/bin/sh.
9365 touch sub
/conftst
$i.h
9367 echo "include sub/conftest.Po" > confmf
9369 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9370 # mode. It turns out that the SunPro C++ compiler does not properly
9371 # handle `-M -o', and we need to detect this.
9372 depcmd
="depmode=$depmode \
9373 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9375 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9376 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9377 if env
$depcmd > conftest.err
2>&1 &&
9378 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9379 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9380 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9381 # icc doesn't choke on unknown options, it will just issue warnings
9382 # or remarks (even with -Werror). So we grep stderr for any message
9383 # that says an option was ignored or not supported.
9384 # When given -MP, icc 7.0 and 7.1 complain thusly:
9385 # icc: Command line warning: ignoring option '-M'; no argument required
9386 # The diagnosis changed in icc 8.0:
9387 # icc: Command line remark: option '-MP' not supported
9388 if (grep 'ignoring option' conftest.err ||
9389 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9390 am_cv_CXX_dependencies_compiler_type
=$depmode
9391 $as_echo "$as_me:$LINENO: success" >&5
9395 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9396 sed -e 's/^/| /' < conftest.err
>&5
9402 am_cv_CXX_dependencies_compiler_type
=none
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9407 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9408 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9409 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9410 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9420 # These libraries may be used by collect2.
9421 # We may need a special search path to get them linked.
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9423 $as_echo_n "checking for collect2 libraries... " >&6; }
9424 if test "${gcc_cv_collect2_libs+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9428 for libs
in '' -lld -lmld \
9429 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9430 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9436 /* Override any GCC internal prototype to avoid an error.
9437 Use char because int might match the return type of a GCC
9438 builtin and then its argument prototype would still apply. */
9451 if ac_fn_cxx_try_link
"$LINENO"; then :
9452 gcc_cv_collect2_libs
="$libs"; break
9454 rm -f core conftest.err conftest.
$ac_objext \
9455 conftest
$ac_exeext conftest.
$ac_ext
9458 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9461 $as_echo "$gcc_cv_collect2_libs" >&6; }
9462 case $gcc_cv_collect2_libs in
9464 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9468 # When building Ada code on Alpha, we need exc_resume which is usually in
9469 # -lexc. So test for it.
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9473 $as_echo_n "checking for library containing exc_resume... " >&6; }
9474 if test "${ac_cv_search_exc_resume+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
9477 ac_func_search_save_LIBS
=$LIBS
9478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9481 /* Override any GCC internal prototype to avoid an error.
9482 Use char because int might match the return type of a GCC
9483 builtin and then its argument prototype would still apply. */
9491 return exc_resume ();
9496 for ac_lib
in '' exc
; do
9497 if test -z "$ac_lib"; then
9498 ac_res
="none required"
9501 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9503 if ac_fn_cxx_try_link
"$LINENO"; then :
9504 ac_cv_search_exc_resume
=$ac_res
9506 rm -f core conftest.err conftest.
$ac_objext \
9508 if test "${ac_cv_search_exc_resume+set}" = set; then :
9512 if test "${ac_cv_search_exc_resume+set}" = set; then :
9515 ac_cv_search_exc_resume
=no
9518 LIBS
=$ac_func_search_save_LIBS
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9521 $as_echo "$ac_cv_search_exc_resume" >&6; }
9522 ac_res
=$ac_cv_search_exc_resume
9523 if test "$ac_res" != no
; then :
9524 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9532 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9536 $as_echo_n "checking for library containing kstat_open... " >&6; }
9537 if test "${ac_cv_search_kstat_open+set}" = set; then :
9538 $as_echo_n "(cached) " >&6
9540 ac_func_search_save_LIBS
=$LIBS
9541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9544 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */
9554 return kstat_open ();
9559 for ac_lib
in '' kstat
; do
9560 if test -z "$ac_lib"; then
9561 ac_res
="none required"
9564 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9566 if ac_fn_cxx_try_link
"$LINENO"; then :
9567 ac_cv_search_kstat_open
=$ac_res
9569 rm -f core conftest.err conftest.
$ac_objext \
9571 if test "${ac_cv_search_kstat_open+set}" = set; then :
9575 if test "${ac_cv_search_kstat_open+set}" = set; then :
9578 ac_cv_search_kstat_open
=no
9581 LIBS
=$ac_func_search_save_LIBS
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9584 $as_echo "$ac_cv_search_kstat_open" >&6; }
9585 ac_res
=$ac_cv_search_kstat_open
9586 if test "$ac_res" != no
; then :
9587 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9591 EXTRA_GCC_LIBS
="$LIBS"
9595 # Some systems put ldexp and frexp in libm instead of libc; assume
9596 # they're both in the same place. jcf-dump needs them.
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9600 $as_echo_n "checking for library containing ldexp... " >&6; }
9601 if test "${ac_cv_search_ldexp+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9604 ac_func_search_save_LIBS
=$LIBS
9605 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9608 /* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9623 for ac_lib
in '' m
; do
9624 if test -z "$ac_lib"; then
9625 ac_res
="none required"
9628 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9630 if ac_fn_cxx_try_link
"$LINENO"; then :
9631 ac_cv_search_ldexp
=$ac_res
9633 rm -f core conftest.err conftest.
$ac_objext \
9635 if test "${ac_cv_search_ldexp+set}" = set; then :
9639 if test "${ac_cv_search_ldexp+set}" = set; then :
9642 ac_cv_search_ldexp
=no
9645 LIBS
=$ac_func_search_save_LIBS
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9648 $as_echo "$ac_cv_search_ldexp" >&6; }
9649 ac_res
=$ac_cv_search_ldexp
9650 if test "$ac_res" != no
; then :
9651 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9659 # Use <inttypes.h> only if it exists,
9660 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9663 $as_echo_n "checking for inttypes.h... " >&6; }
9664 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h. */
9669 #define __STDC_FORMAT_MACROS
9670 #include <sys/types.h>
9671 #include <inttypes.h>
9683 if ac_fn_cxx_try_compile
"$LINENO"; then :
9684 gcc_cv_header_inttypes_h
=yes
9686 gcc_cv_header_inttypes_h
=no
9688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9692 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9693 if test $gcc_cv_header_inttypes_h = yes; then
9695 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9701 for ac_func
in times clock kill getrlimit setrlimit atoq \
9702 popen sysconf strsignal getrusage nl_langinfo \
9703 gettimeofday mbstowcs wcswidth mmap setlocale \
9704 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
9706 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9707 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9708 eval as_val
=\$
$as_ac_var
9709 if test "x$as_val" = x
""yes; then :
9710 cat >>confdefs.h
<<_ACEOF
9711 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9718 if test x
$ac_cv_func_mbstowcs = xyes
; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9720 $as_echo_n "checking whether mbstowcs works... " >&6; }
9721 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9722 $as_echo_n "(cached) " >&6
9724 if test "$cross_compiling" = yes; then :
9725 gcc_cv_func_mbstowcs_works
=yes
9727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9736 if ac_fn_cxx_try_run
"$LINENO"; then :
9737 gcc_cv_func_mbstowcs_works
=yes
9739 gcc_cv_func_mbstowcs_works
=no
9741 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9742 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9747 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9748 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9750 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9755 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9756 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9760 cat >>confdefs.h
<<_ACEOF
9766 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9767 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9771 cat >>confdefs.h
<<_ACEOF
9772 #define caddr_t char *
9779 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9780 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9781 gcc_header_sys_mman_h
=yes
9783 gcc_header_sys_mman_h
=no
9786 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9787 if test "x$ac_cv_func_mmap" = x
""yes; then :
9793 if test "$gcc_header_sys_mman_h" != yes \
9794 ||
test "$gcc_func_mmap" != yes; then
9795 gcc_cv_func_mmap_file
=no
9796 gcc_cv_func_mmap_dev_zero
=no
9797 gcc_cv_func_mmap_anon
=no
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9800 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9801 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9804 # Add a system to this blacklist if
9805 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9806 # memory area containing the same data that you'd get if you applied
9807 # read() to the same fd. The only system known to have a problem here
9808 # is VMS, where text files have record structure.
9811 gcc_cv_func_mmap_file
=no
;;
9813 gcc_cv_func_mmap_file
=yes;;
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9817 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9819 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9820 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9821 $as_echo_n "(cached) " >&6
9823 # Add a system to this blacklist if it has mmap() but /dev/zero
9824 # does not exist, or if mmapping /dev/zero does not give anonymous
9825 # zeroed pages with both the following properties:
9826 # 1. If you map N consecutive pages in with one call, and then
9827 # unmap any subset of those pages, the pages that were not
9828 # explicitly unmapped remain accessible.
9829 # 2. If you map two adjacent blocks of memory and then unmap them
9830 # both at once, they must both go away.
9831 # Systems known to be in this category are Windows (all variants),
9834 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9835 gcc_cv_func_mmap_dev_zero
=no
;;
9837 gcc_cv_func_mmap_dev_zero
=yes;;
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9841 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9843 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9845 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9846 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9851 #include <sys/types.h>
9852 #include <sys/mman.h>
9855 #ifndef MAP_ANONYMOUS
9856 #define MAP_ANONYMOUS MAP_ANON
9862 int n = MAP_ANONYMOUS;
9867 if ac_fn_cxx_try_compile
"$LINENO"; then :
9868 gcc_cv_decl_map_anon
=yes
9870 gcc_cv_decl_map_anon
=no
9872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9875 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9877 if test $gcc_cv_decl_map_anon = no
; then
9878 gcc_cv_func_mmap_anon
=no
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9881 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9882 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9885 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9886 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9887 # doesn't give anonymous zeroed pages with the same properties listed
9888 # above for use of /dev/zero.
9889 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9891 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9892 gcc_cv_func_mmap_anon
=no
;;
9894 gcc_cv_func_mmap_anon
=yes;;
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9898 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9902 if test $gcc_cv_func_mmap_file = yes; then
9904 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9907 if test $gcc_cv_func_mmap_dev_zero = yes; then
9909 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9912 if test $gcc_cv_func_mmap_anon = yes; then
9914 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9921 # Under VMS, vfork works very differently than on Unix. The standard test
9922 # won't work, and it isn't easily adaptable. It makes more sense to
9924 ac_cv_func_vfork_works
=yes
9927 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9928 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9932 cat >>confdefs.h
<<_ACEOF
9938 for ac_header
in vfork.h
9940 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9941 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9942 cat >>confdefs.h
<<_ACEOF
9943 #define HAVE_VFORK_H 1
9949 for ac_func
in fork vfork
9951 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9952 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9953 eval as_val
=\$
$as_ac_var
9954 if test "x$as_val" = x
""yes; then :
9955 cat >>confdefs.h
<<_ACEOF
9956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9962 if test "x$ac_cv_func_fork" = xyes
; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9964 $as_echo_n "checking for working fork... " >&6; }
9965 if test "${ac_cv_func_fork_works+set}" = set; then :
9966 $as_echo_n "(cached) " >&6
9968 if test "$cross_compiling" = yes; then :
9969 ac_cv_func_fork_works
=cross
9971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9972 /* end confdefs.h. */
9973 $ac_includes_default
9978 /* By Ruediger Kuhlmann. */
9985 if ac_fn_cxx_try_run
"$LINENO"; then :
9986 ac_cv_func_fork_works
=yes
9988 ac_cv_func_fork_works
=no
9990 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9991 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9996 $as_echo "$ac_cv_func_fork_works" >&6; }
9999 ac_cv_func_fork_works
=$ac_cv_func_fork
10001 if test "x$ac_cv_func_fork_works" = xcross
; then
10003 *-*-amigaos* |
*-*-msdosdjgpp*)
10004 # Override, as these systems have only a dummy fork() stub
10005 ac_cv_func_fork_works
=no
10008 ac_cv_func_fork_works
=yes
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10012 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10014 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10015 if test "x$ac_cv_func_vfork" = xyes
; then
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10017 $as_echo_n "checking for working vfork... " >&6; }
10018 if test "${ac_cv_func_vfork_works+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10021 if test "$cross_compiling" = yes; then :
10022 ac_cv_func_vfork_works
=cross
10024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10025 /* end confdefs.h. */
10026 /* Thanks to Paul Eggert for this test. */
10027 $ac_includes_default
10028 #include <sys/wait.h>
10029 #ifdef HAVE_VFORK_H
10030 # include <vfork.h>
10032 /* On some sparc systems, changes by the child to local and incoming
10033 argument registers are propagated back to the parent. The compiler
10034 is told about this with #include <vfork.h>, but some compilers
10035 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10036 static variable whose address is put into a register that is
10037 clobbered by the vfork. */
10040 sparc_address_test (int arg)
10042 sparc_address_test (arg) int arg;
10045 static pid_t child;
10063 pid_t parent = getpid ();
10066 sparc_address_test (0);
10071 /* Here is another test for sparc vfork register problems. This
10072 test uses lots of local variables, at least as many local
10073 variables as main has allocated so far including compiler
10074 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10075 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10076 reuse the register of parent for one of the local variables,
10077 since it will think that parent can't possibly be used any more
10078 in this routine. Assigning to the local variable will thus
10079 munge parent in the parent process. */
10081 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10082 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10083 /* Convince the compiler that p..p7 are live; otherwise, it might
10084 use the same hardware register for all 8 local variables. */
10085 if (p != p1 || p != p2 || p != p3 || p != p4
10086 || p != p5 || p != p6 || p != p7)
10089 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10090 from child file descriptors. If the child closes a descriptor
10091 before it execs or exits, this munges the parent's descriptor
10092 as well. Test for this by closing stdout in the child. */
10093 _exit(close(fileno(stdout)) != 0);
10098 while (wait(&status) != child)
10101 /* Was there some problem with vforking? */
10104 /* Did the child fail? (This shouldn't happen.) */
10107 /* Did the vfork/compiler bug occur? */
10108 || parent != getpid()
10110 /* Did the file descriptor bug occur? */
10111 || fstat(fileno(stdout), &st) != 0
10116 if ac_fn_cxx_try_run
"$LINENO"; then :
10117 ac_cv_func_vfork_works
=yes
10119 ac_cv_func_vfork_works
=no
10121 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10122 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10127 $as_echo "$ac_cv_func_vfork_works" >&6; }
10130 if test "x$ac_cv_func_fork_works" = xcross
; then
10131 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10133 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10136 if test "x$ac_cv_func_vfork_works" = xyes
; then
10138 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10142 $as_echo "#define vfork fork" >>confdefs.h
10145 if test "x$ac_cv_func_fork_works" = xyes
; then
10147 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10153 if test "X$prefix" = "XNONE"; then
10154 acl_final_prefix
="$ac_default_prefix"
10156 acl_final_prefix
="$prefix"
10158 if test "X$exec_prefix" = "XNONE"; then
10159 acl_final_exec_prefix
='${prefix}'
10161 acl_final_exec_prefix
="$exec_prefix"
10163 acl_save_prefix
="$prefix"
10164 prefix
="$acl_final_prefix"
10165 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10166 prefix
="$acl_save_prefix"
10169 # Check whether --with-gnu-ld was given.
10170 if test "${with_gnu_ld+set}" = set; then :
10171 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10176 # Prepare PATH_SEPARATOR.
10177 # The user is always right.
10178 if test "${PATH_SEPARATOR+set}" != set; then
10179 echo "#! /bin/sh" >conf$$.sh
10180 echo "exit 0" >>conf$$.sh
10182 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10190 if test "$GCC" = yes; then
10191 # Check if gcc -print-prog-name=ld gives a path.
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10193 $as_echo_n "checking for ld used by GCC... " >&6; }
10196 # gcc leaves a trailing carriage return which upsets mingw
10197 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10199 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10202 # Accept absolute paths.
10203 [\\/]* |
[A-Za-z
]:[\\/]*)
10204 re_direlt
='/[^/][^/]*/\.\./'
10205 # Canonicalize the path of ld
10206 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10207 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10208 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10210 test -z "$LD" && LD
="$ac_prog"
10213 # If it fails, then pretend we aren't using GCC.
10217 # If it is relative, then search for the first ld in PATH.
10218 with_gnu_ld
=unknown
10221 elif test "$with_gnu_ld" = yes; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10223 $as_echo_n "checking for GNU ld... " >&6; }
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10226 $as_echo_n "checking for non-GNU ld... " >&6; }
10228 if test "${acl_cv_path_LD+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10231 if test -z "$LD"; then
10232 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10233 for ac_dir
in $PATH; do
10234 test -z "$ac_dir" && ac_dir
=.
10235 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10236 acl_cv_path_LD
="$ac_dir/$ac_prog"
10237 # Check to see if the program is GNU ld. I'd rather use --version,
10238 # but apparently some GNU ld's only accept -v.
10239 # Break only if it was the GNU/non-GNU ld that we prefer.
10240 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10241 test "$with_gnu_ld" != no
&& break
10243 test "$with_gnu_ld" != yes && break
10249 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10253 LD
="$acl_cv_path_LD"
10254 if test -n "$LD"; then
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10256 $as_echo "$LD" >&6; }
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10261 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10263 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10264 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10265 $as_echo_n "(cached) " >&6
10267 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10268 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10269 acl_cv_prog_gnu_ld
=yes
10271 acl_cv_prog_gnu_ld
=no
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10275 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10276 with_gnu_ld
=$acl_cv_prog_gnu_ld
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10281 $as_echo_n "checking for shared library run path origin... " >&6; }
10282 if test "${acl_cv_rpath+set}" = set; then :
10283 $as_echo_n "(cached) " >&6
10286 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10287 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10289 rm -f .
/conftest.sh
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10294 $as_echo "$acl_cv_rpath" >&6; }
10296 libext
="$acl_cv_libext"
10297 shlibext
="$acl_cv_shlibext"
10298 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10299 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10300 hardcode_direct
="$acl_cv_hardcode_direct"
10301 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10302 # Check whether --enable-rpath was given.
10303 if test "${enable_rpath+set}" = set; then :
10304 enableval
=$enable_rpath; :
10318 acl_save_prefix
="$prefix"
10319 prefix
="$acl_final_prefix"
10320 acl_save_exec_prefix
="$exec_prefix"
10321 exec_prefix
="$acl_final_exec_prefix"
10323 eval additional_includedir
=\"$includedir\"
10324 eval additional_libdir
=\"$libdir\"
10326 exec_prefix
="$acl_save_exec_prefix"
10327 prefix
="$acl_save_prefix"
10330 # Check whether --with-libiconv-prefix was given.
10331 if test "${with_libiconv_prefix+set}" = set; then :
10332 withval
=$with_libiconv_prefix;
10333 if test "X$withval" = "Xno"; then
10336 if test "X$withval" = "X"; then
10338 acl_save_prefix
="$prefix"
10339 prefix
="$acl_final_prefix"
10340 acl_save_exec_prefix
="$exec_prefix"
10341 exec_prefix
="$acl_final_exec_prefix"
10343 eval additional_includedir
=\"$includedir\"
10344 eval additional_libdir
=\"$libdir\"
10346 exec_prefix
="$acl_save_exec_prefix"
10347 prefix
="$acl_save_prefix"
10350 additional_includedir
="$withval/include"
10351 additional_libdir
="$withval/lib"
10362 names_already_handled
=
10363 names_next_round
='iconv '
10364 while test -n "$names_next_round"; do
10365 names_this_round
="$names_next_round"
10367 for name
in $names_this_round; do
10369 for n
in $names_already_handled; do
10370 if test "$n" = "$name"; then
10371 already_handled
=yes
10375 if test -z "$already_handled"; then
10376 names_already_handled
="$names_already_handled $name"
10377 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10378 eval value
=\"\
$HAVE_LIB$uppername\"
10379 if test -n "$value"; then
10380 if test "$value" = yes; then
10381 eval value
=\"\
$LIB$uppername\"
10382 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10383 eval value
=\"\
$LTLIB$uppername\"
10384 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10393 if test $use_additional = yes; then
10394 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10395 found_dir
="$additional_libdir"
10396 found_so
="$additional_libdir/lib$name.$shlibext"
10397 if test -f "$additional_libdir/lib$name.la"; then
10398 found_la
="$additional_libdir/lib$name.la"
10401 if test -f "$additional_libdir/lib$name.$libext"; then
10402 found_dir
="$additional_libdir"
10403 found_a
="$additional_libdir/lib$name.$libext"
10404 if test -f "$additional_libdir/lib$name.la"; then
10405 found_la
="$additional_libdir/lib$name.la"
10410 if test "X$found_dir" = "X"; then
10411 for x
in $LDFLAGS $LTLIBICONV; do
10413 acl_save_prefix
="$prefix"
10414 prefix
="$acl_final_prefix"
10415 acl_save_exec_prefix
="$exec_prefix"
10416 exec_prefix
="$acl_final_exec_prefix"
10418 exec_prefix
="$acl_save_exec_prefix"
10419 prefix
="$acl_save_prefix"
10423 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10424 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10426 found_so
="$dir/lib$name.$shlibext"
10427 if test -f "$dir/lib$name.la"; then
10428 found_la
="$dir/lib$name.la"
10431 if test -f "$dir/lib$name.$libext"; then
10433 found_a
="$dir/lib$name.$libext"
10434 if test -f "$dir/lib$name.la"; then
10435 found_la
="$dir/lib$name.la"
10441 if test "X$found_dir" != "X"; then
10446 if test "X$found_dir" != "X"; then
10447 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10448 if test "X$found_so" != "X"; then
10449 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10450 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10453 for x
in $ltrpathdirs; do
10454 if test "X$x" = "X$found_dir"; then
10459 if test -z "$haveit"; then
10460 ltrpathdirs
="$ltrpathdirs $found_dir"
10462 if test "$hardcode_direct" = yes; then
10463 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10465 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10466 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10468 for x
in $rpathdirs; do
10469 if test "X$x" = "X$found_dir"; then
10474 if test -z "$haveit"; then
10475 rpathdirs
="$rpathdirs $found_dir"
10479 for x
in $LDFLAGS $LIBICONV; do
10481 acl_save_prefix
="$prefix"
10482 prefix
="$acl_final_prefix"
10483 acl_save_exec_prefix
="$exec_prefix"
10484 exec_prefix
="$acl_final_exec_prefix"
10486 exec_prefix
="$acl_save_exec_prefix"
10487 prefix
="$acl_save_prefix"
10489 if test "X$x" = "X-L$found_dir"; then
10494 if test -z "$haveit"; then
10495 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10497 if test "$hardcode_minus_L" != no
; then
10498 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10500 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10506 if test "X$found_a" != "X"; then
10507 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10509 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10512 additional_includedir
=
10513 case "$found_dir" in
10515 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10516 additional_includedir
="$basedir/include"
10519 if test "X$additional_includedir" != "X"; then
10520 if test "X$additional_includedir" != "X/usr/include"; then
10522 if test "X$additional_includedir" = "X/usr/local/include"; then
10523 if test -n "$GCC"; then
10525 linux
*) haveit
=yes;;
10529 if test -z "$haveit"; then
10530 for x
in $CPPFLAGS $INCICONV; do
10532 acl_save_prefix
="$prefix"
10533 prefix
="$acl_final_prefix"
10534 acl_save_exec_prefix
="$exec_prefix"
10535 exec_prefix
="$acl_final_exec_prefix"
10537 exec_prefix
="$acl_save_exec_prefix"
10538 prefix
="$acl_save_prefix"
10540 if test "X$x" = "X-I$additional_includedir"; then
10545 if test -z "$haveit"; then
10546 if test -d "$additional_includedir"; then
10547 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10553 if test -n "$found_la"; then
10554 save_libdir
="$libdir"
10555 case "$found_la" in
10556 */* |
*\\*) .
"$found_la" ;;
10557 *) .
"./$found_la" ;;
10559 libdir
="$save_libdir"
10560 for dep
in $dependency_libs; do
10563 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10564 if test "X$additional_libdir" != "X/usr/lib"; then
10566 if test "X$additional_libdir" = "X/usr/local/lib"; then
10567 if test -n "$GCC"; then
10569 linux
*) haveit
=yes;;
10573 if test -z "$haveit"; then
10575 for x
in $LDFLAGS $LIBICONV; do
10577 acl_save_prefix
="$prefix"
10578 prefix
="$acl_final_prefix"
10579 acl_save_exec_prefix
="$exec_prefix"
10580 exec_prefix
="$acl_final_exec_prefix"
10582 exec_prefix
="$acl_save_exec_prefix"
10583 prefix
="$acl_save_prefix"
10585 if test "X$x" = "X-L$additional_libdir"; then
10590 if test -z "$haveit"; then
10591 if test -d "$additional_libdir"; then
10592 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10596 for x
in $LDFLAGS $LTLIBICONV; do
10598 acl_save_prefix
="$prefix"
10599 prefix
="$acl_final_prefix"
10600 acl_save_exec_prefix
="$exec_prefix"
10601 exec_prefix
="$acl_final_exec_prefix"
10603 exec_prefix
="$acl_save_exec_prefix"
10604 prefix
="$acl_save_prefix"
10606 if test "X$x" = "X-L$additional_libdir"; then
10611 if test -z "$haveit"; then
10612 if test -d "$additional_libdir"; then
10613 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10620 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10621 if test "$enable_rpath" != no
; then
10623 for x
in $rpathdirs; do
10624 if test "X$x" = "X$dir"; then
10629 if test -z "$haveit"; then
10630 rpathdirs
="$rpathdirs $dir"
10633 for x
in $ltrpathdirs; do
10634 if test "X$x" = "X$dir"; then
10639 if test -z "$haveit"; then
10640 ltrpathdirs
="$ltrpathdirs $dir"
10645 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10648 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10651 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10652 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10658 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10659 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10665 if test "X$rpathdirs" != "X"; then
10666 if test -n "$hardcode_libdir_separator"; then
10668 for found_dir
in $rpathdirs; do
10669 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10671 acl_save_libdir
="$libdir"
10673 eval flag
=\"$hardcode_libdir_flag_spec\"
10674 libdir
="$acl_save_libdir"
10675 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10677 for found_dir
in $rpathdirs; do
10678 acl_save_libdir
="$libdir"
10679 libdir
="$found_dir"
10680 eval flag
=\"$hardcode_libdir_flag_spec\"
10681 libdir
="$acl_save_libdir"
10682 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10686 if test "X$ltrpathdirs" != "X"; then
10687 for found_dir
in $ltrpathdirs; do
10688 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10699 $as_echo_n "checking for iconv... " >&6; }
10700 if test "${am_cv_func_iconv+set}" = set; then :
10701 $as_echo_n "(cached) " >&6
10704 am_cv_func_iconv
="no, consider installing GNU libiconv"
10706 am_save_CPPFLAGS
="$CPPFLAGS"
10707 CPPFLAGS
="$CPPFLAGS $INCICONV"
10708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10709 /* end confdefs.h. */
10710 #include <stdlib.h>
10715 iconv_t cd = iconv_open("","");
10716 iconv(cd,NULL,NULL,NULL,NULL);
10722 if ac_fn_cxx_try_link
"$LINENO"; then :
10723 am_cv_func_iconv
=yes
10725 rm -f core conftest.err conftest.
$ac_objext \
10726 conftest
$ac_exeext conftest.
$ac_ext
10727 CPPFLAGS
="$am_save_CPPFLAGS"
10729 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10730 for _libs
in .libs _libs
; do
10731 am_save_CPPFLAGS
="$CPPFLAGS"
10732 am_save_LIBS
="$LIBS"
10733 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10734 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10737 #include <stdlib.h>
10742 iconv_t cd = iconv_open("","");
10743 iconv(cd,NULL,NULL,NULL,NULL);
10749 if ac_fn_cxx_try_link
"$LINENO"; then :
10750 INCICONV
="-I../libiconv/include"
10751 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10752 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
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"
10760 if test "$am_cv_func_iconv" = "yes"; then
10766 if test "$am_cv_func_iconv" != yes; then
10767 am_save_CPPFLAGS
="$CPPFLAGS"
10768 am_save_LIBS
="$LIBS"
10769 CPPFLAGS
="$LIBS $INCICONV"
10770 LIBS
="$LIBS $LIBICONV"
10771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773 #include <stdlib.h>
10778 iconv_t cd = iconv_open("","");
10779 iconv(cd,NULL,NULL,NULL,NULL);
10785 if ac_fn_cxx_try_link
"$LINENO"; then :
10786 am_cv_lib_iconv
=yes
10787 am_cv_func_iconv
=yes
10789 rm -f core conftest.err conftest.
$ac_objext \
10790 conftest
$ac_exeext conftest.
$ac_ext
10791 CPPFLAGS
="$am_save_CPPFLAGS"
10792 LIBS
="$am_save_LIBS"
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10797 $as_echo "$am_cv_func_iconv" >&6; }
10798 if test "$am_cv_func_iconv" = yes; then
10800 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10803 if test "$am_cv_lib_iconv" = yes; then
10805 for element
in $INCICONV; do
10807 for x
in $CPPFLAGS; do
10809 acl_save_prefix
="$prefix"
10810 prefix
="$acl_final_prefix"
10811 acl_save_exec_prefix
="$exec_prefix"
10812 exec_prefix
="$acl_final_exec_prefix"
10814 exec_prefix
="$acl_save_exec_prefix"
10815 prefix
="$acl_save_prefix"
10817 if test "X$x" = "X$element"; then
10822 if test -z "$haveit"; then
10823 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10828 $as_echo_n "checking how to link with libiconv... " >&6; }
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10830 $as_echo "$LIBICONV" >&6; }
10838 if test "$am_cv_func_iconv" = yes; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10840 $as_echo_n "checking for iconv declaration... " >&6; }
10841 if test "${am_cv_proto_iconv+set}" = set; then :
10842 $as_echo_n "(cached) " >&6
10845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10846 /* end confdefs.h. */
10848 #include <stdlib.h>
10854 #if defined(__STDC__) || defined(__cplusplus)
10855 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10868 if ac_fn_cxx_try_compile
"$LINENO"; then :
10869 am_cv_proto_iconv_arg1
=""
10871 am_cv_proto_iconv_arg1
="const"
10873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10874 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);"
10877 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10879 }$am_cv_proto_iconv" >&5
10881 }$am_cv_proto_iconv" >&6; }
10883 cat >>confdefs.h
<<_ACEOF
10884 #define ICONV_CONST $am_cv_proto_iconv_arg1
10890 # Until we have in-tree GNU iconv:
10892 if test -f "$LTLIBICONV"; then
10893 LIBICONV_DEP
=$LTLIBICONV
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10899 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10900 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10905 #include <locale.h>
10914 if ac_fn_cxx_try_link
"$LINENO"; then :
10915 am_cv_val_LC_MESSAGES
=yes
10917 am_cv_val_LC_MESSAGES
=no
10919 rm -f core conftest.err conftest.
$ac_objext \
10920 conftest
$ac_exeext conftest.
$ac_ext
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10923 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10924 if test $am_cv_val_LC_MESSAGES = yes; then
10926 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10933 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10934 if test "${am_cv_langinfo_codeset+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10938 /* end confdefs.h. */
10939 #include <langinfo.h>
10943 char* cs = nl_langinfo(CODESET);
10948 if ac_fn_cxx_try_link
"$LINENO"; then :
10949 am_cv_langinfo_codeset
=yes
10951 am_cv_langinfo_codeset
=no
10953 rm -f core conftest.err conftest.
$ac_objext \
10954 conftest
$ac_exeext conftest.
$ac_ext
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10958 $as_echo "$am_cv_langinfo_codeset" >&6; }
10959 if test $am_cv_langinfo_codeset = yes; then
10961 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10966 # We will need to find libiberty.h and ansidecl.h
10967 saved_CFLAGS
="$CFLAGS"
10968 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10969 saved_CXXFLAGS
="$CXXFLAGS"
10970 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10972 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10973 # normal autoconf function for these. But force definition of
10974 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10975 # basename handling in libiberty.h.
10976 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10977 #undef HAVE_DECL_BASENAME
10978 #define HAVE_DECL_BASENAME 1
10979 #include \"ansidecl.h\"
10980 #include \"system.h\"
10982 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10988 cat >>confdefs.h
<<_ACEOF
10989 #define HAVE_DECL_BASENAME $ac_have_decl
10991 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10992 #undef HAVE_DECL_BASENAME
10993 #define HAVE_DECL_BASENAME 1
10994 #include \"ansidecl.h\"
10995 #include \"system.h\"
10997 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
11003 cat >>confdefs.h
<<_ACEOF
11004 #define HAVE_DECL_STRSTR $ac_have_decl
11008 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11009 madvise stpcpy strnlen strsignal strverscmp \
11010 strtol strtoul strtoll strtoull setenv unsetenv \
11011 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11012 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
11014 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11016 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11017 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11018 $as_echo_n "(cached) " >&6
11020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h. */
11023 #define $ac_tr_decl 1
11025 #include "ansidecl.h"
11026 #include "system.h"
11032 char *(*pfn) = (char *(*)) $ac_func ;
11038 if ac_fn_cxx_try_compile
"$LINENO"; then :
11039 eval "gcc_cv_have_decl_$ac_func=yes"
11041 eval "gcc_cv_have_decl_$ac_func=no"
11043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11046 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11048 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11049 #define $ac_tr_decl 1
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11055 #define $ac_tr_decl 0
11063 for ac_func
in getrlimit setrlimit getrusage
11065 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11067 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11068 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11069 $as_echo_n "(cached) " >&6
11071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11074 #define $ac_tr_decl 1
11076 #include "ansidecl.h"
11077 #include "system.h"
11078 #ifdef HAVE_SYS_RESOURCE_H
11079 #include <sys/resource.h>
11087 char *(*pfn) = (char *(*)) $ac_func ;
11093 if ac_fn_cxx_try_compile
"$LINENO"; then :
11094 eval "gcc_cv_have_decl_$ac_func=yes"
11096 eval "gcc_cv_have_decl_$ac_func=no"
11098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11101 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11103 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11104 #define $ac_tr_decl 1
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11110 #define $ac_tr_decl 0
11118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11121 #include "ansidecl.h"
11122 #include "system.h"
11123 #ifdef HAVE_SYS_RESOURCE_H
11124 #include <sys/resource.h>
11135 if ac_fn_cxx_try_compile
"$LINENO"; then :
11139 $as_echo "#define rlim_t long" >>confdefs.h
11142 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11144 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11145 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11146 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11147 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11148 for ac_func
in ldgetname
11150 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11152 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11153 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11154 $as_echo_n "(cached) " >&6
11156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 #define $ac_tr_decl 1
11161 #include "ansidecl.h"
11162 #include "system.h"
11163 #ifdef HAVE_LDFCN_H
11174 char *(*pfn) = (char *(*)) $ac_func ;
11180 if ac_fn_cxx_try_compile
"$LINENO"; then :
11181 eval "gcc_cv_have_decl_$ac_func=yes"
11183 eval "gcc_cv_have_decl_$ac_func=no"
11185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11188 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11190 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11191 #define $ac_tr_decl 1
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11196 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11197 #define $ac_tr_decl 0
11205 for ac_func
in times
11207 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11209 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11210 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11211 $as_echo_n "(cached) " >&6
11213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11216 #define $ac_tr_decl 1
11218 #include "ansidecl.h"
11219 #include "system.h"
11220 #ifdef HAVE_SYS_TIMES_H
11221 #include <sys/times.h>
11229 char *(*pfn) = (char *(*)) $ac_func ;
11235 if ac_fn_cxx_try_compile
"$LINENO"; then :
11236 eval "gcc_cv_have_decl_$ac_func=yes"
11238 eval "gcc_cv_have_decl_$ac_func=no"
11240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11243 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11246 #define $ac_tr_decl 1
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11252 #define $ac_tr_decl 0
11260 for ac_func
in sigaltstack
11262 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11264 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11265 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11266 $as_echo_n "(cached) " >&6
11268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h. */
11271 #define $ac_tr_decl 1
11273 #include "ansidecl.h"
11274 #include "system.h"
11275 #include <signal.h>
11282 char *(*pfn) = (char *(*)) $ac_func ;
11288 if ac_fn_cxx_try_compile
"$LINENO"; then :
11289 eval "gcc_cv_have_decl_$ac_func=yes"
11291 eval "gcc_cv_have_decl_$ac_func=no"
11293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11296 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11298 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11299 #define $ac_tr_decl 1
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11305 #define $ac_tr_decl 0
11313 # More time-related stuff.
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11315 $as_echo_n "checking for struct tms... " >&6; }
11316 if test "${ac_cv_struct_tms+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11321 /* end confdefs.h. */
11323 #include "ansidecl.h"
11324 #include "system.h"
11325 #ifdef HAVE_SYS_TIMES_H
11326 #include <sys/times.h>
11337 if ac_fn_cxx_try_compile
"$LINENO"; then :
11338 ac_cv_struct_tms
=yes
11340 ac_cv_struct_tms
=no
11342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11345 $as_echo "$ac_cv_struct_tms" >&6; }
11346 if test $ac_cv_struct_tms = yes; then
11348 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11352 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11353 # revisit after autoconf 2.50.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11355 $as_echo_n "checking for clock_t... " >&6; }
11356 if test "${gcc_cv_type_clock_t+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11363 #include "ansidecl.h"
11364 #include "system.h"
11374 if ac_fn_cxx_try_compile
"$LINENO"; then :
11375 gcc_cv_type_clock_t
=yes
11377 gcc_cv_type_clock_t
=no
11379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11382 $as_echo "$gcc_cv_type_clock_t" >&6; }
11383 if test $gcc_cv_type_clock_t = yes; then
11385 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11389 # Check if F_SETLKW is supported by fcntl.
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11391 $as_echo_n "checking for F_SETLKW... " >&6; }
11392 if test "${ac_cv_f_setlkw+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11397 /* end confdefs.h. */
11409 return fcntl (1, F_SETLKW, &fl);
11414 if ac_fn_cxx_try_compile
"$LINENO"; then :
11419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11422 $as_echo "$ac_cv_f_setlkw" >&6; }
11423 if test $ac_cv_f_setlkw = yes; then
11425 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11429 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11430 CFLAGS
="$saved_CFLAGS"
11431 CXXFLAGS
="$saved_CXXFLAGS"
11433 # mkdir takes a single argument on some systems.
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11435 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11436 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
11439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11442 #include <sys/types.h>
11443 #ifdef HAVE_SYS_STAT_H
11444 # include <sys/stat.h>
11446 #ifdef HAVE_UNISTD_H
11447 # include <unistd.h>
11449 #ifdef HAVE_DIRECT_H
11450 # include <direct.h>
11460 if ac_fn_cxx_try_compile
"$LINENO"; then :
11461 gcc_cv_mkdir_takes_one_arg
=no
11463 gcc_cv_mkdir_takes_one_arg
=yes
11465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11468 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11469 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11471 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11482 # With Setjmp/Longjmp based exception handling.
11483 # Check whether --enable-sjlj-exceptions was given.
11484 if test "${enable_sjlj_exceptions+set}" = set; then :
11485 enableval
=$enable_sjlj_exceptions; case $target in
11487 if test $enableval != yes; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11489 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11494 force_sjlj_exceptions
=yes
11498 force_sjlj_exceptions
=yes
11502 force_sjlj_exceptions
=yes
11506 force_sjlj_exceptions
=no
11511 if test $force_sjlj_exceptions = yes; then
11512 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11514 cat >>confdefs.h
<<_ACEOF
11515 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11520 # --------------------------------------------------------
11521 # Build, host, and target specific configuration fragments
11522 # --------------------------------------------------------
11524 # Collect build-machine-specific information.
11525 .
${srcdir}/config.build
11527 # Collect host-machine-specific information.
11528 .
${srcdir}/config.
host
11532 # Collect target-machine-specific information.
11533 .
${srcdir}/config.gcc
11535 extra_objs
="${host_extra_objs} ${extra_objs}"
11536 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11538 # Default the target-machine variables that were not explicitly set.
11539 if test x
"$tm_file" = x
11540 then tm_file
=$cpu_type/$cpu_type.h
; fi
11542 if test x
"$extra_headers" = x
11543 then extra_headers
=; fi
11545 if test x
$md_file = x
11546 then md_file
=$cpu_type/$cpu_type.md
; fi
11548 if test x
$out_file = x
11549 then out_file
=$cpu_type/$cpu_type.c
; fi
11551 if test x
"$tmake_file" = x
11552 then tmake_file
=$cpu_type/t-
$cpu_type
11555 # Support --enable-initfini-array.
11556 if test x
$enable_initfini_array != xno
; then
11557 tm_file
="${tm_file} initfini-array.h"
11560 if test x
"$dwarf2" = xyes
11561 then tm_file
="$tm_file tm-dwarf2.h"
11564 # Say what files are being used for the output code and MD file.
11565 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11566 echo "Using \`$srcdir/config/$md_file' as machine description file."
11568 # If any of the xm_file variables contain nonexistent files, warn
11569 # about them and drop them.
11572 for x
in $build_xm_file; do
11573 if test -f $srcdir/config
/$x
11575 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11576 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11579 build_xm_file
="$bx"
11582 for x
in $host_xm_file; do
11583 if test -f $srcdir/config
/$x
11585 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11586 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11592 for x
in $xm_file; do
11593 if test -f $srcdir/config
/$x
11595 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11596 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11602 for f
in $tm_file; do
11605 if test $count = ax
; then
11606 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11608 echo "Using the following target machine macro files:"
11609 for f
in $tm_file; do
11610 echo " $srcdir/config/$f"
11614 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11616 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11620 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11622 cat >>confdefs.h
<<_ACEOF
11623 #define HAVE_GNU_LD $gnu_ld_bool
11627 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11629 cat >>confdefs.h
<<_ACEOF
11630 #define HAVE_GNU_AS $gnu_as_bool
11635 for f
in $host_xm_file; do
11638 if test $count = a
; then
11640 elif test $count = ax
; then
11641 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11643 echo "Using the following host machine macro files:"
11644 for f
in $host_xm_file; do
11645 echo " $srcdir/config/$f"
11648 echo "Using ${out_host_hook_obj} for host machine hooks."
11650 if test "$host_xm_file" != "$build_xm_file"; then
11652 for f
in $build_xm_file; do
11655 if test $count = a
; then
11657 elif test $count = ax
; then
11658 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11660 echo "Using the following build machine macro files:"
11661 for f
in $build_xm_file; do
11662 echo " $srcdir/config/$f"
11667 if test -n "$configured_native_system_header_dir"; then
11668 native_system_header_dir
=$configured_native_system_header_dir
11670 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11674 powerpc
*-*-darwin*)
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11676 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11677 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
11680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11683 #include <sys/cdefs.h>
11684 #include <sys/signal.h>
11685 #include <ucontext.h>
11686 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11689 if ac_fn_cxx_try_compile
"$LINENO"; then :
11690 gcc_cv_mcontext_underscores
=no
11692 gcc_cv_mcontext_underscores
=yes
11694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11697 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11698 if test $gcc_cv_mcontext_underscores = yes; then
11700 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11710 # Check if a valid thread package
11711 case ${enable_threads} in
11714 target_thread_file
='single'
11718 target_thread_file
='single'
11720 aix | dce | lynx | mipssde | posix | rtems | \
11721 single | tpf | vxworks | win32
)
11722 target_thread_file
=${enable_threads}
11725 echo "${enable_threads} is an unknown thread package" 1>&2
11730 if test x
${thread_file} = x
; then
11731 # No thread file set by target-specific clauses in config.gcc,
11732 # so use file chosen by default logic above
11733 thread_file
=${target_thread_file}
11741 if test x
$enable___cxa_atexit = xyes || \
11742 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11743 if test x
$host = x
$target; then
11745 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11746 # keyed to flag_use_cxa_atexit
11754 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11755 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11758 echo "__cxa_atexit can't be enabled on this target"
11764 # We can't check for __cxa_atexit when building a cross, so assume
11768 if test x
$use_cxa_atexit = xyes
; then
11770 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11775 # Look for a file containing extra machine modes.
11776 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11777 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11780 cat >>confdefs.h
<<_ACEOF
11781 #define EXTRA_MODES_FILE "config/$extra_modes"
11786 # Convert extra_options into a form suitable for Makefile use.
11789 for f
in $extra_options; do
11790 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11791 all_opt_files
="$all_opt_files $srcdir/config/$f"
11795 # auto-host.h is the file containing items generated by autoconf and is
11796 # the first file included by config.h.
11797 # If host=build, it is correct to have bconfig include auto-host.h
11798 # as well. If host!=build, we are in error and need to do more
11799 # work to find out the build config parameters.
11800 if test x
$host = x
$build
11802 build_auto
=auto-host.h
11804 # We create a subdir, then run autoconf in the subdir.
11805 # To prevent recursion we set host and build for the new
11806 # invocation of configure to the build for this invocation
11813 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11814 *) realsrcdir
=..
/${srcdir};;
11816 # Clearing GMPINC is necessary to prevent host headers being
11817 # used by the build compiler. Defining GENERATOR_FILE stops
11818 # system.h from including gmp.h.
11819 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11820 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11821 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11822 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11823 ${realsrcdir}/configure \
11824 --enable-languages=${enable_languages-all} \
11825 --target=$target_alias --host=$build_alias --build=$build_alias
11827 # We just finished tests for the build machine, so rename
11828 # the file auto-build.h in the gcc directory.
11829 mv auto-host.h ..
/auto-build.h
11832 build_auto
=auto-build.h
11836 tm_file
="${tm_file} defaults.h"
11837 tm_p_file
="${tm_p_file} tm-preds.h"
11838 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11839 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11840 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11841 # put this back in temporarily.
11842 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11848 # Compile in configure arguments.
11849 if test -f configargs.h
; then
11850 # Being re-configured.
11851 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11852 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11854 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11857 # Double all backslashes and backslash all quotes to turn
11858 # gcc_config_arguments into a C string.
11859 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11860 $gcc_config_arguments
11862 gcc_config_arguments_str
=`cat conftest.out`
11865 cat > configargs.h
<<EOF
11866 /* Generated automatically. */
11867 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11868 static const char thread_model[] = "$thread_file";
11870 static const struct {
11871 const char *name, *value;
11872 } configure_default_options[] = $configure_default_options;
11875 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11876 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11877 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11878 if test -f $srcdir/REVISION
; then
11879 gcc_REVISION
=`cat $srcdir/REVISION`
11883 cat > plugin-version.h
<<EOF
11884 #include "configargs.h"
11886 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11887 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11888 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11889 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11891 static char basever[] = "$gcc_BASEVER";
11892 static char datestamp[] = "$gcc_DATESTAMP";
11893 static char devphase[] = "$gcc_DEVPHASE";
11894 static char revision[] = "$gcc_REVISION";
11896 /* FIXME plugins: We should make the version information more precise.
11897 One way to do is to add a checksum. */
11899 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11900 devphase, revision,
11901 configuration_arguments};
11904 # Internationalization
11905 # If we haven't got the data from the intl directory,
11906 # assume NLS is disabled.
11915 if test -f ..
/intl
/config.intl
; then
11916 . ..
/intl
/config.intl
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11919 $as_echo_n "checking whether NLS is requested... " >&6; }
11920 if test x
"$USE_NLS" != xyes
; then
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11922 $as_echo "no" >&6; }
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11925 $as_echo "yes" >&6; }
11927 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11931 $as_echo_n "checking for catalogs to be installed... " >&6; }
11932 # Look for .po and .gmo files in the source directory.
11935 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11936 # If there aren't any .gmo files the shell will give us the
11937 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11939 case "$cat" in *\
**)
11942 # The quadruple backslash is collapsed to a double backslash
11943 # by the backticks, then collapsed again by the double quotes,
11944 # leaving us with one backslash in the sed expression (right
11945 # before the dot that mustn't act as a wildcard).
11946 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11947 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11948 # The user is allowed to set LINGUAS to a list of languages to
11949 # install catalogs for. If it's empty that means "all of them."
11950 if test "x$LINGUAS" = x
; then
11951 CATALOGS
="$CATALOGS $cat"
11952 XLINGUAS
="$XLINGUAS $lang"
11954 case "$LINGUAS" in *$lang*)
11955 CATALOGS
="$CATALOGS $cat"
11956 XLINGUAS
="$XLINGUAS $lang"
11961 LINGUAS
="$XLINGUAS"
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11963 $as_echo "$LINGUAS" >&6; }
11976 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11977 # -liconv on the link line twice.
11978 case "$LIBINTL" in *$LIBICONV*)
11982 # Check whether --enable-secureplt was given.
11983 if test "${enable_secureplt+set}" = set; then :
11984 enableval
=$enable_secureplt;
11988 # Check whether --enable-leading-mingw64-underscores was given.
11989 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11990 enableval
=$enable_leading_mingw64_underscores;
11993 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11995 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11999 # Check whether --enable-cld was given.
12000 if test "${enable_cld+set}" = set; then :
12001 enableval
=$enable_cld;
12007 # Check whether --enable-frame-pointer was given.
12008 if test "${enable_frame_pointer+set}" = set; then :
12009 enableval
=$enable_frame_pointer;
12013 linux
* | darwin
[8912]*)
12014 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12016 enable_frame_pointer
=no
12019 enable_frame_pointer
=yes
12026 # Windows32 Registry support for specifying GCC installation paths.
12027 # Check whether --enable-win32-registry was given.
12028 if test "${enable_win32_registry+set}" = set; then :
12029 enableval
=$enable_win32_registry;
12034 win32 | pe | cygwin
* | mingw32
*)
12035 if test "x$enable_win32_registry" != xno
; then
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12037 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12038 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12041 ac_func_search_save_LIBS
=$LIBS
12042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12045 /* Override any GCC internal prototype to avoid an error.
12046 Use char because int might match the return type of a GCC
12047 builtin and then its argument prototype would still apply. */
12051 char RegOpenKeyExA ();
12055 return RegOpenKeyExA ();
12060 for ac_lib
in '' advapi32
; do
12061 if test -z "$ac_lib"; then
12062 ac_res
="none required"
12065 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12067 if ac_fn_cxx_try_link
"$LINENO"; then :
12068 ac_cv_search_RegOpenKeyExA
=$ac_res
12070 rm -f core conftest.err conftest.
$ac_objext \
12072 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12076 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12079 ac_cv_search_RegOpenKeyExA
=no
12081 rm conftest.
$ac_ext
12082 LIBS
=$ac_func_search_save_LIBS
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12085 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12086 ac_res
=$ac_cv_search_RegOpenKeyExA
12087 if test "$ac_res" != no
; then :
12088 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12091 enable_win32_registry
=no
12096 if test "x$enable_win32_registry" != xno
; then
12098 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12101 if test "x$enable_win32_registry" != xyes \
12102 && test "x$enable_win32_registry" != x
; then
12104 cat >>confdefs.h
<<_ACEOF
12105 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12113 # Get an absolute path to the GCC top-level source directory
12114 holddir
=`${PWDCMD-pwd}`
12116 topdir
=`${PWDCMD-pwd}`
12119 # Conditionalize the makefile for this host machine.
12121 for f
in ${host_xmake_file}
12123 if test -f ${srcdir}/config
/$f
12125 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12129 # Conditionalize the makefile for this target machine.
12131 for f
in ${tmake_file}
12133 if test -f ${srcdir}/config
/$f
12135 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12138 tmake_file
="${tmake_file_}"
12140 out_object_file
=`basename $out_file .c`.o
12141 common_out_object_file
=`basename $common_out_file .c`.o
12143 tm_file_list
="options.h"
12144 tm_include_list
="options.h insn-constants.h"
12145 for f
in $tm_file; do
12148 f
=`echo $f | sed 's/^..//'`
12149 tm_file_list
="${tm_file_list} $f"
12150 tm_include_list
="${tm_include_list} $f"
12153 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12154 tm_include_list
="${tm_include_list} $f"
12157 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12158 tm_include_list
="${tm_include_list} config/$f"
12165 for f
in $tm_p_file; do
12168 tm_p_file_list
="${tm_p_file_list} $f"
12169 tm_p_include_list
="${tm_p_include_list} $f"
12172 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12173 tm_p_include_list
="${tm_p_include_list} config/$f"
12179 for f
in $xm_file; do
12182 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12183 xm_include_list
="${xm_include_list} $f"
12186 xm_file_list
="${xm_file_list} $f"
12187 xm_include_list
="${xm_include_list} $f"
12190 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12191 xm_include_list
="${xm_include_list} config/$f"
12197 host_xm_include_list
=
12198 for f
in $host_xm_file; do
12201 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12202 host_xm_include_list
="${host_xm_include_list} $f"
12205 host_xm_file_list
="${host_xm_file_list} $f"
12206 host_xm_include_list
="${host_xm_include_list} $f"
12209 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12210 host_xm_include_list
="${host_xm_include_list} config/$f"
12215 build_xm_file_list
=
12216 for f
in $build_xm_file; do
12219 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12220 build_xm_include_list
="${build_xm_include_list} $f"
12222 auto-build.h | auto-host.h
)
12223 build_xm_file_list
="${build_xm_file_list} $f"
12224 build_xm_include_list
="${build_xm_include_list} $f"
12227 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12228 build_xm_include_list
="${build_xm_include_list} config/$f"
12233 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12234 # cross-compiler which does not use the native headers and libraries.
12235 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12238 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
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 # This value is used, even on a native system, because
12244 # CROSS_SYSTEM_HEADER_DIR is just
12245 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12246 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12249 if test x
$host != x
$target
12251 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12253 SYSTEM_HEADER_DIR
=$build_system_header_dir
12254 case "$host","$target" in
12255 # Darwin crosses can use the host system's libraries and headers,
12256 # because of the fat library support. Of course, it must be the
12257 # same version of Darwin on both sides. Allow the user to
12258 # just say --target=foo-darwin without a version number to mean
12259 # "the version on this system".
12260 *-*-darwin*,*-*-darwin*)
12261 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12262 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12263 if test $hostos = $targetos -o $targetos = darwin
; then
12265 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12270 i?
86-*-*,x86_64-
*-* \
12271 | powerpc
*-*-*,powerpc64
*-*-*)
12272 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12277 if test "x$with_headers" = x
; then
12284 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12285 SYSTEM_HEADER_DIR
=$build_system_header_dir
12288 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12289 if test "x$with_headers" != x
&& test "x$with_headers" != xyes
; then
12290 target_header_dir
=$with_headers
12291 elif test "x$with_sysroot" = x
; then
12292 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12293 elif test "x$with_build_sysroot" != "x"; then
12294 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12295 elif test "x$with_sysroot" = xyes
; then
12296 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12298 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12301 target_header_dir
=${native_system_header_dir}
12304 # If this is a cross-compiler that does not
12305 # have its own set of headers then define
12308 # If this is using newlib, without having the headers available now,
12309 # then define inhibit_libc in LIBGCC2_CFLAGS.
12310 # This prevents libgcc2 from containing any code which requires libc
12312 : ${inhibit_libc=false}
12313 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12314 test x
$with_newlib = xyes
; } &&
12315 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12320 # When building gcc with a cross-compiler, we need to adjust things so
12321 # that the generator programs are still built with the native compiler.
12322 # Also, we cannot run fixincludes.
12324 # These are the normal (build=host) settings:
12325 CC_FOR_BUILD
='$(CC)'
12326 CXX_FOR_BUILD
='$(CXX)'
12327 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12328 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12329 BUILD_LDFLAGS
='$(LDFLAGS)'
12330 STMP_FIXINC
=stmp-fixinc
12332 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12333 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12335 # And these apply if build != host, or we are generating coverage data
12336 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12338 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12339 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12340 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12342 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12343 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12344 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12345 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12350 # Expand extra_headers to include complete path.
12351 # This substitutes for lots of t-* files.
12352 extra_headers_list
=
12353 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12354 for file in ${extra_headers} ; do
12355 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12358 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12359 if test x
"$use_gcc_tgmath" = xyes
12360 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12363 # Define collect2 in Makefile.
12364 case $host_can_use_collect2 in
12366 *) collect2
='collect2$(exeext)' ;;
12370 # Add a definition of USE_COLLECT2 if system wants one.
12371 case $use_collect2 in
12372 no
) use_collect2
= ;;
12375 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12376 xm_defines
="${xm_defines} USE_COLLECT2"
12377 case $host_can_use_collect2 in
12379 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12386 cat >>confdefs.h
<<_ACEOF
12387 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12391 # ---------------------------
12392 # Assembler & linker features
12393 # ---------------------------
12395 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12396 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12397 # However when ld-new is first executed from the build tree, libtool will
12398 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12399 # to the build tree. While doing this we need to use the previous-stage
12400 # linker, or we have an infinite loop. The presence of a shell script as
12401 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12402 # the gcc/collect-ld script. So we need to know how libtool works, or
12403 # exec-tool will fail.
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12409 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12414 macro_version
='2.2.7a'
12415 macro_revision
='1.3134'
12429 ltmain
="$ac_aux_dir/ltmain.sh"
12431 # Backslashify metacharacters that are still active within
12432 # double-quoted strings.
12433 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12435 # Same as above, but do not quote variable references.
12436 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12438 # Sed substitution to delay expansion of an escaped shell variable in a
12439 # double_quote_subst'ed string.
12440 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12442 # Sed substitution to delay expansion of an escaped single quote.
12443 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12445 # Sed substitution to avoid accidental globbing in evaled expressions
12446 no_glob_subst
='s/\*/\\\*/g'
12448 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12449 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12450 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12453 $as_echo_n "checking how to print strings... " >&6; }
12454 # Test print first, because it will be a builtin if present.
12455 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12456 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12458 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12461 # Use this function as a fallback that always works.
12462 func_fallback_echo ()
12464 eval 'cat <<_LTECHO_EOF
12468 ECHO='func_fallback_echo
'
12471 # func_echo_all arg...
12472 # Invoke $ECHO with all args, space-separated.
12479 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12480 $as_echo "printf" >&6; } ;;
12481 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12482 $as_echo "print -r" >&6; } ;;
12483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12484 $as_echo "cat" >&6; } ;;
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12501 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12502 if test "${ac_cv_path_SED+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12505 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12506 for ac_i in 1 2 3 4 5 6 7; do
12507 ac_script="$ac_script$as_nl$ac_script"
12509 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12510 { ac_script=; unset ac_script;}
12511 if test -z "$SED"; then
12512 ac_path_SED_found=false
12513 # Loop through the user's path and
test for each of PROGNAME-LIST
12514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12515 for as_dir
in $PATH
12518 test -z "$as_dir" && as_dir
=.
12519 for ac_prog
in sed gsed
; do
12520 for ac_exec_ext
in '' $ac_executable_extensions; do
12521 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12522 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12523 # Check for GNU ac_path_SED and select it if it is found.
12524 # Check for GNU $ac_path_SED
12525 case `"$ac_path_SED" --version 2>&1` in
12527 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12530 $as_echo_n 0123456789 >"conftest.in"
12533 cat "conftest.in" "conftest.in" >"conftest.tmp"
12534 mv "conftest.tmp" "conftest.in"
12535 cp "conftest.in" "conftest.nl"
12536 $as_echo '' >> "conftest.nl"
12537 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12538 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12539 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12540 if test $ac_count -gt ${ac_path_SED_max-0}; then
12541 # Best one so far, save it but keep looking for a better one
12542 ac_cv_path_SED
="$ac_path_SED"
12543 ac_path_SED_max
=$ac_count
12545 # 10*(2^10) chars as input seems more than enough
12546 test $ac_count -gt 10 && break
12548 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12551 $ac_path_SED_found && break 3
12556 if test -z "$ac_cv_path_SED"; then
12557 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12560 ac_cv_path_SED
=$SED
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12565 $as_echo "$ac_cv_path_SED" >&6; }
12566 SED
="$ac_cv_path_SED"
12569 test -z "$SED" && SED
=sed
12570 Xsed
="$SED -e 1s/^X//"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12583 $as_echo_n "checking for fgrep... " >&6; }
12584 if test "${ac_cv_path_FGREP+set}" = set; then :
12585 $as_echo_n "(cached) " >&6
12587 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12588 then ac_cv_path_FGREP
="$GREP -F"
12590 if test -z "$FGREP"; then
12591 ac_path_FGREP_found
=false
12592 # Loop through the user's path and test for each of PROGNAME-LIST
12593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12594 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12597 test -z "$as_dir" && as_dir
=.
12598 for ac_prog
in fgrep
; do
12599 for ac_exec_ext
in '' $ac_executable_extensions; do
12600 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12601 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12602 # Check for GNU ac_path_FGREP and select it if it is found.
12603 # Check for GNU $ac_path_FGREP
12604 case `"$ac_path_FGREP" --version 2>&1` in
12606 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12609 $as_echo_n 0123456789 >"conftest.in"
12612 cat "conftest.in" "conftest.in" >"conftest.tmp"
12613 mv "conftest.tmp" "conftest.in"
12614 cp "conftest.in" "conftest.nl"
12615 $as_echo 'FGREP' >> "conftest.nl"
12616 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12617 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12618 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12619 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12620 # Best one so far, save it but keep looking for a better one
12621 ac_cv_path_FGREP
="$ac_path_FGREP"
12622 ac_path_FGREP_max
=$ac_count
12624 # 10*(2^10) chars as input seems more than enough
12625 test $ac_count -gt 10 && break
12627 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12630 $ac_path_FGREP_found && break 3
12635 if test -z "$ac_cv_path_FGREP"; then
12636 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12639 ac_cv_path_FGREP
=$FGREP
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12645 $as_echo "$ac_cv_path_FGREP" >&6; }
12646 FGREP
="$ac_cv_path_FGREP"
12649 test -z "$GREP" && GREP
=grep
12669 # Check whether --with-gnu-ld was given.
12670 if test "${with_gnu_ld+set}" = set; then :
12671 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12677 if test "$GCC" = yes; then
12678 # Check if gcc -print-prog-name=ld gives a path.
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12680 $as_echo_n "checking for ld used by $CC... " >&6; }
12683 # gcc leaves a trailing carriage return which upsets mingw
12684 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12686 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12689 # Accept absolute paths.
12691 re_direlt
='/[^/][^/]*/\.\./'
12692 # Canonicalize the pathname of ld
12693 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12694 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12695 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12697 test -z "$LD" && LD
="$ac_prog"
12700 # If it fails, then pretend we aren't using GCC.
12704 # If it is relative, then search for the first ld in PATH.
12705 with_gnu_ld
=unknown
12708 elif test "$with_gnu_ld" = yes; then
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12710 $as_echo_n "checking for GNU ld... " >&6; }
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12713 $as_echo_n "checking for non-GNU ld... " >&6; }
12715 if test "${lt_cv_path_LD+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12718 if test -z "$LD"; then
12719 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12720 for ac_dir
in $PATH; do
12722 test -z "$ac_dir" && ac_dir
=.
12723 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12724 lt_cv_path_LD
="$ac_dir/$ac_prog"
12725 # Check to see if the program is GNU ld. I'd rather use --version,
12726 # but apparently some variants of GNU ld only accept -v.
12727 # Break only if it was the GNU/non-GNU ld that we prefer.
12728 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12729 *GNU
* |
*'with BFD'*)
12730 test "$with_gnu_ld" != no
&& break
12733 test "$with_gnu_ld" != yes && break
12740 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12744 LD
="$lt_cv_path_LD"
12745 if test -n "$LD"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12747 $as_echo "$LD" >&6; }
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12752 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12754 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12755 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12756 $as_echo_n "(cached) " >&6
12758 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12759 case `$LD -v 2>&1 </dev/null` in
12760 *GNU
* |
*'with BFD'*)
12761 lt_cv_prog_gnu_ld
=yes
12764 lt_cv_prog_gnu_ld
=no
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12769 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12770 with_gnu_ld
=$lt_cv_prog_gnu_ld
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12781 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12782 if test "${lt_cv_path_NM+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
12785 if test -n "$NM"; then
12786 # Let the user override the test.
12787 lt_cv_path_NM
="$NM"
12789 lt_nm_to_check
="${ac_tool_prefix}nm"
12790 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12791 lt_nm_to_check
="$lt_nm_to_check nm"
12793 for lt_tmp_nm
in $lt_nm_to_check; do
12794 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12795 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12797 test -z "$ac_dir" && ac_dir
=.
12798 tmp_nm
="$ac_dir/$lt_tmp_nm"
12799 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12800 # Check to see if the nm accepts a BSD-compat flag.
12801 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12802 # nm: unknown option "B" ignored
12803 # Tru64's nm complains that /dev/null is an invalid object file
12804 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12805 */dev
/null
* |
*'Invalid file or object type'*)
12806 lt_cv_path_NM
="$tmp_nm -B"
12810 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12812 lt_cv_path_NM
="$tmp_nm -p"
12816 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12817 continue # so that we can try to find one that supports BSD flags
12826 : ${lt_cv_path_NM=no}
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12830 $as_echo "$lt_cv_path_NM" >&6; }
12831 if test "$lt_cv_path_NM" != "no"; then
12832 NM
="$lt_cv_path_NM"
12834 # Didn't find any BSD compatible name lister, look for dumpbin.
12835 if test -n "$DUMPBIN"; then :
12836 # Let the user override the test.
12838 if test -n "$ac_tool_prefix"; then
12839 for ac_prog
in dumpbin
"link -dump"
12841 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12842 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12846 $as_echo_n "(cached) " >&6
12848 if test -n "$DUMPBIN"; then
12849 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12852 for as_dir
in $PATH
12855 test -z "$as_dir" && as_dir
=.
12856 for ac_exec_ext
in '' $ac_executable_extensions; do
12857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12858 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12868 DUMPBIN
=$ac_cv_prog_DUMPBIN
12869 if test -n "$DUMPBIN"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12871 $as_echo "$DUMPBIN" >&6; }
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12878 test -n "$DUMPBIN" && break
12881 if test -z "$DUMPBIN"; then
12882 ac_ct_DUMPBIN
=$DUMPBIN
12883 for ac_prog
in dumpbin
"link -dump"
12885 # Extract the first word of "$ac_prog", so it can be a program name with args.
12886 set dummy
$ac_prog; ac_word
=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12888 $as_echo_n "checking for $ac_word... " >&6; }
12889 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12890 $as_echo_n "(cached) " >&6
12892 if test -n "$ac_ct_DUMPBIN"; then
12893 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12896 for as_dir
in $PATH
12899 test -z "$as_dir" && as_dir
=.
12900 for ac_exec_ext
in '' $ac_executable_extensions; do
12901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12902 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12912 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12913 if test -n "$ac_ct_DUMPBIN"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12915 $as_echo "$ac_ct_DUMPBIN" >&6; }
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918 $as_echo "no" >&6; }
12922 test -n "$ac_ct_DUMPBIN" && break
12925 if test "x$ac_ct_DUMPBIN" = x
; then
12928 case $cross_compiling:$ac_tool_warned in
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12932 ac_tool_warned
=yes ;;
12934 DUMPBIN
=$ac_ct_DUMPBIN
12938 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12940 DUMPBIN
="$DUMPBIN -symbols"
12948 if test "$DUMPBIN" != ":"; then
12952 test -z "$NM" && NM
=nm
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12960 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12961 if test "${lt_cv_nm_interface+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12964 lt_cv_nm_interface
="BSD nm"
12965 echo "int some_variable = 0;" > conftest.
$ac_ext
12966 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12967 (eval "$ac_compile" 2>conftest.err
)
12968 cat conftest.err
>&5
12969 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12970 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12971 cat conftest.err
>&5
12972 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12973 cat conftest.out
>&5
12974 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12975 lt_cv_nm_interface
="MS dumpbin"
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12980 $as_echo "$lt_cv_nm_interface" >&6; }
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12983 $as_echo_n "checking whether ln -s works... " >&6; }
12985 if test "$LN_S" = "ln -s"; then
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12987 $as_echo "yes" >&6; }
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12990 $as_echo "no, using $LN_S" >&6; }
12993 # find the maximum length of command line arguments
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12995 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12996 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
13004 # On DJGPP, this test can blow up pretty badly due to problems in libc
13005 # (any single argument exceeding 2000 bytes causes a buffer overrun
13006 # during glob expansion). Even if it were fixed, the result of this
13007 # check would be larger than it should be.
13008 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13012 # Under GNU Hurd, this test is not required because there is
13013 # no limit to the length of command line arguments.
13014 # Libtool will interpret -1 as no limit whatsoever
13015 lt_cv_sys_max_cmd_len
=-1;
13018 cygwin
* | mingw
* | cegcc
*)
13019 # On Win9x/ME, this test blows up -- it succeeds, but takes
13020 # about 5 minutes as the teststring grows exponentially.
13021 # Worse, since 9x/ME are not pre-emptively multitasking,
13022 # you end up with a "frozen" computer, even though with patience
13023 # the test eventually succeeds (with a max line length of 256k).
13024 # Instead, let's just punt: use the minimum linelength reported by
13025 # all of the supported platforms: 8192 (on NT/2K/XP).
13026 lt_cv_sys_max_cmd_len
=8192;
13030 # On MiNT this can take a long time and run out of memory.
13031 lt_cv_sys_max_cmd_len
=8192;
13035 # On AmigaOS with pdksh, this test takes hours, literally.
13036 # So we just punt and use a minimum line length of 8192.
13037 lt_cv_sys_max_cmd_len
=8192;
13040 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13041 # This has been around since 386BSD, at least. Likely further.
13042 if test -x /sbin
/sysctl
; then
13043 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13044 elif test -x /usr
/sbin
/sysctl
; then
13045 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13047 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13049 # And add a safety zone
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`
13055 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13056 lt_cv_sys_max_cmd_len
=196608
13060 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13061 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13062 # nice to cause kernel panics so lets avoid the loop below.
13063 # First set a reasonable default.
13064 lt_cv_sys_max_cmd_len
=16384
13066 if test -x /sbin
/sysconfig
; then
13067 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13068 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13073 lt_cv_sys_max_cmd_len
=102400
13075 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13076 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13077 if test -n "$kargmax"; then
13078 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13080 lt_cv_sys_max_cmd_len
=32768
13084 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13085 if test -n "$lt_cv_sys_max_cmd_len"; then
13086 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13087 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13089 # Make teststring a little bigger before we do anything with it.
13090 # a 1K string should be a reasonable start.
13091 for i
in 1 2 3 4 5 6 7 8 ; do
13092 teststring
=$teststring$teststring
13094 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13095 # If test is not a shell built-in, we'll probably end up computing a
13096 # maximum length that is only half of the actual maximum length, but
13098 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13099 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13100 test $i != 17 # 1/2 MB should be enough
13103 teststring
=$teststring$teststring
13105 # Only check the string length outside the loop.
13106 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13108 # Add a significant safety factor because C++ compilers can tack on
13109 # massive amounts of additional arguments before passing them to the
13110 # linker. It appears as though 1/2 is a usable value.
13111 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13118 if test -n $lt_cv_sys_max_cmd_len ; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13120 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13123 $as_echo "none" >&6; }
13125 max_cmd_len
=$lt_cv_sys_max_cmd_len
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13137 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13138 # Try some XSI features
13140 ( _lt_dummy
="a/b/c"
13141 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13143 && eval 'test $(( 1 + 1 )) -eq 2 \
13144 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13147 $as_echo "$xsi_shell" >&6; }
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13151 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13153 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13155 && lt_shell_append=yes
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13157 $as_echo "$lt_shell_append" >&6; }
13160 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13170 # test EBCDIC or ASCII
13171 case `echo X|tr X '\101'` in
13172 A) # ASCII based system
13173 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13174 lt_SP2NL='tr \040 \012'
13175 lt_NL2SP='tr \015\012 \040\040'
13177 *) # EBCDIC based system
13178 lt_SP2NL='tr \100 \n'
13179 lt_NL2SP='tr \r\n \100\100'
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13192 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13193 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13194 $as_echo_n "(cached
) " >&6
13196 lt_cv_ld_reload_flag='-r'
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13199 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13200 reload_flag=$lt_cv_ld_reload_flag
13201 case $reload_flag in
13203 *) reload_flag=" $reload_flag" ;;
13205 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13208 if test "$GCC" = yes; then
13209 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13224 if test -n "$ac_tool_prefix"; then
13225 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13226 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13228 $as_echo_n "checking
for $ac_word...
" >&6; }
13229 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13230 $as_echo_n "(cached
) " >&6
13232 if test -n "$OBJDUMP"; then
13233 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13236 for as_dir in $PATH
13239 test -z "$as_dir" && as_dir=.
13240 for ac_exec_ext in '' $ac_executable_extensions; do
13241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13242 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13252 OBJDUMP=$ac_cv_prog_OBJDUMP
13253 if test -n "$OBJDUMP"; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13255 $as_echo "$OBJDUMP" >&6; }
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13258 $as_echo "no
" >&6; }
13263 if test -z "$ac_cv_prog_OBJDUMP"; then
13264 ac_ct_OBJDUMP=$OBJDUMP
13265 # Extract the first word of "objdump
", so it can be a program name with args.
13266 set dummy objdump; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13268 $as_echo_n "checking
for $ac_word...
" >&6; }
13269 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13270 $as_echo_n "(cached
) " >&6
13272 if test -n "$ac_ct_OBJDUMP"; then
13273 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13282 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13292 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13293 if test -n "$ac_ct_OBJDUMP"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13295 $as_echo "$ac_ct_OBJDUMP" >&6; }
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13298 $as_echo "no
" >&6; }
13301 if test "x
$ac_ct_OBJDUMP" = x; then
13304 case $cross_compiling:$ac_tool_warned in
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13307 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13308 ac_tool_warned=yes ;;
13310 OBJDUMP=$ac_ct_OBJDUMP
13313 OBJDUMP="$ac_cv_prog_OBJDUMP"
13316 test -z "$OBJDUMP" && OBJDUMP=objdump
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13327 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13328 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13329 $as_echo_n "(cached
) " >&6
13331 lt_cv_file_magic_cmd='$MAGIC_CMD'
13332 lt_cv_file_magic_test_file=
13333 lt_cv_deplibs_check_method='unknown'
13334 # Need to set the preceding variable on all platforms that support
13335 # interlibrary dependencies.
13336 # 'none' -- dependencies not supported.
13337 # `unknown' -- same as none, but documents that we really don't know.
13338 # 'pass_all' -- all dependencies passed with no checks.
13339 # 'test_compile' -- check by making test program.
13340 # 'file_magic [[regex]]' -- check by looking for files in library path
13341 # which responds to the $file_magic_cmd with a given extended regex.
13342 # If you have `file' or equivalent on your system and you're not sure
13343 # whether `pass_all' will *always* work, you probably want this one.
13347 lt_cv_deplibs_check_method=pass_all
13351 lt_cv_deplibs_check_method=pass_all
13355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13356 lt_cv_file_magic_cmd='/usr/bin/file -L'
13357 lt_cv_file_magic_test_file=/shlib/libc.so
13361 # func_win32_libid is a shell function defined in ltmain.sh
13362 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13363 lt_cv_file_magic_cmd='func_win32_libid'
13367 # Base MSYS/MinGW do not provide the 'file' command needed by
13368 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13369 # unless we find 'file', for example because we are cross-compiling.
13370 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13371 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13372 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13373 lt_cv_file_magic_cmd='func_win32_libid'
13375 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13376 lt_cv_file_magic_cmd='$OBJDUMP -f'
13381 # use the weaker test based on 'objdump'. See mingw*.
13382 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13383 lt_cv_file_magic_cmd='$OBJDUMP -f'
13386 darwin* | rhapsody*)
13387 lt_cv_deplibs_check_method=pass_all
13390 freebsd* | dragonfly*)
13391 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13394 # Not sure whether the presence of OpenBSD here was a mistake.
13395 # Let's accept both of them until this is cleared up.
13396 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13397 lt_cv_file_magic_cmd=/usr/bin/file
13398 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13402 lt_cv_deplibs_check_method=pass_all
13407 lt_cv_deplibs_check_method=pass_all
13411 lt_cv_deplibs_check_method=pass_all
13414 hpux10.20* | hpux11*)
13415 lt_cv_file_magic_cmd=/usr/bin/file
13418 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13419 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13422 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]'
13423 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13427 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13433 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13437 irix5* | irix6* | nonstopux*)
13439 *-32|*"-32 ") libmagic=32-bit;;
13440 *-n32|*"-n32 ") libmagic=N32;;
13441 *-64|*"-64 ") libmagic=64-bit;;
13442 *) libmagic=never-match;;
13444 lt_cv_deplibs_check_method=pass_all
13447 # This must be Linux ELF.
13448 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13449 lt_cv_deplibs_check_method=pass_all
13453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13462 lt_cv_file_magic_cmd=/usr/bin/file
13463 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13467 lt_cv_deplibs_check_method=pass_all
13471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13478 osf3* | osf4* | osf5*)
13479 lt_cv_deplibs_check_method=pass_all
13483 lt_cv_deplibs_check_method=pass_all
13487 lt_cv_deplibs_check_method=pass_all
13490 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13491 lt_cv_deplibs_check_method=pass_all
13495 case $host_vendor in
13497 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]'
13498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13501 lt_cv_deplibs_check_method=pass_all
13504 lt_cv_file_magic_cmd='/bin/file'
13505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13508 lt_cv_file_magic_cmd='/bin/file'
13509 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13510 lt_cv_file_magic_test_file=/lib/libc.so
13513 lt_cv_deplibs_check_method=pass_all
13516 lt_cv_deplibs_check_method=pass_all
13522 lt_cv_deplibs_check_method=pass_all
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13528 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13529 file_magic_cmd=$lt_cv_file_magic_cmd
13530 deplibs_check_method=$lt_cv_deplibs_check_method
13531 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13544 if test -n "$ac_tool_prefix"; then
13545 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13546 set dummy ${ac_tool_prefix}ar; ac_word=$2
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13548 $as_echo_n "checking
for $ac_word...
" >&6; }
13549 if test "${ac_cv_prog_AR+set}" = set; then :
13550 $as_echo_n "(cached
) " >&6
13552 if test -n "$AR"; then
13553 ac_cv_prog_AR="$AR" # Let the user override the test.
13555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556 for as_dir in $PATH
13559 test -z "$as_dir" && as_dir=.
13560 for ac_exec_ext in '' $ac_executable_extensions; do
13561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13562 ac_cv_prog_AR="${ac_tool_prefix}ar"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13573 if test -n "$AR"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13575 $as_echo "$AR" >&6; }
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13578 $as_echo "no
" >&6; }
13583 if test -z "$ac_cv_prog_AR"; then
13585 # Extract the first word of "ar", so it can be a program name with args.
13586 set dummy ar; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13588 $as_echo_n "checking
for $ac_word...
" >&6; }
13589 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13590 $as_echo_n "(cached
) " >&6
13592 if test -n "$ac_ct_AR"; then
13593 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13602 ac_cv_prog_ac_ct_AR="ar"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13612 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13613 if test -n "$ac_ct_AR"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13615 $as_echo "$ac_ct_AR" >&6; }
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13618 $as_echo "no
" >&6; }
13621 if test "x
$ac_ct_AR" = x; then
13624 case $cross_compiling:$ac_tool_warned in
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13627 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13628 ac_tool_warned=yes ;;
13633 AR="$ac_cv_prog_AR"
13636 test -z "$AR" && AR=ar
13637 test -z "$AR_FLAGS" && AR_FLAGS=cru
13649 if test -n "$ac_tool_prefix"; then
13650 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13651 set dummy ${ac_tool_prefix}strip; ac_word=$2
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13653 $as_echo_n "checking
for $ac_word...
" >&6; }
13654 if test "${ac_cv_prog_STRIP+set}" = set; then :
13655 $as_echo_n "(cached
) " >&6
13657 if test -n "$STRIP"; then
13658 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661 for as_dir in $PATH
13664 test -z "$as_dir" && as_dir=.
13665 for ac_exec_ext in '' $ac_executable_extensions; do
13666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13667 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13668 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13677 STRIP=$ac_cv_prog_STRIP
13678 if test -n "$STRIP"; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13680 $as_echo "$STRIP" >&6; }
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13683 $as_echo "no
" >&6; }
13688 if test -z "$ac_cv_prog_STRIP"; then
13690 # Extract the first word of "strip
", so it can be a program name with args.
13691 set dummy strip; ac_word=$2
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13693 $as_echo_n "checking
for $ac_word...
" >&6; }
13694 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13695 $as_echo_n "(cached
) " >&6
13697 if test -n "$ac_ct_STRIP"; then
13698 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701 for as_dir in $PATH
13704 test -z "$as_dir" && as_dir=.
13705 for ac_exec_ext in '' $ac_executable_extensions; do
13706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13707 ac_cv_prog_ac_ct_STRIP="strip
"
13708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13717 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13718 if test -n "$ac_ct_STRIP"; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13720 $as_echo "$ac_ct_STRIP" >&6; }
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13723 $as_echo "no
" >&6; }
13726 if test "x
$ac_ct_STRIP" = x; then
13729 case $cross_compiling:$ac_tool_warned in
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13732 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13733 ac_tool_warned=yes ;;
13738 STRIP="$ac_cv_prog_STRIP"
13741 test -z "$STRIP" && STRIP=:
13748 if test -n "$ac_tool_prefix"; then
13749 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13750 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13752 $as_echo_n "checking
for $ac_word...
" >&6; }
13753 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13754 $as_echo_n "(cached
) " >&6
13756 if test -n "$RANLIB"; then
13757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760 for as_dir in $PATH
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
13765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13767 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13776 RANLIB=$ac_cv_prog_RANLIB
13777 if test -n "$RANLIB"; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13779 $as_echo "$RANLIB" >&6; }
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13782 $as_echo "no
" >&6; }
13787 if test -z "$ac_cv_prog_RANLIB"; then
13788 ac_ct_RANLIB=$RANLIB
13789 # Extract the first word of "ranlib
", so it can be a program name with args.
13790 set dummy ranlib; ac_word=$2
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13792 $as_echo_n "checking
for $ac_word...
" >&6; }
13793 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13794 $as_echo_n "(cached
) " >&6
13796 if test -n "$ac_ct_RANLIB"; then
13797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800 for as_dir in $PATH
13803 test -z "$as_dir" && as_dir=.
13804 for ac_exec_ext in '' $ac_executable_extensions; do
13805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13806 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13807 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13816 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13817 if test -n "$ac_ct_RANLIB"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13819 $as_echo "$ac_ct_RANLIB" >&6; }
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13822 $as_echo "no
" >&6; }
13825 if test "x
$ac_ct_RANLIB" = x; then
13828 case $cross_compiling:$ac_tool_warned in
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13831 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13832 ac_tool_warned=yes ;;
13834 RANLIB=$ac_ct_RANLIB
13837 RANLIB="$ac_cv_prog_RANLIB"
13840 test -z "$RANLIB" && RANLIB=:
13847 # Determine commands to create old-style static archives.
13848 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13849 old_postinstall_cmds='chmod 644 $oldlib'
13850 old_postuninstall_cmds=
13852 if test -n "$RANLIB"; then
13855 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13858 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13861 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13866 lock_old_archive_extraction=yes ;;
13868 lock_old_archive_extraction=no ;;
13909 # If no C compiler was specified, use CC.
13912 # If no C compiler flags were specified, use CFLAGS.
13913 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13915 # Allow CC to be a program name with arguments.
13919 # Check for command to grab the raw symbol name followed by C symbol from nm.
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13921 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13922 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13923 $as_echo_n "(cached
) " >&6
13926 # These are sane defaults that work on at least a few old systems.
13927 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13929 # Character class describing NM global symbol codes.
13930 symcode='[BCDEGRST]'
13932 # Regexp to match symbols that can be accessed directly from C.
13933 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13935 # Define system-specific variables.
13940 cygwin* | mingw* | pw32* | cegcc*)
13941 symcode='[ABCDGISTW]'
13944 if test "$host_cpu" = ia64; then
13945 symcode='[ABCDEGRST]'
13948 irix* | nonstopux*)
13949 symcode='[BCDEGRST]'
13952 symcode='[BCDEGQRST]'
13963 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13971 # If we're using GNU nm, then use its standard symbol codes.
13972 case `$NM -V 2>&1` in
13973 *GNU* | *'with BFD'*)
13974 symcode='[ABCDGIRSTW]' ;;
13977 # Transform an extracted symbol line into a proper C declaration.
13978 # Some systems (esp. on ia64) link data and code symbols differently,
13979 # so use this general approach.
13980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13982 # Transform an extracted symbol line into symbol name and symbol address
13983 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13984 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'"
13986 # Handle CRLF in mingw tool chain
13990 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13994 # Try without a prefix underscore, then with it.
13995 for ac_symprfx in "" "_
"; do
13997 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13998 symxfrm="\\1 $ac_symprfx\\2 \\2"
14000 # Write the raw and C identifiers.
14001 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14002 # Fake it for dumpbin and say T for any non-static function
14003 # and D for any global variable.
14004 # Also find C++ and __fastcall symbols from MSVC++,
14005 # which start with @ or ?.
14006 lt_cv_sys_global_symbol_pipe="$AWK '"\
14007 " {last_section=section; section=\$ 3};"\
14008 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14009 " \$ 0!~/External *\|/{next};"\
14010 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14011 " {if(hide[section]) next};"\
14012 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14013 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14014 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14015 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14016 " ' prfx
=^
$ac_symprfx"
14018 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14021 # Check to see that the pipe works correctly.
14025 cat > conftest.$ac_ext <<_LT_EOF
14030 void nm_test_func(void);
14031 void nm_test_func(void){}
14035 int main(){nm_test_var='a';nm_test_func();return(0);}
14038 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14039 (eval $ac_compile) 2>&5
14041 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14042 test $ac_status = 0; }; then
14043 # Now try to grab the symbols.
14045 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14046 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14048 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14049 test $ac_status = 0; } && test -s "$nlist"; then
14050 # Try sorting and uniquifying the output.
14051 if sort "$nlist" | uniq > "$nlist"T; then
14052 mv -f "$nlist"T "$nlist"
14057 # Make sure that we snagged all the symbols we need.
14058 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14059 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14060 cat <<_LT_EOF > conftest.$ac_ext
14066 # Now generate the symbol file.
14067 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14069 cat <<_LT_EOF >> conftest.$ac_ext
14071 /* The mapping between symbol names and symbols. */
14076 lt__PROGRAM__LTX_preloaded_symbols[] =
14078 { "@PROGRAM@
", (void *) 0 },
14080 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14081 cat <<\_LT_EOF >> conftest.$ac_ext
14085 /* This works around a problem in FreeBSD linker */
14086 #ifdef FREEBSD_WORKAROUND
14087 static const void *lt_preloaded_setup() {
14088 return lt__PROGRAM__LTX_preloaded_symbols;
14096 # Now try linking the two files.
14097 mv conftest.$ac_objext conftstm.$ac_objext
14098 lt_save_LIBS="$LIBS"
14099 lt_save_CFLAGS="$CFLAGS"
14100 LIBS="conftstm.
$ac_objext"
14101 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14102 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14103 (eval $ac_link) 2>&5
14105 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14106 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14109 LIBS="$lt_save_LIBS"
14110 CFLAGS="$lt_save_CFLAGS"
14112 echo "cannot
find nm_test_func
in $nlist" >&5
14115 echo "cannot
find nm_test_var
in $nlist" >&5
14118 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14121 echo "$progname: failed program was
:" >&5
14122 cat conftest.$ac_ext >&5
14124 rm -rf conftest* conftst*
14126 # Do not use the global_symbol_pipe unless it works.
14127 if test "$pipe_works" = yes; then
14130 lt_cv_sys_global_symbol_pipe=
14136 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14137 lt_cv_sys_global_symbol_to_cdecl=
14139 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14141 $as_echo "failed
" >&6; }
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14144 $as_echo "ok
" >&6; }
14168 # Check whether --enable-libtool-lock was given.
14169 if test "${enable_libtool_lock+set}" = set; then :
14170 enableval=$enable_libtool_lock;
14173 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14175 # Some flags need to be propagated to the compiler or linker for good
14179 # Find out which ABI we are using.
14180 echo 'int i;' > conftest.$ac_ext
14181 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14182 (eval $ac_compile) 2>&5
14184 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14185 test $ac_status = 0; }; then
14186 case `/usr/bin/file conftest.$ac_objext` in
14188 HPUX_IA64_MODE="32"
14191 HPUX_IA64_MODE="64"
14198 # Find out which ABI we are using.
14199 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14200 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14201 (eval $ac_compile) 2>&5
14203 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14204 test $ac_status = 0; }; then
14205 if test "$lt_cv_prog_gnu_ld" = yes; then
14206 case `/usr/bin/file conftest.$ac_objext` in
14208 LD="${LD-ld} -melf32bsmip"
14211 LD="${LD-ld} -melf32bmipn32"
14214 LD="${LD-ld} -melf64bmip"
14218 case `/usr/bin/file conftest.$ac_objext` in
14234 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14235 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14236 # Find out which ABI we are using.
14237 echo 'int i;' > conftest.$ac_ext
14238 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14239 (eval $ac_compile) 2>&5
14241 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14242 test $ac_status = 0; }; then
14243 case `/usr/bin/file conftest.o` in
14246 x86_64-*kfreebsd*-gnu)
14247 LD="${LD-ld} -m elf_i386_fbsd
"
14250 case `/usr/bin/file conftest.o` in
14252 LD="${LD-ld} -m elf32_x86_64
"
14255 LD="${LD-ld} -m elf_i386
"
14259 powerpc64le-*linux*)
14260 LD="${LD-ld} -m elf32lppclinux
"
14263 LD="${LD-ld} -m elf32ppclinux
"
14266 LD="${LD-ld} -m elf_s390
"
14269 LD="${LD-ld} -m elf32_sparc
"
14275 x86_64-*kfreebsd*-gnu)
14276 LD="${LD-ld} -m elf_x86_64_fbsd
"
14279 LD="${LD-ld} -m elf_x86_64
"
14282 LD="${LD-ld} -m elf64lppc
"
14285 LD="${LD-ld} -m elf64ppc
"
14287 s390*-*linux*|s390*-*tpf*)
14288 LD="${LD-ld} -m elf64_s390
"
14291 LD="${LD-ld} -m elf64_sparc
"
14301 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14302 SAVE_CFLAGS="$CFLAGS"
14303 CFLAGS="$CFLAGS -belf"
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14305 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14306 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14307 $as_echo_n "(cached
) " >&6
14310 ac_cpp='$CPP $CPPFLAGS'
14311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14326 if ac_fn_c_try_link "$LINENO"; then :
14327 lt_cv_cc_needs_belf=yes
14329 lt_cv_cc_needs_belf=no
14331 rm -f core conftest.err conftest.$ac_objext \
14332 conftest$ac_exeext conftest.$ac_ext
14334 ac_cpp='$CPP $CPPFLAGS'
14335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14341 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14342 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14343 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14344 CFLAGS="$SAVE_CFLAGS"
14348 # Find out which ABI we are using.
14349 echo 'int i;' > conftest.$ac_ext
14350 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14351 (eval $ac_compile) 2>&5
14353 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14354 test $ac_status = 0; }; then
14355 case `/usr/bin/file conftest.o` in
14357 case $lt_cv_prog_gnu_ld in
14358 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14360 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14372 need_locks="$enable_libtool_lock"
14376 rhapsody* | darwin*)
14377 if test -n "$ac_tool_prefix"; then
14378 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14379 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14381 $as_echo_n "checking
for $ac_word...
" >&6; }
14382 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14383 $as_echo_n "(cached
) " >&6
14385 if test -n "$DSYMUTIL"; then
14386 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14395 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14405 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14406 if test -n "$DSYMUTIL"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14408 $as_echo "$DSYMUTIL" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14411 $as_echo "no
" >&6; }
14416 if test -z "$ac_cv_prog_DSYMUTIL"; then
14417 ac_ct_DSYMUTIL=$DSYMUTIL
14418 # Extract the first word of "dsymutil
", so it can be a program name with args.
14419 set dummy dsymutil; ac_word=$2
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14421 $as_echo_n "checking
for $ac_word...
" >&6; }
14422 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14423 $as_echo_n "(cached
) " >&6
14425 if test -n "$ac_ct_DSYMUTIL"; then
14426 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429 for as_dir in $PATH
14432 test -z "$as_dir" && as_dir=.
14433 for ac_exec_ext in '' $ac_executable_extensions; do
14434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14435 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14445 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14446 if test -n "$ac_ct_DSYMUTIL"; then
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14448 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14451 $as_echo "no
" >&6; }
14454 if test "x
$ac_ct_DSYMUTIL" = x; then
14457 case $cross_compiling:$ac_tool_warned in
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14460 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14461 ac_tool_warned=yes ;;
14463 DSYMUTIL=$ac_ct_DSYMUTIL
14466 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14469 if test -n "$ac_tool_prefix"; then
14470 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14471 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14473 $as_echo_n "checking
for $ac_word...
" >&6; }
14474 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14475 $as_echo_n "(cached
) " >&6
14477 if test -n "$NMEDIT"; then
14478 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14487 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14497 NMEDIT=$ac_cv_prog_NMEDIT
14498 if test -n "$NMEDIT"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14500 $as_echo "$NMEDIT" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14503 $as_echo "no
" >&6; }
14508 if test -z "$ac_cv_prog_NMEDIT"; then
14509 ac_ct_NMEDIT=$NMEDIT
14510 # Extract the first word of "nmedit
", so it can be a program name with args.
14511 set dummy nmedit; ac_word=$2
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14513 $as_echo_n "checking
for $ac_word...
" >&6; }
14514 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14515 $as_echo_n "(cached
) " >&6
14517 if test -n "$ac_ct_NMEDIT"; then
14518 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14524 test -z "$as_dir" && as_dir=.
14525 for ac_exec_ext in '' $ac_executable_extensions; do
14526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14527 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14528 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14537 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14538 if test -n "$ac_ct_NMEDIT"; then
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14540 $as_echo "$ac_ct_NMEDIT" >&6; }
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14543 $as_echo "no
" >&6; }
14546 if test "x
$ac_ct_NMEDIT" = x; then
14549 case $cross_compiling:$ac_tool_warned in
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14552 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14553 ac_tool_warned=yes ;;
14555 NMEDIT=$ac_ct_NMEDIT
14558 NMEDIT="$ac_cv_prog_NMEDIT"
14561 if test -n "$ac_tool_prefix"; then
14562 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14563 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14565 $as_echo_n "checking
for $ac_word...
" >&6; }
14566 if test "${ac_cv_prog_LIPO+set}" = set; then :
14567 $as_echo_n "(cached
) " >&6
14569 if test -n "$LIPO"; then
14570 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14576 test -z "$as_dir" && as_dir=.
14577 for ac_exec_ext in '' $ac_executable_extensions; do
14578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14579 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14580 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14589 LIPO=$ac_cv_prog_LIPO
14590 if test -n "$LIPO"; then
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14592 $as_echo "$LIPO" >&6; }
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14595 $as_echo "no
" >&6; }
14600 if test -z "$ac_cv_prog_LIPO"; then
14602 # Extract the first word of "lipo
", so it can be a program name with args.
14603 set dummy lipo; ac_word=$2
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14605 $as_echo_n "checking
for $ac_word...
" >&6; }
14606 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14607 $as_echo_n "(cached
) " >&6
14609 if test -n "$ac_ct_LIPO"; then
14610 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14613 for as_dir in $PATH
14616 test -z "$as_dir" && as_dir=.
14617 for ac_exec_ext in '' $ac_executable_extensions; do
14618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14619 ac_cv_prog_ac_ct_LIPO="lipo
"
14620 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14629 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14630 if test -n "$ac_ct_LIPO"; then
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14632 $as_echo "$ac_ct_LIPO" >&6; }
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14635 $as_echo "no
" >&6; }
14638 if test "x
$ac_ct_LIPO" = x; then
14641 case $cross_compiling:$ac_tool_warned in
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14644 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14645 ac_tool_warned=yes ;;
14650 LIPO="$ac_cv_prog_LIPO"
14653 if test -n "$ac_tool_prefix"; then
14654 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14655 set dummy ${ac_tool_prefix}otool; ac_word=$2
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14657 $as_echo_n "checking
for $ac_word...
" >&6; }
14658 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14659 $as_echo_n "(cached
) " >&6
14661 if test -n "$OTOOL"; then
14662 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14668 test -z "$as_dir" && as_dir=.
14669 for ac_exec_ext in '' $ac_executable_extensions; do
14670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14671 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14672 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14681 OTOOL=$ac_cv_prog_OTOOL
14682 if test -n "$OTOOL"; then
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14684 $as_echo "$OTOOL" >&6; }
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14687 $as_echo "no
" >&6; }
14692 if test -z "$ac_cv_prog_OTOOL"; then
14694 # Extract the first word of "otool
", so it can be a program name with args.
14695 set dummy otool; ac_word=$2
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14697 $as_echo_n "checking
for $ac_word...
" >&6; }
14698 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14699 $as_echo_n "(cached
) " >&6
14701 if test -n "$ac_ct_OTOOL"; then
14702 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14705 for as_dir in $PATH
14708 test -z "$as_dir" && as_dir=.
14709 for ac_exec_ext in '' $ac_executable_extensions; do
14710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14711 ac_cv_prog_ac_ct_OTOOL="otool
"
14712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14721 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14722 if test -n "$ac_ct_OTOOL"; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14724 $as_echo "$ac_ct_OTOOL" >&6; }
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14727 $as_echo "no
" >&6; }
14730 if test "x
$ac_ct_OTOOL" = x; then
14733 case $cross_compiling:$ac_tool_warned in
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14736 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14737 ac_tool_warned=yes ;;
14742 OTOOL="$ac_cv_prog_OTOOL"
14745 if test -n "$ac_tool_prefix"; then
14746 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14747 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14749 $as_echo_n "checking
for $ac_word...
" >&6; }
14750 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14751 $as_echo_n "(cached
) " >&6
14753 if test -n "$OTOOL64"; then
14754 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757 for as_dir in $PATH
14760 test -z "$as_dir" && as_dir=.
14761 for ac_exec_ext in '' $ac_executable_extensions; do
14762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14763 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14764 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14773 OTOOL64=$ac_cv_prog_OTOOL64
14774 if test -n "$OTOOL64"; then
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14776 $as_echo "$OTOOL64" >&6; }
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14779 $as_echo "no
" >&6; }
14784 if test -z "$ac_cv_prog_OTOOL64"; then
14785 ac_ct_OTOOL64=$OTOOL64
14786 # Extract the first word of "otool64
", so it can be a program name with args.
14787 set dummy otool64; ac_word=$2
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14789 $as_echo_n "checking
for $ac_word...
" >&6; }
14790 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14791 $as_echo_n "(cached
) " >&6
14793 if test -n "$ac_ct_OTOOL64"; then
14794 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in $PATH
14800 test -z "$as_dir" && as_dir=.
14801 for ac_exec_ext in '' $ac_executable_extensions; do
14802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14803 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14804 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14813 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14814 if test -n "$ac_ct_OTOOL64"; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14816 $as_echo "$ac_ct_OTOOL64" >&6; }
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14819 $as_echo "no
" >&6; }
14822 if test "x
$ac_ct_OTOOL64" = x; then
14825 case $cross_compiling:$ac_tool_warned in
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14828 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14829 ac_tool_warned=yes ;;
14831 OTOOL64=$ac_ct_OTOOL64
14834 OTOOL64="$ac_cv_prog_OTOOL64"
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14864 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14865 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14866 $as_echo_n "(cached
) " >&6
14868 lt_cv_apple_cc_single_mod=no
14869 if test -z "${LT_MULTI_MODULE}"; then
14870 # By default we will add the -single_module flag. You can override
14871 # by either setting the environment variable LT_MULTI_MODULE
14872 # non-empty at configure time, or by adding -multi_module to the
14874 rm -rf libconftest.dylib*
14875 echo "int foo
(void
){return 1;}" > conftest.c
14876 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14877 -dynamiclib -Wl,-single_module conftest.c
" >&5
14878 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14879 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14881 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14882 lt_cv_apple_cc_single_mod=yes
14884 cat conftest.err >&5
14886 rm -rf libconftest.dylib*
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14891 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14893 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14894 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14895 $as_echo_n "(cached
) " >&6
14897 lt_cv_ld_exported_symbols_list=no
14898 save_LDFLAGS=$LDFLAGS
14899 echo "_main
" > conftest.sym
14900 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14912 if ac_fn_c_try_link "$LINENO"; then :
14913 lt_cv_ld_exported_symbols_list=yes
14915 lt_cv_ld_exported_symbols_list=no
14917 rm -f core conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
14919 LDFLAGS="$save_LDFLAGS"
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14923 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14925 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14926 if test "${lt_cv_ld_force_load+set}" = set; then :
14927 $as_echo_n "(cached
) " >&6
14929 lt_cv_ld_force_load=no
14930 cat > conftest.c << _LT_EOF
14931 int forced_loaded() { return 2;}
14933 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14934 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14935 echo "$AR cru libconftest.a conftest.o
" >&5
14936 $AR cru libconftest.a conftest.o 2>&5
14937 cat > conftest.c << _LT_EOF
14938 int main() { return 0;}
14940 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14941 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14943 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14944 lt_cv_ld_force_load=yes
14946 cat conftest.err >&5
14948 rm -f conftest.err libconftest.a conftest conftest.c
14949 rm -rf conftest.dSYM
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14953 $as_echo "$lt_cv_ld_force_load" >&6; }
14955 rhapsody* | darwin1.[012])
14956 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14958 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14959 darwin*) # darwin 5.x on
14960 # if running on 10.5 or later, the deployment target defaults
14961 # to the OS version, if on x86, and 10.4, the deployment
14962 # target defaults to 10.4. Don't you love it?
14963 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14964 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14965 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14967 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14969 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14973 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14974 _lt_dar_single_mod='$single_module'
14976 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14977 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14979 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14981 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14982 _lt_dsymutil='~$DSYMUTIL $lib || :'
14990 for ac_header in dlfcn.h
14992 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14993 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14994 cat >>confdefs.h <<_ACEOF
14995 #define HAVE_DLFCN_H 1
15012 enable_win32_dll=no
15015 # Check whether --enable-shared was given.
15016 if test "${enable_shared+set}" = set; then :
15017 enableval=$enable_shared; p=${PACKAGE-default}
15019 yes) enable_shared=yes ;;
15020 no) enable_shared=no ;;
15023 # Look at the argument we got. We use all the common list separators.
15024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15025 for pkg in $enableval; do
15027 if test "X
$pkg" = "X
$p"; then
15046 # Check whether --enable-static was given.
15047 if test "${enable_static+set}" = set; then :
15048 enableval=$enable_static; p=${PACKAGE-default}
15050 yes) enable_static=yes ;;
15051 no) enable_static=no ;;
15054 # Look at the argument we got. We use all the common list separators.
15055 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15056 for pkg in $enableval; do
15058 if test "X
$pkg" = "X
$p"; then
15078 # Check whether --with-pic was given.
15079 if test "${with_pic+set}" = set; then :
15080 withval=$with_pic; pic_mode="$withval"
15086 test -z "$pic_mode" && pic_mode=default
15094 # Check whether --enable-fast-install was given.
15095 if test "${enable_fast_install+set}" = set; then :
15096 enableval=$enable_fast_install; p=${PACKAGE-default}
15098 yes) enable_fast_install=yes ;;
15099 no) enable_fast_install=no ;;
15101 enable_fast_install=no
15102 # Look at the argument we got. We use all the common list separators.
15103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15104 for pkg in $enableval; do
15106 if test "X
$pkg" = "X
$p"; then
15107 enable_fast_install=yes
15114 enable_fast_install=yes
15127 # This can be used to rebuild libtool when needed
15128 LIBTOOL_DEPS="$ltmain"
15130 # Always use our own libtool.
15131 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15158 test -z "$LN_S" && LN_S="ln -s"
15173 if test -n "${ZSH_VERSION+set}" ; then
15174 setopt NO_GLOB_SUBST
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15178 $as_echo_n "checking
for objdir...
" >&6; }
15179 if test "${lt_cv_objdir+set}" = set; then :
15180 $as_echo_n "(cached
) " >&6
15182 rm -f .libs 2>/dev/null
15183 mkdir .libs 2>/dev/null
15184 if test -d .libs; then
15187 # MS-DOS does not allow filenames that begin with a dot.
15190 rmdir .libs 2>/dev/null
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15193 $as_echo "$lt_cv_objdir" >&6; }
15194 objdir=$lt_cv_objdir
15200 cat >>confdefs.h <<_ACEOF
15201 #define LT_OBJDIR "$lt_cv_objdir/"
15209 # AIX sometimes has problems with the GCC collect2 program. For some
15210 # reason, if we set the COLLECT_NAMES environment variable, the problems
15211 # vanish in a puff of smoke.
15212 if test "X
${COLLECT_NAMES+set}" != Xset; then
15214 export COLLECT_NAMES
15219 # Global variables:
15221 can_build_shared=yes
15223 # All known linkers require a `.a' archive for static linking (except MSVC,
15224 # which needs '.lib').
15227 with_gnu_ld="$lt_cv_prog_gnu_ld"
15230 old_CFLAGS="$CFLAGS"
15232 # Set sane defaults for various variables
15233 test -z "$CC" && CC=cc
15234 test -z "$LTCC" && LTCC=$CC
15235 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15236 test -z "$LD" && LD=ld
15237 test -z "$ac_objext" && ac_objext=o
15239 for cc_temp in $compiler""; do
15241 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15242 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15247 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15250 # Only perform the check for file, if the check method requires it
15251 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15252 case $deplibs_check_method in
15254 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15256 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15257 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15258 $as_echo_n "(cached
) " >&6
15262 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15265 lt_save_MAGIC_CMD="$MAGIC_CMD"
15266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15267 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15268 for ac_dir in $ac_dummy; do
15270 test -z "$ac_dir" && ac_dir=.
15271 if test -f $ac_dir/${ac_tool_prefix}file; then
15272 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15273 if test -n "$file_magic_test_file"; then
15274 case $deplibs_check_method in
15276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15279 $EGREP "$file_magic_regex" > /dev/null; then
15284 *** Warning: the command libtool uses to detect shared libraries,
15285 *** $file_magic_cmd, produces output that libtool cannot recognize.
15286 *** The result is that libtool may fail to recognize shared libraries
15287 *** as such. This will affect the creation of libtool libraries that
15288 *** depend on shared libraries, but programs linked with such libtool
15289 *** libraries will work regardless of this problem. Nevertheless, you
15290 *** may want to report the problem to your system manager and/or to
15291 *** bug-libtool@gnu.org
15301 MAGIC_CMD="$lt_save_MAGIC_CMD"
15306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15307 if test -n "$MAGIC_CMD"; then
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15309 $as_echo "$MAGIC_CMD" >&6; }
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15312 $as_echo "no
" >&6; }
15319 if test -z "$lt_cv_path_MAGIC_CMD"; then
15320 if test -n "$ac_tool_prefix"; then
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15322 $as_echo_n "checking
for file...
" >&6; }
15323 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15324 $as_echo_n "(cached
) " >&6
15328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15331 lt_save_MAGIC_CMD="$MAGIC_CMD"
15332 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15333 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15334 for ac_dir in $ac_dummy; do
15336 test -z "$ac_dir" && ac_dir=.
15337 if test -f $ac_dir/file; then
15338 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15339 if test -n "$file_magic_test_file"; then
15340 case $deplibs_check_method in
15342 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15343 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15344 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15345 $EGREP "$file_magic_regex" > /dev/null; then
15350 *** Warning: the command libtool uses to detect shared libraries,
15351 *** $file_magic_cmd, produces output that libtool cannot recognize.
15352 *** The result is that libtool may fail to recognize shared libraries
15353 *** as such. This will affect the creation of libtool libraries that
15354 *** depend on shared libraries, but programs linked with such libtool
15355 *** libraries will work regardless of this problem. Nevertheless, you
15356 *** may want to report the problem to your system manager and/or to
15357 *** bug-libtool@gnu.org
15367 MAGIC_CMD="$lt_save_MAGIC_CMD"
15372 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15373 if test -n "$MAGIC_CMD"; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15375 $as_echo "$MAGIC_CMD" >&6; }
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15378 $as_echo "no
" >&6; }
15391 # Use C for the default configuration in the libtool script
15395 ac_cpp='$CPP $CPPFLAGS'
15396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15401 # Source file extension for C test sources.
15404 # Object file extension for compiled C test sources.
15408 # Code to be used in simple compile tests
15409 lt_simple_compile_test_code="int some_variable
= 0;"
15411 # Code to be used in simple link tests
15412 lt_simple_link_test_code='int main(){return(0);}'
15420 # If no C compiler was specified, use CC.
15423 # If no C compiler flags were specified, use CFLAGS.
15424 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15426 # Allow CC to be a program name with arguments.
15429 # Save the default compiler, since it gets overwritten when the other
15430 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15431 compiler_DEFAULT=$CC
15433 # save warnings/boilerplate of simple test code
15434 ac_outfile=conftest.$ac_objext
15435 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15436 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15437 _lt_compiler_boilerplate=`cat conftest.err`
15440 ac_outfile=conftest.$ac_objext
15441 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15442 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15443 _lt_linker_boilerplate=`cat conftest.err`
15448 ## There is no encapsulation within the following macros, do not change
15449 ## the running order or otherwise move them around unless you know exactly
15450 ## what you are doing...
15451 if test -n "$compiler"; then
15453 lt_prog_compiler_no_builtin_flag=
15455 if test "$GCC" = yes; then
15456 case $cc_basename in
15458 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15460 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15464 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15465 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15466 $as_echo_n "(cached
) " >&6
15468 lt_cv_prog_compiler_rtti_exceptions=no
15469 ac_outfile=conftest.$ac_objext
15470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15471 lt_compiler_flag="-fno-rtti -fno-exceptions"
15472 # Insert the option either (1) after the last *FLAGS variable, or
15473 # (2) before a word containing "conftest.
", or (3) at the end.
15474 # Note that $ac_compile itself does not contain backslashes and begins
15475 # with a dollar sign (not a hyphen), so the echo should work correctly.
15476 # The option is referenced via a variable to avoid confusing sed.
15477 lt_compile=`echo "$ac_compile" | $SED \
15478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15480 -e 's:$: $lt_compiler_flag:'`
15481 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15482 (eval "$lt_compile" 2>conftest.err)
15484 cat conftest.err >&5
15485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15486 if (exit $ac_status) && test -s "$ac_outfile"; then
15487 # The compiler can only warn and ignore the option if not recognized
15488 # So say no if there are warnings other than the usual output.
15489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15492 lt_cv_prog_compiler_rtti_exceptions=yes
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15499 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15501 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15502 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15514 lt_prog_compiler_wl=
15515 lt_prog_compiler_pic=
15516 lt_prog_compiler_static=
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15519 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15521 if test "$GCC" = yes; then
15522 lt_prog_compiler_wl='-Wl,'
15523 lt_prog_compiler_static='-static'
15527 # All AIX code is PIC.
15528 if test "$host_cpu" = ia64; then
15529 # AIX 5 now supports IA64 processor
15530 lt_prog_compiler_static='-Bstatic'
15532 lt_prog_compiler_pic='-fPIC'
15538 # see comment about AmigaOS4 .so support
15539 lt_prog_compiler_pic='-fPIC'
15542 # FIXME: we need at least 68020 code to build shared libraries, but
15543 # adding the `-m68020' flag to GCC prevents building anything better,
15545 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15550 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15551 # PIC is the default for these OSes.
15554 mingw* | cygwin* | pw32* | os2* | cegcc*)
15555 # This hack is so that the source file can tell whether it is being
15556 # built for inclusion in a dll (and should export symbols for example).
15557 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15558 # (--disable-auto-import) libraries
15559 lt_prog_compiler_pic='-DDLL_EXPORT'
15562 darwin* | rhapsody*)
15563 # PIC is the default on this platform
15564 # Common symbols not allowed in MH_DYLIB files
15565 lt_prog_compiler_pic='-fno-common'
15569 # PIC is the default for Haiku.
15570 # The "-static" flag exists, but is broken.
15571 lt_prog_compiler_static=
15575 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15576 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15577 # sets the default TLS model and affects inlining.
15583 lt_prog_compiler_pic='-fPIC'
15589 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15590 # Instead, we relocate shared libraries at runtime.
15594 # Just because we use GCC doesn't mean we suddenly get shared libraries
15595 # on systems that don't support them.
15596 lt_prog_compiler_can_build_shared=no
15601 # QNX uses GNU C++, but need to define -shared option too, otherwise
15602 # it will coredump.
15603 lt_prog_compiler_pic='-fPIC -shared'
15607 if test -d /usr/nec; then
15608 lt_prog_compiler_pic=-Kconform_pic
15613 lt_prog_compiler_pic='-fPIC'
15617 case $cc_basename in
15618 nvcc*) # Cuda Compiler Driver 2.2
15619 lt_prog_compiler_wl='-Xlinker '
15620 lt_prog_compiler_pic='-Xcompiler -fPIC'
15624 # PORTME Check for flag to pass linker flags through the system compiler.
15627 lt_prog_compiler_wl='-Wl,'
15628 if test "$host_cpu" = ia64; then
15629 # AIX 5 now supports IA64 processor
15630 lt_prog_compiler_static='-Bstatic'
15632 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15636 mingw* | cygwin* | pw32* | os2* | cegcc*)
15637 # This hack is so that the source file can tell whether it is being
15638 # built for inclusion in a dll (and should export symbols for example).
15639 lt_prog_compiler_pic='-DDLL_EXPORT'
15642 hpux9* | hpux10* | hpux11*)
15643 lt_prog_compiler_wl='-Wl,'
15644 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15645 # not for PA HP-UX.
15651 lt_prog_compiler_pic='+Z'
15654 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15655 lt_prog_compiler_static='${wl}-a ${wl}archive'
15658 irix5* | irix6* | nonstopux*)
15659 lt_prog_compiler_wl='-Wl,'
15660 # PIC (with -KPIC) is the default.
15661 lt_prog_compiler_static='-non_shared'
15664 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15665 case $cc_basename in
15666 # old Intel for x86_64 which still supported -KPIC.
15668 lt_prog_compiler_wl='-Wl,'
15669 lt_prog_compiler_pic='-KPIC'
15670 lt_prog_compiler_static='-static'
15672 # icc used to be incompatible with GCC.
15673 # ICC 10 doesn't accept -KPIC any more.
15675 lt_prog_compiler_wl='-Wl,'
15676 lt_prog_compiler_pic='-fPIC'
15677 lt_prog_compiler_static='-static'
15679 # Lahey Fortran 8.1.
15681 lt_prog_compiler_wl='-Wl,'
15682 lt_prog_compiler_pic='--shared'
15683 lt_prog_compiler_static='--static'
15685 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15686 # Portland Group compilers (*not* the Pentium gcc compiler,
15687 # which looks to be a dead project)
15688 lt_prog_compiler_wl='-Wl,'
15689 lt_prog_compiler_pic='-fpic'
15690 lt_prog_compiler_static='-Bstatic'
15693 lt_prog_compiler_wl='-Wl,'
15694 # All Alpha code is PIC.
15695 lt_prog_compiler_static='-non_shared'
15697 xl* | bgxl* | bgf* | mpixl*)
15698 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15699 lt_prog_compiler_wl='-Wl,'
15700 lt_prog_compiler_pic='-qpic'
15701 lt_prog_compiler_static='-qstaticlink'
15704 case `$CC -V 2>&1 | sed 5q` in
15705 *Sun\ F* | *Sun*Fortran*)
15706 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15707 lt_prog_compiler_pic='-KPIC'
15708 lt_prog_compiler_static='-Bstatic'
15709 lt_prog_compiler_wl=''
15713 lt_prog_compiler_pic='-KPIC'
15714 lt_prog_compiler_static='-Bstatic'
15715 lt_prog_compiler_wl='-Wl,'
15723 lt_prog_compiler_pic='-KPIC'
15724 lt_prog_compiler_static='-Bstatic'
15728 # QNX uses GNU C++, but need to define -shared option too, otherwise
15729 # it will coredump.
15730 lt_prog_compiler_pic='-fPIC -shared'
15733 osf3* | osf4* | osf5*)
15734 lt_prog_compiler_wl='-Wl,'
15735 # All OSF/1 code is PIC.
15736 lt_prog_compiler_static='-non_shared'
15740 lt_prog_compiler_static='-non_shared'
15744 lt_prog_compiler_pic='-KPIC'
15745 lt_prog_compiler_static='-Bstatic'
15746 case $cc_basename in
15747 f77* | f90* | f95*)
15748 lt_prog_compiler_wl='-Qoption ld ';;
15750 lt_prog_compiler_wl='-Wl,';;
15755 lt_prog_compiler_wl='-Qoption ld '
15756 lt_prog_compiler_pic='-PIC'
15757 lt_prog_compiler_static='-Bstatic'
15760 sysv4 | sysv4.2uw2* | sysv4.3*)
15761 lt_prog_compiler_wl='-Wl,'
15762 lt_prog_compiler_pic='-KPIC'
15763 lt_prog_compiler_static='-Bstatic'
15767 if test -d /usr/nec ;then
15768 lt_prog_compiler_pic='-Kconform_pic'
15769 lt_prog_compiler_static='-Bstatic'
15773 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15774 lt_prog_compiler_wl='-Wl,'
15775 lt_prog_compiler_pic='-KPIC'
15776 lt_prog_compiler_static='-Bstatic'
15780 lt_prog_compiler_wl='-Wl,'
15781 lt_prog_compiler_can_build_shared=no
15785 lt_prog_compiler_pic='-pic'
15786 lt_prog_compiler_static='-Bstatic'
15790 lt_prog_compiler_can_build_shared=no
15796 # For platforms which do not support PIC, -DPIC is meaningless:
15798 lt_prog_compiler_pic=
15801 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15805 $as_echo "$lt_prog_compiler_pic" >&6; }
15813 # Check to make sure the PIC flag actually works.
15815 if test -n "$lt_prog_compiler_pic"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15817 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15818 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15819 $as_echo_n "(cached
) " >&6
15821 lt_cv_prog_compiler_pic_works=no
15822 ac_outfile=conftest.$ac_objext
15823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15824 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15825 # Insert the option either (1) after the last *FLAGS variable, or
15826 # (2) before a word containing "conftest.
", or (3) at the end.
15827 # Note that $ac_compile itself does not contain backslashes and begins
15828 # with a dollar sign (not a hyphen), so the echo should work correctly.
15829 # The option is referenced via a variable to avoid confusing sed.
15830 lt_compile=`echo "$ac_compile" | $SED \
15831 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15832 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15833 -e 's:$: $lt_compiler_flag:'`
15834 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15835 (eval "$lt_compile" 2>conftest.err)
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15839 if (exit $ac_status) && test -s "$ac_outfile"; then
15840 # The compiler can only warn and ignore the option if not recognized
15841 # So say no if there are warnings other than the usual output.
15842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15843 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15844 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15845 lt_cv_prog_compiler_pic_works=yes
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15852 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15854 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15855 case $lt_prog_compiler_pic in
15857 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15860 lt_prog_compiler_pic=
15861 lt_prog_compiler_can_build_shared=no
15872 # Check to make sure the static flag actually works.
15874 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15876 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15877 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15878 $as_echo_n "(cached
) " >&6
15880 lt_cv_prog_compiler_static_works=no
15881 save_LDFLAGS="$LDFLAGS"
15882 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15883 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15884 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15885 # The linker can only warn and ignore the option if not recognized
15886 # So say no if there are warnings
15887 if test -s conftest.err; then
15888 # Append any errors to the config.log.
15889 cat conftest.err 1>&5
15890 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15892 if diff conftest.exp conftest.er2 >/dev/null; then
15893 lt_cv_prog_compiler_static_works=yes
15896 lt_cv_prog_compiler_static_works=yes
15900 LDFLAGS="$save_LDFLAGS"
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15904 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15906 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15909 lt_prog_compiler_static=
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15919 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15920 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15921 $as_echo_n "(cached
) " >&6
15923 lt_cv_prog_compiler_c_o=no
15924 $RM -r conftest 2>/dev/null
15928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15930 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15931 # Insert the option either (1) after the last *FLAGS variable, or
15932 # (2) before a word containing "conftest.
", or (3) at the end.
15933 # Note that $ac_compile itself does not contain backslashes and begins
15934 # with a dollar sign (not a hyphen), so the echo should work correctly.
15935 lt_compile=`echo "$ac_compile" | $SED \
15936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15938 -e 's:$: $lt_compiler_flag:'`
15939 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15940 (eval "$lt_compile" 2>out/conftest.err)
15942 cat out/conftest.err >&5
15943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15946 # The compiler can only warn and ignore the option if not recognized
15947 # So say no if there are warnings
15948 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15951 lt_cv_prog_compiler_c_o=yes
15956 # SGI C++ compiler will create directory out/ii_files/ for
15957 # template instantiation
15958 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15959 $RM out/* && rmdir out
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15966 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15974 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15975 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15976 $as_echo_n "(cached
) " >&6
15978 lt_cv_prog_compiler_c_o=no
15979 $RM -r conftest 2>/dev/null
15983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15985 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15986 # Insert the option either (1) after the last *FLAGS variable, or
15987 # (2) before a word containing "conftest.
", or (3) at the end.
15988 # Note that $ac_compile itself does not contain backslashes and begins
15989 # with a dollar sign (not a hyphen), so the echo should work correctly.
15990 lt_compile=`echo "$ac_compile" | $SED \
15991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15993 -e 's:$: $lt_compiler_flag:'`
15994 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15995 (eval "$lt_compile" 2>out/conftest.err)
15997 cat out/conftest.err >&5
15998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16001 # The compiler can only warn and ignore the option if not recognized
16002 # So say no if there are warnings
16003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16006 lt_cv_prog_compiler_c_o=yes
16011 # SGI C++ compiler will create directory out/ii_files/ for
16012 # template instantiation
16013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16014 $RM out/* && rmdir out
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16021 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16026 hard_links="nottested
"
16027 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16028 # do not overwrite the value of need_locks provided by the user
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16030 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16035 ln conftest.a conftest.b 2>&5 || hard_links=no
16036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16038 $as_echo "$hard_links" >&6; }
16039 if test "$hard_links" = no; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16041 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16054 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16057 allow_undefined_flag=
16058 always_export_symbols=no
16060 archive_expsym_cmds=
16061 compiler_needs_object=no
16062 enable_shared_with_static_runtimes=no
16063 export_dynamic_flag_spec=
16064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16065 hardcode_automatic=no
16067 hardcode_direct_absolute=no
16068 hardcode_libdir_flag_spec=
16069 hardcode_libdir_flag_spec_ld=
16070 hardcode_libdir_separator=
16071 hardcode_minus_L=no
16072 hardcode_shlibpath_var=unsupported
16074 link_all_deplibs=unknown
16076 module_expsym_cmds=
16077 old_archive_from_new_cmds=
16078 old_archive_from_expsyms_cmds=
16079 thread_safe_flag_spec=
16080 whole_archive_flag_spec=
16081 # include_expsyms should be a list of space-separated symbols to be *always*
16082 # included in the symbol list
16084 # exclude_expsyms can be an extended regexp of symbols to exclude
16085 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16086 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16087 # as well as any symbol that contains `d'.
16088 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16089 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16090 # platforms (ab)use it in PIC code, but their linkers get confused if
16091 # the symbol is explicitly referenced. Since portable code cannot
16092 # rely on this symbol name, it's probably fine to never include it in
16093 # preloaded symbol tables.
16094 # Exclude shared library initialization/finalization symbols.
16095 extract_expsyms_cmds=
16098 cygwin* | mingw* | pw32* | cegcc*)
16099 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16100 # When not using gcc, we currently assume that we are using
16101 # Microsoft Visual C++.
16102 if test "$GCC" != yes; then
16107 # we just hope/assume this is gcc and not c89 (= MSVC++)
16117 # On some targets, GNU ld is compatible enough with the native linker
16118 # that we're better off using the native interface for both.
16119 lt_use_gnu_ld_interface=no
16120 if test "$with_gnu_ld" = yes; then
16123 # The AIX port of GNU ld has always aspired to compatibility
16124 # with the native linker. However, as the warning in the GNU ld
16125 # block says, versions before 2.19.5* couldn't really create working
16126 # shared libraries, regardless of the interface used.
16127 case `$LD -v 2>&1` in
16128 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16129 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16130 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16132 lt_use_gnu_ld_interface=yes
16137 lt_use_gnu_ld_interface=yes
16142 if test "$lt_use_gnu_ld_interface" = yes; then
16143 # If archive_cmds runs LD, not CC, wlarc should be empty
16146 # Set some defaults for GNU ld with shared library support. These
16147 # are reset later if shared libraries are not supported. Putting them
16148 # here allows them to be overridden if necessary.
16149 runpath_var=LD_RUN_PATH
16150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16151 export_dynamic_flag_spec='${wl}--export-dynamic'
16152 # ancient GNU ld didn't support --whole-archive et. al.
16153 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16154 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16156 whole_archive_flag_spec=
16158 supports_anon_versioning=no
16159 case `$LD -v 2>&1` in
16160 *GNU\ gold*) supports_anon_versioning=yes ;;
16161 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16162 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16163 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16164 *\ 2.11.*) ;; # other 2.11 versions
16165 *) supports_anon_versioning=yes ;;
16168 # See if GNU ld supports shared libraries.
16171 # On AIX/PPC, the GNU linker is very broken
16172 if test "$host_cpu" != ia64; then
16176 *** Warning: the GNU linker, at least up to release 2.19, is reported
16177 *** to be unable to reliably create shared libraries on AIX.
16178 *** Therefore, libtool is disabling shared libraries support. If you
16179 *** really care for shared libraries, you may want to install binutils
16180 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16181 *** You will then need to restart the configuration process.
16190 # see comment about AmigaOS4 .so support
16191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16192 archive_expsym_cmds=''
16195 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)'
16196 hardcode_libdir_flag_spec
='-L$libdir'
16197 hardcode_minus_L
=yes
16203 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16204 allow_undefined_flag
=unsupported
16205 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16206 # support --undefined. This deserves some investigation. FIXME
16207 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213 cygwin
* | mingw
* | pw32
* | cegcc
*)
16214 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16215 # as there is no search path for DLLs.
16216 hardcode_libdir_flag_spec
='-L$libdir'
16217 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16218 allow_undefined_flag
=unsupported
16219 always_export_symbols
=no
16220 enable_shared_with_static_runtimes
=yes
16221 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16223 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16224 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16225 # If the export-symbols file already is a .def file (1st line
16226 # is EXPORTS), use it as is; otherwise, prepend...
16227 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16228 cp $export_symbols $output_objdir/$soname.def;
16230 echo EXPORTS > $output_objdir/$soname.def;
16231 cat $export_symbols >> $output_objdir/$soname.def;
16233 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16240 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16241 link_all_deplibs
=yes
16246 hardcode_shlibpath_var
=no
16247 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16248 export_dynamic_flag_spec
='${wl}-E'
16249 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16250 # Instead, shared libraries are loaded at an image base (0x10000000 by
16251 # default) and relocated if they conflict, which is a slow very memory
16252 # consuming and fragmenting process. To avoid this, we pick a random,
16253 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16254 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16255 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16256 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'
16259 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16261 if test "$host_os" = linux-dietlibc
; then
16262 case $cc_basename in
16263 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16266 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16267 && test "$tmp_diet" = no
16269 tmp_addflag
=' $pic_flag'
16270 tmp_sharedflag
='-shared'
16271 case $cc_basename,$host_cpu in
16272 pgcc
*) # Portland Group C compiler
16273 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'
16274 tmp_addflag
=' $pic_flag'
16276 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16277 # Portland Group f77 and f90 compilers
16278 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'
16279 tmp_addflag
=' $pic_flag -Mnomain' ;;
16280 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16281 tmp_addflag
=' -i_dynamic' ;;
16282 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16283 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16284 ifc
* | ifort
*) # Intel Fortran compiler
16285 tmp_addflag
=' -nofor_main' ;;
16286 lf95
*) # Lahey Fortran 8.1
16287 whole_archive_flag_spec
=
16288 tmp_sharedflag
='--shared' ;;
16289 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16290 tmp_sharedflag
='-qmkshrobj'
16292 nvcc
*) # Cuda Compiler Driver 2.2
16293 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'
16294 compiler_needs_object
=yes
16297 case `$CC -V 2>&1 | sed 5q` in
16298 *Sun\ C
*) # Sun C 5.9
16299 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'
16300 compiler_needs_object
=yes
16301 tmp_sharedflag
='-G' ;;
16302 *Sun\ F
*) # Sun Fortran 8.3
16303 tmp_sharedflag
='-G' ;;
16305 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16307 if test "x$supports_anon_versioning" = xyes
; then
16308 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16309 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16310 echo "local: *; };" >> $output_objdir/$libname.ver~
16311 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16314 case $cc_basename in
16315 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16316 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16317 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16318 hardcode_libdir_flag_spec
=
16319 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16320 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16321 if test "x$supports_anon_versioning" = xyes
; then
16322 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16324 echo "local: *; };" >> $output_objdir/$libname.ver~
16325 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16335 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16336 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16339 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16340 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16345 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16349 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16350 *** create shared libraries on Solaris systems. Therefore, libtool
16351 *** is disabling shared libraries support. We urge you to upgrade GNU
16352 *** binutils to release 2.9.1 or newer. Another option is to modify
16353 *** your PATH or compiler configuration so that the native linker is
16354 *** used, and then restart.
16357 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16358 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16359 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16365 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16366 case `$LD -v 2>&1` in
16367 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16371 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16372 *** reliably create shared libraries on SCO systems. Therefore, libtool
16373 *** is disabling shared libraries support. We urge you to upgrade GNU
16374 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16375 *** your PATH or compiler configuration so that the native linker is
16376 *** used, and then restart.
16381 # For security reasons, it is highly recommended that you always
16382 # use absolute paths for naming shared libraries, and exclude the
16383 # DT_RUNPATH tag from executables and libraries. But doing so
16384 # requires that you compile everything twice, which is a pain.
16385 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16386 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16387 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16388 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16397 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16399 hardcode_direct
=yes
16400 hardcode_shlibpath_var
=no
16404 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16405 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16406 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16413 if test "$ld_shlibs" = no
; then
16415 hardcode_libdir_flag_spec
=
16416 export_dynamic_flag_spec
=
16417 whole_archive_flag_spec
=
16420 # PORTME fill in a description of your system's linker (not GNU ld)
16423 allow_undefined_flag
=unsupported
16424 always_export_symbols
=yes
16425 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'
16426 # Note: this linker hardcodes the directories in LIBPATH if there
16427 # are no directories specified by -L.
16428 hardcode_minus_L
=yes
16429 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16430 # Neither direct hardcoding nor static linking is supported with a
16432 hardcode_direct
=unsupported
16437 if test "$host_cpu" = ia64
; then
16438 # On IA64, the linker does run time linking by default, so we don't
16439 # have to do anything special.
16440 aix_use_runtimelinking
=no
16441 exp_sym_flag
='-Bexport'
16444 # If we're using GNU nm, then we don't want the "-C" option.
16445 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16446 # Also, AIX nm treats weak defined symbols like other global
16447 # defined symbols, whereas GNU nm marks them as "W".
16448 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16449 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'
16451 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'
16453 aix_use_runtimelinking
=no
16455 # Test if we are trying to use run time linking or normal
16456 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16457 # need to do runtime linking.
16458 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16459 for ld_flag
in $LDFLAGS; do
16460 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16461 aix_use_runtimelinking
=yes
16468 exp_sym_flag
='-bexport'
16469 no_entry_flag
='-bnoentry'
16472 # When large executables or shared objects are built, AIX ld can
16473 # have problems creating the table of contents. If linking a library
16474 # or program results in "error TOC overflow" add -mminimal-toc to
16475 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16476 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16479 hardcode_direct
=yes
16480 hardcode_direct_absolute
=yes
16481 hardcode_libdir_separator
=':'
16482 link_all_deplibs
=yes
16483 file_list_spec
='${wl}-f,'
16485 if test "$GCC" = yes; then
16486 case $host_os in aix4.
[012]|aix4.
[012].
*)
16487 # We only want to do this on AIX 4.2 and lower, the check
16488 # below for broken collect2 doesn't work under 4.3+
16489 collect2name
=`${CC} -print-prog-name=collect2`
16490 if test -f "$collect2name" &&
16491 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16493 # We have reworked collect2
16496 # We have old collect2
16497 hardcode_direct
=unsupported
16498 # It fails to find uninstalled libraries when the uninstalled
16499 # path is not listed in the libpath. Setting hardcode_minus_L
16500 # to unsupported forces relinking
16501 hardcode_minus_L
=yes
16502 hardcode_libdir_flag_spec
='-L$libdir'
16503 hardcode_libdir_separator
=
16507 shared_flag
='-shared'
16508 if test "$aix_use_runtimelinking" = yes; then
16509 shared_flag
="$shared_flag "'${wl}-G'
16513 if test "$host_cpu" = ia64
; then
16514 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16515 # chokes on -Wl,-G. The following line is correct:
16518 if test "$aix_use_runtimelinking" = yes; then
16519 shared_flag
='${wl}-G'
16521 shared_flag
='${wl}-bM:SRE'
16526 export_dynamic_flag_spec
='${wl}-bexpall'
16527 # It seems that -bexpall does not export symbols beginning with
16528 # underscore (_), so it is better to generate a list of symbols to export.
16529 always_export_symbols
=yes
16530 if test "$aix_use_runtimelinking" = yes; then
16531 # Warning - without using the other runtime loading flags (-brtl),
16532 # -berok will link without error, but may produce a broken library.
16533 allow_undefined_flag
='-berok'
16534 # Determine the default libpath from the value encoded in an
16535 # empty executable.
16536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16537 /* end confdefs.h. */
16547 if ac_fn_c_try_link
"$LINENO"; then :
16549 lt_aix_libpath_sed
='
16550 /Import File Strings/,/^$/ {
16556 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16557 # Check for a 64-bit object if we didn't find anything.
16558 if test -z "$aix_libpath"; then
16559 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16562 rm -f core conftest.err conftest.
$ac_objext \
16563 conftest
$ac_exeext conftest.
$ac_ext
16564 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16566 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16567 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"
16569 if test "$host_cpu" = ia64
; then
16570 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16571 allow_undefined_flag
="-z nodefs"
16572 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"
16574 # Determine the default libpath from the value encoded in an
16575 # empty executable.
16576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16577 /* end confdefs.h. */
16587 if ac_fn_c_try_link
"$LINENO"; then :
16589 lt_aix_libpath_sed
='
16590 /Import File Strings/,/^$/ {
16596 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16597 # Check for a 64-bit object if we didn't find anything.
16598 if test -z "$aix_libpath"; then
16599 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16602 rm -f core conftest.err conftest.
$ac_objext \
16603 conftest
$ac_exeext conftest.
$ac_ext
16604 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16606 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16607 # Warning - without using the other run time loading flags,
16608 # -berok will link without error, but may produce a broken library.
16609 no_undefined_flag
=' ${wl}-bernotok'
16610 allow_undefined_flag
=' ${wl}-berok'
16611 if test "$with_gnu_ld" = yes; then
16612 # We only use this code for GNU lds that support --whole-archive.
16613 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16615 # Exported symbols can be pulled into shared objects from archives
16616 whole_archive_flag_spec
='$convenience'
16618 archive_cmds_need_lc
=yes
16619 # This is similar to how AIX traditionally builds its shared libraries.
16620 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'
16628 # see comment about AmigaOS4 .so support
16629 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16630 archive_expsym_cmds
=''
16633 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)'
16634 hardcode_libdir_flag_spec
='-L$libdir'
16635 hardcode_minus_L
=yes
16641 export_dynamic_flag_spec
=-rdynamic
16644 cygwin
* | mingw
* | pw32
* | cegcc
*)
16645 # When not using gcc, we currently assume that we are using
16646 # Microsoft Visual C++.
16647 # hardcode_libdir_flag_spec is actually meaningless, as there is
16648 # no search path for DLLs.
16649 hardcode_libdir_flag_spec
=' '
16650 allow_undefined_flag
=unsupported
16651 # Tell ltmain to make .lib files, not .a files.
16653 # Tell ltmain to make .dll files, not .so files.
16655 # FIXME: Setting linknames here is a bad hack.
16656 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16657 # The linker will automatically build a .lib file if we build a DLL.
16658 old_archive_from_new_cmds
='true'
16659 # FIXME: Should let the user specify the lib program.
16660 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16661 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16662 enable_shared_with_static_runtimes
=yes
16665 darwin
* | rhapsody
*)
16668 archive_cmds_need_lc
=no
16670 hardcode_automatic
=yes
16671 hardcode_shlibpath_var
=unsupported
16672 if test "$lt_cv_ld_force_load" = "yes"; then
16673 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\"`'
16675 whole_archive_flag_spec
=''
16677 link_all_deplibs
=yes
16678 allow_undefined_flag
="$_lt_dar_allow_undefined"
16679 case $cc_basename in
16680 ifort
*) _lt_dar_can_shared
=yes ;;
16681 *) _lt_dar_can_shared
=$GCC ;;
16683 if test "$_lt_dar_can_shared" = "yes"; then
16684 output_verbose_link_cmd
=func_echo_all
16685 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16686 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16687 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}"
16688 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}"
16697 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698 hardcode_libdir_flag_spec
='-L$libdir'
16699 hardcode_shlibpath_var
=no
16702 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16703 # support. Future versions do this automatically, but an explicit c++rt0.o
16704 # does not break anything, and helps significantly (at the cost of a little
16707 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16708 hardcode_libdir_flag_spec
='-R$libdir'
16709 hardcode_direct
=yes
16710 hardcode_shlibpath_var
=no
16713 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16715 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16716 hardcode_direct
=yes
16717 hardcode_minus_L
=yes
16718 hardcode_shlibpath_var
=no
16721 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16722 freebsd
* | dragonfly
*)
16723 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16724 hardcode_libdir_flag_spec
='-R$libdir'
16725 hardcode_direct
=yes
16726 hardcode_shlibpath_var
=no
16730 if test "$GCC" = yes; then
16731 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'
16733 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'
16735 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16736 hardcode_libdir_separator
=:
16737 hardcode_direct
=yes
16739 # hardcode_minus_L: Not really in the search PATH,
16740 # but as the default location of the library.
16741 hardcode_minus_L
=yes
16742 export_dynamic_flag_spec
='${wl}-E'
16746 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16747 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16749 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16751 if test "$with_gnu_ld" = no
; then
16752 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16753 hardcode_libdir_flag_spec_ld
='+b $libdir'
16754 hardcode_libdir_separator
=:
16755 hardcode_direct
=yes
16756 hardcode_direct_absolute
=yes
16757 export_dynamic_flag_spec
='${wl}-E'
16758 # hardcode_minus_L: Not really in the search PATH,
16759 # but as the default location of the library.
16760 hardcode_minus_L
=yes
16765 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16768 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16774 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16780 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16783 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16787 # Older versions of the 11.00 compiler do not understand -b yet
16788 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16790 $as_echo_n "checking if $CC understands -b... " >&6; }
16791 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16792 $as_echo_n "(cached) " >&6
16794 lt_cv_prog_compiler__b
=no
16795 save_LDFLAGS
="$LDFLAGS"
16796 LDFLAGS
="$LDFLAGS -b"
16797 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16798 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16799 # The linker can only warn and ignore the option if not recognized
16800 # So say no if there are warnings
16801 if test -s conftest.err
; then
16802 # Append any errors to the config.log.
16803 cat conftest.err
1>&5
16804 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16805 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16806 if diff conftest.exp conftest.er2
>/dev
/null
; then
16807 lt_cv_prog_compiler__b
=yes
16810 lt_cv_prog_compiler__b
=yes
16814 LDFLAGS
="$save_LDFLAGS"
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16818 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16820 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16821 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16823 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16829 if test "$with_gnu_ld" = no
; then
16830 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16831 hardcode_libdir_separator
=:
16836 hardcode_shlibpath_var
=no
16839 hardcode_direct
=yes
16840 hardcode_direct_absolute
=yes
16841 export_dynamic_flag_spec
='${wl}-E'
16843 # hardcode_minus_L: Not really in the search PATH,
16844 # but as the default location of the library.
16845 hardcode_minus_L
=yes
16851 irix5
* | irix6
* | nonstopux
*)
16852 if test "$GCC" = yes; then
16853 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'
16854 # Try to use the -exported_symbol ld option, if it does not
16855 # work, assume that -exports_file does not work either and
16856 # implicitly export all symbols.
16857 save_LDFLAGS
="$LDFLAGS"
16858 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16860 /* end confdefs.h. */
16863 if ac_fn_c_try_link
"$LINENO"; then :
16864 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'
16867 rm -f core conftest.err conftest.
$ac_objext \
16868 conftest
$ac_exeext conftest.
$ac_ext
16869 LDFLAGS
="$save_LDFLAGS"
16871 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'
16872 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'
16874 archive_cmds_need_lc
='no'
16875 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16876 hardcode_libdir_separator
=:
16878 link_all_deplibs
=yes
16882 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16883 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16885 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16887 hardcode_libdir_flag_spec
='-R$libdir'
16888 hardcode_direct
=yes
16889 hardcode_shlibpath_var
=no
16893 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16894 hardcode_direct
=yes
16895 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16896 hardcode_libdir_separator
=:
16897 hardcode_shlibpath_var
=no
16904 if test -f /usr
/libexec
/ld.so
; then
16905 hardcode_direct
=yes
16906 hardcode_shlibpath_var
=no
16907 hardcode_direct_absolute
=yes
16908 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16909 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16910 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16911 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16912 export_dynamic_flag_spec
='${wl}-E'
16915 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16916 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16917 hardcode_libdir_flag_spec
='-R$libdir'
16920 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16921 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16931 hardcode_libdir_flag_spec
='-L$libdir'
16932 hardcode_minus_L
=yes
16933 allow_undefined_flag
=unsupported
16934 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'
16935 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16939 if test "$GCC" = yes; then
16940 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16941 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'
16943 allow_undefined_flag
=' -expect_unresolved \*'
16944 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'
16946 archive_cmds_need_lc
='no'
16947 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16948 hardcode_libdir_separator
=:
16951 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16952 if test "$GCC" = yes; then
16953 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16954 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'
16955 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16957 allow_undefined_flag
=' -expect_unresolved \*'
16958 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'
16959 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~
16960 $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'
16962 # Both c and cxx compiler support -rpath directly
16963 hardcode_libdir_flag_spec
='-rpath $libdir'
16965 archive_cmds_need_lc
='no'
16966 hardcode_libdir_separator
=:
16970 no_undefined_flag
=' -z defs'
16971 if test "$GCC" = yes; then
16973 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16974 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16975 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16977 case `$CC -V 2>&1` in
16980 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16981 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16986 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16987 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16988 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16992 hardcode_libdir_flag_spec
='-R$libdir'
16993 hardcode_shlibpath_var
=no
16995 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16997 # The compiler driver will combine and reorder linker options,
16998 # but understands `-z linker_flag'. GCC discards it without `$wl',
16999 # but is careful enough not to reorder.
17000 # Supported since Solaris 2.6 (maybe 2.5.1?)
17001 if test "$GCC" = yes; then
17002 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17004 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17008 link_all_deplibs
=yes
17012 if test "x$host_vendor" = xsequent
; then
17013 # Use $CC to link under sequent, because it throws in some extra .o
17014 # files that make .init and .fini sections work.
17015 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17017 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17019 hardcode_libdir_flag_spec
='-L$libdir'
17020 hardcode_direct
=yes
17021 hardcode_minus_L
=yes
17022 hardcode_shlibpath_var
=no
17026 case $host_vendor in
17028 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17029 hardcode_direct
=yes # is this really true???
17032 ## LD is ld it makes a PLAMLIB
17033 ## CC just makes a GrossModule.
17034 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17035 reload_cmds
='$CC -r -o $output$reload_objs'
17039 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17043 runpath_var
='LD_RUN_PATH'
17044 hardcode_shlibpath_var
=no
17048 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17049 hardcode_shlibpath_var
=no
17050 export_dynamic_flag_spec
='-Bexport'
17054 if test -d /usr
/nec
; then
17055 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17056 hardcode_shlibpath_var
=no
17057 runpath_var
=LD_RUN_PATH
17058 hardcode_runpath_var
=yes
17063 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17064 no_undefined_flag
='${wl}-z,text'
17065 archive_cmds_need_lc
=no
17066 hardcode_shlibpath_var
=no
17067 runpath_var
='LD_RUN_PATH'
17069 if test "$GCC" = yes; then
17070 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17071 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17073 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17078 sysv5
* | sco3.2v5
* | sco5v6
*)
17079 # Note: We can NOT use -z defs as we might desire, because we do not
17080 # link with -lc, and that would cause any symbols used from libc to
17081 # always be unresolved, which means just about no library would
17082 # ever link correctly. If we're not using GNU ld we use -z text
17083 # though, which does catch some bad symbols but isn't as heavy-handed
17085 no_undefined_flag
='${wl}-z,text'
17086 allow_undefined_flag
='${wl}-z,nodefs'
17087 archive_cmds_need_lc
=no
17088 hardcode_shlibpath_var
=no
17089 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17090 hardcode_libdir_separator
=':'
17091 link_all_deplibs
=yes
17092 export_dynamic_flag_spec
='${wl}-Bexport'
17093 runpath_var
='LD_RUN_PATH'
17095 if test "$GCC" = yes; then
17096 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17097 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17099 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17100 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17105 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106 hardcode_libdir_flag_spec
='-L$libdir'
17107 hardcode_shlibpath_var
=no
17115 if test x
$host_vendor = xsni
; then
17117 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17118 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17125 $as_echo "$ld_shlibs" >&6; }
17126 test "$ld_shlibs" = no
&& can_build_shared
=no
17128 with_gnu_ld
=$with_gnu_ld
17145 # Do we need to explicitly link libc?
17147 case "x$archive_cmds_need_lc" in
17149 # Assume -lc should be added
17150 archive_cmds_need_lc
=yes
17152 if test "$enable_shared" = yes && test "$GCC" = yes; then
17153 case $archive_cmds in
17155 # FIXME: we may have to deal with multi-command sequences.
17158 # Test whether the compiler implicitly links with -lc since on some
17159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17160 # to ld, don't add -lc before -lgcc.
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17162 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17163 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17164 $as_echo_n "(cached) " >&6
17167 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17170 (eval $ac_compile) 2>&5
17172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17173 test $ac_status = 0; } 2>conftest.err
; then
17176 libobjs
=conftest.
$ac_objext
17178 wl
=$lt_prog_compiler_wl
17179 pic_flag
=$lt_prog_compiler_pic
17185 lt_save_allow_undefined_flag
=$allow_undefined_flag
17186 allow_undefined_flag
=
17187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17188 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17191 test $ac_status = 0; }
17193 lt_cv_archive_cmds_need_lc
=no
17195 lt_cv_archive_cmds_need_lc
=yes
17197 allow_undefined_flag
=$lt_save_allow_undefined_flag
17199 cat conftest.err
1>&5
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17205 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17206 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17370 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17372 if test "$GCC" = yes; then
17374 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17375 *) lt_awk_arg
="/^libraries:/" ;;
17378 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17379 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17381 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17382 case $lt_search_path_spec in
17384 # if the path contains ";" then we assume it to be the separator
17385 # otherwise default to the standard path separator (i.e. ":") - it is
17386 # assumed that no part of a normal pathname contains ";" but that should
17387 # okay in the real world where ";" in dirpaths is itself problematic.
17388 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17391 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17394 # Ok, now we have the path, separated by spaces, we can step through it
17395 # and add multilib dir if necessary.
17396 lt_tmp_lt_search_path_spec
=
17397 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17398 for lt_sys_path
in $lt_search_path_spec; do
17399 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17400 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17402 test -d "$lt_sys_path" && \
17403 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17406 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17407 BEGIN {RS=" "; FS="/|\n";} {
17410 for (lt_i = NF; lt_i > 0; lt_i--) {
17411 if ($lt_i != "" && $lt_i != ".") {
17412 if ($lt_i == "..") {
17415 if (lt_count == 0) {
17416 lt_foo="/" $lt_i lt_foo;
17423 if (lt_foo != "") { lt_freq[lt_foo]++; }
17424 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17426 # AWK program above erroneously prepends '/' to C:/dos/paths
17429 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17430 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17432 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17434 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17436 library_names_spec
=
17437 libname_spec
='lib$name'
17441 postuninstall_cmds
=
17445 shlibpath_overrides_runpath
=unknown
17447 dynamic_linker
="$host_os ld.so"
17448 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17449 need_lib_prefix
=unknown
17450 hardcode_into_libs
=no
17452 # when you set need_version to no, make sure it does not cause -set_version
17453 # flags to be left without arguments
17454 need_version
=unknown
17459 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17460 shlibpath_var
=LIBPATH
17462 # AIX 3 has no versioning support, so we append a major version to the name.
17463 soname_spec
='${libname}${release}${shared_ext}$major'
17470 hardcode_into_libs
=yes
17471 if test "$host_cpu" = ia64
; then
17472 # AIX 5 supports IA64
17473 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17474 shlibpath_var
=LD_LIBRARY_PATH
17476 # With GCC up to 2.95.x, collect2 would create an import file
17477 # for dependence libraries. The import file would start with
17478 # the line `#! .'. This would cause the generated library to
17479 # depend on `.', always an invalid library. This was fixed in
17480 # development snapshots of GCC prior to 3.0.
17482 aix4 | aix4.
[01] | aix4.
[01].
*)
17483 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17485 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17488 can_build_shared
=no
17492 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17493 # soname into executable. Probably we can add versioning support to
17494 # collect2, so additional links can be useful in future.
17495 if test "$aix_use_runtimelinking" = yes; then
17496 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17497 # instead of lib<name>.a to let people know that these are not
17498 # typical AIX shared libraries.
17499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17501 # We preserve .a as extension for shared libraries through AIX4.2
17502 # and later when we are not doing run time linking.
17503 library_names_spec
='${libname}${release}.a $libname.a'
17504 soname_spec
='${libname}${release}${shared_ext}$major'
17506 shlibpath_var
=LIBPATH
17513 # Since July 2007 AmigaOS4 officially supports .so libraries.
17514 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 library_names_spec
='$libname.ixlibrary $libname.a'
17519 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17520 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'
17526 library_names_spec
='${libname}${shared_ext}'
17527 dynamic_linker
="$host_os ld.so"
17528 shlibpath_var
=LIBRARY_PATH
17534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535 soname_spec
='${libname}${release}${shared_ext}$major'
17536 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17537 shlibpath_var
=LD_LIBRARY_PATH
17538 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17539 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17540 # the default ld.so.conf also contains /usr/contrib/lib and
17541 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17542 # libtool to hard-code these into programs
17545 cygwin
* | mingw
* | pw32
* | cegcc
*)
17546 version_type
=windows
17551 case $GCC,$host_os in
17552 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17553 library_names_spec
='$libname.dll.a'
17554 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17555 postinstall_cmds
='base_file=`basename \${file}`~
17556 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17557 dldir=$destdir/`dirname \$dlpath`~
17558 test -d \$dldir || mkdir -p \$dldir~
17559 $install_prog $dir/$dlname \$dldir/$dlname~
17560 chmod a+x \$dldir/$dlname~
17561 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17562 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17564 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17565 dlpath=$dir/\$dldll~
17567 shlibpath_overrides_runpath
=yes
17571 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17572 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17574 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17577 # MinGW DLLs use traditional 'lib' prefix
17578 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17581 # pw32 DLLs use 'pw' prefix rather than 'lib'
17582 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17588 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17591 dynamic_linker
='Win32 ld.exe'
17592 # FIXME: first we should search . and the directory the executable is in
17596 darwin
* | rhapsody
*)
17597 dynamic_linker
="$host_os dyld"
17598 version_type
=darwin
17601 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17602 soname_spec
='${libname}${release}${major}$shared_ext'
17603 shlibpath_overrides_runpath
=yes
17604 shlibpath_var
=DYLD_LIBRARY_PATH
17605 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17607 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17608 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17616 soname_spec
='${libname}${release}${shared_ext}$major'
17617 shlibpath_var
=LD_LIBRARY_PATH
17620 freebsd
* | dragonfly
*)
17621 # DragonFly does not have aout. When/if they implement a new
17622 # versioning mechanism, adjust this.
17623 if test -x /usr
/bin
/objformat
; then
17624 objformat
=`/usr/bin/objformat`
17627 freebsd
[23].
*) objformat
=aout
;;
17628 *) objformat
=elf
;;
17631 version_type
=freebsd-
$objformat
17632 case $version_type in
17634 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17639 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17643 shlibpath_var
=LD_LIBRARY_PATH
17646 shlibpath_overrides_runpath
=yes
17648 freebsd3.
[01]* | freebsdelf3.
[01]*)
17649 shlibpath_overrides_runpath
=yes
17650 hardcode_into_libs
=yes
17652 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17653 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17654 shlibpath_overrides_runpath
=no
17655 hardcode_into_libs
=yes
17657 *) # from 4.6 on, and DragonFly
17658 shlibpath_overrides_runpath
=yes
17659 hardcode_into_libs
=yes
17668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17669 soname_spec
='${libname}${release}${shared_ext}$major'
17670 shlibpath_var
=LD_LIBRARY_PATH
17671 hardcode_into_libs
=yes
17678 dynamic_linker
="$host_os runtime_loader"
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 shlibpath_var
=LIBRARY_PATH
17682 shlibpath_overrides_runpath
=yes
17683 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17684 hardcode_into_libs
=yes
17687 hpux9
* | hpux10
* | hpux11
*)
17688 # Give a soname corresponding to the major version so that dld.sl refuses to
17689 # link against other versions.
17696 hardcode_into_libs
=yes
17697 dynamic_linker
="$host_os dld.so"
17698 shlibpath_var
=LD_LIBRARY_PATH
17699 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701 soname_spec
='${libname}${release}${shared_ext}$major'
17702 if test "X$HPUX_IA64_MODE" = X32
; then
17703 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17705 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17707 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17711 hardcode_into_libs
=yes
17712 dynamic_linker
="$host_os dld.sl"
17713 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17714 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17716 soname_spec
='${libname}${release}${shared_ext}$major'
17717 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17718 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17722 dynamic_linker
="$host_os dld.sl"
17723 shlibpath_var
=SHLIB_PATH
17724 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17726 soname_spec
='${libname}${release}${shared_ext}$major'
17729 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17730 postinstall_cmds
='chmod 555 $lib'
17731 # or fails outright, so override atomically:
17732 install_override_mode
=555
17739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17740 soname_spec
='${libname}${release}${shared_ext}$major'
17741 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17742 shlibpath_var
=LD_LIBRARY_PATH
17743 shlibpath_overrides_runpath
=no
17744 hardcode_into_libs
=yes
17747 irix5
* | irix6
* | nonstopux
*)
17749 nonstopux
*) version_type
=nonstopux
;;
17751 if test "$lt_cv_prog_gnu_ld" = yes; then
17759 soname_spec
='${libname}${release}${shared_ext}$major'
17760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17762 irix5
* | nonstopux
*)
17763 libsuff
= shlibsuff
=
17766 case $LD in # libtool.m4 will add one of these switches to LD
17767 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17768 libsuff
= shlibsuff
= libmagic
=32-bit;;
17769 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17770 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17771 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17772 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17773 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17777 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17778 shlibpath_overrides_runpath
=no
17779 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17780 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17781 hardcode_into_libs
=yes
17784 # No shared lib support for Linux oldld, aout, or coff.
17785 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17789 # This must be Linux ELF.
17790 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17794 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17795 soname_spec
='${libname}${release}${shared_ext}$major'
17796 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17797 shlibpath_var
=LD_LIBRARY_PATH
17798 shlibpath_overrides_runpath
=no
17800 # Some binutils ld are patched to set DT_RUNPATH
17801 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17804 lt_cv_shlibpath_overrides_runpath
=no
17805 save_LDFLAGS
=$LDFLAGS
17806 save_libdir
=$libdir
17807 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17808 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17820 if ac_fn_c_try_link
"$LINENO"; then :
17821 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17822 lt_cv_shlibpath_overrides_runpath
=yes
17825 rm -f core conftest.err conftest.
$ac_objext \
17826 conftest
$ac_exeext conftest.
$ac_ext
17827 LDFLAGS
=$save_LDFLAGS
17828 libdir
=$save_libdir
17832 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17834 # This implies no fast_install, which is unacceptable.
17835 # Some rework will be needed to allow for fast_install
17836 # before this can be enabled.
17837 hardcode_into_libs
=yes
17839 # Append ld.so.conf contents to the search path
17840 if test -f /etc
/ld.so.conf
; then
17841 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' ' '`
17842 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17845 # We used to test for /lib/ld.so.1 and disable shared libraries on
17846 # powerpc, because MkLinux only supported shared libraries with the
17847 # GNU dynamic linker. Since this was broken with cross compilers,
17848 # most powerpc-linux boxes support dynamic linking these days and
17849 # people can always --disable-shared, the test was removed, and we
17850 # assume the GNU/Linux dynamic linker is in use.
17851 dynamic_linker
='GNU/Linux ld.so'
17858 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17859 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17860 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17861 dynamic_linker
='NetBSD (a.out) ld.so'
17863 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17864 soname_spec
='${libname}${release}${shared_ext}$major'
17865 dynamic_linker
='NetBSD ld.elf_so'
17867 shlibpath_var
=LD_LIBRARY_PATH
17868 shlibpath_overrides_runpath
=yes
17869 hardcode_into_libs
=yes
17874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17875 shlibpath_var
=LD_LIBRARY_PATH
17876 shlibpath_overrides_runpath
=yes
17883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17884 soname_spec
='${libname}${release}${shared_ext}$major'
17885 shlibpath_var
=LD_LIBRARY_PATH
17886 shlibpath_overrides_runpath
=no
17887 hardcode_into_libs
=yes
17888 dynamic_linker
='ldqnx.so'
17893 sys_lib_dlsearch_path_spec
="/usr/lib"
17895 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17897 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17898 *) need_version
=no
;;
17900 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17901 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17902 shlibpath_var
=LD_LIBRARY_PATH
17903 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17905 openbsd2.
[89] | openbsd2.
[89].
*)
17906 shlibpath_overrides_runpath
=no
17909 shlibpath_overrides_runpath
=yes
17913 shlibpath_overrides_runpath
=yes
17918 libname_spec
='$name'
17921 library_names_spec
='$libname${shared_ext} $libname.a'
17922 dynamic_linker
='OS/2 ld.exe'
17923 shlibpath_var
=LIBPATH
17926 osf3
* | osf4
* | osf5
*)
17930 soname_spec
='${libname}${release}${shared_ext}$major'
17931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17932 shlibpath_var
=LD_LIBRARY_PATH
17933 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17934 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17946 soname_spec
='${libname}${release}${shared_ext}$major'
17947 shlibpath_var
=LD_LIBRARY_PATH
17948 shlibpath_overrides_runpath
=yes
17949 hardcode_into_libs
=yes
17950 # ldd complains unless libraries are executable
17951 postinstall_cmds
='chmod +x $lib'
17956 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17957 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17958 shlibpath_var
=LD_LIBRARY_PATH
17959 shlibpath_overrides_runpath
=yes
17960 if test "$with_gnu_ld" = yes; then
17968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969 soname_spec
='${libname}${release}${shared_ext}$major'
17970 shlibpath_var
=LD_LIBRARY_PATH
17971 case $host_vendor in
17973 shlibpath_overrides_runpath
=no
17975 runpath_var
=LD_RUN_PATH
17983 shlibpath_overrides_runpath
=no
17984 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17990 if test -d /usr
/nec
;then
17992 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17993 soname_spec
='$libname${shared_ext}.$major'
17994 shlibpath_var
=LD_LIBRARY_PATH
17998 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17999 version_type
=freebsd-elf
18002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18003 soname_spec
='${libname}${release}${shared_ext}$major'
18004 shlibpath_var
=LD_LIBRARY_PATH
18005 shlibpath_overrides_runpath
=yes
18006 hardcode_into_libs
=yes
18007 if test "$with_gnu_ld" = yes; then
18008 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18010 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18013 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18017 sys_lib_dlsearch_path_spec
='/usr/lib'
18021 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18025 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18026 shlibpath_var
=LD_LIBRARY_PATH
18027 shlibpath_overrides_runpath
=no
18028 hardcode_into_libs
=yes
18033 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 soname_spec
='${libname}${release}${shared_ext}$major'
18035 shlibpath_var
=LD_LIBRARY_PATH
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18043 $as_echo "$dynamic_linker" >&6; }
18044 test "$dynamic_linker" = no
&& can_build_shared
=no
18046 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18047 if test "$GCC" = yes; then
18048 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18051 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18052 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18054 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18055 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18150 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18152 if test -n "$hardcode_libdir_flag_spec" ||
18153 test -n "$runpath_var" ||
18154 test "X$hardcode_automatic" = "Xyes" ; then
18156 # We can hardcode non-existent directories.
18157 if test "$hardcode_direct" != no
&&
18158 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18159 # have to relink, otherwise we might link with an installed library
18160 # when we should be linking with a yet-to-be-installed one
18161 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18162 test "$hardcode_minus_L" != no
; then
18163 # Linking always hardcodes the temporary library directory.
18164 hardcode_action
=relink
18166 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18167 hardcode_action
=immediate
18170 # We cannot hardcode anything, or else we can only hardcode existing
18172 hardcode_action
=unsupported
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18175 $as_echo "$hardcode_action" >&6; }
18177 if test "$hardcode_action" = relink ||
18178 test "$inherit_rpath" = yes; then
18179 # Fast installation is not supported
18180 enable_fast_install
=no
18181 elif test "$shlibpath_overrides_runpath" = yes ||
18182 test "$enable_shared" = no
; then
18183 # Fast installation is not necessary
18184 enable_fast_install
=needless
18192 if test "x$enable_dlopen" != xyes
; then
18193 enable_dlopen
=unknown
18194 enable_dlopen_self
=unknown
18195 enable_dlopen_self_static
=unknown
18202 lt_cv_dlopen
="load_add_on"
18204 lt_cv_dlopen_self
=yes
18207 mingw
* | pw32
* | cegcc
*)
18208 lt_cv_dlopen
="LoadLibrary"
18213 lt_cv_dlopen
="dlopen"
18218 # if libdl is installed we need to link against it
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18220 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18221 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18224 ac_check_lib_save_LIBS
=$LIBS
18226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18229 /* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18244 if ac_fn_c_try_link
"$LINENO"; then :
18245 ac_cv_lib_dl_dlopen
=yes
18247 ac_cv_lib_dl_dlopen
=no
18249 rm -f core conftest.err conftest.
$ac_objext \
18250 conftest
$ac_exeext conftest.
$ac_ext
18251 LIBS
=$ac_check_lib_save_LIBS
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18254 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18255 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18256 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18259 lt_cv_dlopen
="dyld"
18261 lt_cv_dlopen_self
=yes
18268 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18269 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18270 lt_cv_dlopen
="shl_load"
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18273 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18274 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18277 ac_check_lib_save_LIBS
=$LIBS
18279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18292 return shl_load ();
18297 if ac_fn_c_try_link
"$LINENO"; then :
18298 ac_cv_lib_dld_shl_load
=yes
18300 ac_cv_lib_dld_shl_load
=no
18302 rm -f core conftest.err conftest.
$ac_objext \
18303 conftest
$ac_exeext conftest.
$ac_ext
18304 LIBS
=$ac_check_lib_save_LIBS
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18307 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18308 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18309 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18311 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18312 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18313 lt_cv_dlopen
="dlopen"
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18316 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18317 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18318 $as_echo_n "(cached) " >&6
18320 ac_check_lib_save_LIBS
=$LIBS
18322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18325 /* Override any GCC internal prototype to avoid an error.
18326 Use char because int might match the return type of a GCC
18327 builtin and then its argument prototype would still apply. */
18340 if ac_fn_c_try_link
"$LINENO"; then :
18341 ac_cv_lib_dl_dlopen
=yes
18343 ac_cv_lib_dl_dlopen
=no
18345 rm -f core conftest.err conftest.
$ac_objext \
18346 conftest
$ac_exeext conftest.
$ac_ext
18347 LIBS
=$ac_check_lib_save_LIBS
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18350 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18351 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18352 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18355 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18356 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18357 $as_echo_n "(cached) " >&6
18359 ac_check_lib_save_LIBS
=$LIBS
18360 LIBS
="-lsvld $LIBS"
18361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18362 /* end confdefs.h. */
18364 /* Override any GCC internal prototype to avoid an error.
18365 Use char because int might match the return type of a GCC
18366 builtin and then its argument prototype would still apply. */
18379 if ac_fn_c_try_link
"$LINENO"; then :
18380 ac_cv_lib_svld_dlopen
=yes
18382 ac_cv_lib_svld_dlopen
=no
18384 rm -f core conftest.err conftest.
$ac_objext \
18385 conftest
$ac_exeext conftest.
$ac_ext
18386 LIBS
=$ac_check_lib_save_LIBS
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18389 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18390 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18391 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18394 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18395 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18396 $as_echo_n "(cached) " >&6
18398 ac_check_lib_save_LIBS
=$LIBS
18400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18403 /* Override any GCC internal prototype to avoid an error.
18404 Use char because int might match the return type of a GCC
18405 builtin and then its argument prototype would still apply. */
18413 return dld_link ();
18418 if ac_fn_c_try_link
"$LINENO"; then :
18419 ac_cv_lib_dld_dld_link
=yes
18421 ac_cv_lib_dld_dld_link
=no
18423 rm -f core conftest.err conftest.
$ac_objext \
18424 conftest
$ac_exeext conftest.
$ac_ext
18425 LIBS
=$ac_check_lib_save_LIBS
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18428 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18429 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18430 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18451 if test "x$lt_cv_dlopen" != xno
; then
18457 case $lt_cv_dlopen in
18459 save_CPPFLAGS
="$CPPFLAGS"
18460 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18462 save_LDFLAGS
="$LDFLAGS"
18463 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18466 LIBS
="$lt_cv_dlopen_libs $LIBS"
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18469 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18470 if test "${lt_cv_dlopen_self+set}" = set; then :
18471 $as_echo_n "(cached) " >&6
18473 if test "$cross_compiling" = yes; then :
18474 lt_cv_dlopen_self
=cross
18476 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18477 lt_status
=$lt_dlunknown
18478 cat > conftest.
$ac_ext <<_LT_EOF
18479 #line 18479 "configure"
18480 #include "confdefs.h"
18489 # define LT_DLGLOBAL RTLD_GLOBAL
18492 # define LT_DLGLOBAL DL_GLOBAL
18494 # define LT_DLGLOBAL 0
18498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18499 find out it does not work in some platform. */
18500 #ifndef LT_DLLAZY_OR_NOW
18502 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18505 # define LT_DLLAZY_OR_NOW DL_LAZY
18508 # define LT_DLLAZY_OR_NOW RTLD_NOW
18511 # define LT_DLLAZY_OR_NOW DL_NOW
18513 # define LT_DLLAZY_OR_NOW 0
18520 /* When -fvisbility=hidden is used, assume the code has been annotated
18521 correspondingly for the symbols needed. */
18522 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18523 void fnord () __attribute__((visibility("default")));
18526 void fnord () { int i=42; }
18529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18530 int status = $lt_dlunknown;
18534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18538 else puts (dlerror ());
18540 /* dlclose (self); */
18548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18549 (eval $ac_link) 2>&5
18551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18552 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18553 (.
/conftest
; exit; ) >&5 2>/dev
/null
18555 case x
$lt_status in
18556 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18557 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18558 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18561 # compilation failed
18562 lt_cv_dlopen_self
=no
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18570 $as_echo "$lt_cv_dlopen_self" >&6; }
18572 if test "x$lt_cv_dlopen_self" = xyes
; then
18573 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18575 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18576 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18577 $as_echo_n "(cached) " >&6
18579 if test "$cross_compiling" = yes; then :
18580 lt_cv_dlopen_self_static
=cross
18582 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18583 lt_status
=$lt_dlunknown
18584 cat > conftest.
$ac_ext <<_LT_EOF
18585 #line 18585 "configure"
18586 #include "confdefs.h"
18595 # define LT_DLGLOBAL RTLD_GLOBAL
18598 # define LT_DLGLOBAL DL_GLOBAL
18600 # define LT_DLGLOBAL 0
18604 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18605 find out it does not work in some platform. */
18606 #ifndef LT_DLLAZY_OR_NOW
18608 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18611 # define LT_DLLAZY_OR_NOW DL_LAZY
18614 # define LT_DLLAZY_OR_NOW RTLD_NOW
18617 # define LT_DLLAZY_OR_NOW DL_NOW
18619 # define LT_DLLAZY_OR_NOW 0
18626 /* When -fvisbility=hidden is used, assume the code has been annotated
18627 correspondingly for the symbols needed. */
18628 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18629 void fnord () __attribute__((visibility("default")));
18632 void fnord () { int i=42; }
18635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18636 int status = $lt_dlunknown;
18640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18643 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18644 else puts (dlerror ());
18646 /* dlclose (self); */
18654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18655 (eval $ac_link) 2>&5
18657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18658 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18659 (.
/conftest
; exit; ) >&5 2>/dev
/null
18661 case x
$lt_status in
18662 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18663 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18664 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18667 # compilation failed
18668 lt_cv_dlopen_self_static
=no
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18676 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18679 CPPFLAGS
="$save_CPPFLAGS"
18680 LDFLAGS
="$save_LDFLAGS"
18685 case $lt_cv_dlopen_self in
18686 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18687 *) enable_dlopen_self
=unknown
;;
18690 case $lt_cv_dlopen_self_static in
18691 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18692 *) enable_dlopen_self_static
=unknown
;;
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18715 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18716 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18717 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18718 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18720 $as_echo "yes" >&6; }
18722 # FIXME - insert some real tests, host_os isn't really good enough
18725 if test -n "$STRIP" ; then
18726 striplib
="$STRIP -x"
18727 old_striplib
="$STRIP -S"
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18729 $as_echo "yes" >&6; }
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18732 $as_echo "no" >&6; }
18736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18737 $as_echo "no" >&6; }
18753 # Report which library types will actually be built
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18755 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18757 $as_echo "$can_build_shared" >&6; }
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18760 $as_echo_n "checking whether to build shared libraries... " >&6; }
18761 test "$can_build_shared" = "no" && enable_shared
=no
18763 # On AIX, shared libraries and static libraries use the same namespace, and
18764 # are all built from PIC.
18767 test "$enable_shared" = yes && enable_static
=no
18768 if test -n "$RANLIB"; then
18769 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18770 postinstall_cmds
='$RANLIB $lib'
18775 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18776 test "$enable_shared" = yes && enable_static
=no
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18781 $as_echo "$enable_shared" >&6; }
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18784 $as_echo_n "checking whether to build static libraries... " >&6; }
18785 # Make sure either enable_shared or enable_static is yes.
18786 test "$enable_shared" = yes || enable_static
=yes
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18788 $as_echo "$enable_static" >&6; }
18795 ac_cpp
='$CXXCPP $CPPFLAGS'
18796 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18797 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18798 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18802 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18803 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18804 (test "X$CXX" != "Xg++"))) ; then
18806 ac_cpp
='$CXXCPP $CPPFLAGS'
18807 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18808 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18809 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18811 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18812 if test -z "$CXXCPP"; then
18813 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18814 $as_echo_n "(cached) " >&6
18816 # Double quotes because CXXCPP needs to be expanded
18817 for CXXCPP
in "$CXX -E" "/lib/cpp"
18819 ac_preproc_ok
=false
18820 for ac_cxx_preproc_warn_flag
in '' yes
18822 # Use a header file that comes with gcc, so configuring glibc
18823 # with a fresh cross-compiler works.
18824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18825 # <limits.h> exists even on freestanding compilers.
18826 # On the NeXT, cc -E runs the code through the compiler's parser,
18827 # not just through cpp. "Syntax error" is here to catch this case.
18828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18829 /* end confdefs.h. */
18831 # include <limits.h>
18833 # include <assert.h>
18837 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18840 # Broken: fails on valid input.
18843 rm -f conftest.err conftest.
$ac_ext
18845 # OK, works on sane cases. Now check whether nonexistent headers
18846 # can be detected and how.
18847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18848 /* end confdefs.h. */
18849 #include <ac_nonexistent.h>
18851 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18852 # Broken: success on invalid input.
18855 # Passes both tests.
18859 rm -f conftest.err conftest.
$ac_ext
18862 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18863 rm -f conftest.err conftest.
$ac_ext
18864 if $ac_preproc_ok; then :
18869 ac_cv_prog_CXXCPP
=$CXXCPP
18872 CXXCPP
=$ac_cv_prog_CXXCPP
18874 ac_cv_prog_CXXCPP
=$CXXCPP
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18877 $as_echo "$CXXCPP" >&6; }
18878 ac_preproc_ok
=false
18879 for ac_cxx_preproc_warn_flag
in '' yes
18881 # Use a header file that comes with gcc, so configuring glibc
18882 # with a fresh cross-compiler works.
18883 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18884 # <limits.h> exists even on freestanding compilers.
18885 # On the NeXT, cc -E runs the code through the compiler's parser,
18886 # not just through cpp. "Syntax error" is here to catch this case.
18887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h. */
18890 # include <limits.h>
18892 # include <assert.h>
18896 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18899 # Broken: fails on valid input.
18902 rm -f conftest.err conftest.
$ac_ext
18904 # OK, works on sane cases. Now check whether nonexistent headers
18905 # can be detected and how.
18906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18907 /* end confdefs.h. */
18908 #include <ac_nonexistent.h>
18910 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18911 # Broken: success on invalid input.
18914 # Passes both tests.
18918 rm -f conftest.err conftest.
$ac_ext
18921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18922 rm -f conftest.err conftest.
$ac_ext
18923 if $ac_preproc_ok; then :
18926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18928 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18929 See \`config.log' for more details." "$LINENO" 5; }
18933 ac_cpp
='$CXXCPP $CPPFLAGS'
18934 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18935 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18939 _lt_caught_CXX_error
=yes
18943 ac_cpp
='$CXXCPP $CPPFLAGS'
18944 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18948 archive_cmds_need_lc_CXX
=no
18949 allow_undefined_flag_CXX
=
18950 always_export_symbols_CXX
=no
18951 archive_expsym_cmds_CXX
=
18952 compiler_needs_object_CXX
=no
18953 export_dynamic_flag_spec_CXX
=
18954 hardcode_direct_CXX
=no
18955 hardcode_direct_absolute_CXX
=no
18956 hardcode_libdir_flag_spec_CXX
=
18957 hardcode_libdir_flag_spec_ld_CXX
=
18958 hardcode_libdir_separator_CXX
=
18959 hardcode_minus_L_CXX
=no
18960 hardcode_shlibpath_var_CXX
=unsupported
18961 hardcode_automatic_CXX
=no
18962 inherit_rpath_CXX
=no
18964 module_expsym_cmds_CXX
=
18965 link_all_deplibs_CXX
=unknown
18966 old_archive_cmds_CXX
=$old_archive_cmds
18967 reload_flag_CXX
=$reload_flag
18968 reload_cmds_CXX
=$reload_cmds
18969 no_undefined_flag_CXX
=
18970 whole_archive_flag_spec_CXX
=
18971 enable_shared_with_static_runtimes_CXX
=no
18973 # Source file extension for C++ test sources.
18976 # Object file extension for compiled C++ test sources.
18980 # No sense in running all these tests if we already determined that
18981 # the CXX compiler isn't working. Some variables (like enable_shared)
18982 # are currently assumed to apply to all compilers on this platform,
18983 # and will be corrupted by setting them based on a non-working compiler.
18984 if test "$_lt_caught_CXX_error" != yes; then
18985 # Code to be used in simple compile tests
18986 lt_simple_compile_test_code
="int some_variable = 0;"
18988 # Code to be used in simple link tests
18989 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18991 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18998 # If no C compiler was specified, use CC.
19001 # If no C compiler flags were specified, use CFLAGS.
19002 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19004 # Allow CC to be a program name with arguments.
19008 # save warnings/boilerplate of simple test code
19009 ac_outfile
=conftest.
$ac_objext
19010 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19011 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19012 _lt_compiler_boilerplate
=`cat conftest.err`
19015 ac_outfile
=conftest.
$ac_objext
19016 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19017 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19018 _lt_linker_boilerplate
=`cat conftest.err`
19022 # Allow CC to be a program name with arguments.
19027 lt_save_with_gnu_ld
=$with_gnu_ld
19028 lt_save_path_LD
=$lt_cv_path_LD
19029 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19030 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19032 $as_unset lt_cv_prog_gnu_ld
19034 if test -n "${lt_cv_path_LDCXX+set}"; then
19035 lt_cv_path_LD
=$lt_cv_path_LDCXX
19037 $as_unset lt_cv_path_LD
19039 test -z "${LDCXX+set}" || LD
=$LDCXX
19043 for cc_temp
in $compiler""; do
19045 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19046 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19051 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19054 if test -n "$compiler"; then
19055 # We don't want -fno-exception when compiling C++ code, so set the
19056 # no_builtin_flag separately
19057 if test "$GXX" = yes; then
19058 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19060 lt_prog_compiler_no_builtin_flag_CXX
=
19063 if test "$GXX" = yes; then
19064 # Set up default GNU C++ configuration
19068 # Check whether --with-gnu-ld was given.
19069 if test "${with_gnu_ld+set}" = set; then :
19070 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19076 if test "$GCC" = yes; then
19077 # Check if gcc -print-prog-name=ld gives a path.
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19079 $as_echo_n "checking for ld used by $CC... " >&6; }
19082 # gcc leaves a trailing carriage return which upsets mingw
19083 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19085 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19088 # Accept absolute paths.
19090 re_direlt
='/[^/][^/]*/\.\./'
19091 # Canonicalize the pathname of ld
19092 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19093 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19094 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19096 test -z "$LD" && LD
="$ac_prog"
19099 # If it fails, then pretend we aren't using GCC.
19103 # If it is relative, then search for the first ld in PATH.
19104 with_gnu_ld
=unknown
19107 elif test "$with_gnu_ld" = yes; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19109 $as_echo_n "checking for GNU ld... " >&6; }
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19112 $as_echo_n "checking for non-GNU ld... " >&6; }
19114 if test "${lt_cv_path_LD+set}" = set; then :
19115 $as_echo_n "(cached) " >&6
19117 if test -z "$LD"; then
19118 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19119 for ac_dir
in $PATH; do
19121 test -z "$ac_dir" && ac_dir
=.
19122 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19123 lt_cv_path_LD
="$ac_dir/$ac_prog"
19124 # Check to see if the program is GNU ld. I'd rather use --version,
19125 # but apparently some variants of GNU ld only accept -v.
19126 # Break only if it was the GNU/non-GNU ld that we prefer.
19127 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19128 *GNU
* |
*'with BFD'*)
19129 test "$with_gnu_ld" != no
&& break
19132 test "$with_gnu_ld" != yes && break
19139 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19143 LD
="$lt_cv_path_LD"
19144 if test -n "$LD"; then
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19146 $as_echo "$LD" >&6; }
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19149 $as_echo "no" >&6; }
19151 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19153 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19154 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19155 $as_echo_n "(cached) " >&6
19157 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19158 case `$LD -v 2>&1 </dev/null` in
19159 *GNU
* |
*'with BFD'*)
19160 lt_cv_prog_gnu_ld
=yes
19163 lt_cv_prog_gnu_ld
=no
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19168 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19169 with_gnu_ld
=$lt_cv_prog_gnu_ld
19177 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19178 # archiving commands below assume that GNU ld is being used.
19179 if test "$with_gnu_ld" = yes; then
19180 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19181 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'
19183 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19184 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19186 # If archive_cmds runs LD, not CC, wlarc should be empty
19187 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19188 # investigate it a little bit more. (MM)
19191 # ancient GNU ld didn't support --whole-archive et. al.
19192 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19193 $GREP 'no-whole-archive' > /dev
/null
; then
19194 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19196 whole_archive_flag_spec_CXX
=
19202 # A generic and very simple default shared library creation
19203 # command for GNU C++ for the case where it uses the native
19204 # linker, instead of GNU ld. If possible, this setting should
19205 # overridden to take advantage of the native linker features on
19206 # the platform it is being used on.
19207 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19210 # Commands to make compiler produce verbose output that lists
19211 # what "hidden" libraries, object files and flags are used when
19212 # linking a shared library.
19213 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19221 # PORTME: fill in a description of your system's C++ link characteristics
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19223 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19227 # FIXME: insert proper C++ library support
19231 if test "$host_cpu" = ia64
; then
19232 # On IA64, the linker does run time linking by default, so we don't
19233 # have to do anything special.
19234 aix_use_runtimelinking
=no
19235 exp_sym_flag
='-Bexport'
19238 aix_use_runtimelinking
=no
19240 # Test if we are trying to use run time linking or normal
19241 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19242 # need to do runtime linking.
19243 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19244 for ld_flag
in $LDFLAGS; do
19247 aix_use_runtimelinking
=yes
19255 exp_sym_flag
='-bexport'
19256 no_entry_flag
='-bnoentry'
19259 # When large executables or shared objects are built, AIX ld can
19260 # have problems creating the table of contents. If linking a library
19261 # or program results in "error TOC overflow" add -mminimal-toc to
19262 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19263 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19265 archive_cmds_CXX
=''
19266 hardcode_direct_CXX
=yes
19267 hardcode_direct_absolute_CXX
=yes
19268 hardcode_libdir_separator_CXX
=':'
19269 link_all_deplibs_CXX
=yes
19270 file_list_spec_CXX
='${wl}-f,'
19272 if test "$GXX" = yes; then
19273 case $host_os in aix4.
[012]|aix4.
[012].
*)
19274 # We only want to do this on AIX 4.2 and lower, the check
19275 # below for broken collect2 doesn't work under 4.3+
19276 collect2name
=`${CC} -print-prog-name=collect2`
19277 if test -f "$collect2name" &&
19278 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19280 # We have reworked collect2
19283 # We have old collect2
19284 hardcode_direct_CXX
=unsupported
19285 # It fails to find uninstalled libraries when the uninstalled
19286 # path is not listed in the libpath. Setting hardcode_minus_L
19287 # to unsupported forces relinking
19288 hardcode_minus_L_CXX
=yes
19289 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19290 hardcode_libdir_separator_CXX
=
19293 shared_flag
='-shared'
19294 if test "$aix_use_runtimelinking" = yes; then
19295 shared_flag
="$shared_flag "'${wl}-G'
19299 if test "$host_cpu" = ia64
; then
19300 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19301 # chokes on -Wl,-G. The following line is correct:
19304 if test "$aix_use_runtimelinking" = yes; then
19305 shared_flag
='${wl}-G'
19307 shared_flag
='${wl}-bM:SRE'
19312 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19313 # It seems that -bexpall does not export symbols beginning with
19314 # underscore (_), so it is better to generate a list of symbols to
19316 always_export_symbols_CXX
=yes
19317 if test "$aix_use_runtimelinking" = yes; then
19318 # Warning - without using the other runtime loading flags (-brtl),
19319 # -berok will link without error, but may produce a broken library.
19320 allow_undefined_flag_CXX
='-berok'
19321 # Determine the default libpath from the value encoded in an empty
19323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h. */
19334 if ac_fn_cxx_try_link
"$LINENO"; then :
19336 lt_aix_libpath_sed
='
19337 /Import File Strings/,/^$/ {
19343 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19344 # Check for a 64-bit object if we didn't find anything.
19345 if test -z "$aix_libpath"; then
19346 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19349 rm -f core conftest.err conftest.
$ac_objext \
19350 conftest
$ac_exeext conftest.
$ac_ext
19351 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19353 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19355 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"
19357 if test "$host_cpu" = ia64
; then
19358 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19359 allow_undefined_flag_CXX
="-z nodefs"
19360 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"
19362 # Determine the default libpath from the value encoded in an
19363 # empty executable.
19364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19365 /* end confdefs.h. */
19375 if ac_fn_cxx_try_link
"$LINENO"; then :
19377 lt_aix_libpath_sed
='
19378 /Import File Strings/,/^$/ {
19384 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19385 # Check for a 64-bit object if we didn't find anything.
19386 if test -z "$aix_libpath"; then
19387 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19390 rm -f core conftest.err conftest.
$ac_objext \
19391 conftest
$ac_exeext conftest.
$ac_ext
19392 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19394 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19395 # Warning - without using the other run time loading flags,
19396 # -berok will link without error, but may produce a broken library.
19397 no_undefined_flag_CXX
=' ${wl}-bernotok'
19398 allow_undefined_flag_CXX
=' ${wl}-berok'
19399 if test "$with_gnu_ld" = yes; then
19400 # We only use this code for GNU lds that support --whole-archive.
19401 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19403 # Exported symbols can be pulled into shared objects from archives
19404 whole_archive_flag_spec_CXX
='$convenience'
19406 archive_cmds_need_lc_CXX
=yes
19407 # This is similar to how AIX traditionally builds its shared
19409 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'
19415 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19416 allow_undefined_flag_CXX
=unsupported
19417 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19418 # support --undefined. This deserves some investigation. FIXME
19419 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19426 case $cc_basename in
19428 # FIXME: insert proper C++ library support
19434 cygwin
* | mingw
* | pw32
* | cegcc
*)
19435 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19436 # as there is no search path for DLLs.
19437 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19438 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19439 allow_undefined_flag_CXX
=unsupported
19440 always_export_symbols_CXX
=no
19441 enable_shared_with_static_runtimes_CXX
=yes
19443 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19444 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'
19445 # If the export-symbols file already is a .def file (1st line
19446 # is EXPORTS), use it as is; otherwise, prepend...
19447 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19448 cp $export_symbols $output_objdir/$soname.def;
19450 echo EXPORTS > $output_objdir/$soname.def;
19451 cat $export_symbols >> $output_objdir/$soname.def;
19453 $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'
19458 darwin
* | rhapsody
*)
19461 archive_cmds_need_lc_CXX
=no
19462 hardcode_direct_CXX
=no
19463 hardcode_automatic_CXX
=yes
19464 hardcode_shlibpath_var_CXX
=unsupported
19465 if test "$lt_cv_ld_force_load" = "yes"; then
19466 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\"`'
19468 whole_archive_flag_spec_CXX
=''
19470 link_all_deplibs_CXX
=yes
19471 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19472 case $cc_basename in
19473 ifort
*) _lt_dar_can_shared
=yes ;;
19474 *) _lt_dar_can_shared
=$GCC ;;
19476 if test "$_lt_dar_can_shared" = "yes"; then
19477 output_verbose_link_cmd
=func_echo_all
19478 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}"
19479 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19480 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}"
19481 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}"
19482 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19483 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}"
19484 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}"
19494 case $cc_basename in
19496 # FIXME: insert proper C++ library support
19500 # Green Hills C++ Compiler
19501 # FIXME: insert proper C++ library support
19505 # FIXME: insert proper C++ library support
19512 # C++ shared libraries reported to be fairly broken before
19518 archive_cmds_need_lc_CXX
=no
19521 freebsd
* | dragonfly
*)
19522 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19531 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19532 link_all_deplibs_CXX
=yes
19536 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19537 hardcode_libdir_separator_CXX
=:
19538 export_dynamic_flag_spec_CXX
='${wl}-E'
19539 hardcode_direct_CXX
=yes
19540 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19541 # but as the default
19542 # location of the library.
19544 case $cc_basename in
19546 # FIXME: insert proper C++ library support
19550 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'
19551 # Commands to make compiler produce verbose output that lists
19552 # what "hidden" libraries, object files and flags are used when
19553 # linking a shared library.
19555 # There doesn't appear to be a way to prevent this compiler from
19556 # explicitly linking system object files so we need to strip them
19557 # from the output so that they don't get included in the library
19559 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"'
19562 if test "$GXX" = yes; then
19563 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'
19565 # FIXME: insert proper C++ library support
19573 if test $with_gnu_ld = no
; then
19574 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19575 hardcode_libdir_separator_CXX
=:
19581 export_dynamic_flag_spec_CXX
='${wl}-E'
19587 hardcode_direct_CXX
=no
19588 hardcode_shlibpath_var_CXX
=no
19591 hardcode_direct_CXX
=yes
19592 hardcode_direct_absolute_CXX
=yes
19593 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19594 # but as the default
19595 # location of the library.
19599 case $cc_basename in
19601 # FIXME: insert proper C++ library support
19607 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19610 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19613 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19616 # Commands to make compiler produce verbose output that lists
19617 # what "hidden" libraries, object files and flags are used when
19618 # linking a shared library.
19620 # There doesn't appear to be a way to prevent this compiler from
19621 # explicitly linking system object files so we need to strip them
19622 # from the output so that they don't get included in the library
19624 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"'
19627 if test "$GXX" = yes; then
19628 if test $with_gnu_ld = no
; then
19631 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19634 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19637 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'
19642 # FIXME: insert proper C++ library support
19650 hardcode_direct_CXX
=no
19651 hardcode_shlibpath_var_CXX
=no
19652 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19653 export_dynamic_flag_spec_CXX
='${wl}-E'
19654 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19655 # Instead, shared libraries are loaded at an image base (0x10000000 by
19656 # default) and relocated if they conflict, which is a slow very memory
19657 # consuming and fragmenting process. To avoid this, we pick a random,
19658 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19659 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19660 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'
19661 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'
19664 case $cc_basename in
19667 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'
19669 # Archives containing C++ object files must be created using
19670 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19671 # necessary to make sure instantiated templates are included
19673 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19676 if test "$GXX" = yes; then
19677 if test "$with_gnu_ld" = no
; then
19678 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'
19680 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'
19683 link_all_deplibs_CXX
=yes
19686 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19687 hardcode_libdir_separator_CXX
=:
19688 inherit_rpath_CXX
=yes
19691 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19692 case $cc_basename in
19694 # Kuck and Associates, Inc. (KAI) C++ Compiler
19696 # KCC will only create a shared library if the output file
19697 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19698 # to its proper name (with version) after linking.
19699 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'
19700 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'
19701 # Commands to make compiler produce verbose output that lists
19702 # what "hidden" libraries, object files and flags are used when
19703 # linking a shared library.
19705 # There doesn't appear to be a way to prevent this compiler from
19706 # explicitly linking system object files so we need to strip them
19707 # from the output so that they don't get included in the library
19709 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"'
19711 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19712 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19714 # Archives containing C++ object files must be created using
19715 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19716 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19721 # version 8.0 and above of icpc choke on multiply defined symbols
19722 # if we add $predep_objects and $postdep_objects, however 7.1 and
19723 # earlier do not add the objects themselves.
19724 case `$CC -V 2>&1` in
19726 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19727 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'
19729 *) # Version 8.0 or newer
19732 ia64
*) tmp_idyn
=' -i_dynamic';;
19734 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19735 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'
19738 archive_cmds_need_lc_CXX
=no
19739 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19740 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19741 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19744 # Portland Group C++ compiler
19746 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19747 prelink_cmds_CXX
='tpldir=Template.dir~
19749 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19750 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19751 old_archive_cmds_CXX
='tpldir=Template.dir~
19753 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19754 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19756 archive_cmds_CXX
='tpldir=Template.dir~
19758 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19759 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19760 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19762 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19763 $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'
19765 *) # Version 6 and above use weak symbols
19766 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19767 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'
19771 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19772 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19773 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'
19777 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19778 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'
19780 runpath_var
=LD_RUN_PATH
19781 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19782 hardcode_libdir_separator_CXX
=:
19784 # Commands to make compiler produce verbose output that lists
19785 # what "hidden" libraries, object files and flags are used when
19786 # linking a shared library.
19788 # There doesn't appear to be a way to prevent this compiler from
19789 # explicitly linking system object files so we need to strip them
19790 # from the output so that they don't get included in the library
19792 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'
19794 xl
* | mpixl
* | bgxl
*)
19795 # IBM XL 8.0 on PPC, with GNU ld
19796 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19797 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19798 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19799 if test "x$supports_anon_versioning" = xyes
; then
19800 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19802 echo "local: *; };" >> $output_objdir/$libname.ver~
19803 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19807 case `$CC -V 2>&1 | sed 5q` in
19810 no_undefined_flag_CXX
=' -zdefs'
19811 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19812 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'
19813 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19814 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'
19815 compiler_needs_object_CXX
=yes
19817 # Not sure whether something based on
19818 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19820 output_verbose_link_cmd
='func_echo_all'
19822 # Archives containing C++ object files must be created using
19823 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19824 # necessary to make sure instantiated templates are included
19826 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19834 # FIXME: insert proper C++ library support
19839 # FIXME: insert proper C++ library support
19844 case $cc_basename in
19846 # FIXME: insert proper C++ library support
19850 # FIXME: insert proper C++ library support
19857 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19858 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19860 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19861 hardcode_direct_CXX
=yes
19862 hardcode_shlibpath_var_CXX
=no
19864 # Workaround some broken pre-1.5 toolchains
19865 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19873 # C++ shared libraries are fairly broken
19878 if test -f /usr
/libexec
/ld.so
; then
19879 hardcode_direct_CXX
=yes
19880 hardcode_shlibpath_var_CXX
=no
19881 hardcode_direct_absolute_CXX
=yes
19882 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19883 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19885 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19886 export_dynamic_flag_spec_CXX
='${wl}-E'
19887 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19889 output_verbose_link_cmd
=func_echo_all
19895 osf3
* | osf4
* | osf5
*)
19896 case $cc_basename in
19898 # Kuck and Associates, Inc. (KAI) C++ Compiler
19900 # KCC will only create a shared library if the output file
19901 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19902 # to its proper name (with version) after linking.
19903 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'
19905 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19906 hardcode_libdir_separator_CXX
=:
19908 # Archives containing C++ object files must be created using
19909 # the KAI C++ compiler.
19911 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19912 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19916 # Rational C++ 2.4.1
19917 # FIXME: insert proper C++ library support
19923 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19924 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'
19925 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19928 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19929 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'
19930 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19931 echo "-hidden">> $lib.exp~
19932 $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~
19934 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19938 hardcode_libdir_separator_CXX
=:
19940 # Commands to make compiler produce verbose output that lists
19941 # what "hidden" libraries, object files and flags are used when
19942 # linking a shared library.
19944 # There doesn't appear to be a way to prevent this compiler from
19945 # explicitly linking system object files so we need to strip them
19946 # from the output so that they don't get included in the library
19948 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"'
19951 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19952 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19955 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'
19958 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'
19962 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19963 hardcode_libdir_separator_CXX
=:
19965 # Commands to make compiler produce verbose output that lists
19966 # what "hidden" libraries, object files and flags are used when
19967 # linking a shared library.
19968 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19971 # FIXME: insert proper C++ library support
19979 # FIXME: insert proper C++ library support
19984 case $cc_basename in
19987 # FIXME: insert proper C++ library support
19992 # FIXME: insert proper C++ library support
19996 # FIXME: insert proper C++ library support
20003 case $cc_basename in
20005 # Sun C++ 4.2, 5.x and Centerline C++
20006 archive_cmds_need_lc_CXX
=yes
20007 no_undefined_flag_CXX
=' -zdefs'
20008 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20009 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20010 $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'
20012 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20013 hardcode_shlibpath_var_CXX
=no
20015 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20017 # The compiler driver will combine and reorder linker options,
20018 # but understands `-z linker_flag'.
20019 # Supported since Solaris 2.6 (maybe 2.5.1?)
20020 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20023 link_all_deplibs_CXX
=yes
20025 output_verbose_link_cmd
='func_echo_all'
20027 # Archives containing C++ object files must be created using
20028 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20029 # necessary to make sure instantiated templates are included
20031 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20034 # Green Hills C++ Compiler
20035 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20037 # The C++ compiler must be used to create the archive.
20038 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20041 # GNU C++ compiler with Solaris linker
20042 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20043 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20044 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20045 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20046 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20047 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20049 # Commands to make compiler produce verbose output that lists
20050 # what "hidden" libraries, object files and flags are used when
20051 # linking a shared library.
20052 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20054 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20056 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20057 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20058 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20060 # Commands to make compiler produce verbose output that lists
20061 # what "hidden" libraries, object files and flags are used when
20062 # linking a shared library.
20063 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20066 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20068 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20070 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20078 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20079 no_undefined_flag_CXX
='${wl}-z,text'
20080 archive_cmds_need_lc_CXX
=no
20081 hardcode_shlibpath_var_CXX
=no
20082 runpath_var
='LD_RUN_PATH'
20084 case $cc_basename in
20086 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20087 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20090 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20091 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20096 sysv5
* | sco3.2v5
* | sco5v6
*)
20097 # Note: We can NOT use -z defs as we might desire, because we do not
20098 # link with -lc, and that would cause any symbols used from libc to
20099 # always be unresolved, which means just about no library would
20100 # ever link correctly. If we're not using GNU ld we use -z text
20101 # though, which does catch some bad symbols but isn't as heavy-handed
20103 no_undefined_flag_CXX
='${wl}-z,text'
20104 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20105 archive_cmds_need_lc_CXX
=no
20106 hardcode_shlibpath_var_CXX
=no
20107 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20108 hardcode_libdir_separator_CXX
=':'
20109 link_all_deplibs_CXX
=yes
20110 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20111 runpath_var
='LD_RUN_PATH'
20113 case $cc_basename in
20115 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20116 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20117 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20118 '"$old_archive_cmds_CXX"
20119 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20120 '"$reload_cmds_CXX"
20123 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20124 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20130 case $cc_basename in
20132 # NonStop-UX NCC 3.20
20133 # FIXME: insert proper C++ library support
20137 # FIXME: insert proper C++ library support
20144 # FIXME: insert proper C++ library support
20149 # FIXME: insert proper C++ library support
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20155 $as_echo "$ld_shlibs_CXX" >&6; }
20156 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20162 ## There is no encapsulation within the following macros, do not change
20163 ## the running order or otherwise move them around unless you know exactly
20164 ## what you are doing...
20165 # Dependencies to place before and after the object being linked:
20166 predep_objects_CXX
=
20167 postdep_objects_CXX
=
20170 compiler_lib_search_path_CXX
=
20172 cat > conftest.
$ac_ext <<_LT_EOF
20176 Foo (void) { a = 0; }
20182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20183 (eval $ac_compile) 2>&5
20185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20186 test $ac_status = 0; }; then
20187 # Parse the compiler output and extract the necessary
20188 # objects, libraries and library flags.
20190 # Sentinel used to keep track of whether or not we are before
20191 # the conftest object file.
20192 pre_test_object_deps_done
=no
20194 for p
in `eval "$output_verbose_link_cmd"`; do
20198 # Some compilers place space between "-{L,R}" and the path.
20199 # Remove the space.
20200 if test $p = "-L" ||
20201 test $p = "-R"; then
20208 if test "$pre_test_object_deps_done" = no
; then
20211 # Internal compiler library paths should come after those
20212 # provided the user. The postdeps already come after the
20213 # user supplied libs so there is no need to process them.
20214 if test -z "$compiler_lib_search_path_CXX"; then
20215 compiler_lib_search_path_CXX
="${prev}${p}"
20217 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20220 # The "-l" case would never come before the object being
20221 # linked, so don't bother handling this case.
20224 if test -z "$postdeps_CXX"; then
20225 postdeps_CXX
="${prev}${p}"
20227 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20233 # This assumes that the test object file only shows up
20234 # once in the compiler output.
20235 if test "$p" = "conftest.$objext"; then
20236 pre_test_object_deps_done
=yes
20240 if test "$pre_test_object_deps_done" = no
; then
20241 if test -z "$predep_objects_CXX"; then
20242 predep_objects_CXX
="$p"
20244 predep_objects_CXX
="$predep_objects_CXX $p"
20247 if test -z "$postdep_objects_CXX"; then
20248 postdep_objects_CXX
="$p"
20250 postdep_objects_CXX
="$postdep_objects_CXX $p"
20255 *) ;; # Ignore the rest.
20263 echo "libtool.m4: error: problem compiling CXX test program"
20266 $RM -f confest.
$objext
20268 # PORTME: override above test on systems where it is broken
20271 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20272 # hack all around it, let's just trust "g++" to DTRT.
20273 predep_objects_CXX
=
20274 postdep_objects_CXX
=
20279 case `$CC -V 2>&1 | sed 5q` in
20283 # The more standards-conforming stlport4 library is
20284 # incompatible with the Cstd library. Avoid specifying
20285 # it if it's in CXXFLAGS. Ignore libCrun as
20286 # -library=stlport4 depends on it.
20287 case " $CXX $CXXFLAGS " in
20288 *" -library=stlport4 "*)
20289 solaris_use_stlport4
=yes
20293 if test "$solaris_use_stlport4" != yes; then
20294 postdeps_CXX
='-library=Cstd -library=Crun'
20301 case $cc_basename in
20303 # The more standards-conforming stlport4 library is
20304 # incompatible with the Cstd library. Avoid specifying
20305 # it if it's in CXXFLAGS. Ignore libCrun as
20306 # -library=stlport4 depends on it.
20307 case " $CXX $CXXFLAGS " in
20308 *" -library=stlport4 "*)
20309 solaris_use_stlport4
=yes
20313 # Adding this requires a known-good setup of shared libraries for
20314 # Sun compiler versions before 5.6, else PIC objects from an old
20315 # archive will be linked into the output, leading to subtle bugs.
20316 if test "$solaris_use_stlport4" != yes; then
20317 postdeps_CXX
='-library=Cstd -library=Crun'
20325 case " $postdeps_CXX " in
20326 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20328 compiler_lib_search_dirs_CXX
=
20329 if test -n "${compiler_lib_search_path_CXX}"; then
20330 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20363 lt_prog_compiler_wl_CXX
=
20364 lt_prog_compiler_pic_CXX
=
20365 lt_prog_compiler_static_CXX
=
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20368 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20370 # C++ specific cases for pic, static, wl, etc.
20371 if test "$GXX" = yes; then
20372 lt_prog_compiler_wl_CXX
='-Wl,'
20373 lt_prog_compiler_static_CXX
='-static'
20377 # All AIX code is PIC.
20378 if test "$host_cpu" = ia64
; then
20379 # AIX 5 now supports IA64 processor
20380 lt_prog_compiler_static_CXX
='-Bstatic'
20382 lt_prog_compiler_pic_CXX
='-fPIC'
20388 # see comment about AmigaOS4 .so support
20389 lt_prog_compiler_pic_CXX
='-fPIC'
20392 # FIXME: we need at least 68020 code to build shared libraries, but
20393 # adding the `-m68020' flag to GCC prevents building anything better,
20395 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20400 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20401 # PIC is the default for these OSes.
20403 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20404 # This hack is so that the source file can tell whether it is being
20405 # built for inclusion in a dll (and should export symbols for example).
20406 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20407 # (--disable-auto-import) libraries
20408 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20410 darwin
* | rhapsody
*)
20411 # PIC is the default on this platform
20412 # Common symbols not allowed in MH_DYLIB files
20413 lt_prog_compiler_pic_CXX
='-fno-common'
20416 # DJGPP does not support shared libraries at all
20417 lt_prog_compiler_pic_CXX
=
20420 # PIC is the default for Haiku.
20421 # The "-static" flag exists, but is broken.
20422 lt_prog_compiler_static_CXX
=
20425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20426 # Instead, we relocate shared libraries at runtime.
20429 if test -d /usr
/nec
; then
20430 lt_prog_compiler_pic_CXX
=-Kconform_pic
20434 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20435 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20436 # sets the default TLS model and affects inlining.
20441 lt_prog_compiler_pic_CXX
='-fPIC'
20446 # QNX uses GNU C++, but need to define -shared option too, otherwise
20447 # it will coredump.
20448 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20451 lt_prog_compiler_pic_CXX
='-fPIC'
20457 # All AIX code is PIC.
20458 if test "$host_cpu" = ia64
; then
20459 # AIX 5 now supports IA64 processor
20460 lt_prog_compiler_static_CXX
='-Bstatic'
20462 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20466 case $cc_basename in
20468 # Green Hills C++ Compiler
20469 # _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"
20474 case $cc_basename in
20476 lt_prog_compiler_pic_CXX
='-KPIC'
20479 # Green Hills C++ Compiler
20480 lt_prog_compiler_pic_CXX
='-pic'
20486 freebsd
* | dragonfly
*)
20487 # FreeBSD uses GNU C++
20489 hpux9
* | hpux10
* | hpux11
*)
20490 case $cc_basename in
20492 lt_prog_compiler_wl_CXX
='-Wl,'
20493 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20494 if test "$host_cpu" != ia64
; then
20495 lt_prog_compiler_pic_CXX
='+Z'
20499 lt_prog_compiler_wl_CXX
='-Wl,'
20500 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20506 lt_prog_compiler_pic_CXX
='+Z'
20515 # This is c89, which is MS Visual C++ (no shared libs)
20516 # Anyone wants to do a port?
20518 irix5
* | irix6
* | nonstopux
*)
20519 case $cc_basename in
20521 lt_prog_compiler_wl_CXX
='-Wl,'
20522 lt_prog_compiler_static_CXX
='-non_shared'
20523 # CC pic flag -KPIC is the default.
20529 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20530 case $cc_basename in
20533 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20534 lt_prog_compiler_pic_CXX
='-fPIC'
20537 # old Intel C++ for x86_64 which still supported -KPIC.
20538 lt_prog_compiler_wl_CXX
='-Wl,'
20539 lt_prog_compiler_pic_CXX
='-KPIC'
20540 lt_prog_compiler_static_CXX
='-static'
20543 # Intel C++, used to be incompatible with GCC.
20544 # ICC 10 doesn't accept -KPIC any more.
20545 lt_prog_compiler_wl_CXX
='-Wl,'
20546 lt_prog_compiler_pic_CXX
='-fPIC'
20547 lt_prog_compiler_static_CXX
='-static'
20550 # Portland Group C++ compiler
20551 lt_prog_compiler_wl_CXX
='-Wl,'
20552 lt_prog_compiler_pic_CXX
='-fpic'
20553 lt_prog_compiler_static_CXX
='-Bstatic'
20557 # Make sure the PIC flag is empty. It appears that all Alpha
20558 # Linux and Compaq Tru64 Unix objects are PIC.
20559 lt_prog_compiler_pic_CXX
=
20560 lt_prog_compiler_static_CXX
='-non_shared'
20562 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20563 # IBM XL 8.0, 9.0 on PPC and BlueGene
20564 lt_prog_compiler_wl_CXX
='-Wl,'
20565 lt_prog_compiler_pic_CXX
='-qpic'
20566 lt_prog_compiler_static_CXX
='-qstaticlink'
20569 case `$CC -V 2>&1 | sed 5q` in
20572 lt_prog_compiler_pic_CXX
='-KPIC'
20573 lt_prog_compiler_static_CXX
='-Bstatic'
20574 lt_prog_compiler_wl_CXX
='-Qoption ld '
20585 case $cc_basename in
20587 lt_prog_compiler_pic_CXX
='-W c,exportall'
20596 # QNX uses GNU C++, but need to define -shared option too, otherwise
20597 # it will coredump.
20598 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20600 osf3
* | osf4
* | osf5
*)
20601 case $cc_basename in
20603 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20606 # Rational C++ 2.4.1
20607 lt_prog_compiler_pic_CXX
='-pic'
20610 # Digital/Compaq C++
20611 lt_prog_compiler_wl_CXX
='-Wl,'
20612 # Make sure the PIC flag is empty. It appears that all Alpha
20613 # Linux and Compaq Tru64 Unix objects are PIC.
20614 lt_prog_compiler_pic_CXX
=
20615 lt_prog_compiler_static_CXX
='-non_shared'
20624 case $cc_basename in
20626 # Sun C++ 4.2, 5.x and Centerline C++
20627 lt_prog_compiler_pic_CXX
='-KPIC'
20628 lt_prog_compiler_static_CXX
='-Bstatic'
20629 lt_prog_compiler_wl_CXX
='-Qoption ld '
20632 # Green Hills C++ Compiler
20633 lt_prog_compiler_pic_CXX
='-PIC'
20640 case $cc_basename in
20643 lt_prog_compiler_pic_CXX
='-pic'
20644 lt_prog_compiler_static_CXX
='-Bstatic'
20648 lt_prog_compiler_pic_CXX
='-pic'
20654 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20655 case $cc_basename in
20657 lt_prog_compiler_wl_CXX
='-Wl,'
20658 lt_prog_compiler_pic_CXX
='-KPIC'
20659 lt_prog_compiler_static_CXX
='-Bstatic'
20664 case $cc_basename in
20666 # NonStop-UX NCC 3.20
20667 lt_prog_compiler_pic_CXX
='-KPIC'
20676 lt_prog_compiler_can_build_shared_CXX
=no
20682 # For platforms which do not support PIC, -DPIC is meaningless:
20684 lt_prog_compiler_pic_CXX
=
20687 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20691 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20696 # Check to make sure the PIC flag actually works.
20698 if test -n "$lt_prog_compiler_pic_CXX"; then
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20700 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20701 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20702 $as_echo_n "(cached) " >&6
20704 lt_cv_prog_compiler_pic_works_CXX
=no
20705 ac_outfile
=conftest.
$ac_objext
20706 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20707 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20708 # Insert the option either (1) after the last *FLAGS variable, or
20709 # (2) before a word containing "conftest.", or (3) at the end.
20710 # Note that $ac_compile itself does not contain backslashes and begins
20711 # with a dollar sign (not a hyphen), so the echo should work correctly.
20712 # The option is referenced via a variable to avoid confusing sed.
20713 lt_compile
=`echo "$ac_compile" | $SED \
20714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20716 -e 's:$: $lt_compiler_flag:'`
20717 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20718 (eval "$lt_compile" 2>conftest.err
)
20720 cat conftest.err
>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 if (exit $ac_status) && test -s "$ac_outfile"; then
20723 # The compiler can only warn and ignore the option if not recognized
20724 # So say no if there are warnings other than the usual output.
20725 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20726 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20727 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20728 lt_cv_prog_compiler_pic_works_CXX
=yes
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20735 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20737 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20738 case $lt_prog_compiler_pic_CXX in
20740 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20743 lt_prog_compiler_pic_CXX
=
20744 lt_prog_compiler_can_build_shared_CXX
=no
20752 # Check to make sure the static flag actually works.
20754 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20756 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20757 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20758 $as_echo_n "(cached) " >&6
20760 lt_cv_prog_compiler_static_works_CXX
=no
20761 save_LDFLAGS
="$LDFLAGS"
20762 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20763 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20764 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20765 # The linker can only warn and ignore the option if not recognized
20766 # So say no if there are warnings
20767 if test -s conftest.err
; then
20768 # Append any errors to the config.log.
20769 cat conftest.err
1>&5
20770 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20771 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20772 if diff conftest.exp conftest.er2
>/dev
/null
; then
20773 lt_cv_prog_compiler_static_works_CXX
=yes
20776 lt_cv_prog_compiler_static_works_CXX
=yes
20780 LDFLAGS
="$save_LDFLAGS"
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20784 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20786 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20789 lt_prog_compiler_static_CXX
=
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20796 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20797 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20798 $as_echo_n "(cached) " >&6
20800 lt_cv_prog_compiler_c_o_CXX
=no
20801 $RM -r conftest
2>/dev
/null
20805 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20807 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20808 # Insert the option either (1) after the last *FLAGS variable, or
20809 # (2) before a word containing "conftest.", or (3) at the end.
20810 # Note that $ac_compile itself does not contain backslashes and begins
20811 # with a dollar sign (not a hyphen), so the echo should work correctly.
20812 lt_compile
=`echo "$ac_compile" | $SED \
20813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20815 -e 's:$: $lt_compiler_flag:'`
20816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20817 (eval "$lt_compile" 2>out
/conftest.err
)
20819 cat out
/conftest.err
>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20823 # The compiler can only warn and ignore the option if not recognized
20824 # So say no if there are warnings
20825 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20826 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20827 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20828 lt_cv_prog_compiler_c_o_CXX
=yes
20833 # SGI C++ compiler will create directory out/ii_files/ for
20834 # template instantiation
20835 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20836 $RM out
/* && rmdir out
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20843 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20848 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20849 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20850 $as_echo_n "(cached) " >&6
20852 lt_cv_prog_compiler_c_o_CXX
=no
20853 $RM -r conftest
2>/dev
/null
20857 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20859 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20860 # Insert the option either (1) after the last *FLAGS variable, or
20861 # (2) before a word containing "conftest.", or (3) at the end.
20862 # Note that $ac_compile itself does not contain backslashes and begins
20863 # with a dollar sign (not a hyphen), so the echo should work correctly.
20864 lt_compile
=`echo "$ac_compile" | $SED \
20865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20867 -e 's:$: $lt_compiler_flag:'`
20868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20869 (eval "$lt_compile" 2>out
/conftest.err
)
20871 cat out
/conftest.err
>&5
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20875 # The compiler can only warn and ignore the option if not recognized
20876 # So say no if there are warnings
20877 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20878 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20879 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20880 lt_cv_prog_compiler_c_o_CXX
=yes
20885 # SGI C++ compiler will create directory out/ii_files/ for
20886 # template instantiation
20887 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20888 $RM out
/* && rmdir out
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20895 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20900 hard_links
="nottested"
20901 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20902 # do not overwrite the value of need_locks provided by the user
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20904 $as_echo_n "checking if we can lock with hard links... " >&6; }
20907 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20909 ln conftest.a conftest.b
2>&5 || hard_links
=no
20910 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20912 $as_echo "$hard_links" >&6; }
20913 if test "$hard_links" = no
; then
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20915 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20927 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20930 # If we're using GNU nm, then we don't want the "-C" option.
20931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20932 # Also, AIX nm treats weak defined symbols like other global defined
20933 # symbols, whereas GNU nm marks them as "W".
20934 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20935 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'
20937 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'
20941 export_symbols_cmds_CXX
="$ltdll_cmds"
20943 cygwin
* | mingw
* | cegcc
*)
20944 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'
20947 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20950 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20953 $as_echo "$ld_shlibs_CXX" >&6; }
20954 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20956 with_gnu_ld_CXX
=$with_gnu_ld
20964 # Do we need to explicitly link libc?
20966 case "x$archive_cmds_need_lc_CXX" in
20968 # Assume -lc should be added
20969 archive_cmds_need_lc_CXX
=yes
20971 if test "$enable_shared" = yes && test "$GCC" = yes; then
20972 case $archive_cmds_CXX in
20974 # FIXME: we may have to deal with multi-command sequences.
20977 # Test whether the compiler implicitly links with -lc since on some
20978 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20979 # to ld, don't add -lc before -lgcc.
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20981 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20982 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20983 $as_echo_n "(cached) " >&6
20986 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20989 (eval $ac_compile) 2>&5
20991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20992 test $ac_status = 0; } 2>conftest.err
; then
20995 libobjs
=conftest.
$ac_objext
20997 wl
=$lt_prog_compiler_wl_CXX
20998 pic_flag
=$lt_prog_compiler_pic_CXX
21004 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21005 allow_undefined_flag_CXX
=
21006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21007 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21010 test $ac_status = 0; }
21012 lt_cv_archive_cmds_need_lc_CXX
=no
21014 lt_cv_archive_cmds_need_lc_CXX
=yes
21016 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21018 cat conftest.err
1>&5
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21024 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21025 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21096 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21098 library_names_spec
=
21099 libname_spec
='lib$name'
21103 postuninstall_cmds
=
21107 shlibpath_overrides_runpath
=unknown
21109 dynamic_linker
="$host_os ld.so"
21110 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21111 need_lib_prefix
=unknown
21112 hardcode_into_libs
=no
21114 # when you set need_version to no, make sure it does not cause -set_version
21115 # flags to be left without arguments
21116 need_version
=unknown
21121 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21122 shlibpath_var
=LIBPATH
21124 # AIX 3 has no versioning support, so we append a major version to the name.
21125 soname_spec
='${libname}${release}${shared_ext}$major'
21132 hardcode_into_libs
=yes
21133 if test "$host_cpu" = ia64
; then
21134 # AIX 5 supports IA64
21135 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21136 shlibpath_var
=LD_LIBRARY_PATH
21138 # With GCC up to 2.95.x, collect2 would create an import file
21139 # for dependence libraries. The import file would start with
21140 # the line `#! .'. This would cause the generated library to
21141 # depend on `.', always an invalid library. This was fixed in
21142 # development snapshots of GCC prior to 3.0.
21144 aix4 | aix4.
[01] | aix4.
[01].
*)
21145 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21147 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21150 can_build_shared
=no
21154 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21155 # soname into executable. Probably we can add versioning support to
21156 # collect2, so additional links can be useful in future.
21157 if test "$aix_use_runtimelinking" = yes; then
21158 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21159 # instead of lib<name>.a to let people know that these are not
21160 # typical AIX shared libraries.
21161 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21163 # We preserve .a as extension for shared libraries through AIX4.2
21164 # and later when we are not doing run time linking.
21165 library_names_spec
='${libname}${release}.a $libname.a'
21166 soname_spec
='${libname}${release}${shared_ext}$major'
21168 shlibpath_var
=LIBPATH
21175 # Since July 2007 AmigaOS4 officially supports .so libraries.
21176 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21180 library_names_spec
='$libname.ixlibrary $libname.a'
21181 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21182 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'
21188 library_names_spec
='${libname}${shared_ext}'
21189 dynamic_linker
="$host_os ld.so"
21190 shlibpath_var
=LIBRARY_PATH
21196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21197 soname_spec
='${libname}${release}${shared_ext}$major'
21198 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21199 shlibpath_var
=LD_LIBRARY_PATH
21200 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21201 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21202 # the default ld.so.conf also contains /usr/contrib/lib and
21203 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21204 # libtool to hard-code these into programs
21207 cygwin
* | mingw
* | pw32
* | cegcc
*)
21208 version_type
=windows
21213 case $GCC,$host_os in
21214 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21215 library_names_spec
='$libname.dll.a'
21216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21217 postinstall_cmds
='base_file=`basename \${file}`~
21218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21219 dldir=$destdir/`dirname \$dlpath`~
21220 test -d \$dldir || mkdir -p \$dldir~
21221 $install_prog $dir/$dlname \$dldir/$dlname~
21222 chmod a+x \$dldir/$dlname~
21223 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21224 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21226 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21227 dlpath=$dir/\$dldll~
21229 shlibpath_overrides_runpath
=yes
21233 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21234 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21238 # MinGW DLLs use traditional 'lib' prefix
21239 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21242 # pw32 DLLs use 'pw' prefix rather than 'lib'
21243 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21249 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21252 dynamic_linker
='Win32 ld.exe'
21253 # FIXME: first we should search . and the directory the executable is in
21257 darwin
* | rhapsody
*)
21258 dynamic_linker
="$host_os dyld"
21259 version_type
=darwin
21262 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21263 soname_spec
='${libname}${release}${major}$shared_ext'
21264 shlibpath_overrides_runpath
=yes
21265 shlibpath_var
=DYLD_LIBRARY_PATH
21266 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21268 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21276 soname_spec
='${libname}${release}${shared_ext}$major'
21277 shlibpath_var
=LD_LIBRARY_PATH
21280 freebsd
* | dragonfly
*)
21281 # DragonFly does not have aout. When/if they implement a new
21282 # versioning mechanism, adjust this.
21283 if test -x /usr
/bin
/objformat
; then
21284 objformat
=`/usr/bin/objformat`
21287 freebsd
[23].
*) objformat
=aout
;;
21288 *) objformat
=elf
;;
21291 version_type
=freebsd-
$objformat
21292 case $version_type in
21294 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21299 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21303 shlibpath_var
=LD_LIBRARY_PATH
21306 shlibpath_overrides_runpath
=yes
21308 freebsd3.
[01]* | freebsdelf3.
[01]*)
21309 shlibpath_overrides_runpath
=yes
21310 hardcode_into_libs
=yes
21312 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21313 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21314 shlibpath_overrides_runpath
=no
21315 hardcode_into_libs
=yes
21317 *) # from 4.6 on, and DragonFly
21318 shlibpath_overrides_runpath
=yes
21319 hardcode_into_libs
=yes
21328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21329 soname_spec
='${libname}${release}${shared_ext}$major'
21330 shlibpath_var
=LD_LIBRARY_PATH
21331 hardcode_into_libs
=yes
21338 dynamic_linker
="$host_os runtime_loader"
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 shlibpath_var
=LIBRARY_PATH
21342 shlibpath_overrides_runpath
=yes
21343 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21344 hardcode_into_libs
=yes
21347 hpux9
* | hpux10
* | hpux11
*)
21348 # Give a soname corresponding to the major version so that dld.sl refuses to
21349 # link against other versions.
21356 hardcode_into_libs
=yes
21357 dynamic_linker
="$host_os dld.so"
21358 shlibpath_var
=LD_LIBRARY_PATH
21359 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21361 soname_spec
='${libname}${release}${shared_ext}$major'
21362 if test "X$HPUX_IA64_MODE" = X32
; then
21363 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21365 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21367 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21371 hardcode_into_libs
=yes
21372 dynamic_linker
="$host_os dld.sl"
21373 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21374 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21375 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21376 soname_spec
='${libname}${release}${shared_ext}$major'
21377 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21378 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21382 dynamic_linker
="$host_os dld.sl"
21383 shlibpath_var
=SHLIB_PATH
21384 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21386 soname_spec
='${libname}${release}${shared_ext}$major'
21389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21390 postinstall_cmds
='chmod 555 $lib'
21391 # or fails outright, so override atomically:
21392 install_override_mode
=555
21399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21400 soname_spec
='${libname}${release}${shared_ext}$major'
21401 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21402 shlibpath_var
=LD_LIBRARY_PATH
21403 shlibpath_overrides_runpath
=no
21404 hardcode_into_libs
=yes
21407 irix5
* | irix6
* | nonstopux
*)
21409 nonstopux
*) version_type
=nonstopux
;;
21411 if test "$lt_cv_prog_gnu_ld" = yes; then
21419 soname_spec
='${libname}${release}${shared_ext}$major'
21420 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21422 irix5
* | nonstopux
*)
21423 libsuff
= shlibsuff
=
21426 case $LD in # libtool.m4 will add one of these switches to LD
21427 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21428 libsuff
= shlibsuff
= libmagic
=32-bit;;
21429 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21430 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21431 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21432 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21433 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21437 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21438 shlibpath_overrides_runpath
=no
21439 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21440 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21441 hardcode_into_libs
=yes
21444 # No shared lib support for Linux oldld, aout, or coff.
21445 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21449 # This must be Linux ELF.
21450 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21454 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21455 soname_spec
='${libname}${release}${shared_ext}$major'
21456 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21457 shlibpath_var
=LD_LIBRARY_PATH
21458 shlibpath_overrides_runpath
=no
21460 # Some binutils ld are patched to set DT_RUNPATH
21461 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21462 $as_echo_n "(cached) " >&6
21464 lt_cv_shlibpath_overrides_runpath
=no
21465 save_LDFLAGS
=$LDFLAGS
21466 save_libdir
=$libdir
21467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21470 /* end confdefs.h. */
21480 if ac_fn_cxx_try_link
"$LINENO"; then :
21481 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21482 lt_cv_shlibpath_overrides_runpath
=yes
21485 rm -f core conftest.err conftest.
$ac_objext \
21486 conftest
$ac_exeext conftest.
$ac_ext
21487 LDFLAGS
=$save_LDFLAGS
21488 libdir
=$save_libdir
21492 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21494 # This implies no fast_install, which is unacceptable.
21495 # Some rework will be needed to allow for fast_install
21496 # before this can be enabled.
21497 hardcode_into_libs
=yes
21499 # Append ld.so.conf contents to the search path
21500 if test -f /etc
/ld.so.conf
; then
21501 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' ' '`
21502 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21505 # We used to test for /lib/ld.so.1 and disable shared libraries on
21506 # powerpc, because MkLinux only supported shared libraries with the
21507 # GNU dynamic linker. Since this was broken with cross compilers,
21508 # most powerpc-linux boxes support dynamic linking these days and
21509 # people can always --disable-shared, the test was removed, and we
21510 # assume the GNU/Linux dynamic linker is in use.
21511 dynamic_linker
='GNU/Linux ld.so'
21518 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21519 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21520 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21521 dynamic_linker
='NetBSD (a.out) ld.so'
21523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21524 soname_spec
='${libname}${release}${shared_ext}$major'
21525 dynamic_linker
='NetBSD ld.elf_so'
21527 shlibpath_var
=LD_LIBRARY_PATH
21528 shlibpath_overrides_runpath
=yes
21529 hardcode_into_libs
=yes
21534 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21535 shlibpath_var
=LD_LIBRARY_PATH
21536 shlibpath_overrides_runpath
=yes
21543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21544 soname_spec
='${libname}${release}${shared_ext}$major'
21545 shlibpath_var
=LD_LIBRARY_PATH
21546 shlibpath_overrides_runpath
=no
21547 hardcode_into_libs
=yes
21548 dynamic_linker
='ldqnx.so'
21553 sys_lib_dlsearch_path_spec
="/usr/lib"
21555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21557 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21558 *) need_version
=no
;;
21560 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21561 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21562 shlibpath_var
=LD_LIBRARY_PATH
21563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21565 openbsd2.
[89] | openbsd2.
[89].
*)
21566 shlibpath_overrides_runpath
=no
21569 shlibpath_overrides_runpath
=yes
21573 shlibpath_overrides_runpath
=yes
21578 libname_spec
='$name'
21581 library_names_spec
='$libname${shared_ext} $libname.a'
21582 dynamic_linker
='OS/2 ld.exe'
21583 shlibpath_var
=LIBPATH
21586 osf3
* | osf4
* | osf5
*)
21590 soname_spec
='${libname}${release}${shared_ext}$major'
21591 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21592 shlibpath_var
=LD_LIBRARY_PATH
21593 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21594 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21605 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21606 soname_spec
='${libname}${release}${shared_ext}$major'
21607 shlibpath_var
=LD_LIBRARY_PATH
21608 shlibpath_overrides_runpath
=yes
21609 hardcode_into_libs
=yes
21610 # ldd complains unless libraries are executable
21611 postinstall_cmds
='chmod +x $lib'
21616 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21617 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21618 shlibpath_var
=LD_LIBRARY_PATH
21619 shlibpath_overrides_runpath
=yes
21620 if test "$with_gnu_ld" = yes; then
21628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21629 soname_spec
='${libname}${release}${shared_ext}$major'
21630 shlibpath_var
=LD_LIBRARY_PATH
21631 case $host_vendor in
21633 shlibpath_overrides_runpath
=no
21635 runpath_var
=LD_RUN_PATH
21643 shlibpath_overrides_runpath
=no
21644 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21650 if test -d /usr
/nec
;then
21652 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21653 soname_spec
='$libname${shared_ext}.$major'
21654 shlibpath_var
=LD_LIBRARY_PATH
21658 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21659 version_type
=freebsd-elf
21662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21663 soname_spec
='${libname}${release}${shared_ext}$major'
21664 shlibpath_var
=LD_LIBRARY_PATH
21665 shlibpath_overrides_runpath
=yes
21666 hardcode_into_libs
=yes
21667 if test "$with_gnu_ld" = yes; then
21668 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21670 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21673 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21677 sys_lib_dlsearch_path_spec
='/usr/lib'
21681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21686 shlibpath_var
=LD_LIBRARY_PATH
21687 shlibpath_overrides_runpath
=no
21688 hardcode_into_libs
=yes
21693 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21694 soname_spec
='${libname}${release}${shared_ext}$major'
21695 shlibpath_var
=LD_LIBRARY_PATH
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21703 $as_echo "$dynamic_linker" >&6; }
21704 test "$dynamic_linker" = no
&& can_build_shared
=no
21706 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21707 if test "$GCC" = yes; then
21708 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21712 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21715 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21756 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21757 hardcode_action_CXX
=
21758 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21759 test -n "$runpath_var_CXX" ||
21760 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21762 # We can hardcode non-existent directories.
21763 if test "$hardcode_direct_CXX" != no
&&
21764 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21765 # have to relink, otherwise we might link with an installed library
21766 # when we should be linking with a yet-to-be-installed one
21767 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21768 test "$hardcode_minus_L_CXX" != no
; then
21769 # Linking always hardcodes the temporary library directory.
21770 hardcode_action_CXX
=relink
21772 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21773 hardcode_action_CXX
=immediate
21776 # We cannot hardcode anything, or else we can only hardcode existing
21778 hardcode_action_CXX
=unsupported
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21781 $as_echo "$hardcode_action_CXX" >&6; }
21783 if test "$hardcode_action_CXX" = relink ||
21784 test "$inherit_rpath_CXX" = yes; then
21785 # Fast installation is not supported
21786 enable_fast_install
=no
21787 elif test "$shlibpath_overrides_runpath" = yes ||
21788 test "$enable_shared" = no
; then
21789 # Fast installation is not necessary
21790 enable_fast_install
=needless
21799 fi # test -n "$compiler"
21805 with_gnu_ld
=$lt_save_with_gnu_ld
21806 lt_cv_path_LDCXX
=$lt_cv_path_LD
21807 lt_cv_path_LD
=$lt_save_path_LD
21808 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21809 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21810 fi # test "$_lt_caught_CXX_error" != yes
21813 ac_cpp
='$CXXCPP $CPPFLAGS'
21814 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21815 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21816 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21833 # Only expand once:
21839 # Identify the assembler which will work hand-in-glove with the newly
21840 # built GCC, so that we can examine its features. This is the assembler
21841 # which will be driven by the driver program.
21843 # If build != host, and we aren't building gas in-tree, we identify a
21844 # build->target assembler and hope that it will have the same features
21845 # as the host->target assembler we'll be using.
21846 gcc_cv_gas_major_version
=
21847 gcc_cv_gas_minor_version
=
21848 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21850 if test "${gcc_cv_as+set}" = set; then :
21854 if test -x "$DEFAULT_ASSEMBLER"; then
21855 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21856 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21857 && test -f ..
/gas
/Makefile \
21858 && test x
$build = x
$host; then
21859 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21860 elif test -x as
$build_exeext; then
21861 # Build using assembler in the current directory.
21862 gcc_cv_as
=.
/as
$build_exeext
21863 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21864 gcc_cv_as
="$AS_FOR_TARGET"
21866 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21867 set dummy
$AS_FOR_TARGET; ac_word
=$2
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21869 $as_echo_n "checking for $ac_word... " >&6; }
21870 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21871 $as_echo_n "(cached) " >&6
21875 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21879 for as_dir
in $PATH
21882 test -z "$as_dir" && as_dir
=.
21883 for ac_exec_ext
in '' $ac_executable_extensions; do
21884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21885 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21896 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21897 if test -n "$gcc_cv_as"; then
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21899 $as_echo "$gcc_cv_as" >&6; }
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902 $as_echo "no" >&6; }
21909 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21911 case "$ORIGINAL_AS_FOR_TARGET" in
21912 .
/as | .
/as
$build_exeext) ;;
21913 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21918 $as_echo_n "checking what assembler to use... " >&6; }
21919 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21920 # Single tree build which includes gas. We want to prefer it
21921 # over whatever linker top-level may have detected, since
21922 # we'll use what we're building after installation anyway.
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21924 $as_echo "newly built gas" >&6; }
21926 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21927 for f
in $gcc_cv_as_bfd_srcdir/configure \
21928 $gcc_cv_as_gas_srcdir/configure \
21929 $gcc_cv_as_gas_srcdir/configure.ac \
21930 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21931 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21932 if test x
$gcc_cv_gas_version != x
; then
21936 case $gcc_cv_gas_version in
21938 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21940 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21941 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21942 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21943 case $gcc_cv_gas_patch_version in
21944 "") gcc_cv_gas_patch_version
="0" ;;
21946 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21947 + $gcc_cv_gas_minor_version \) \* 1000 \
21948 + $gcc_cv_gas_patch_version`
21950 in_tree_gas_is_elf
=no
21951 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21952 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21953 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21955 in_tree_gas_is_elf
=yes
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21959 $as_echo "$gcc_cv_as" >&6; }
21964 # Check whether --enable-ld was given.
21965 if test "${enable_ld+set}" = set; then :
21966 enableval
=$enable_ld; case "${enableval}" in
21974 install_gold_as_default
=no
21975 # Check whether --enable-gold was given.
21976 if test "${enable_gold+set}" = set; then :
21977 enableval
=$enable_gold; case "${enableval}" in
21979 install_gold_as_default
=yes
21982 if test x
${default_ld} != x
; then
21983 install_gold_as_default
=yes
21989 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21995 # Identify the linker which will work hand-in-glove with the newly
21996 # built GCC, so that we can examine its features. This is the linker
21997 # which will be driven by the driver program.
21999 # If build != host, and we aren't building gas in-tree, we identify a
22000 # build->target linker and hope that it will have the same features
22001 # as the host->target linker we'll be using.
22002 gcc_cv_gld_major_version
=
22003 gcc_cv_gld_minor_version
=
22004 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22005 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22006 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22008 if test "${gcc_cv_ld+set}" = set; then :
22012 if test -x "$DEFAULT_LINKER"; then
22013 gcc_cv_ld
="$DEFAULT_LINKER"
22014 elif test $install_gold_as_default = yes \
22015 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22016 && test -f ..
/gold
/Makefile \
22017 && test x
$build = x
$host; then
22018 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22019 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22020 && test -f ..
/ld
/Makefile \
22021 && test x
$build = x
$host; then
22022 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22023 elif test -x collect-ld
$build_exeext; then
22024 # Build using linker in the current directory.
22025 gcc_cv_ld
=.
/collect-ld
$build_exeext
22026 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22027 gcc_cv_ld
="$LD_FOR_TARGET"
22029 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22030 set dummy
$LD_FOR_TARGET; ac_word
=$2
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22032 $as_echo_n "checking for $ac_word... " >&6; }
22033 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22034 $as_echo_n "(cached) " >&6
22038 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22042 for as_dir
in $PATH
22045 test -z "$as_dir" && as_dir
=.
22046 for ac_exec_ext
in '' $ac_executable_extensions; do
22047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22048 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22059 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22060 if test -n "$gcc_cv_ld"; then
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22062 $as_echo "$gcc_cv_ld" >&6; }
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065 $as_echo "no" >&6; }
22072 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22073 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22074 # if the PLUGIN_LD is set ld-new, just have it as ld
22075 # as that is the installed named.
22076 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22077 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22078 PLUGIN_LD_SUFFIX
=ld
22081 # Check whether --with-plugin-ld was given.
22082 if test "${with_plugin_ld+set}" = set; then :
22083 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22084 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22085 PLUGIN_LD_SUFFIX
="$withval"
22091 cat >>confdefs.h
<<_ACEOF
22092 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22096 # Check to see if we are using gold instead of ld
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22098 $as_echo_n "checking whether we are using gold... " >&6; }
22100 if test x
$gcc_cv_ld != x
; then
22101 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22102 |
grep "GNU gold" > /dev
/null
; then
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22107 $as_echo "$ld_is_gold" >&6; }
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22110 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22111 # Check to see if default ld is not gold, but gold is
22112 # available and has support for split stack. If gcc was configured
22113 # with gold then no checking is done.
22115 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22117 # For platforms other than powerpc64*, enable as appropriate.
22119 gold_non_default
=no
22120 ld_gold
=`which ${gcc_cv_ld}.gold`
22121 # Make sure this gold has minimal split stack support
22122 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22123 ld_vers
=`$ld_gold --version | sed 1q`
22124 gold_vers
=`echo $ld_vers | sed -n \
22125 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22127 # check that the gold version contains the complete split stack support
22128 # on powerpc64 big and little endian
22130 case "$gold_vers" in
22131 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22133 *) gold_non_default
=no
22139 if test $gold_non_default = yes; then
22141 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22146 $as_echo "$gold_non_default" >&6; }
22148 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22150 case "$ORIGINAL_LD_FOR_TARGET" in
22151 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22152 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22157 $as_echo_n "checking what linker to use... " >&6; }
22158 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22159 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22160 # Single tree build which includes ld. We want to prefer it
22161 # over whatever linker top-level may have detected, since
22162 # we'll use what we're building after installation anyway.
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22164 $as_echo "newly built ld" >&6; }
22166 in_tree_ld_is_elf
=no
22167 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22168 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22169 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22170 in_tree_ld_is_elf
=yes
22171 elif test "$ld_is_gold" = yes; then
22172 in_tree_ld_is_elf
=yes
22174 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
22176 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22177 if test x
$gcc_cv_gld_version != x
; then
22181 case $gcc_cv_gld_version in
22183 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22185 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22186 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22187 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22188 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22191 $as_echo "$gcc_cv_ld" >&6; }
22193 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22194 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22195 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22201 # Figure out what nm we will be using.
22202 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22203 if test "${gcc_cv_nm+set}" = set; then :
22207 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22208 && test -f ..
/binutils
/Makefile \
22209 && test x
$build = x
$host; then
22210 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22211 elif test -x nm
$build_exeext; then
22212 gcc_cv_nm
=.
/nm
$build_exeext
22213 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22214 gcc_cv_nm
="$NM_FOR_TARGET"
22216 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22217 set dummy
$NM_FOR_TARGET; ac_word
=$2
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22219 $as_echo_n "checking for $ac_word... " >&6; }
22220 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22221 $as_echo_n "(cached) " >&6
22225 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22229 for as_dir
in $PATH
22232 test -z "$as_dir" && as_dir
=.
22233 for ac_exec_ext
in '' $ac_executable_extensions; do
22234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22235 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22246 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22247 if test -n "$gcc_cv_nm"; then
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22249 $as_echo "$gcc_cv_nm" >&6; }
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22252 $as_echo "no" >&6; }
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22260 $as_echo_n "checking what nm to use... " >&6; }
22261 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22262 # Single tree build which includes binutils.
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22264 $as_echo "newly built nm" >&6; }
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22268 $as_echo "$gcc_cv_nm" >&6; }
22272 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22274 case "$ORIGINAL_NM_FOR_TARGET" in
22275 .
/nm | .
/nm
$build_exeext) ;;
22276 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22281 # Figure out what objdump we will be using.
22282 if test "${gcc_cv_objdump+set}" = set; then :
22286 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22287 && test -f ..
/binutils
/Makefile \
22288 && test x
$build = x
$host; then
22289 # Single tree build which includes binutils.
22290 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22291 elif test -x objdump
$build_exeext; then
22292 gcc_cv_objdump
=.
/objdump
$build_exeext
22293 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22294 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22296 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22297 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22299 $as_echo_n "checking for $ac_word... " >&6; }
22300 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22301 $as_echo_n "(cached) " >&6
22303 case $gcc_cv_objdump in
22305 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22309 for as_dir
in $PATH
22312 test -z "$as_dir" && as_dir
=.
22313 for ac_exec_ext
in '' $ac_executable_extensions; do
22314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22315 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22326 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22327 if test -n "$gcc_cv_objdump"; then
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22329 $as_echo "$gcc_cv_objdump" >&6; }
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22332 $as_echo "no" >&6; }
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22340 $as_echo_n "checking what objdump to use... " >&6; }
22341 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22342 # Single tree build which includes binutils.
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22344 $as_echo "newly built objdump" >&6; }
22345 elif test x
$gcc_cv_objdump = x
; then
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22347 $as_echo "not found" >&6; }
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22350 $as_echo "$gcc_cv_objdump" >&6; }
22353 # Figure out what readelf we will be using.
22354 if test "${gcc_cv_readelf+set}" = set; then :
22358 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22359 && test -f ..
/binutils
/Makefile \
22360 && test x
$build = x
$host; then
22361 # Single tree build which includes binutils.
22362 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22363 elif test -x readelf
$build_exeext; then
22364 gcc_cv_readelf
=.
/readelf
$build_exeext
22365 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22366 gcc_cv_readelf
="$READELF_FOR_TARGET"
22368 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22369 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22371 $as_echo_n "checking for $ac_word... " >&6; }
22372 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22373 $as_echo_n "(cached) " >&6
22375 case $gcc_cv_readelf in
22377 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22381 for as_dir
in $PATH
22384 test -z "$as_dir" && as_dir
=.
22385 for ac_exec_ext
in '' $ac_executable_extensions; do
22386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22387 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22398 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22399 if test -n "$gcc_cv_readelf"; then
22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22401 $as_echo "$gcc_cv_readelf" >&6; }
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22404 $as_echo "no" >&6; }
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22412 $as_echo_n "checking what readelf to use... " >&6; }
22413 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22414 # Single tree build which includes binutils.
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22416 $as_echo "newly built readelf" >&6; }
22417 elif test x
$gcc_cv_readelf = x
; then
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22419 $as_echo "not found" >&6; }
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22422 $as_echo "$gcc_cv_readelf" >&6; }
22425 # Figure out what assembler alignment features are present.
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22427 $as_echo_n "checking assembler flags... " >&6; }
22428 if test "${gcc_cv_as_flags+set}" = set; then :
22429 $as_echo_n "(cached) " >&6
22432 i
[34567]86-*-linux*)
22433 gcc_cv_as_flags
=--32
22435 x86_64-
*-linux-gnux32)
22436 gcc_cv_as_flags
=--x32
22439 gcc_cv_as_flags
=--64
22441 powerpc
*-*-darwin*)
22442 gcc_cv_as_flags
="-arch ppc"
22445 gcc_cv_as_flags
=" "
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22450 $as_echo "$gcc_cv_as_flags" >&6; }
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22453 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22454 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22457 gcc_cv_as_balign_and_p2align
=no
22458 if test $in_tree_gas = yes; then
22459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22460 then gcc_cv_as_balign_and_p2align
=yes
22462 elif test x
$gcc_cv_as != x
; then
22463 $as_echo '.balign 4
22464 .p2align 2' > 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_balign_and_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_balign_and_p2align" >&5
22481 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22482 if test $gcc_cv_as_balign_and_p2align = yes; then
22484 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22489 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22490 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22491 $as_echo_n "(cached) " >&6
22493 gcc_cv_as_max_skip_p2align
=no
22494 if test $in_tree_gas = yes; then
22495 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22496 then gcc_cv_as_max_skip_p2align
=yes
22498 elif test x
$gcc_cv_as != x
; then
22499 $as_echo '.p2align 4,,7' > conftest.s
22500 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22502 (eval $ac_try) 2>&5
22504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22505 test $ac_status = 0; }; }
22507 gcc_cv_as_max_skip_p2align
=yes
22509 echo "configure: failed program was" >&5
22512 rm -f conftest.o conftest.s
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22516 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22517 if test $gcc_cv_as_max_skip_p2align = yes; then
22519 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22524 $as_echo_n "checking assembler for .literal16... " >&6; }
22525 if test "${gcc_cv_as_literal16+set}" = set; then :
22526 $as_echo_n "(cached) " >&6
22528 gcc_cv_as_literal16
=no
22529 if test $in_tree_gas = yes; then
22530 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22531 then gcc_cv_as_literal16
=yes
22533 elif test x
$gcc_cv_as != x
; then
22534 $as_echo '.literal16' > conftest.s
22535 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22537 (eval $ac_try) 2>&5
22539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22540 test $ac_status = 0; }; }
22542 gcc_cv_as_literal16
=yes
22544 echo "configure: failed program was" >&5
22547 rm -f conftest.o conftest.s
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22551 $as_echo "$gcc_cv_as_literal16" >&6; }
22552 if test $gcc_cv_as_literal16 = yes; then
22554 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22559 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22560 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22563 gcc_cv_as_subsection_m1
=no
22564 if test $in_tree_gas = yes; then
22565 if test $in_tree_gas_is_elf = yes \
22566 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22567 then gcc_cv_as_subsection_m1
=yes
22569 elif test x
$gcc_cv_as != x
; then
22570 $as_echo 'conftest_label1: .word 0
22572 conftest_label2: .word 0
22573 .previous' > conftest.s
22574 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22576 (eval $ac_try) 2>&5
22578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22579 test $ac_status = 0; }; }
22581 if test x
$gcc_cv_nm != x
; then
22582 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22583 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22584 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22586 else gcc_cv_as_subsection_m1
=yes
22588 rm -f conftest.nm1 conftest.nm2
22591 echo "configure: failed program was" >&5
22594 rm -f conftest.o conftest.s
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22598 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22599 if test $gcc_cv_as_subsection_m1 = yes; then
22601 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22606 $as_echo_n "checking assembler for .weak... " >&6; }
22607 if test "${gcc_cv_as_weak+set}" = set; then :
22608 $as_echo_n "(cached) " >&6
22611 if test $in_tree_gas = yes; then
22612 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22613 then gcc_cv_as_weak
=yes
22615 elif test x
$gcc_cv_as != x
; then
22616 $as_echo ' .weak foobar' > conftest.s
22617 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22619 (eval $ac_try) 2>&5
22621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22622 test $ac_status = 0; }; }
22626 echo "configure: failed program was" >&5
22629 rm -f conftest.o conftest.s
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22633 $as_echo "$gcc_cv_as_weak" >&6; }
22634 if test $gcc_cv_as_weak = yes; then
22636 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22641 $as_echo_n "checking assembler for .weakref... " >&6; }
22642 if test "${gcc_cv_as_weakref+set}" = set; then :
22643 $as_echo_n "(cached) " >&6
22645 gcc_cv_as_weakref
=no
22646 if test $in_tree_gas = yes; then
22647 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22648 then gcc_cv_as_weakref
=yes
22650 elif test x
$gcc_cv_as != x
; then
22651 $as_echo ' .weakref foobar, barfnot' > conftest.s
22652 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22654 (eval $ac_try) 2>&5
22656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22657 test $ac_status = 0; }; }
22659 gcc_cv_as_weakref
=yes
22661 echo "configure: failed program was" >&5
22664 rm -f conftest.o conftest.s
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22668 $as_echo "$gcc_cv_as_weakref" >&6; }
22669 if test $gcc_cv_as_weakref = yes; then
22671 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22676 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22677 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22678 $as_echo_n "(cached) " >&6
22680 gcc_cv_as_nsubspa_comdat
=no
22681 if test $in_tree_gas = yes; then
22682 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22683 then gcc_cv_as_nsubspa_comdat
=yes
22685 elif test x
$gcc_cv_as != x
; then
22686 $as_echo ' .SPACE $TEXT$
22687 .NSUBSPA $CODE$,COMDAT' > conftest.s
22688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22690 (eval $ac_try) 2>&5
22692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22693 test $ac_status = 0; }; }
22695 gcc_cv_as_nsubspa_comdat
=yes
22697 echo "configure: failed program was" >&5
22700 rm -f conftest.o conftest.s
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22704 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22705 if test $gcc_cv_as_nsubspa_comdat = yes; then
22707 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22711 # .hidden needs to be supported in both the assembler and the linker,
22712 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22713 # This is irritatingly difficult to feature test for; we have to check the
22714 # date string after the version number. If we've got an in-tree
22715 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22717 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22719 $as_echo_n "checking assembler for .hidden... " >&6; }
22720 if test "${gcc_cv_as_hidden+set}" = set; then :
22721 $as_echo_n "(cached) " >&6
22723 gcc_cv_as_hidden
=no
22724 if test $in_tree_gas = yes; then
22725 if test $in_tree_gas_is_elf = yes \
22726 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22727 then gcc_cv_as_hidden
=yes
22729 elif test x
$gcc_cv_as != x
; then
22730 $as_echo ' .hidden foobar
22731 foobar:' > conftest.s
22732 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22734 (eval $ac_try) 2>&5
22736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22737 test $ac_status = 0; }; }
22739 gcc_cv_as_hidden
=yes
22741 echo "configure: failed program was" >&5
22744 rm -f conftest.o conftest.s
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22748 $as_echo "$gcc_cv_as_hidden" >&6; }
22750 case "${target}" in
22752 # Darwin as has some visibility support, though with a different syntax.
22753 gcc_cv_as_hidden
=yes
22757 # gnu_indirect_function type is an extension proposed at
22758 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22759 # selection of function implementation
22760 # Check whether --enable-gnu-indirect-function was given.
22761 if test "${enable_gnu_indirect_function+set}" = set; then :
22762 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22764 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22765 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22768 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22772 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22774 cat >>confdefs.h
<<_ACEOF
22775 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22780 if test $in_tree_ld != yes ; then
22781 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22782 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22783 if test x
"$ld_is_gold" = xyes
; then
22784 # GNU gold --version looks like this:
22786 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22788 # We extract the binutils version which is more familiar and specific
22789 # than the gold version.
22790 ld_vers
=`echo $ld_ver | sed -n \
22791 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22793 # GNU ld --version looks like this:
22795 # GNU ld (GNU Binutils) 2.21.51.20110225
22796 ld_vers
=`echo $ld_ver | sed -n \
22797 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22799 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'`
22800 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22801 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22802 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22804 case "${target}" in
22806 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22809 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22810 # /usr/ccs/bin/ld has been configured.
22811 ld_ver
=`$gcc_cv_ld -V 2>&1`
22812 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22813 ld_vers
=`echo $ld_ver | sed -n \
22814 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22815 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22816 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22824 $as_echo_n "checking linker for .hidden support... " >&6; }
22825 if test "${gcc_cv_ld_hidden+set}" = set; then :
22826 $as_echo_n "(cached) " >&6
22828 if test $in_tree_ld = yes ; then
22829 gcc_cv_ld_hidden
=no
22830 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 \
22831 && test $in_tree_ld_is_elf = yes; then
22832 gcc_cv_ld_hidden
=yes
22835 gcc_cv_ld_hidden
=yes
22836 if test x
"$ld_is_gold" = xyes
; then
22838 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22839 case "${target}" in
22840 mmix-knuth-mmixware
)
22841 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22842 gcc_cv_ld_hidden
=no
22845 if test 0"$ld_date" -lt 20020404; then
22846 if test -n "$ld_date"; then
22847 # If there was date string, but was earlier than 2002-04-04, fail
22848 gcc_cv_ld_hidden
=no
22849 elif test -z "$ld_vers"; then
22850 # If there was no date string nor ld version number, something is wrong
22851 gcc_cv_ld_hidden
=no
22853 test -z "$ld_vers_patch" && ld_vers_patch
=0
22854 if test "$ld_vers_major" -lt 2; then
22855 gcc_cv_ld_hidden
=no
22856 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22857 gcc_cv_ld_hidden
="no"
22858 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22859 gcc_cv_ld_hidden
=no
22864 case "${target}" in
22866 # Darwin ld has some visibility support.
22867 gcc_cv_ld_hidden
=yes
22869 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22870 gcc_cv_ld_hidden
=yes
22872 *-*-solaris2.1
[0-9]*)
22873 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22874 # .symbolic was only added in Solaris 9 12/02.
22875 gcc_cv_ld_hidden
=yes
22878 gcc_cv_ld_hidden
=no
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22885 $as_echo "$gcc_cv_ld_hidden" >&6; }
22886 libgcc_visibility
=no
22889 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22890 libgcc_visibility
=yes
22892 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22897 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22898 gcc_cv_ld_ro_rw_mix
=unknown
22899 if test $in_tree_ld = yes ; then
22900 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 \
22901 && test $in_tree_ld_is_elf = yes; then
22902 gcc_cv_ld_ro_rw_mix
=read-write
22904 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22905 echo '.section myfoosect, "a"' > conftest1.s
22906 echo '.section myfoosect, "aw"' > conftest2.s
22907 echo '.byte 1' >> conftest2.s
22908 echo '.section myfoosect, "a"' > conftest3.s
22909 echo '.byte 0' >> conftest3.s
22910 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22911 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22912 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22913 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22914 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22915 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22916 | sed -e '/myfoosect/!d' -e N`
22917 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22918 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22919 gcc_cv_ld_ro_rw_mix
=read-only
22921 gcc_cv_ld_ro_rw_mix
=read-write
22925 rm -f conftest.
* conftest
[123].
*
22927 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22929 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22933 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22935 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22936 case "${target}" in
22939 # Solaris 2 ld -V output looks like this for a regular version:
22941 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22943 # but test versions add stuff at the end:
22945 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22947 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22948 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22949 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22950 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22951 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22952 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22958 # Check whether --enable-initfini-array was given.
22959 if test "${enable_initfini_array+set}" = set; then :
22960 enableval
=$enable_initfini_array;
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22964 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22965 if test "${gcc_cv_initfini_array+set}" = set; then :
22966 $as_echo_n "(cached) " >&6
22968 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22969 case "${target}" in
22971 if test "$cross_compiling" = yes; then :
22972 gcc_cv_initfini_array
=no
22974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22975 /* end confdefs.h. */
22978 #error Not an ELF OS
22980 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22981 if it can be used. */
22983 int main (void) { return x; }
22984 int foo (void) { x = 0; }
22985 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22988 if ac_fn_cxx_try_run
"$LINENO"; then :
22989 gcc_cv_initfini_array
=yes
22991 gcc_cv_initfini_array
=no
22993 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22994 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22998 gcc_cv_initfini_array
=no
22999 if test $in_tree_ld = yes ; then
23000 if test "$gcc_cv_gld_major_version" -eq 2 \
23001 -a "$gcc_cv_gld_minor_version" -ge 22 \
23002 -o "$gcc_cv_gld_major_version" -gt 2 \
23003 && test $in_tree_ld_is_elf = yes; then
23004 gcc_cv_initfini_array
=yes
23006 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23007 case $target:$gas in
23010 sh_type
='%progbits'
23012 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23014 sh_type
='@progbits'
23016 sparc
*-*-solaris2*:no
)
23018 sh_type
='#progbits'
23022 case "$target:$gnu_ld" in
23024 cat > conftest.s
<<EOF
23025 .section .dtors,$sh_flags,$sh_type
23027 .byte 'A', 'A', 'A', 'A'
23028 .section .ctors,$sh_flags,$sh_type
23030 .byte 'B', 'B', 'B', 'B'
23031 .section .fini_array.65530,$sh_flags,$sh_type
23033 .byte 'C', 'C', 'C', 'C'
23034 .section .init_array.65530,$sh_flags,$sh_type
23036 .byte 'D', 'D', 'D', 'D'
23037 .section .dtors.64528,$sh_flags,$sh_type
23039 .byte 'E', 'E', 'E', 'E'
23040 .section .ctors.64528,$sh_flags,$sh_type
23042 .byte 'F', 'F', 'F', 'F'
23043 .section .fini_array.01005,$sh_flags,$sh_type
23045 .byte 'G', 'G', 'G', 'G'
23046 .section .init_array.01005,$sh_flags,$sh_type
23048 .byte 'H', 'H', 'H', 'H'
23053 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23054 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23055 && $gcc_cv_objdump -s -j .init_array conftest \
23056 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23057 && $gcc_cv_objdump -s -j .fini_array conftest \
23058 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23059 gcc_cv_initfini_array
=yes
23063 # When Solaris ld added constructor priority support, it was
23064 # decided to only handle .init_array.N/.fini_array.N since
23065 # there was no need for backwards compatibility with
23066 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23067 # sections with correct execution order resp. to
23068 # .init_array/.fini_array, while gld merges them into
23069 # .init_array/.fini_array.
23070 cat > conftest.s
<<EOF
23071 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23073 .byte 'C', 'C', 'C', 'C'
23074 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23076 .byte 'D', 'D', 'D', 'D'
23077 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23079 .byte 'G', 'G', 'G', 'G'
23080 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23082 .byte 'H', 'H', 'H', 'H'
23087 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23088 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23089 && $gcc_cv_objdump -s -j .init_array conftest \
23090 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23091 && $gcc_cv_objdump -s -j .fini_array conftest \
23092 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23093 gcc_cv_initfini_array
=yes
23097 rm -f conftest conftest.
*
23099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h. */
23103 # error Not an ELF OS
23105 #include <stdlib.h>
23106 #if defined __GLIBC_PREREQ
23107 # if __GLIBC_PREREQ (2, 4)
23109 # error GLIBC 2.4 required
23112 # if defined __sun__ && defined __svr4__
23113 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23115 # error The C library not known to support .init_array/.fini_array
23120 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23123 gcc_cv_initfini_array
=no
23125 rm -f conftest.err conftest.
$ac_ext;;
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23129 $as_echo_n "checking cross compile... guessing... " >&6; }
23130 gcc_cv_initfini_array
=no
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23134 $as_echo "$gcc_cv_initfini_array" >&6; }
23135 enable_initfini_array
=$gcc_cv_initfini_array
23140 cat >>confdefs.h
<<_ACEOF
23141 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23146 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23148 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23149 if test "${gcc_cv_as_leb128+set}" = set; then :
23150 $as_echo_n "(cached) " >&6
23152 gcc_cv_as_leb128
=no
23153 if test $in_tree_gas = yes; then
23154 if test $in_tree_gas_is_elf = yes \
23155 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23156 then gcc_cv_as_leb128
=yes
23158 elif test x
$gcc_cv_as != x
; then
23165 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23167 (eval $ac_try) 2>&5
23169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23170 test $ac_status = 0; }; }
23172 # GAS versions before 2.11 do not support uleb128,
23173 # despite appearing to.
23174 # ??? There exists an elf-specific test that will crash
23175 # the assembler. Perhaps it's better to figure out whether
23176 # arbitrary sections are supported and try the test.
23177 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23178 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23179 as_vers
=`echo $as_ver | sed -n \
23180 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23181 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23182 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23183 if test $as_major -eq 2 && test $as_minor -lt 11
23185 else gcc_cv_as_leb128
=yes
23189 echo "configure: failed program was" >&5
23192 rm -f conftest.o conftest.s
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23196 $as_echo "$gcc_cv_as_leb128" >&6; }
23197 if test $gcc_cv_as_leb128 = yes; then
23199 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23203 # Check if we have assembler support for unwind directives.
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23205 $as_echo_n "checking assembler for cfi directives... " >&6; }
23206 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23207 $as_echo_n "(cached) " >&6
23209 gcc_cv_as_cfi_directive
=no
23210 if test x
$gcc_cv_as != x
; then
23216 .cfi_escape 1, 2, 3, 4, 5
23217 .cfi_endproc' > conftest.s
23218 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23220 (eval $ac_try) 2>&5
23222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23223 test $ac_status = 0; }; }
23227 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23228 # read-only and read-write sections, we need to make sure that the
23229 # assembler used emits read-write .eh_frame sections.
23230 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23231 if test "x$gcc_cv_objdump" != x
; then
23232 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23233 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23234 gcc_cv_as_cfi_directive
=no
23237 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23238 # On Solaris/x86, make sure that GCC and assembler agree on using
23239 # read-only .eh_frame sections for 64-bit.
23240 if test x
$gas = xyes
; then
23241 as_ix86_64_opt
="--64"
23243 as_ix86_64_opt
="-xarch=amd64"
23245 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23246 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23247 sed -e /.eh_frame
/!d
-e N | \
23248 grep READONLY
> /dev
/null
; then
23249 gcc_cv_as_cfi_directive
=yes
23251 gcc_cv_as_cfi_directive
=no
23255 gcc_cv_as_cfi_directive
=yes
23260 # no objdump, err on the side of caution
23261 gcc_cv_as_cfi_directive
=no
23264 gcc_cv_as_cfi_directive
=yes
23268 gcc_cv_as_cfi_directive
=yes
23272 echo "configure: failed program was" >&5
23275 rm -f conftest.o conftest.s
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23279 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23281 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23283 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23284 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23285 $as_echo_n "(cached) " >&6
23287 gcc_cv_as_cfi_advance_working
=no
23288 if test x
$gcc_cv_as != x
; then
23291 .cfi_adjust_cfa_offset 64
23293 .cfi_adjust_cfa_offset 128
23294 .cfi_endproc' > conftest.s
23295 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23297 (eval $ac_try) 2>&5
23299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23300 test $ac_status = 0; }; }
23303 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23304 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23305 gcc_cv_as_cfi_advance_working
=yes
23309 echo "configure: failed program was" >&5
23312 rm -f conftest.o conftest.s
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23316 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23319 # no objdump, err on the side of caution
23320 gcc_cv_as_cfi_advance_working
=no
23324 cat >>confdefs.h
<<_ACEOF
23325 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23326 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23332 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23333 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23334 $as_echo_n "(cached) " >&6
23336 gcc_cv_as_cfi_personality_directive
=no
23337 if test x
$gcc_cv_as != x
; then
23340 .cfi_personality 0, symbol
23341 .cfi_endproc' > conftest.s
23342 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23344 (eval $ac_try) 2>&5
23346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23347 test $ac_status = 0; }; }
23349 gcc_cv_as_cfi_personality_directive
=yes
23351 echo "configure: failed program was" >&5
23354 rm -f conftest.o conftest.s
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23358 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23361 cat >>confdefs.h
<<_ACEOF
23362 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23363 then echo 1; else echo 0; fi`
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23368 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23369 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23370 $as_echo_n "(cached) " >&6
23372 gcc_cv_as_cfi_sections_directive
=no
23373 if test x
$gcc_cv_as != x
; then
23375 .cfi_sections .debug_frame, .eh_frame
23377 .cfi_endproc' > conftest.s
23378 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380 (eval $ac_try) 2>&5
23382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383 test $ac_status = 0; }; }
23386 win32 | pe | cygwin
* | mingw32
*)
23387 # Need to check that we generated the correct relocation for the
23388 # .debug_frame section. This was fixed for binutils 2.21.
23389 gcc_cv_as_cfi_sections_directive
=no
23390 if test "x$gcc_cv_objdump" != x
; then
23391 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23392 grep secrel
> /dev
/null
; then
23393 gcc_cv_as_cfi_sections_directive
=yes
23398 gcc_cv_as_cfi_sections_directive
=yes
23402 echo "configure: failed program was" >&5
23405 rm -f conftest.o conftest.s
23408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23409 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23413 cat >>confdefs.h
<<_ACEOF
23414 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23415 then echo 1; else echo 0; fi`
23419 # GAS versions up to and including 2.11.0 may mis-optimize
23421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23422 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23423 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23424 $as_echo_n "(cached) " >&6
23426 gcc_cv_as_eh_frame
=no
23427 if test $in_tree_gas = yes; then
23428 if test $in_tree_gas_is_elf = yes \
23429 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23430 then gcc_cv_as_eh_frame
=yes
23432 elif test x
$gcc_cv_as != x
; then
23439 .section .eh_frame,"aw",@progbits
23441 .4byte .LECIE1-.LSCIE1
23455 .4byte .LEFDE1-.LASFDE1
23457 .4byte .LASFDE1-__FRAME_BEGIN__
23464 .LEFDE1:' > conftest.s
23465 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23467 (eval $ac_try) 2>&5
23469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23470 test $ac_status = 0; }; }
23472 cat > conftest.lit
<<EOF
23473 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23474 0010 01000000 12000000 18000000 00000000 ................
23475 0020 08000000 04080000 0044 .........D
23477 cat > conftest.big
<<EOF
23478 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23479 0010 00000001 00000012 00000018 00000000 ................
23480 0020 00000008 04000000 0844 .........D
23482 # If the assembler didn't choke, and we can objdump,
23483 # and we got the correct data, then succeed.
23484 # The text in the here-document typically retains its unix-style line
23485 # endings, while the output of objdump will use host line endings.
23486 # Therefore, use diff -b for the comparisons.
23487 if test x
$gcc_cv_objdump != x \
23488 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23489 |
tail -3 > conftest.got \
23490 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23491 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23493 gcc_cv_as_eh_frame
=yes
23494 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23496 (eval $ac_try) 2>&5
23498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499 test $ac_status = 0; }; }; then
23500 gcc_cv_as_eh_frame
=buggy
23502 # Uh oh, what do we do now?
23503 gcc_cv_as_eh_frame
=no
23506 echo "configure: failed program was" >&5
23509 rm -f conftest.o conftest.s
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23513 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23516 if test $gcc_cv_as_eh_frame = buggy
; then
23518 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23523 $as_echo_n "checking assembler for section merging support... " >&6; }
23524 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23525 $as_echo_n "(cached) " >&6
23527 gcc_cv_as_shf_merge
=no
23528 if test $in_tree_gas = yes; then
23529 if test $in_tree_gas_is_elf = yes \
23530 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23531 then gcc_cv_as_shf_merge
=yes
23533 elif test x
$gcc_cv_as != x
; then
23534 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23535 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23537 (eval $ac_try) 2>&5
23539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23540 test $ac_status = 0; }; }
23542 gcc_cv_as_shf_merge
=yes
23544 echo "configure: failed program was" >&5
23547 rm -f conftest.o conftest.s
23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23551 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23553 if test $gcc_cv_as_shf_merge = no
; then
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23555 $as_echo_n "checking assembler for section merging support... " >&6; }
23556 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23557 $as_echo_n "(cached) " >&6
23559 gcc_cv_as_shf_merge
=no
23560 if test $in_tree_gas = yes; then
23561 if test $in_tree_gas_is_elf = yes \
23562 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23563 then gcc_cv_as_shf_merge
=yes
23565 elif test x
$gcc_cv_as != x
; then
23566 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23567 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23569 (eval $ac_try) 2>&5
23571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23572 test $ac_status = 0; }; }
23574 gcc_cv_as_shf_merge
=yes
23576 echo "configure: failed program was" >&5
23579 rm -f conftest.o conftest.s
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23583 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23587 cat >>confdefs.h
<<_ACEOF
23588 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23593 $as_echo_n "checking assembler for stabs directive... " >&6; }
23594 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23595 $as_echo_n "(cached) " >&6
23597 gcc_cv_as_stabs_directive
=no
23598 if test x
$gcc_cv_as != x
; then
23599 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23600 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23602 (eval $ac_try) 2>&5
23604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23605 test $ac_status = 0; }; }
23607 gcc_cv_as_stabs_directive
=yes
23609 echo "configure: failed program was" >&5
23612 rm -f conftest.o conftest.s
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23616 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23617 if test $gcc_cv_as_stabs_directive = yes; then
23619 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23624 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23625 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23626 $as_echo_n "(cached) " >&6
23628 gcc_cv_as_comdat_group
=no
23629 if test $in_tree_gas = yes; then
23630 if test $in_tree_gas_is_elf = yes \
23631 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23632 then gcc_cv_as_comdat_group
=yes
23634 elif test x
$gcc_cv_as != x
; then
23635 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23636 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23638 (eval $ac_try) 2>&5
23640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23641 test $ac_status = 0; }; }
23643 gcc_cv_as_comdat_group
=yes
23645 echo "configure: failed program was" >&5
23648 rm -f conftest.o conftest.s
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23652 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23654 if test $gcc_cv_as_comdat_group = yes; then
23655 gcc_cv_as_comdat_group_percent
=no
23656 gcc_cv_as_comdat_group_group
=no
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23659 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23660 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23661 $as_echo_n "(cached) " >&6
23663 gcc_cv_as_comdat_group_percent
=no
23664 if test $in_tree_gas = yes; then
23665 if test $in_tree_gas_is_elf = yes \
23666 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23667 then gcc_cv_as_comdat_group_percent
=yes
23669 elif test x
$gcc_cv_as != x
; then
23670 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23671 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23673 (eval $ac_try) 2>&5
23675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23676 test $ac_status = 0; }; }
23678 gcc_cv_as_comdat_group_percent
=yes
23680 echo "configure: failed program was" >&5
23683 rm -f conftest.o conftest.s
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23687 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23689 if test $gcc_cv_as_comdat_group_percent = yes; then
23690 gcc_cv_as_comdat_group_group
=no
23692 case "${target}" in
23693 # Sun as uses a completely different syntax.
23695 case "${target}" in
23696 sparc
*-*-solaris2*)
23698 .group foo,".text%foo",#comdat
23699 .section ".text%foo", #alloc,#execinstr,#progbits
23704 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23706 .group foo,.text%foo,#comdat
23707 .section .text%foo, "ax", @progbits
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23714 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23715 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23716 $as_echo_n "(cached) " >&6
23718 gcc_cv_as_comdat_group_group
=no
23719 if test x
$gcc_cv_as != x
; then
23720 $as_echo "$conftest_s" > conftest.s
23721 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23723 (eval $ac_try) 2>&5
23725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23726 test $ac_status = 0; }; }
23728 gcc_cv_as_comdat_group_group
=yes
23730 echo "configure: failed program was" >&5
23733 rm -f conftest.o conftest.s
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23737 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23741 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23742 gcc_cv_as_comdat_group_group
=no
23746 if test x
"$ld_is_gold" = xyes
; then
23748 elif test $in_tree_ld = yes ; then
23750 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 \
23751 && test $in_tree_ld_is_elf = yes; then
23754 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23756 if test 0"$ld_date" -lt 20050308; then
23757 if test -n "$ld_date"; then
23758 # If there was date string, but was earlier than 2005-03-08, fail
23760 elif test "$ld_vers_major" -lt 2; then
23762 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23767 case "${target}" in
23768 *-*-solaris2.1
[1-9]*)
23770 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23771 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23774 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23775 # least ld version 1.2267.
23776 if test "$ld_vers_major" -gt 1; then
23778 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23780 elif test "$ld_vers_minor" -ge 2267; then
23785 # Assume linkers other than GNU ld don't support COMDAT group.
23790 # Allow overriding the automatic COMDAT group tests above.
23791 # Check whether --enable-comdat was given.
23792 if test "${enable_comdat+set}" = set; then :
23793 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23796 if test $comdat_group = no
; then
23797 gcc_cv_as_comdat_group
=no
23798 gcc_cv_as_comdat_group_percent
=no
23799 gcc_cv_as_comdat_group_group
=no
23802 cat >>confdefs.h
<<_ACEOF
23803 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23804 || test $gcc_cv_as_comdat_group_percent = yes \
23805 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23810 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23811 if test "${gcc_cv_as_discriminator+set}" = set; then :
23812 $as_echo_n "(cached) " >&6
23814 gcc_cv_as_discriminator
=no
23815 if test $in_tree_gas = yes; then
23816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23817 then gcc_cv_as_discriminator
=yes
23819 elif test x
$gcc_cv_as != x
; then
23822 .loc 1 1 0 discriminator 1' > conftest.s
23823 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23825 (eval $ac_try) 2>&5
23827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23828 test $ac_status = 0; }; }
23830 gcc_cv_as_discriminator
=yes
23832 echo "configure: failed program was" >&5
23835 rm -f conftest.o conftest.s
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23839 $as_echo "$gcc_cv_as_discriminator" >&6; }
23840 if test $gcc_cv_as_discriminator = yes; then
23842 $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
24175 .long foo@GOTNTPOFF
24176 .long foo@INDNTPOFF
24177 l %r1,foo@GOTNTPOFF(%r12)
24178 l %r1,0(%r1):tls_load:foo
24179 bas %r14,0(%r1,%r13):tls_gdcall:foo
24180 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24183 tls_as_opt
="-m31 --fatal-warnings"
24187 .section ".tdata","awT",@progbits
24194 .quad foo@GOTNTPOFF
24195 lg %r1,foo@GOTNTPOFF(%r12)
24196 larl %r1,foo@INDNTPOFF
24197 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24198 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24201 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24203 sh-
*-* | sh
[123456789lbe
]*-*-*)
24205 .section ".tdata","awT",@progbits
24215 tls_as_opt
=--fatal-warnings
24219 sparc
*-sun-solaris2.
*)
24226 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24228 .section ".tdata",#alloc,#write,#tls'
24233 .section ".tdata","awT",@progbits'
24236 tls_as_opt
="-32 --fatal-warnings"
24238 conftest_s
="$conftest_s
24241 sethi %tgd_hi22(foo), %o0
24242 add %o0, %tgd_lo10(foo), %o1
24243 add %l7, %o1, %o0, %tgd_add(foo)
24244 call __tls_get_addr, %tgd_call(foo)
24245 sethi %tldm_hi22(foo), %l1
24246 add %l1, %tldm_lo10(foo), %l2
24247 add %l7, %l2, %o0, %tldm_add(foo)
24248 call __tls_get_addr, %tldm_call(foo)
24249 sethi %tldo_hix22(foo), %l3
24250 xor %l3, %tldo_lox10(foo), %l4
24251 add %o0, %l4, %l5, %tldo_add(foo)
24252 sethi %tie_hi22(foo), %o3
24253 add %o3, %tie_lo10(foo), %o3
24254 ld [%l7 + %o3], %o2, %tie_ld(foo)
24255 add %g7, %o2, %o4, %tie_add(foo)
24256 sethi %tle_hix22(foo), %l1
24257 xor %l1, %tle_lox10(foo), %o5
24258 ld [%g7 + %o5], %o1"
24262 .section ".tdata","awT",@progbits
24265 addli r0, zero, tls_gd(foo)
24266 auli r0, zero, tls_gd_ha16(foo)
24267 addli r0, r0, tls_gd_lo16(foo)
24269 addli r0, zero, tls_ie(foo)
24270 auli r0, r0, tls_ie_ha16(foo)
24271 addli r0, r0, tls_ie_lo16(foo)'
24274 tls_as_opt
="--fatal-warnings"
24278 .section ".tdata","awT",@progbits
24281 shl16insli r0, zero, hw0_last_tls_gd(foo)
24282 shl16insli r0, zero, hw1_last_tls_gd(foo)
24283 shl16insli r0, r0, hw0_tls_gd(foo)
24285 shl16insli r0, zero, hw1_last_tls_ie(foo)
24286 shl16insli r0, r0, hw0_tls_ie(foo)'
24289 tls_as_opt
="--fatal-warnings"
24293 .section ".tdata","awT",@progbits
24296 movi a8, foo@TLSFUNC
24297 movi a10, foo@TLSARG
24298 callx8.tls a8, foo@TLSCALL'
24304 if test "x$enable_tls" = xno
; then
24305 : # TLS explicitly disabled.
24306 elif test "x$enable_tls" = xyes
; then
24307 set_have_as_tls
=yes # TLS explicitly enabled.
24308 elif test -z "$tls_first_major"; then
24309 : # If we don't have a check, assume no support.
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24312 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24313 if test "${gcc_cv_as_tls+set}" = set; then :
24314 $as_echo_n "(cached) " >&6
24317 if test $in_tree_gas = yes; then
24318 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24319 then gcc_cv_as_tls
=yes
24321 elif test x
$gcc_cv_as != x
; then
24322 $as_echo "$conftest_s" > conftest.s
24323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24325 (eval $ac_try) 2>&5
24327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24328 test $ac_status = 0; }; }
24332 echo "configure: failed program was" >&5
24335 rm -f conftest.o conftest.s
24338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24339 $as_echo "$gcc_cv_as_tls" >&6; }
24340 if test $gcc_cv_as_tls = yes; then
24341 set_have_as_tls
=yes
24344 if test $set_have_as_tls = yes ; then
24346 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24350 # Target-specific assembler checks.
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24353 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24354 gcc_cv_ld_static_dynamic
=no
24355 gcc_cv_ld_static_option
='-Bstatic'
24356 gcc_cv_ld_dynamic_option
='-Bdynamic'
24357 if test $in_tree_ld = yes ; then
24358 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
24359 gcc_cv_ld_static_dynamic
=yes
24361 elif test x
$gcc_cv_ld != x
; then
24362 # Check if linker supports -Bstatic/-Bdynamic option
24363 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24364 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24365 gcc_cv_ld_static_dynamic
=yes
24368 # AIX ld uses -b flags
24369 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24370 gcc_cv_ld_static_dynamic
=yes
24371 gcc_cv_ld_static_option
="-bstatic"
24372 gcc_cv_ld_dynamic_option
="-bdynamic"
24374 # HP-UX ld uses -a flags to select between shared and archive.
24376 if test x
"$gnu_ld" = xno
; then
24377 gcc_cv_ld_static_dynamic
=yes
24378 gcc_cv_ld_static_option
="-aarchive_shared"
24379 gcc_cv_ld_dynamic_option
="-adefault"
24382 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24384 gcc_cv_ld_static_dynamic
=yes
24389 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24391 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24394 cat >>confdefs.h
<<_ACEOF
24395 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24399 cat >>confdefs.h
<<_ACEOF
24400 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24405 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24407 if test x
"$demangler_in_ld" = xyes
; then
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24409 $as_echo_n "checking linker --demangle support... " >&6; }
24410 gcc_cv_ld_demangle
=no
24411 if test $in_tree_ld = yes; then
24412 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 \
24413 gcc_cv_ld_demangle
=yes
24415 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24416 # Check if the GNU linker supports --demangle option
24417 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24418 gcc_cv_ld_demangle
=yes
24421 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24423 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24427 $as_echo "$gcc_cv_ld_demangle" >&6; }
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24431 $as_echo_n "checking linker plugin support... " >&6; }
24432 gcc_cv_lto_plugin
=0
24433 if test -f liblto_plugin.la
; then
24434 save_ld_ver
="$ld_ver"
24435 save_ld_vers_major
="$ld_vers_major"
24436 save_ld_vers_minor
="$ld_vers_minor"
24437 save_ld_is_gold
="$ld_is_gold"
24441 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24443 # FIXME: ld_is_gold?
24444 ld_vers_major
="$gcc_cv_gld_major_version"
24445 ld_vers_minor
="$gcc_cv_gld_minor_version"
24447 # Determine plugin linker version.
24448 # FIXME: Partial duplicate from above, generalize.
24449 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24450 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24451 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24453 ld_vers
=`echo $ld_ver | sed -n \
24454 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24456 ld_vers
=`echo $ld_ver | sed -n \
24457 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24459 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24460 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24464 # Determine plugin support.
24465 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24466 # Require GNU ld or gold 2.21+ for plugin support by default.
24467 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24468 gcc_cv_lto_plugin
=2
24469 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24470 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24471 gcc_cv_lto_plugin
=1
24475 ld_ver
="$save_ld_ver"
24476 ld_vers_major
="$save_ld_vers_major"
24477 ld_vers_minor
="$save_ld_vers_minor"
24478 ld_is_gold
="$save_ld_is_gold"
24481 cat >>confdefs.h
<<_ACEOF
24482 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24486 $as_echo "$gcc_cv_lto_plugin" >&6; }
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24491 $as_echo_n "checking assembler for -mabi option... " >&6; }
24492 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24495 gcc_cv_as_aarch64_mabi
=no
24496 if test x
$gcc_cv_as != x
; then
24497 $as_echo '.text' > conftest.s
24498 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24500 (eval $ac_try) 2>&5
24502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24503 test $ac_status = 0; }; }
24505 gcc_cv_as_aarch64_mabi
=yes
24507 echo "configure: failed program was" >&5
24510 rm -f conftest.o conftest.s
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24514 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24516 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24518 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24521 if test x
$with_abi = xilp32
; then
24522 as_fn_error
"Assembler does not support -mabi=ilp32.\
24523 Upgrade the Assembler." "$LINENO" 5
24525 if test x
"$with_multilib_list" = xdefault
; then
24526 TM_MULTILIB_CONFIG
=lp64
24528 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24529 for aarch64_multilib
in ${aarch64_multilibs}; do
24530 case ${aarch64_multilib} in
24532 as_fn_error
"Assembler does not support -mabi=ilp32.\
24533 Upgrade the Assembler." "$LINENO" 5
24541 # Check if we have binutils support for relocations types needed by -fpic
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24543 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24544 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24545 $as_echo_n "(cached) " >&6
24547 gcc_cv_as_aarch64_picreloc
=no
24548 if test x
$gcc_cv_as != x
; then
24551 ldr x0, [x2, #:gotpage_lo15:globalsym]
24553 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24555 (eval $ac_try) 2>&5
24557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24558 test $ac_status = 0; }; }
24560 gcc_cv_as_aarch64_picreloc
=yes
24562 echo "configure: failed program was" >&5
24565 rm -f conftest.o conftest.s
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24569 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24570 if test $gcc_cv_as_aarch64_picreloc = yes; then
24572 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24575 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24576 # Check whether --enable-fix-cortex-a53-835769 was given.
24577 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24578 enableval
=$enable_fix_cortex_a53_835769;
24581 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24586 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24587 Valid choices are 'yes' and 'no'." "$LINENO" 5
24594 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24595 # Check whether --enable-fix-cortex-a53-843419 was given.
24596 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24597 enableval
=$enable_fix_cortex_a53_843419;
24600 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24605 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24606 Valid choices are 'yes' and 'no'." "$LINENO" 5
24615 # All TARGET_ABI_OSF targets.
24616 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24618 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24619 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24620 $as_echo_n "(cached) " >&6
24622 gcc_cv_as_alpha_explicit_relocs
=no
24623 if test $in_tree_gas = yes; then
24624 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24625 then gcc_cv_as_alpha_explicit_relocs
=yes
24627 elif test x
$gcc_cv_as != x
; then
24628 $as_echo ' .set nomacro
24630 extbl $3, $2, $3 !lituse_bytoff!1
24631 ldq $2, a($29) !literal!1
24632 ldq $4, b($29) !literal!2
24633 ldq_u $3, 0($2) !lituse_base!1
24634 ldq $27, f($29) !literal!5
24635 jsr $26, ($27), f !lituse_jsr!5
24636 ldah $29, 0($26) !gpdisp!3
24637 lda $0, c($29) !gprel
24638 ldah $1, d($29) !gprelhigh
24639 lda $1, d($1) !gprellow
24640 lda $29, 0($29) !gpdisp!3' > conftest.s
24641 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24643 (eval $ac_try) 2>&5
24645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24646 test $ac_status = 0; }; }
24648 gcc_cv_as_alpha_explicit_relocs
=yes
24650 echo "configure: failed program was" >&5
24653 rm -f conftest.o conftest.s
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24657 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24658 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24660 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24664 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24665 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24666 $as_echo_n "(cached) " >&6
24668 gcc_cv_as_alpha_jsrdirect_relocs
=no
24669 if test $in_tree_gas = yes; then
24670 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24671 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24673 elif test x
$gcc_cv_as != x
; then
24674 $as_echo ' .set nomacro
24676 ldq $27, a($29) !literal!1
24677 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24678 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24680 (eval $ac_try) 2>&5
24682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24683 test $ac_status = 0; }; }
24685 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24687 echo "configure: failed program was" >&5
24690 rm -f conftest.o conftest.s
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24694 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24695 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24697 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24704 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24705 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24706 $as_echo_n "(cached) " >&6
24708 gcc_cv_as_avr_mlink_relax
=no
24709 if test x
$gcc_cv_as != x
; then
24710 $as_echo '.text' > conftest.s
24711 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; }
24718 gcc_cv_as_avr_mlink_relax
=yes
24720 echo "configure: failed program was" >&5
24723 rm -f conftest.o conftest.s
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24727 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24728 if test $gcc_cv_as_avr_mlink_relax = yes; then
24730 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24735 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24736 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24737 $as_echo_n "(cached) " >&6
24739 gcc_cv_as_avr_mrmw
=no
24740 if test x
$gcc_cv_as != x
; then
24741 $as_echo '.text' > conftest.s
24742 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24744 (eval $ac_try) 2>&5
24746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24747 test $ac_status = 0; }; }
24749 gcc_cv_as_avr_mrmw
=yes
24751 echo "configure: failed program was" >&5
24754 rm -f conftest.o conftest.s
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24758 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24759 if test $gcc_cv_as_avr_mrmw = yes; then
24761 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24768 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24769 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24770 $as_echo_n "(cached) " >&6
24772 gcc_cv_as_cris_no_mul_bug
=no
24773 if test $in_tree_gas = yes; then
24774 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24775 then gcc_cv_as_cris_no_mul_bug
=yes
24777 elif test x
$gcc_cv_as != x
; then
24778 $as_echo '.text' > conftest.s
24779 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; }
24786 gcc_cv_as_cris_no_mul_bug
=yes
24788 echo "configure: failed program was" >&5
24791 rm -f conftest.o conftest.s
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24795 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24796 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24798 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24805 $as_echo_n "checking assembler for .register... " >&6; }
24806 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24807 $as_echo_n "(cached) " >&6
24809 gcc_cv_as_sparc_register_op
=no
24810 if test x
$gcc_cv_as != x
; then
24811 $as_echo '.register %g2, #scratch' > conftest.s
24812 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24814 (eval $ac_try) 2>&5
24816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24817 test $ac_status = 0; }; }
24819 gcc_cv_as_sparc_register_op
=yes
24821 echo "configure: failed program was" >&5
24824 rm -f conftest.o conftest.s
24827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24828 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24829 if test $gcc_cv_as_sparc_register_op = yes; then
24831 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24836 $as_echo_n "checking assembler for -relax option... " >&6; }
24837 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24838 $as_echo_n "(cached) " >&6
24840 gcc_cv_as_sparc_relax
=no
24841 if test x
$gcc_cv_as != x
; then
24842 $as_echo '.text' > conftest.s
24843 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24845 (eval $ac_try) 2>&5
24847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24848 test $ac_status = 0; }; }
24850 gcc_cv_as_sparc_relax
=yes
24852 echo "configure: failed program was" >&5
24855 rm -f conftest.o conftest.s
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24859 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24860 if test $gcc_cv_as_sparc_relax = yes; then
24862 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24867 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24868 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24869 $as_echo_n "(cached) " >&6
24871 gcc_cv_as_sparc_gotdata_op
=no
24872 if test x
$gcc_cv_as != x
; then
24878 sethi %gdop_hix22(foo), %g1
24879 xor %g1, %gdop_lox10(foo), %g1
24880 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24881 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24883 (eval $ac_try) 2>&5
24885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24886 test $ac_status = 0; }; }
24888 if test x
$gcc_cv_ld != x \
24889 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24890 if test x
$gcc_cv_objdump != x
; then
24891 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24892 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24893 gcc_cv_as_sparc_gotdata_op
=no
24895 gcc_cv_as_sparc_gotdata_op
=yes
24901 echo "configure: failed program was" >&5
24904 rm -f conftest.o conftest.s
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24908 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24909 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24911 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24916 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24917 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24918 $as_echo_n "(cached) " >&6
24920 gcc_cv_as_sparc_ua_pcrel
=no
24921 if test x
$gcc_cv_as != x
; then
24928 .uaword %r_disp32(foo)' > conftest.s
24929 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24931 (eval $ac_try) 2>&5
24933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24934 test $ac_status = 0; }; }
24936 if test x
$gcc_cv_ld != x \
24937 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24938 gcc_cv_as_sparc_ua_pcrel
=yes
24942 echo "configure: failed program was" >&5
24945 rm -f conftest.o conftest.s
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24949 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24950 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24952 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24956 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24957 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24958 $as_echo_n "(cached) " >&6
24960 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24961 if test x
$gcc_cv_as != x
; then
24965 .uaword %r_disp32(foo)
24966 .byte 0x32, 0x33, 0x34
24970 .skip 4' > conftest.s
24971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24978 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24979 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24980 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24981 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24982 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24983 |
grep 'DISP32' > /dev
/null
2>&1; then
24986 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24991 echo "configure: failed program was" >&5
24994 rm -f conftest.o conftest.s
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24998 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24999 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25001 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25005 fi # unaligned pcrel relocs
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25008 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25009 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25010 $as_echo_n "(cached) " >&6
25012 gcc_cv_as_sparc_offsetable_lo10
=no
25013 if test x
$gcc_cv_as != x
; then
25015 or %g1, %lo(ab) + 12, %g1
25016 or %g1, %lo(ab + 12), %g1' > conftest.s
25017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25019 (eval $ac_try) 2>&5
25021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25022 test $ac_status = 0; }; }
25024 if test x
$gcc_cv_objdump != x \
25025 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25026 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25027 gcc_cv_as_sparc_offsetable_lo10
=yes
25030 echo "configure: failed program was" >&5
25033 rm -f conftest.o conftest.s
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25037 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25038 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25040 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25045 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25046 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25049 gcc_cv_as_sparc_fmaf
=no
25050 if test x
$gcc_cv_as != x
; then
25052 .register %g2, #scratch
25053 .register %g3, #scratch
25055 fmaddd %f0, %f2, %f4, %f6
25056 addxccc %g1, %g2, %g3
25057 fsrl32 %f2, %f4, %f8
25058 fnaddd %f10, %f12, %f14' > conftest.s
25059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; }
25066 gcc_cv_as_sparc_fmaf
=yes
25068 echo "configure: failed program was" >&5
25071 rm -f conftest.o conftest.s
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25075 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25076 if test $gcc_cv_as_sparc_fmaf = yes; then
25078 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25083 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25084 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25085 $as_echo_n "(cached) " >&6
25087 gcc_cv_as_sparc_sparc4
=no
25088 if test x
$gcc_cv_as != x
; then
25090 .register %g2, #scratch
25091 .register %g3, #scratch
25094 1: cwbneg %g2, %g3, 1f
25097 aes_kexpand0 %f4, %f6, %f8
25098 des_round %f38, %f40, %f42, %f44
25099 camellia_f %f54, %f56, %f58, %f60
25100 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25101 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25108 gcc_cv_as_sparc_sparc4
=yes
25110 echo "configure: failed program was" >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25117 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25118 if test $gcc_cv_as_sparc_sparc4 = yes; then
25120 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25125 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25126 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25129 gcc_cv_as_sparc_sparc5
=no
25130 if test x
$gcc_cv_as != x
; then
25132 .register %g2, #scratch
25133 .register %g3, #scratch
25135 subxc %g1, %g2, %g3
25136 fpadd8 %f0, %f2, %f4' > conftest.s
25137 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25139 (eval $ac_try) 2>&5
25141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25142 test $ac_status = 0; }; }
25144 gcc_cv_as_sparc_sparc5
=yes
25146 echo "configure: failed program was" >&5
25149 rm -f conftest.o conftest.s
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25153 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25154 if test $gcc_cv_as_sparc_sparc5 = yes; then
25156 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25161 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25162 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25163 $as_echo_n "(cached) " >&6
25165 gcc_cv_as_sparc_leon
=no
25166 if test x
$gcc_cv_as != x
; then
25168 .register %g2, #scratch
25169 .register %g3, #scratch
25173 casa [%g2] 0xb, %g3, %g1' > conftest.s
25174 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25176 (eval $ac_try) 2>&5
25178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25179 test $ac_status = 0; }; }
25181 gcc_cv_as_sparc_leon
=yes
25183 echo "configure: failed program was" >&5
25186 rm -f conftest.o conftest.s
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25190 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25191 if test $gcc_cv_as_sparc_leon = yes; then
25193 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25198 i
[34567]86-*-* | x86_64-
*-*)
25201 # Full C++ conformance when using a shared libstdc++-v3 requires some
25202 # support from the Cygwin DLL, which in more recent versions exports
25203 # wrappers to aid in interposing and redirecting operators new, delete,
25204 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25205 # are configuring for a version of Cygwin that exports the wrappers.
25206 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25207 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25208 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25209 gcc_ac_cygwin_dll_wrappers
=yes
25211 gcc_ac_cygwin_dll_wrappers
=no
25215 # Can't check presence of libc functions during cross-compile, so
25216 # we just have to assume we're building for an up-to-date target.
25217 gcc_ac_cygwin_dll_wrappers
=yes
25220 cat >>confdefs.h
<<_ACEOF
25221 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25226 cygwin
* | pe | mingw32
*)
25227 # Recent binutils allows the three-operand form of ".comm" on PE. This
25228 # definition is used unconditionally to initialise the default state of
25229 # the target option variable that governs usage of the feature.
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25231 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25232 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25233 $as_echo_n "(cached) " >&6
25235 gcc_cv_as_comm_has_align
=no
25236 if test $in_tree_gas = yes; then
25237 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25238 then gcc_cv_as_comm_has_align
=yes
25240 elif test x
$gcc_cv_as != x
; then
25241 $as_echo '.comm foo,1,32' > conftest.s
25242 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25244 (eval $ac_try) 2>&5
25246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25247 test $ac_status = 0; }; }
25249 gcc_cv_as_comm_has_align
=yes
25251 echo "configure: failed program was" >&5
25254 rm -f conftest.o conftest.s
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25258 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25261 cat >>confdefs.h
<<_ACEOF
25262 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25265 # Used for DWARF 2 in PE
25266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25267 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25268 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25269 $as_echo_n "(cached) " >&6
25271 gcc_cv_as_ix86_pe_secrel32
=no
25272 if test $in_tree_gas = yes; then
25273 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25274 then gcc_cv_as_ix86_pe_secrel32
=yes
25276 elif test x
$gcc_cv_as != x
; then
25280 .secrel32 foo' > conftest.s
25281 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25283 (eval $ac_try) 2>&5
25285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25286 test $ac_status = 0; }; }
25288 if test x
$gcc_cv_ld != x \
25289 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25290 gcc_cv_as_ix86_pe_secrel32
=yes
25294 echo "configure: failed program was" >&5
25297 rm -f conftest.o conftest.s
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25301 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25302 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25304 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25307 # Test if the assembler supports the extended form of the .section
25308 # directive that specifies section alignment. LTO support uses this,
25309 # but normally only after installation, so we warn but don't fail the
25310 # configure if LTO is enabled but the assembler does not support it.
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25312 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25313 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25314 $as_echo_n "(cached) " >&6
25316 gcc_cv_as_section_has_align
=no
25317 if test $in_tree_gas = yes; then
25318 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25319 then gcc_cv_as_section_has_align
=yes
25321 elif test x
$gcc_cv_as != x
; then
25322 $as_echo '.section lto_test,"dr0"' > conftest.s
25323 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25325 (eval $ac_try) 2>&5
25327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25328 test $ac_status = 0; }; }
25330 gcc_cv_as_section_has_align
=yes
25332 echo "configure: failed program was" >&5
25335 rm -f conftest.o conftest.s
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25339 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25341 if test x
$gcc_cv_as_section_has_align != xyes
; then
25342 case ",$enable_languages," in
25344 { $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
25345 $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;}
25352 # Test if the assembler supports the section flag 'e' for specifying
25353 # an excluded section.
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25355 $as_echo_n "checking assembler for .section with e... " >&6; }
25356 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25357 $as_echo_n "(cached) " >&6
25359 gcc_cv_as_section_has_e
=no
25360 if test $in_tree_gas = yes; then
25361 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25362 then gcc_cv_as_section_has_e
=yes
25364 elif test x
$gcc_cv_as != x
; then
25365 $as_echo '.section foo1,"e"
25366 .byte 0,0,0,0' > conftest.s
25367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25369 (eval $ac_try) 2>&5
25371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25372 test $ac_status = 0; }; }
25374 gcc_cv_as_section_has_e
=yes
25376 echo "configure: failed program was" >&5
25379 rm -f conftest.o conftest.s
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25383 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25386 cat >>confdefs.h
<<_ACEOF
25387 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25392 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25393 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25394 $as_echo_n "(cached) " >&6
25396 gcc_cv_as_ix86_filds
=no
25397 if test x
$gcc_cv_as != x
; then
25398 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25399 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25401 (eval $ac_try) 2>&5
25403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25404 test $ac_status = 0; }; }
25406 gcc_cv_as_ix86_filds
=yes
25408 echo "configure: failed program was" >&5
25411 rm -f conftest.o conftest.s
25414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25415 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25416 if test $gcc_cv_as_ix86_filds = yes; then
25418 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25423 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25424 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25425 $as_echo_n "(cached) " >&6
25427 gcc_cv_as_ix86_fildq
=no
25428 if test x
$gcc_cv_as != x
; then
25429 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }
25437 gcc_cv_as_ix86_fildq
=yes
25439 echo "configure: failed program was" >&5
25442 rm -f conftest.o conftest.s
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25446 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25447 if test $gcc_cv_as_ix86_fildq = yes; then
25449 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25454 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25455 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25456 $as_echo_n "(cached) " >&6
25458 gcc_cv_as_ix86_cmov_sun_syntax
=no
25459 if test x
$gcc_cv_as != x
; then
25460 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25463 (eval $ac_try) 2>&5
25465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25466 test $ac_status = 0; }; }
25468 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25470 echo "configure: failed program was" >&5
25473 rm -f conftest.o conftest.s
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25477 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25478 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25480 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25485 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25486 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25487 $as_echo_n "(cached) " >&6
25489 gcc_cv_as_ix86_ffreep
=no
25490 if test x
$gcc_cv_as != x
; then
25491 $as_echo 'ffreep %st(1)' > conftest.s
25492 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25494 (eval $ac_try) 2>&5
25496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25497 test $ac_status = 0; }; }
25499 gcc_cv_as_ix86_ffreep
=yes
25501 echo "configure: failed program was" >&5
25504 rm -f conftest.o conftest.s
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25508 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25509 if test $gcc_cv_as_ix86_ffreep = yes; then
25511 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25516 $as_echo_n "checking assembler for .quad directive... " >&6; }
25517 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25518 $as_echo_n "(cached) " >&6
25520 gcc_cv_as_ix86_quad
=no
25521 if test x
$gcc_cv_as != x
; then
25522 $as_echo '.quad 0' > conftest.s
25523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25525 (eval $ac_try) 2>&5
25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528 test $ac_status = 0; }; }
25530 gcc_cv_as_ix86_quad
=yes
25532 echo "configure: failed program was" >&5
25535 rm -f conftest.o conftest.s
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25539 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25540 if test $gcc_cv_as_ix86_quad = yes; then
25542 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25547 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25548 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25549 $as_echo_n "(cached) " >&6
25551 gcc_cv_as_ix86_sahf
=no
25552 if test x
$gcc_cv_as != x
; then
25555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25557 (eval $ac_try) 2>&5
25559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25560 test $ac_status = 0; }; }
25562 gcc_cv_as_ix86_sahf
=yes
25564 echo "configure: failed program was" >&5
25567 rm -f conftest.o conftest.s
25570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25571 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25572 if test $gcc_cv_as_ix86_sahf = yes; then
25574 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25579 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25580 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25581 $as_echo_n "(cached) " >&6
25583 gcc_cv_as_ix86_interunit_movq
=no
25584 if test x
$gcc_cv_as != x
; then
25587 movq %rax, %xmm0' > conftest.s
25588 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25590 (eval $ac_try) 2>&5
25592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25593 test $ac_status = 0; }; }
25595 gcc_cv_as_ix86_interunit_movq
=yes
25597 echo "configure: failed program was" >&5
25600 rm -f conftest.o conftest.s
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25604 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25607 cat >>confdefs.h
<<_ACEOF
25608 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25613 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25614 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25615 $as_echo_n "(cached) " >&6
25617 gcc_cv_as_ix86_hle
=no
25618 if test x
$gcc_cv_as != x
; then
25619 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25620 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25622 (eval $ac_try) 2>&5
25624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25625 test $ac_status = 0; }; }
25627 gcc_cv_as_ix86_hle
=yes
25629 echo "configure: failed program was" >&5
25632 rm -f conftest.o conftest.s
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25636 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25637 if test $gcc_cv_as_ix86_hle = yes; then
25639 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25644 $as_echo_n "checking assembler for swap suffix... " >&6; }
25645 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25646 $as_echo_n "(cached) " >&6
25648 gcc_cv_as_ix86_swap
=no
25649 if test x
$gcc_cv_as != x
; then
25650 $as_echo 'movl.s %esp, %ebp' > conftest.s
25651 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25653 (eval $ac_try) 2>&5
25655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25656 test $ac_status = 0; }; }
25658 gcc_cv_as_ix86_swap
=yes
25660 echo "configure: failed program was" >&5
25663 rm -f conftest.o conftest.s
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25667 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25668 if test $gcc_cv_as_ix86_swap = yes; then
25670 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25675 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25676 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25677 $as_echo_n "(cached) " >&6
25679 gcc_cv_as_ix86_diff_sect_delta
=no
25680 if test x
$gcc_cv_as != x
; then
25681 $as_echo '.section .rodata
25687 .L2: nop' > conftest.s
25688 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25690 (eval $ac_try) 2>&5
25692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25693 test $ac_status = 0; }; }
25695 gcc_cv_as_ix86_diff_sect_delta
=yes
25697 echo "configure: failed program was" >&5
25700 rm -f conftest.o conftest.s
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25704 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25705 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25707 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25712 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25713 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25714 $as_echo_n "(cached) " >&6
25716 gcc_cv_as_ix86_rep_lock_prefix
=no
25717 if test x
$gcc_cv_as != x
; then
25718 $as_echo 'rep movsl
25723 lock addl %edi, (%eax,%esi)
25724 lock orl $0, (%esp)' > conftest.s
25725 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25727 (eval $ac_try) 2>&5
25729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25730 test $ac_status = 0; }; }
25732 gcc_cv_as_ix86_rep_lock_prefix
=yes
25734 echo "configure: failed program was" >&5
25737 rm -f conftest.o conftest.s
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25741 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25742 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25744 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25749 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25750 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25751 $as_echo_n "(cached) " >&6
25753 gcc_cv_as_ix86_ud2
=no
25754 if test x
$gcc_cv_as != x
; then
25755 $as_echo 'ud2' > conftest.s
25756 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25758 (eval $ac_try) 2>&5
25760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25761 test $ac_status = 0; }; }
25763 gcc_cv_as_ix86_ud2
=yes
25765 echo "configure: failed program was" >&5
25768 rm -f conftest.o conftest.s
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25772 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25773 if test $gcc_cv_as_ix86_ud2 = yes; then
25775 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25779 # Enforce 32-bit output with gas and gld.
25780 if test x
$gas = xyes
; then
25781 as_ix86_gas_32_opt
="--32"
25783 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25784 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25785 ld_ix86_gld_32_opt
="-melf_i386_sol2"
25787 ld_ix86_gld_32_opt
="-melf_i386"
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25792 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25793 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25794 $as_echo_n "(cached) " >&6
25796 gcc_cv_as_ix86_tlsgdplt
=no
25797 if test x
$gcc_cv_as != x
; then
25798 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25801 (eval $ac_try) 2>&5
25803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25804 test $ac_status = 0; }; }
25806 if test x
$gcc_cv_ld != x \
25807 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25808 gcc_cv_as_ix86_tlsgdplt
=yes
25812 echo "configure: failed program was" >&5
25815 rm -f conftest.o conftest.s
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25819 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25820 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25822 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25827 .section .tdata,"aw'$tls_section_flag'",@progbits
25829 .section .text,"ax",@progbits
25830 call tls_ld@tlsldmplt'
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25833 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25834 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25835 $as_echo_n "(cached) " >&6
25837 gcc_cv_as_ix86_tlsldmplt
=no
25838 if test x
$gcc_cv_as != x
; then
25839 $as_echo "$conftest_s" > conftest.s
25840 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25841 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25842 (eval $ac_try) 2>&5
25844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25845 test $ac_status = 0; }; }
25847 if test x
$gcc_cv_ld != x \
25848 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25849 gcc_cv_as_ix86_tlsldmplt
=yes
25853 echo "configure: failed program was" >&5
25856 rm -f conftest.o conftest.s
25859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25860 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25863 cat >>confdefs.h
<<_ACEOF
25864 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25869 .section .text,"ax",@progbits
25871 .type _start, @function
25873 leal value@tlsldm(%ebx), %eax
25874 call ___tls_get_addr@plt
25876 .section .tdata,"aw'$tls_section_flag'",@progbits
25877 .type value, @object
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25880 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25881 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25882 $as_echo_n "(cached) " >&6
25884 gcc_cv_as_ix86_tlsldm
=no
25885 if test x
$gcc_cv_as != x
; then
25886 $as_echo "$conftest_s" > conftest.s
25887 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25889 (eval $ac_try) 2>&5
25891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25892 test $ac_status = 0; }; }
25894 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25895 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25896 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25897 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25898 gcc_cv_as_ix86_tlsldm
=yes
25903 echo "configure: failed program was" >&5
25906 rm -f conftest.o conftest.s
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25910 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25913 cat >>confdefs.h
<<_ACEOF
25914 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25928 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25929 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
25930 $as_echo_n "(cached) " >&6
25932 gcc_cv_as_ix86_got32x
=no
25933 if test x
$gcc_cv_as != x
; then
25934 $as_echo "$conftest_s" > conftest.s
25935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25937 (eval $ac_try) 2>&5
25939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25940 test $ac_status = 0; }; }
25942 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25943 && test x
$gcc_cv_readelf != x \
25944 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
25945 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
25946 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
25947 if $gcc_cv_objdump -dw conftest
2>&1 \
25948 |
grep 0xffffff > /dev
/null
2>&1; then
25949 gcc_cv_as_ix86_got32x
=no
25951 gcc_cv_as_ix86_got32x
=yes
25956 echo "configure: failed program was" >&5
25959 rm -f conftest.o conftest.s
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
25963 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
25966 cat >>confdefs.h
<<_ACEOF
25967 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25972 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25973 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25974 $as_echo_n "(cached) " >&6
25976 gcc_cv_as_ix86_gotoff_in_data
=no
25977 if test $in_tree_gas = yes; then
25978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25979 then gcc_cv_as_ix86_gotoff_in_data
=yes
25981 elif test x
$gcc_cv_as != x
; then
25986 .long .L0@GOTOFF' > conftest.s
25987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25989 (eval $ac_try) 2>&5
25991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25992 test $ac_status = 0; }; }
25994 gcc_cv_as_ix86_gotoff_in_data
=yes
25996 echo "configure: failed program was" >&5
25999 rm -f conftest.o conftest.s
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26003 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26006 cat >>confdefs.h
<<_ACEOF
26007 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26012 .section .text,"ax",@progbits
26014 .type _start, @function
26016 leal ld@tlsldm(%ecx), %eax
26017 call *___tls_get_addr@GOT(%ecx)
26018 leal gd@tlsgd(%ecx), %eax
26019 call *___tls_get_addr@GOT(%ecx)
26021 .section .tdata,"aw'$tls_section_flag'",@progbits
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26030 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26031 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26032 $as_echo_n "(cached) " >&6
26034 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26035 if test x
$gcc_cv_as != x
; then
26036 $as_echo "$conftest_s" > conftest.s
26037 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26039 (eval $ac_try) 2>&5
26041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26042 test $ac_status = 0; }; }
26044 if test x
$gcc_cv_ld != x \
26045 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26046 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26050 echo "configure: failed program was" >&5
26053 rm -f conftest.o conftest.s
26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26057 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26060 cat >>confdefs.h
<<_ACEOF
26061 #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`
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26068 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26069 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26070 $as_echo_n "(cached) " >&6
26072 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26073 if test $in_tree_gas = yes; then
26074 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26075 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26077 elif test x
$gcc_cv_as != x
; then
26079 addl r15 = @ltoffx(x#), gp
26081 ld8.mov r16 = [r15], x#' > conftest.s
26082 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26084 (eval $ac_try) 2>&5
26086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26087 test $ac_status = 0; }; }
26089 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26091 echo "configure: failed program was" >&5
26094 rm -f conftest.o conftest.s
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26098 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26099 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26101 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26112 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26113 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26114 $as_echo_n "(cached) " >&6
26116 gcc_cv_as_machine_directive
=no
26117 if test x
$gcc_cv_as != x
; then
26118 $as_echo ' .machine ppc7400' > conftest.s
26119 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26121 (eval $ac_try) 2>&5
26123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26124 test $ac_status = 0; }; }
26126 gcc_cv_as_machine_directive
=yes
26128 echo "configure: failed program was" >&5
26131 rm -f conftest.o conftest.s
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26135 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26137 if test x
$gcc_cv_as_machine_directive != xyes
; then
26138 echo "*** This target requires an assembler supporting \".machine\"" >&2
26139 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26140 test x
$build = x
$target && exit 1
26146 *-*-aix*) conftest_s
=' .machine "pwr5"
26149 *-*-darwin*) conftest_s
=' .text
26151 *) conftest_s
=' .machine power4
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26157 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26158 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26159 $as_echo_n "(cached) " >&6
26161 gcc_cv_as_powerpc_mfcrf
=no
26162 if test $in_tree_gas = yes; then
26163 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26164 then gcc_cv_as_powerpc_mfcrf
=yes
26166 elif test x
$gcc_cv_as != x
; then
26167 $as_echo "$conftest_s" > conftest.s
26168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26170 (eval $ac_try) 2>&5
26172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26173 test $ac_status = 0; }; }
26175 gcc_cv_as_powerpc_mfcrf
=yes
26177 echo "configure: failed program was" >&5
26180 rm -f conftest.o conftest.s
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26184 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26185 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26187 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26192 *-*-aix*) conftest_s
=' .machine "pwr5"
26195 *) conftest_s
=' .machine power5
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26201 $as_echo_n "checking assembler for popcntb support... " >&6; }
26202 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26203 $as_echo_n "(cached) " >&6
26205 gcc_cv_as_powerpc_popcntb
=no
26206 if test $in_tree_gas = yes; then
26207 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26208 then gcc_cv_as_powerpc_popcntb
=yes
26210 elif test x
$gcc_cv_as != x
; then
26211 $as_echo "$conftest_s" > conftest.s
26212 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26214 (eval $ac_try) 2>&5
26216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26217 test $ac_status = 0; }; }
26219 gcc_cv_as_powerpc_popcntb
=yes
26221 echo "configure: failed program was" >&5
26224 rm -f conftest.o conftest.s
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26228 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26229 if test $gcc_cv_as_powerpc_popcntb = yes; then
26231 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26236 *-*-aix*) conftest_s
=' .machine "pwr5x"
26239 *) conftest_s
=' .machine power5
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26245 $as_echo_n "checking assembler for fp round support... " >&6; }
26246 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26249 gcc_cv_as_powerpc_fprnd
=no
26250 if test $in_tree_gas = yes; then
26251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26252 then gcc_cv_as_powerpc_fprnd
=yes
26254 elif test x
$gcc_cv_as != x
; then
26255 $as_echo "$conftest_s" > conftest.s
26256 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26258 (eval $ac_try) 2>&5
26260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26261 test $ac_status = 0; }; }
26263 gcc_cv_as_powerpc_fprnd
=yes
26265 echo "configure: failed program was" >&5
26268 rm -f conftest.o conftest.s
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26272 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26273 if test $gcc_cv_as_powerpc_fprnd = yes; then
26275 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26280 *-*-aix*) conftest_s
=' .machine "pwr6"
26283 *) conftest_s
=' .machine power6
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26289 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26290 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26291 $as_echo_n "(cached) " >&6
26293 gcc_cv_as_powerpc_mfpgpr
=no
26294 if test $in_tree_gas = yes; then
26295 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26296 then gcc_cv_as_powerpc_mfpgpr
=yes
26298 elif test x
$gcc_cv_as != x
; then
26299 $as_echo "$conftest_s" > conftest.s
26300 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26302 (eval $ac_try) 2>&5
26304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26305 test $ac_status = 0; }; }
26307 gcc_cv_as_powerpc_mfpgpr
=yes
26309 echo "configure: failed program was" >&5
26312 rm -f conftest.o conftest.s
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26316 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26317 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26319 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26324 *-*-aix*) conftest_s
=' .csect .text[PR]
26326 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26330 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26331 *) conftest_s
=' .text
26333 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26337 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26338 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26339 $as_echo_n "(cached) " >&6
26341 gcc_cv_as_powerpc_rel16
=no
26342 if test $in_tree_gas = yes; then
26343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26344 then gcc_cv_as_powerpc_rel16
=yes
26346 elif test x
$gcc_cv_as != x
; then
26347 $as_echo "$conftest_s" > conftest.s
26348 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26350 (eval $ac_try) 2>&5
26352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26353 test $ac_status = 0; }; }
26355 gcc_cv_as_powerpc_rel16
=yes
26357 echo "configure: failed program was" >&5
26360 rm -f conftest.o conftest.s
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26364 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26365 if test $gcc_cv_as_powerpc_rel16 = yes; then
26367 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26372 *-*-aix*) conftest_s
=' .machine "pwr6"
26375 *) conftest_s
=' .machine power6
26380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26381 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26382 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26383 $as_echo_n "(cached) " >&6
26385 gcc_cv_as_powerpc_cmpb
=no
26386 if test $in_tree_gas = yes; then
26387 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26388 then gcc_cv_as_powerpc_cmpb
=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 -a32 -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_cmpb
=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_cmpb" >&5
26408 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26409 if test $gcc_cv_as_powerpc_cmpb = yes; then
26411 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26416 *-*-aix*) conftest_s
=' .machine "pwr6"
26419 *) conftest_s
=' .machine power6
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26425 $as_echo_n "checking assembler for decimal float support... " >&6; }
26426 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26427 $as_echo_n "(cached) " >&6
26429 gcc_cv_as_powerpc_dfp
=no
26430 if test $in_tree_gas = yes; then
26431 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26432 then gcc_cv_as_powerpc_dfp
=yes
26434 elif test x
$gcc_cv_as != x
; then
26435 $as_echo "$conftest_s" > conftest.s
26436 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26438 (eval $ac_try) 2>&5
26440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26441 test $ac_status = 0; }; }
26443 gcc_cv_as_powerpc_dfp
=yes
26445 echo "configure: failed program was" >&5
26448 rm -f conftest.o conftest.s
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26452 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26453 if test $gcc_cv_as_powerpc_dfp = yes; then
26455 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26460 *-*-aix*) conftest_s
=' .machine "pwr7"
26463 *) conftest_s
=' .machine power7
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26469 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26470 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26471 $as_echo_n "(cached) " >&6
26473 gcc_cv_as_powerpc_vsx
=no
26474 if test $in_tree_gas = yes; then
26475 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26476 then gcc_cv_as_powerpc_vsx
=yes
26478 elif test x
$gcc_cv_as != x
; then
26479 $as_echo "$conftest_s" > conftest.s
26480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26482 (eval $ac_try) 2>&5
26484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26485 test $ac_status = 0; }; }
26487 gcc_cv_as_powerpc_vsx
=yes
26489 echo "configure: failed program was" >&5
26492 rm -f conftest.o conftest.s
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26496 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26497 if test $gcc_cv_as_powerpc_vsx = yes; then
26499 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26504 *-*-aix*) conftest_s
=' .machine "pwr7"
26507 *) conftest_s
=' .machine power7
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26513 $as_echo_n "checking assembler for popcntd support... " >&6; }
26514 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26517 gcc_cv_as_powerpc_popcntd
=no
26518 if test $in_tree_gas = yes; then
26519 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26520 then gcc_cv_as_powerpc_popcntd
=yes
26522 elif test x
$gcc_cv_as != x
; then
26523 $as_echo "$conftest_s" > conftest.s
26524 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26526 (eval $ac_try) 2>&5
26528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26529 test $ac_status = 0; }; }
26531 gcc_cv_as_powerpc_popcntd
=yes
26533 echo "configure: failed program was" >&5
26536 rm -f conftest.o conftest.s
26539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26540 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26541 if test $gcc_cv_as_powerpc_popcntd = yes; then
26543 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26548 *-*-aix*) conftest_s
=' .machine "pwr8"
26549 .csect .text[PR]';;
26550 *) conftest_s
=' .machine power8
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26555 $as_echo_n "checking assembler for power8 support... " >&6; }
26556 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26557 $as_echo_n "(cached) " >&6
26559 gcc_cv_as_powerpc_power8
=no
26560 if test $in_tree_gas = yes; then
26561 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26562 then gcc_cv_as_powerpc_power8
=yes
26564 elif test x
$gcc_cv_as != x
; then
26565 $as_echo "$conftest_s" > conftest.s
26566 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26568 (eval $ac_try) 2>&5
26570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26571 test $ac_status = 0; }; }
26573 gcc_cv_as_powerpc_power8
=yes
26575 echo "configure: failed program was" >&5
26578 rm -f conftest.o conftest.s
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26582 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26583 if test $gcc_cv_as_powerpc_power8 = yes; then
26585 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26590 *-*-aix*) conftest_s
=' .machine "pwr9"
26591 .csect .text[PR]';;
26592 *) conftest_s
=' .machine power9
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26597 $as_echo_n "checking assembler for power9 support... " >&6; }
26598 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26599 $as_echo_n "(cached) " >&6
26601 gcc_cv_as_powerpc_power9
=no
26602 if test $in_tree_gas = yes; then
26603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26604 then gcc_cv_as_powerpc_power9
=yes
26606 elif test x
$gcc_cv_as != x
; then
26607 $as_echo "$conftest_s" > conftest.s
26608 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26610 (eval $ac_try) 2>&5
26612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26613 test $ac_status = 0; }; }
26615 gcc_cv_as_powerpc_power9
=yes
26617 echo "configure: failed program was" >&5
26620 rm -f conftest.o conftest.s
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26624 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26625 if test $gcc_cv_as_powerpc_power9 = yes; then
26627 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26632 *-*-aix*) conftest_s
=' .csect .text[PR]
26634 *) conftest_s
=' .text
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26639 $as_echo_n "checking assembler for lwsync support... " >&6; }
26640 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26641 $as_echo_n "(cached) " >&6
26643 gcc_cv_as_powerpc_lwsync
=no
26644 if test $in_tree_gas = yes; then
26645 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26646 then gcc_cv_as_powerpc_lwsync
=yes
26648 elif test x
$gcc_cv_as != x
; then
26649 $as_echo "$conftest_s" > conftest.s
26650 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26652 (eval $ac_try) 2>&5
26654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26655 test $ac_status = 0; }; }
26657 gcc_cv_as_powerpc_lwsync
=yes
26659 echo "configure: failed program was" >&5
26662 rm -f conftest.o conftest.s
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26666 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26667 if test $gcc_cv_as_powerpc_lwsync = yes; then
26669 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26674 *-*-aix*) conftest_s
=' .machine "476"
26677 *) conftest_s
=' .machine "476"
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26683 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26684 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26685 $as_echo_n "(cached) " >&6
26687 gcc_cv_as_powerpc_dci
=no
26688 if test $in_tree_gas = yes; then
26689 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26690 then gcc_cv_as_powerpc_dci
=yes
26692 elif test x
$gcc_cv_as != x
; then
26693 $as_echo "$conftest_s" > conftest.s
26694 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26696 (eval $ac_try) 2>&5
26698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26699 test $ac_status = 0; }; }
26701 gcc_cv_as_powerpc_dci
=yes
26703 echo "configure: failed program was" >&5
26706 rm -f conftest.o conftest.s
26709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26710 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26711 if test $gcc_cv_as_powerpc_dci = yes; then
26713 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26718 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26719 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26720 $as_echo_n "(cached) " >&6
26722 gcc_cv_as_powerpc_gnu_attribute
=no
26723 if test $in_tree_gas = yes; then
26724 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26725 then gcc_cv_as_powerpc_gnu_attribute
=yes
26727 elif test x
$gcc_cv_as != x
; then
26728 $as_echo '.gnu_attribute 4,1' > conftest.s
26729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26731 (eval $ac_try) 2>&5
26733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26734 test $ac_status = 0; }; }
26736 gcc_cv_as_powerpc_gnu_attribute
=yes
26738 echo "configure: failed program was" >&5
26741 rm -f conftest.o conftest.s
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26745 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26746 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26748 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26753 $as_echo_n "checking assembler for tls marker support... " >&6; }
26754 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26755 $as_echo_n "(cached) " >&6
26757 gcc_cv_as_powerpc_tls_markers
=no
26758 if test $in_tree_gas = yes; then
26759 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26760 then gcc_cv_as_powerpc_tls_markers
=yes
26762 elif test x
$gcc_cv_as != x
; then
26763 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26764 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26771 gcc_cv_as_powerpc_tls_markers
=yes
26773 echo "configure: failed program was" >&5
26776 rm -f conftest.o conftest.s
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26780 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26781 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26783 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26788 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26789 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26790 $as_echo_n "(cached) " >&6
26792 gcc_cv_as_powerpc_entry_markers
=no
26793 if test $in_tree_gas = yes; then
26794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26795 then gcc_cv_as_powerpc_entry_markers
=yes
26797 elif test x
$gcc_cv_as != x
; then
26798 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26799 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -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_entry_markers
=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_entry_markers" >&5
26815 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26816 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26818 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26825 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26826 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26827 $as_echo_n "(cached) " >&6
26829 gcc_cv_as_aix_ref
=no
26830 if test $in_tree_gas = yes; then
26831 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26832 then gcc_cv_as_aix_ref
=yes
26834 elif test x
$gcc_cv_as != x
; then
26835 $as_echo ' .csect stuff[rw]
26841 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26843 (eval $ac_try) 2>&5
26845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26846 test $ac_status = 0; }; }
26848 gcc_cv_as_aix_ref
=yes
26850 echo "configure: failed program was" >&5
26853 rm -f conftest.o conftest.s
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26857 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26858 if test $gcc_cv_as_aix_ref = yes; then
26860 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26865 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26866 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26867 $as_echo_n "(cached) " >&6
26869 gcc_cv_as_aix_dwloc
=no
26870 if test $in_tree_gas = yes; then
26871 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26872 then gcc_cv_as_aix_dwloc
=yes
26874 elif test x
$gcc_cv_as != x
; then
26875 $as_echo ' .dwsect 0xA0000
26877 .vbyte 4,Lframe..0:
26879 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26881 (eval $ac_try) 2>&5
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; }
26886 gcc_cv_as_aix_dwloc
=yes
26888 echo "configure: failed program was" >&5
26891 rm -f conftest.o conftest.s
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26895 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26896 if test $gcc_cv_as_aix_dwloc = yes; then
26898 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26907 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26908 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26909 $as_echo_n "(cached) " >&6
26911 gcc_cv_as_mips_explicit_relocs
=no
26912 if test $in_tree_gas = yes; then
26913 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26914 then gcc_cv_as_mips_explicit_relocs
=yes
26916 elif test x
$gcc_cv_as != x
; then
26917 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26920 (eval $ac_try) 2>&5
26922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26923 test $ac_status = 0; }; }
26925 gcc_cv_as_mips_explicit_relocs
=yes
26927 echo "configure: failed program was" >&5
26930 rm -f conftest.o conftest.s
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26934 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26935 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26936 if test x
$target_cpu_default = x
26937 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26938 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26943 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26944 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26945 $as_echo_n "(cached) " >&6
26947 gcc_cv_as_mips_no_shared
=no
26948 if test $in_tree_gas = yes; then
26949 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26950 then gcc_cv_as_mips_no_shared
=yes
26952 elif test x
$gcc_cv_as != x
; then
26953 $as_echo 'nop' > conftest.s
26954 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26956 (eval $ac_try) 2>&5
26958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26959 test $ac_status = 0; }; }
26961 gcc_cv_as_mips_no_shared
=yes
26963 echo "configure: failed program was" >&5
26966 rm -f conftest.o conftest.s
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26970 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26971 if test $gcc_cv_as_mips_no_shared = yes; then
26973 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26978 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26979 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26980 $as_echo_n "(cached) " >&6
26982 gcc_cv_as_mips_gnu_attribute
=no
26983 if test $in_tree_gas = yes; then
26984 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26985 then gcc_cv_as_mips_gnu_attribute
=yes
26987 elif test x
$gcc_cv_as != x
; then
26988 $as_echo '.gnu_attribute 4,1' > conftest.s
26989 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26991 (eval $ac_try) 2>&5
26993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26994 test $ac_status = 0; }; }
26996 gcc_cv_as_mips_gnu_attribute
=yes
26998 echo "configure: failed program was" >&5
27001 rm -f conftest.o conftest.s
27004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27005 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27006 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27008 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27013 $as_echo_n "checking assembler for .module support... " >&6; }
27014 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27015 $as_echo_n "(cached) " >&6
27017 gcc_cv_as_mips_dot_module
=no
27018 if test x
$gcc_cv_as != x
; then
27019 $as_echo '.module mips2
27020 .module fp=xx' > conftest.s
27021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27028 gcc_cv_as_mips_dot_module
=yes
27030 echo "configure: failed program was" >&5
27033 rm -f conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27037 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27038 if test $gcc_cv_as_mips_dot_module = yes; then
27040 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27043 if test x
$gcc_cv_as_mips_dot_module = xno \
27044 && test x
$with_fp_32 != x
; then
27045 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27049 $as_echo_n "checking assembler for .micromips support... " >&6; }
27050 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27051 $as_echo_n "(cached) " >&6
27053 gcc_cv_as_micromips_support
=no
27054 if test x
$gcc_cv_as != x
; then
27055 $as_echo '.set micromips' > conftest.s
27056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27058 (eval $ac_try) 2>&5
27060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27061 test $ac_status = 0; }; }
27063 gcc_cv_as_micromips_support
=yes
27065 echo "configure: failed program was" >&5
27068 rm -f conftest.o conftest.s
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27072 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27073 if test $gcc_cv_as_micromips_support = yes; then
27075 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27080 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27081 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27082 $as_echo_n "(cached) " >&6
27084 gcc_cv_as_mips_dtprelword
=no
27085 if test $in_tree_gas = yes; then
27086 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27087 then gcc_cv_as_mips_dtprelword
=yes
27089 elif test x
$gcc_cv_as != x
; then
27090 $as_echo '.section .tdata,"awT",@progbits
27094 .dtprelword x+0x8000' > conftest.s
27095 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27097 (eval $ac_try) 2>&5
27099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27100 test $ac_status = 0; }; }
27102 gcc_cv_as_mips_dtprelword
=yes
27104 echo "configure: failed program was" >&5
27107 rm -f conftest.o conftest.s
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27111 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27112 if test $gcc_cv_as_mips_dtprelword = yes; then
27114 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27119 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27120 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27121 $as_echo_n "(cached) " >&6
27123 gcc_cv_as_mips_dspr1_mult
=no
27124 if test x
$gcc_cv_as != x
; then
27125 $as_echo ' .set mips32r2
27133 multu $ac3,$4,$5' > conftest.s
27134 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27136 (eval $ac_try) 2>&5
27138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27139 test $ac_status = 0; }; }
27141 gcc_cv_as_mips_dspr1_mult
=yes
27143 echo "configure: failed program was" >&5
27146 rm -f conftest.o conftest.s
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27150 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27151 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27153 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27158 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27159 gcc_cv_as_ld_jalr_reloc
=no
27160 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27161 if test $in_tree_ld = yes ; then
27162 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 \
27163 && test $in_tree_ld_is_elf = yes; then
27164 gcc_cv_as_ld_jalr_reloc
=yes
27166 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27167 echo ' .ent x' > conftest.s
27168 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27169 echo ' lw $25,%call16(y)($28)' >> conftest.s
27170 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27171 echo '1: jalr $25' >> conftest.s
27172 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27173 echo '1: jalr $25' >> conftest.s
27174 echo ' .end x' >> conftest.s
27175 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27176 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27177 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27178 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27179 gcc_cv_as_ld_jalr_reloc
=yes
27185 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27186 if test x
$target_cpu_default = x
; then
27187 target_cpu_default
=MASK_RELAX_PIC_CALLS
27189 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27193 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27196 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27197 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27198 $as_echo_n "(cached) " >&6
27200 gcc_cv_ld_mips_personality_relaxation
=no
27201 if test $in_tree_ld = yes ; then
27202 if test "$gcc_cv_gld_major_version" -eq 2 \
27203 -a "$gcc_cv_gld_minor_version" -ge 21 \
27204 -o "$gcc_cv_gld_major_version" -gt 2; then
27205 gcc_cv_ld_mips_personality_relaxation
=yes
27207 elif test x
$gcc_cv_as != x \
27208 -a x
$gcc_cv_ld != x \
27209 -a x
$gcc_cv_readelf != x
; then
27210 cat > conftest.s
<<EOF
27212 .cfi_personality 0x80,indirect_ptr
27219 .section .data,"aw",@progbits
27223 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27224 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27225 if $gcc_cv_readelf -d conftest
2>&1 \
27226 |
grep TEXTREL
> /dev
/null
2>&1; then
27228 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27229 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27232 gcc_cv_ld_mips_personality_relaxation
=yes
27236 rm -f conftest.s conftest.o conftest
27238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27239 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27240 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27242 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27247 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27248 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27249 $as_echo_n "(cached) " >&6
27251 gcc_cv_as_mips_nan
=no
27252 if test x
$gcc_cv_as != x
; then
27253 $as_echo '' > conftest.s
27254 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27256 (eval $ac_try) 2>&5
27258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27259 test $ac_status = 0; }; }
27261 gcc_cv_as_mips_nan
=yes
27263 echo "configure: failed program was" >&5
27266 rm -f conftest.o conftest.s
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27270 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27271 if test $gcc_cv_as_mips_nan = yes; then
27273 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27276 if test x
$gcc_cv_as_mips_nan = xno \
27277 && test x
$with_nan != x
; then
27278 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27283 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27284 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27285 $as_echo_n "(cached) " >&6
27287 gcc_cv_as_s390_gnu_attribute
=no
27288 if test $in_tree_gas = yes; then
27289 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27290 then gcc_cv_as_s390_gnu_attribute
=yes
27292 elif test x
$gcc_cv_as != x
; then
27293 $as_echo '.gnu_attribute 8,1' > conftest.s
27294 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27296 (eval $ac_try) 2>&5
27298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27299 test $ac_status = 0; }; }
27301 gcc_cv_as_s390_gnu_attribute
=yes
27303 echo "configure: failed program was" >&5
27306 rm -f conftest.o conftest.s
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27310 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27311 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27313 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27317 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27318 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27319 $as_echo_n "(cached) " >&6
27321 gcc_cv_as_s390_machine_machinemode
=no
27322 if test $in_tree_gas = yes; then
27323 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27324 then gcc_cv_as_s390_machine_machinemode
=yes
27326 elif test x
$gcc_cv_as != x
; then
27327 $as_echo ' .machinemode push
27330 .machine pop' > conftest.s
27331 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27333 (eval $ac_try) 2>&5
27335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27336 test $ac_status = 0; }; }
27338 gcc_cv_as_s390_machine_machinemode
=yes
27340 echo "configure: failed program was" >&5
27343 rm -f conftest.o conftest.s
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27347 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27348 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27350 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27354 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27355 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27356 $as_echo_n "(cached) " >&6
27358 gcc_cv_as_s390_architecture_modifiers
=no
27359 if test $in_tree_gas = yes; then
27360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27361 then gcc_cv_as_s390_architecture_modifiers
=yes
27363 elif test x
$gcc_cv_as != x
; then
27364 $as_echo ' .machine z13+vx ' > conftest.s
27365 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27367 (eval $ac_try) 2>&5
27369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27370 test $ac_status = 0; }; }
27372 gcc_cv_as_s390_architecture_modifiers
=yes
27374 echo "configure: failed program was" >&5
27377 rm -f conftest.o conftest.s
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27381 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27382 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27384 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27390 # Mips and HP-UX need the GNU assembler.
27391 # Linux on IA64 might be able to use the Intel assembler.
27394 mips
*-*-* |
*-*-hpux* )
27395 if test x
$gas_flag = xyes \
27396 ||
test x
"$host" != x
"$build" \
27397 ||
test ! -x "$gcc_cv_as" \
27398 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27401 echo "*** This configuration requires the GNU assembler" >&2
27407 # ??? Not all targets support dwarf2 debug_line, even within a version
27408 # of gas. Moreover, we need to emit a valid instruction to trigger any
27409 # info to the output file. So, as supported targets are added to gas 2.11,
27410 # add some instruction here to (also) show we expect this might work.
27411 # ??? Once 2.11 is released, probably need to add first known working
27412 # version to the per-target configury.
27413 case "$cpu_type" in
27414 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27415 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
27416 | visium | xstormy16 | xtensa
)
27426 if test x
"$insn" != x
; then
27428 .file 1 \"conftest.s\"
27431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27432 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27433 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27434 $as_echo_n "(cached) " >&6
27436 gcc_cv_as_dwarf2_debug_line
=no
27437 if test $in_tree_gas = yes; then
27438 if test $in_tree_gas_is_elf = yes \
27439 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27440 then gcc_cv_as_dwarf2_debug_line
=yes
27442 elif test x
$gcc_cv_as != x
; then
27443 $as_echo "$conftest_s" > conftest.s
27444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27446 (eval $ac_try) 2>&5
27448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27449 test $ac_status = 0; }; }
27451 if test x
$gcc_cv_objdump != x \
27452 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27453 |
grep debug_line
> /dev
/null
2>&1; then
27454 gcc_cv_as_dwarf2_debug_line
=yes
27457 echo "configure: failed program was" >&5
27460 rm -f conftest.o conftest.s
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27464 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27467 # The .debug_line file table must be in the exact order that
27468 # we specified the files, since these indices are also used
27469 # by DW_AT_decl_file. Approximate this test by testing if
27470 # the assembler bitches if the same index is assigned twice.
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27472 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27473 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27474 $as_echo_n "(cached) " >&6
27476 gcc_cv_as_dwarf2_file_buggy
=no
27477 if test x
$gcc_cv_as != x
; then
27478 $as_echo ' .file 1 "foo.s"
27479 .file 1 "bar.s"' > conftest.s
27480 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27482 (eval $ac_try) 2>&5
27484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27485 test $ac_status = 0; }; }
27487 gcc_cv_as_dwarf2_file_buggy
=yes
27489 echo "configure: failed program was" >&5
27492 rm -f conftest.o conftest.s
27495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27496 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27499 if test $gcc_cv_as_dwarf2_debug_line = yes \
27500 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27502 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27507 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27508 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27509 $as_echo_n "(cached) " >&6
27511 gcc_cv_as_gdwarf2_flag
=no
27512 if test $in_tree_gas = yes; then
27513 if test $in_tree_gas_is_elf = yes \
27514 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27515 then gcc_cv_as_gdwarf2_flag
=yes
27517 elif test x
$gcc_cv_as != x
; then
27518 $as_echo "$insn" > conftest.s
27519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27521 (eval $ac_try) 2>&5
27523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27524 test $ac_status = 0; }; }
27526 gcc_cv_as_gdwarf2_flag
=yes
27528 echo "configure: failed program was" >&5
27531 rm -f conftest.o conftest.s
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27535 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27536 if test $gcc_cv_as_gdwarf2_flag = yes; then
27538 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27543 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27544 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27545 $as_echo_n "(cached) " >&6
27547 gcc_cv_as_gstabs_flag
=no
27548 if test $in_tree_gas = yes; then
27549 if test $in_tree_gas_is_elf = yes \
27550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27551 then gcc_cv_as_gstabs_flag
=yes
27553 elif test x
$gcc_cv_as != x
; then
27554 $as_echo "$insn" > conftest.s
27555 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27557 (eval $ac_try) 2>&5
27559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27560 test $ac_status = 0; }; }
27562 gcc_cv_as_gstabs_flag
=yes
27564 echo "configure: failed program was" >&5
27567 rm -f conftest.o conftest.s
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27571 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27572 if test $gcc_cv_as_gstabs_flag = yes; then
27574 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27579 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27580 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27581 $as_echo_n "(cached) " >&6
27583 gcc_cv_as_debug_prefix_map_flag
=no
27584 if test $in_tree_gas = yes; then
27585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27586 then gcc_cv_as_debug_prefix_map_flag
=yes
27588 elif test x
$gcc_cv_as != x
; then
27589 $as_echo "$insn" > conftest.s
27590 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27592 (eval $ac_try) 2>&5
27594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27595 test $ac_status = 0; }; }
27597 gcc_cv_as_debug_prefix_map_flag
=yes
27599 echo "configure: failed program was" >&5
27602 rm -f conftest.o conftest.s
27605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27606 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27607 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27609 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27615 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27616 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27617 $as_echo_n "(cached) " >&6
27619 gcc_cv_as_compress_debug
=no
27620 if test x
$gcc_cv_as != x
; then
27621 $as_echo '' > conftest.s
27622 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27624 (eval $ac_try) 2>&5
27626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27627 test $ac_status = 0; }; }
27629 # gas compiled without zlib cannot compress debug sections and warns
27630 # about it, but still exits successfully. So check for this, too.
27631 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27633 gcc_cv_as_compress_debug
=0
27634 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27635 # defaulting to the ELF gABI format.
27636 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27638 gcc_cv_as_compress_debug
=2
27639 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27640 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27641 # Before binutils 2.26, gas only supported --compress-debug-options and
27642 # emitted the traditional GNU format.
27643 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27645 gcc_cv_as_compress_debug
=1
27646 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27647 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27649 gcc_cv_as_compress_debug
=0
27652 echo "configure: failed program was" >&5
27655 rm -f conftest.o conftest.s
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27659 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27662 cat >>confdefs.h
<<_ACEOF
27663 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27667 cat >>confdefs.h
<<_ACEOF
27668 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27672 cat >>confdefs.h
<<_ACEOF
27673 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27678 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27679 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27680 $as_echo_n "(cached) " >&6
27682 gcc_cv_as_lcomm_with_alignment
=no
27683 if test x
$gcc_cv_as != x
; then
27684 $as_echo '.lcomm bar,4,16' > conftest.s
27685 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27687 (eval $ac_try) 2>&5
27689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27690 test $ac_status = 0; }; }
27692 gcc_cv_as_lcomm_with_alignment
=yes
27694 echo "configure: failed program was" >&5
27697 rm -f conftest.o conftest.s
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27701 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27702 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27704 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27708 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27709 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27710 && test "$prefix" != "NONE"; then
27712 cat >>confdefs.h
<<_ACEOF
27713 #define PREFIX_INCLUDE_DIR "$prefix/include"
27718 # Determine the version of glibc, if any, used on the target.
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27720 $as_echo_n "checking for target glibc version... " >&6; }
27722 # Check whether --with-glibc-version was given.
27723 if test "${with_glibc_version+set}" = set; then :
27724 withval
=$with_glibc_version;
27725 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27726 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27727 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27729 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27733 glibc_version_major
=0
27734 glibc_version_minor
=0
27735 if test -f $target_header_dir/features.h \
27736 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27737 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27738 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27739 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27744 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27746 cat >>confdefs.h
<<_ACEOF
27747 #define TARGET_GLIBC_MAJOR $glibc_version_major
27751 cat >>confdefs.h
<<_ACEOF
27752 #define TARGET_GLIBC_MINOR $glibc_version_minor
27756 # Check whether --enable-gnu-unique-object was given.
27757 if test "${enable_gnu_unique_object+set}" = set; then :
27758 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27760 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27761 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27765 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27766 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27767 $as_echo_n "(cached) " >&6
27769 gcc_cv_as_gnu_unique_object
=no
27770 if test $in_tree_gas = yes; then
27771 if test $in_tree_gas_is_elf = yes \
27772 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27773 then gcc_cv_as_gnu_unique_object
=yes
27775 elif test x
$gcc_cv_as != x
; then
27776 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27777 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27779 (eval $ac_try) 2>&5
27781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27782 test $ac_status = 0; }; }
27784 gcc_cv_as_gnu_unique_object
=yes
27786 echo "configure: failed program was" >&5
27789 rm -f conftest.o conftest.s
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27793 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27794 if test $gcc_cv_as_gnu_unique_object = yes; then
27795 # We need to unquote above to to use the definition from config.gcc.
27796 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27798 if test $glibc_version_major -gt 2 \
27799 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27800 enable_gnu_unique_object
=yes
27806 if test x
$enable_gnu_unique_object = xyes
; then
27808 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27813 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27814 if test "${gcc_cv_as_line_zero+set}" = set; then :
27815 $as_echo_n "(cached) " >&6
27817 gcc_cv_as_line_zero
=no
27818 if test $in_tree_gas = yes; then
27819 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27820 then gcc_cv_as_line_zero
=yes
27822 elif test "x$gcc_cv_as" != x
; then
27823 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27824 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27826 (eval $ac_try) 2>&5
27828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27829 test $ac_status = 0; }; } &&
27830 test "x`cat conftest.out`" = x
27832 gcc_cv_as_line_zero
=yes
27834 echo "configure: failed program was" >&5
27836 echo "configure: error output was" >&5
27837 cat conftest.out
>&5
27839 rm -f conftest.o conftest.s conftest.out
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27843 $as_echo "$gcc_cv_as_line_zero" >&6; }
27844 if test "x$gcc_cv_as_line_zero" = xyes
; then
27846 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27851 $as_echo_n "checking support for thin archives... " >&6; }
27852 thin_archive_support
=no
27853 echo 'int main (void) { return 0; }' > conftest.c
27854 if ($AR --version |
sed 1q |
grep "GNU ar" \
27855 && $CC $CFLAGS -c conftest.c \
27856 && $AR rcT conftest.a conftest.o \
27857 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
27858 thin_archive_support
=yes
27860 rm -f conftest.c conftest.o conftest.a conftest
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27862 $as_echo "$thin_archive_support" >&6; }
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27866 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27867 gcc_cv_ld_eh_frame_hdr
=no
27868 if test $in_tree_ld = yes ; then
27869 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 \
27870 && test $in_tree_ld_is_elf = yes; then
27871 gcc_cv_ld_eh_frame_hdr
=yes
27873 elif test x
$gcc_cv_ld != x
; then
27874 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27875 # Check if linker supports --eh-frame-hdr option
27876 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27877 gcc_cv_ld_eh_frame_hdr
=yes
27882 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27883 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27884 gcc_cv_ld_eh_frame_hdr
=yes
27891 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27893 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27897 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27900 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27901 gcc_cv_ld_eh_frame_ciev3
=no
27902 if test $in_tree_ld = yes ; then
27903 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 \
27904 && test $in_tree_ld_is_elf = yes; then
27905 gcc_cv_ld_eh_frame_ciev3
=yes
27907 elif test x
$gcc_cv_ld != x
; then
27908 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27909 gcc_cv_ld_eh_frame_ciev3
=yes
27910 if test 0"$ld_date" -lt 20040513; then
27911 if test -n "$ld_date"; then
27912 # If there was date string, but was earlier than 2004-05-13, fail
27913 gcc_cv_ld_eh_frame_ciev3
=no
27914 elif test "$ld_vers_major" -lt 2; then
27915 gcc_cv_ld_eh_frame_ciev3
=no
27916 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27917 gcc_cv_ld_eh_frame_ciev3
=no
27923 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27924 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27925 gcc_cv_ld_eh_frame_ciev3
=yes
27932 cat >>confdefs.h
<<_ACEOF
27933 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27937 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27940 $as_echo_n "checking linker position independent executable support... " >&6; }
27942 if test $in_tree_ld = yes ; then
27944 # Full PIE support on Solaris was only introduced in gld 2.26.
27945 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
27946 *) gcc_gld_pie_min_version
=15 ;;
27948 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 \
27949 && test $in_tree_ld_is_elf = yes; then
27952 elif test x
$gcc_cv_ld != x
; then
27953 # Check if linker supports -pie option
27954 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27958 if echo "$ld_ver" |
grep GNU
> /dev
/null \
27959 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
27966 *-*-solaris2.1
[1-9]*)
27967 # Solaris 11.x and Solaris 12 added PIE support.
27968 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
27975 if test x
"$gcc_cv_ld_pie" = xyes
; then
27977 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27981 $as_echo "$gcc_cv_ld_pie" >&6; }
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27984 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27985 gcc_cv_ld_pie_copyreloc
=no
27986 if test $gcc_cv_ld_pie = yes ; then
27987 if test $in_tree_ld = yes ; then
27988 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
27989 gcc_cv_ld_pie_copyreloc
=yes
27991 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27992 # Check if linker supports -pie option with copy reloc
27994 i?
86-*-linux* | x86_64-
*-linux*)
27995 cat > conftest1.s
<<EOF
27998 .type a_glob, @object
28003 cat > conftest2.s
<<EOF
28006 .type main, @function
28008 movl %eax, a_glob(%rip)
28011 .section .data.rel,"aw",@progbits
28016 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28017 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28018 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28019 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28020 gcc_cv_ld_pie_copyreloc
=yes
28022 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28028 cat >>confdefs.h
<<_ACEOF
28029 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28033 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28036 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28037 gcc_cv_ld_eh_gc_sections
=no
28038 if test $in_tree_ld = yes ; then
28039 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 \
28040 && test $in_tree_ld_is_elf = yes; then
28041 gcc_cv_ld_eh_gc_sections
=yes
28043 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28044 cat > conftest.s
<<EOF
28047 .type _start, @function
28050 .size _start, .-_start
28051 .section .text.foo,"ax",@progbits
28052 .type foo, @function
28056 .section .gcc_except_table.foo,"a",@progbits
28059 .section .eh_frame,"a",@progbits
28062 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28063 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28064 |
grep "gc-sections option ignored" > /dev
/null
; then
28065 gcc_cv_ld_eh_gc_sections
=no
28066 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28067 |
grep gcc_except_table
> /dev
/null
; then
28068 gcc_cv_ld_eh_gc_sections
=yes
28069 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28070 if test x
$gcc_cv_as_comdat_group != xyes
; then
28071 gcc_cv_ld_eh_gc_sections
=no
28072 cat > conftest.s
<<EOF
28075 .type _start, @function
28078 .size _start, .-_start
28079 .section .gnu.linkonce.t.foo,"ax",@progbits
28080 .type foo, @function
28084 .section .gcc_except_table.foo,"a",@progbits
28087 .section .eh_frame,"a",@progbits
28090 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28091 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28092 |
grep "gc-sections option ignored" > /dev
/null
; then
28093 gcc_cv_ld_eh_gc_sections
=no
28094 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28095 |
grep gcc_except_table
> /dev
/null
; then
28096 gcc_cv_ld_eh_gc_sections
=yes
28102 rm -f conftest.s conftest.o conftest
28106 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28107 gcc_cv_ld_eh_gc_sections
=no
28110 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28112 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28116 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28119 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28120 gcc_cv_ld_eh_gc_sections_bug
=no
28121 if test $in_tree_ld = yes ; then
28122 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 \
28123 && test $in_tree_ld_is_elf = yes; then
28124 gcc_cv_ld_eh_gc_sections_bug
=yes
28126 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
28127 gcc_cv_ld_eh_gc_sections_bug
=yes
28128 cat > conftest.s
<<EOF
28131 .type _start, @function
28134 .size _start, .-_start
28135 .section .text.startup.foo,"ax",@progbits
28136 .type foo, @function
28140 .section .gcc_except_table.foo,"a",@progbits
28143 .section .eh_frame,"a",@progbits
28146 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28147 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28148 |
grep "gc-sections option ignored" > /dev
/null
; then
28150 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28151 |
grep gcc_except_table
> /dev
/null
; then
28152 gcc_cv_ld_eh_gc_sections_bug
=no
28155 rm -f conftest.s conftest.o conftest
28157 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28159 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28163 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28166 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28167 # gold/gld support compressed debug sections since binutils 2.19/2.21
28168 # In binutils 2.26, gld gained support for the ELF gABI format.
28169 if test $in_tree_ld = yes ; then
28170 gcc_cv_ld_compress_debug
=0
28171 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 \
28172 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28173 gcc_cv_ld_compress_debug
=2
28174 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28175 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 \
28176 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28177 gcc_cv_ld_compress_debug
=3
28178 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28179 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 \
28180 && test $in_tree_ld_is_elf = yes; then
28181 gcc_cv_ld_compress_debug
=1
28183 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28184 if test "$ld_vers_major" -lt 2 \
28185 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28186 gcc_cv_ld_compress_debug
=0
28187 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28188 gcc_cv_ld_compress_debug
=1
28190 gcc_cv_ld_compress_debug
=3
28191 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28193 if test $ld_is_gold = yes; then
28194 gcc_cv_ld_compress_debug
=2
28195 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28198 case "${target}" in
28200 # Introduced in Solaris 11.2.
28201 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28202 gcc_cv_ld_compress_debug
=3
28203 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28205 gcc_cv_ld_compress_debug
=0
28209 # Assume linkers other than GNU ld don't support compessed debug
28211 gcc_cv_ld_compress_debug
=0
28216 cat >>confdefs.h
<<_ACEOF
28217 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28221 cat >>confdefs.h
<<_ACEOF
28222 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28226 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28233 $as_echo_n "checking linker --as-needed support... " >&6; }
28234 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28235 $as_echo_n "(cached) " >&6
28237 gcc_cv_ld_as_needed
=no
28238 gcc_cv_ld_as_needed_option
='--as-needed'
28239 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28240 if test $in_tree_ld = yes ; then
28241 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 \
28242 && test $in_tree_ld_is_elf = yes; then
28243 gcc_cv_ld_as_needed
=yes
28245 elif test x
$gcc_cv_ld != x
; then
28246 # Check if linker supports --as-needed and --no-as-needed options
28247 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
28248 gcc_cv_ld_as_needed
=yes
28251 # Solaris 2 ld always supports -z ignore/-z record.
28253 gcc_cv_ld_as_needed
=yes
28254 gcc_cv_ld_as_needed_option
="-z ignore"
28255 gcc_cv_ld_no_as_needed_option
="-z record"
28260 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28261 # dl_iterate_phdr, i.e. since Solaris 11.
28263 *-*-solaris2.1
[1-9]*)
28265 i?
86-*-* | x86_64-
*-*)
28266 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28267 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28268 gcc_cv_ld_as_needed
=no
28274 gcc_cv_ld_as_needed
=no
28279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28280 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28281 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28283 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28286 cat >>confdefs.h
<<_ACEOF
28287 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28291 cat >>confdefs.h
<<_ACEOF
28292 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28298 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28299 saved_LDFLAGS
="$LDFLAGS"
28300 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28301 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28303 /* end confdefs.h. */
28304 int main(void) {return 0;}
28306 if ac_fn_cxx_try_link
"$LINENO"; then :
28307 gcc_cv_ld_clearcap
=yes; break
28309 gcc_cv_ld_clearcap
=no
28311 rm -f core conftest.err conftest.
$ac_objext \
28312 conftest
$ac_exeext conftest.
$ac_ext
28314 LDFLAGS
="$saved_LDFLAGS"
28315 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28317 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28319 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28323 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28325 case "$target:$tm_file" in
28326 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28329 emul_name
="-melf64lppc"
28332 emul_name
="-melf64ppc"
28335 emul_name
="-melf64ppc_fbsd"
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28339 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28340 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28341 $as_echo_n "(cached) " >&6
28343 gcc_cv_ld_no_dot_syms
=no
28344 if test x
"$ld_is_gold" = xyes
; then
28345 gcc_cv_ld_no_dot_syms
=yes
28346 elif test $in_tree_ld = yes ; then
28347 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
28348 gcc_cv_ld_no_dot_syms
=yes
28350 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28351 cat > conftest1.s
<<EOF
28355 cat > conftest2.s
<<EOF
28356 .section ".opd","aw"
28359 .type foo,@function
28361 .quad .LEfoo,.TOC.@tocbase,0
28367 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28368 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28369 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28370 gcc_cv_ld_no_dot_syms
=yes
28372 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28377 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28378 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28380 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28385 $as_echo_n "checking linker large toc support... " >&6; }
28386 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28387 $as_echo_n "(cached) " >&6
28389 gcc_cv_ld_large_toc
=no
28390 if test x
"$ld_is_gold" = xyes
; then
28391 gcc_cv_ld_large_toc
=yes
28392 elif test $in_tree_ld = yes ; then
28393 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
28394 gcc_cv_ld_large_toc
=yes
28396 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28397 cat > conftest.s
<<EOF
28398 .section ".tbss","awT",@nobits
28404 addis 9,13,ie0@got@tprel@ha
28405 ld 9,ie0@got@tprel@l(9)
28407 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28408 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28409 gcc_cv_ld_large_toc
=yes
28411 rm -f conftest conftest.o conftest.s
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28416 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28417 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28419 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28424 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28425 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28426 $as_echo_n "(cached) " >&6
28428 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28429 cat > conftest.s
<<EOF
28434 .section .data.rel.ro,"aw",@progbits
28439 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28440 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28441 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)) }'`
28443 rm -f conftest conftest.o conftest.s
28447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28448 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28449 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28451 cat >>confdefs.h
<<_ACEOF
28452 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28462 $as_echo_n "checking linker large toc support... " >&6; }
28463 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28464 $as_echo_n "(cached) " >&6
28466 gcc_cv_ld_large_toc
=no
28467 if test x
$gcc_cv_as != x
; then
28468 cat > conftest.s
<<EOF
28478 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28479 gcc_cv_ld_large_toc
=yes
28481 rm -f conftest conftest.o conftest.s
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28486 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28487 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28489 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28496 $as_echo_n "checking linker --build-id support... " >&6; }
28497 if test "${gcc_cv_ld_buildid+set}" = set; then :
28498 $as_echo_n "(cached) " >&6
28500 gcc_cv_ld_buildid
=no
28501 if test $in_tree_ld = yes ; then
28502 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28503 "$gcc_cv_gld_minor_version" -ge 18 -o \
28504 "$gcc_cv_gld_major_version" -gt 2 \
28505 && test $in_tree_ld_is_elf = yes; then
28506 gcc_cv_ld_buildid
=yes
28508 elif test x
$gcc_cv_ld != x
; then
28509 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28510 gcc_cv_ld_buildid
=yes
28514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28515 $as_echo "$gcc_cv_ld_buildid" >&6; }
28516 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28518 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28522 # Check whether --enable-linker-build-id was given.
28523 if test "${enable_linker_build_id+set}" = set; then :
28524 enableval
=$enable_linker_build_id;
28526 enable_linker_build_id
=no
28530 if test x
"$enable_linker_build_id" = xyes
; then
28531 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28533 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28537 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28541 # In binutils 2.21, GNU ld gained support for new emulations fully
28542 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28544 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28545 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28546 $as_echo_n "(cached) " >&6
28548 gcc_cv_ld_sol2_emulation
=no
28549 if test $in_tree_ld = yes ; then
28550 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28551 "$gcc_cv_gld_minor_version" -ge 21 -o \
28552 "$gcc_cv_gld_major_version" -gt 2 \
28553 && test $in_tree_ld_is_elf = yes; then
28554 gcc_cv_ld_sol2_emulation
=yes
28556 elif test x
$gcc_cv_ld != x
; then
28557 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28558 grep _sol2
> /dev
/null
; then
28559 gcc_cv_ld_sol2_emulation
=yes
28563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28564 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28565 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28567 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28572 $as_echo_n "checking linker --sysroot support... " >&6; }
28573 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28574 $as_echo_n "(cached) " >&6
28576 gcc_cv_ld_sysroot
=no
28577 if test $in_tree_ld = yes ; then
28578 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
28579 gcc_cv_ld_sysroot
=yes
28581 elif test x
$gcc_cv_ld != x
; then
28582 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28583 gcc_cv_ld_sysroot
=yes
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28588 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28589 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28591 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28597 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28599 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28600 if test "${gcc_cv_solaris_crts+set}" = set; then :
28601 $as_echo_n "(cached) " >&6
28603 gcc_cv_solaris_crts
=no
28604 if test x
$host != x
$target; then
28605 if test "x$with_sysroot" = xyes
; then
28606 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28608 target_sysroot
="${with_sysroot}"
28611 target_libdir
="$target_sysroot/usr/lib"
28612 # At the time they were added, gcrt1.o became a symlink for backwards
28613 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28615 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28616 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28618 sparc
*-*-solaris2*)
28619 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28624 $as_echo "$gcc_cv_solaris_crts" >&6; }
28627 if test x
$gcc_cv_solaris_crts = xyes
; then
28629 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28633 # Test for stack protector support in target C library.
28634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28635 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28636 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28637 $as_echo_n "(cached) " >&6
28639 gcc_cv_libc_provides_ssp
=no
28642 # All versions of musl provide stack protector
28643 gcc_cv_libc_provides_ssp
=yes;;
28644 *-*-linux* |
*-*-kfreebsd*-gnu)
28645 # glibc 2.4 and later provides __stack_chk_fail and
28646 # either __stack_chk_guard, or TLS access to stack guard canary.
28648 if test $glibc_version_major -gt 2 \
28649 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28650 gcc_cv_libc_provides_ssp
=yes
28653 if test -f $target_header_dir/features.h \
28654 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28655 $target_header_dir/features.h
> /dev
/null
; then
28656 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28657 $target_header_dir/features.h
> /dev
/null
&& \
28658 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28659 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28660 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28661 gcc_cv_libc_provides_ssp
=yes
28663 # all versions of Bionic support stack protector
28664 elif test -f $target_header_dir/sys
/cdefs.h \
28665 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28666 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28667 gcc_cv_libc_provides_ssp
=yes
28672 # Avoid complicated tests (see
28673 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28674 # simply assert that glibc does provide this, which is true for all
28675 # realistically usable GNU/Hurd configurations.
28676 # All supported versions of musl provide it as well
28677 gcc_cv_libc_provides_ssp
=yes;;
28678 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28679 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28680 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28681 gcc_cv_libc_provides_ssp
=yes
28683 echo "no __stack_chk_fail on this target"
28687 *) gcc_cv_libc_provides_ssp
=no
;;
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28691 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28693 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28695 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28699 # Check whether --enable-default-ssp was given.
28700 # Check whether --enable-default-ssp was given.
28701 if test "${enable_default_ssp+set}" = set; then :
28702 enableval
=$enable_default_ssp;
28703 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28705 ia64
*-*-*) enable_default_ssp
=no
;;
28706 *) enable_default_ssp
=$enableval ;;
28709 enable_default_ssp
=no
28712 enable_default_ssp
=no
28715 if test x
$enable_default_ssp = xyes
; then
28717 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28722 # Test for <sys/sdt.h> on the target.
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28725 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28727 if test -f $target_header_dir/sys
/sdt.h
; then
28730 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28734 $as_echo "$have_sys_sdt_h" >&6; }
28736 # Check if TFmode long double should be used by default or not.
28737 # Some glibc targets used DFmode long double, but with glibc 2.4
28738 # and later they can use TFmode.
28740 powerpc
*-*-linux* | \
28741 sparc
*-*-linux* | \
28745 # Check whether --with-long-double-128 was given.
28746 if test "${with_long_double_128+set}" = set; then :
28747 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28750 if test $glibc_version_major -gt 2 \
28751 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28752 gcc_cv_target_ldbl128
=yes
28755 gcc_cv_target_ldbl128
=no
28756 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28757 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28758 && gcc_cv_target_ldbl128
=yes
28765 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28767 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28771 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
28772 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
28773 gcc_cv_libc_provides_hwcap_in_tcb
=no
28777 if test $glibc_version_major -gt 2 \
28778 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
28779 gcc_cv_libc_provides_hwcap_in_tcb
=yes
28783 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
28785 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28790 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28791 gcc_cv_target_dl_iterate_phdr
=unknown
28793 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28794 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28795 # libdl there, both complicating its use and breaking compatibility
28796 # between Solaris 10 updates.
28797 *-*-solaris2.1
[1-9]*)
28798 # <link.h> needs both a dl_iterate_phdr declaration and support for
28799 # compilation with largefile support.
28800 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28801 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28802 gcc_cv_target_dl_iterate_phdr
=yes
28804 gcc_cv_target_dl_iterate_phdr
=no
28807 *-*-dragonfly* |
*-*-freebsd*)
28808 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28809 gcc_cv_target_dl_iterate_phdr
=yes
28811 gcc_cv_target_dl_iterate_phdr
=no
28815 gcc_cv_target_dl_iterate_phdr
=yes
28819 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28821 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28825 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28827 # We no longer support different GC mechanisms. Emit an error if
28828 # the user configures with --with-gc.
28830 # Check whether --with-gc was given.
28831 if test "${with_gc+set}" = set; then :
28832 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28836 # Libraries to use on the host. This will normally be set by the top
28837 # level Makefile. Here we simply capture the value for our Makefile.
28838 if test -z "${HOST_LIBS+set}"; then
28843 # Use the system's zlib library.
28845 # Use the system's zlib library.
28846 zlibdir
="-L\$(top_builddir)/../zlib"
28847 zlibinc
="-I\$(top_srcdir)/../zlib"
28849 # Check whether --with-system-zlib was given.
28850 if test "${with_system_zlib+set}" = set; then :
28851 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28864 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28865 # Check whether --enable-maintainer-mode was given.
28866 if test "${enable_maintainer_mode+set}" = set; then :
28867 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28874 $as_echo "$maintainer_mode" >&6; }
28876 if test "$maintainer_mode" = "yes"; then
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28884 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28885 # Check whether --enable-link-mutex was given.
28886 if test "${enable_link_mutex+set}" = set; then :
28887 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28893 $as_echo "$do_link_mutex" >&6; }
28895 if test "$do_link_mutex" = "yes"; then
28898 DO_LINK_MUTEX
=false
28906 # Make empty files to contain the specs and options for each language.
28907 # Then add #include lines to for a compiler that has specs and/or options.
28913 # These (without "all_") are set in each config-lang.in.
28914 # `language' must be a single word so is spelled singularly.
28917 all_outputs
='Makefile'
28918 # List of language makefile fragments.
28919 all_lang_makefrags
=
28920 # Additional files for gengtype
28921 all_gtfiles
="$target_gtfiles"
28923 # These are the languages that are set in --enable-languages,
28924 # and are available in the GCC tree.
28925 all_selected_languages
=
28927 # Add the language fragments.
28928 # Languages are added via two mechanisms. Some information must be
28929 # recorded in makefile variables, these are defined in config-lang.in.
28930 # We accumulate them and plug them into the main Makefile.
28931 # The other mechanism is a set of hooks for each of the main targets
28932 # like `clean', `install', etc.
28934 language_hooks
="Make-hooks"
28936 for lang
in ${srcdir}/*/config-lang.
in
28938 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28940 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28941 if test "x$lang_alias" = x
28943 echo "$lang doesn't set \$language." 1>&2
28946 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28947 subdirs
="$subdirs $subdir"
28949 # $gcc_subdir is where the gcc integration files are to be found
28950 # for a language, both for internal compiler purposes (compiler
28951 # sources implementing front-end to GCC tree converters), and for
28952 # build infrastructure purposes (Make-lang.in, etc.)
28954 # This will be <subdir> (relative to $srcdir) if a line like
28955 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28956 # is found in <langdir>/config-lang.in, and will remain <langdir>
28959 # Except for the language alias (fetched above), the regular
28960 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28961 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28962 # only this and the language alias.
28964 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28965 if [ "$gcc_subdir" = "" ]; then
28966 gcc_subdir
="$subdir"
28969 case ",$enable_languages," in
28971 all_selected_languages
="$all_selected_languages $lang_alias"
28972 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28973 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28984 .
${srcdir}/$gcc_subdir/config-lang.
in
28985 if test "x$language" = x
28987 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28992 case ",$enable_languages," in
28993 *,$lang_alias,*) ;;
28995 for i
in $subdir_requires; do
28996 test -f "${srcdir}/$i/config-lang.in" && continue
29004 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29005 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29006 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29007 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29009 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29010 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29012 all_languages
="$all_languages $language"
29013 all_compilers
="$all_compilers $compilers"
29014 all_outputs
="$all_outputs $outputs"
29015 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29016 case ",$enable_languages," in
29019 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29029 for language
in $all_selected_languages
29031 check_languages
="$check_languages check-$language"
29034 # We link each language in with a set of hooks, reached indirectly via
29035 # lang.${target}. Only do so for selected languages.
29039 target_list
="all.cross start.encap rest.encap tags \
29040 install-common install-man install-info install-pdf install-html dvi \
29041 pdf html uninstall info man srcextra srcman srcinfo \
29042 mostlyclean clean distclean maintainer-clean install-plugin"
29044 for t
in $target_list
29047 for lang
in $all_selected_languages
29051 echo "lang.$t: $x" >> Make-hooks
29055 # Option include files
29058 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29059 option_includes
="option-includes.mk"
29068 echo "dir ." > .gdbinit
29069 echo "dir ${srcdir}" >> .gdbinit
29070 if test x
$gdb_needs_out_file_path = xyes
29072 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29074 if test "x$subdirs" != x
; then
29077 echo "dir ${srcdir}/$s" >> .gdbinit
29080 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29081 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29083 # Put a breakpoint on __asan_report_error to help with debugging buffer
29086 *-fsanitize=address
*)
29087 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29091 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29095 # Find a directory in which to install a shared libgcc.
29097 # Check whether --enable-version-specific-runtime-libs was given.
29098 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29099 enableval
=$enable_version_specific_runtime_libs;
29103 # Substitute configuration variables
29167 if test x
${build} = x
${host} ; then
29168 if test x
${host} = x
${target} ; then
29169 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29171 echo "Links are now set up to build a cross-compiler" 1>&2
29172 echo " from ${host} to ${target}." 1>&2
29175 if test x
${host} = x
${target} ; then
29176 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29177 echo " for ${target}." 1>&2
29179 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29180 echo " from ${host} to ${target}." 1>&2
29189 if test "x${ISLLIBS}" != "x" ; then
29191 $as_echo "#define HAVE_isl 1" >>confdefs.h
29195 # Check whether isl_options_set_schedule_serialize_sccs is available;
29196 # it's new in isl 0.15.
29197 if test "x${ISLLIBS}" != "x" ; then
29198 saved_CXXFLAGS
="$CXXFLAGS"
29199 CXXFLAGS
="$CXXFLAGS $ISLINC $GMPINC"
29201 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
29204 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
29205 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29206 /* end confdefs.h. */
29207 #include <isl/schedule.h>
29211 isl_options_set_schedule_serialize_sccs (NULL, 0);
29216 if ac_fn_cxx_try_link
"$LINENO"; then :
29217 ac_has_isl_options_set_schedule_serialize_sccs
=yes
29219 ac_has_isl_options_set_schedule_serialize_sccs
=no
29221 rm -f core conftest.err conftest.
$ac_objext \
29222 conftest
$ac_exeext conftest.
$ac_ext
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
29224 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
29227 CXXFLAGS
="$saved_CXXFLAGS"
29229 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
29231 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
29236 # Check for plugin support
29237 # Check whether --enable-plugin was given.
29238 if test "${enable_plugin+set}" = set; then :
29239 enableval
=$enable_plugin; enable_plugin
=$enableval
29241 enable_plugin
=yes; default_plugin
=yes
29249 if test x
$build = x
$host; then
29250 export_sym_check
="nm${exeext} -g"
29251 elif test x
$host = x
$target; then
29252 export_sym_check
="$gcc_cv_nm -g"
29258 if test x
$build = x
$host; then
29259 export_sym_check
="objdump${exeext} -T"
29260 elif test x
$host = x
$target; then
29261 export_sym_check
="$gcc_cv_objdump -T"
29268 if test x
"$enable_plugin" = x
"yes"; then
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29271 $as_echo_n "checking for exported symbols... " >&6; }
29272 if test "x$export_sym_check" != x
; then
29273 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29274 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29275 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29276 : # No need to use a flag
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29278 $as_echo "yes" >&6; }
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29281 $as_echo "yes" >&6; }
29282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29283 $as_echo_n "checking for -rdynamic... " >&6; }
29284 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29285 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29286 plugin_rdynamic
=yes
29287 pluginlibs
="-rdynamic"
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29293 $as_echo "$plugin_rdynamic" >&6; }
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29297 $as_echo "unable to check" >&6; }
29302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29303 $as_echo_n "checking for library containing dlopen... " >&6; }
29304 if test "${ac_cv_search_dlopen+set}" = set; then :
29305 $as_echo_n "(cached) " >&6
29307 ac_func_search_save_LIBS
=$LIBS
29308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29309 /* end confdefs.h. */
29311 /* Override any GCC internal prototype to avoid an error.
29312 Use char because int might match the return type of a GCC
29313 builtin and then its argument prototype would still apply. */
29326 for ac_lib
in '' dl
; do
29327 if test -z "$ac_lib"; then
29328 ac_res
="none required"
29331 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29333 if ac_fn_cxx_try_link
"$LINENO"; then :
29334 ac_cv_search_dlopen
=$ac_res
29336 rm -f core conftest.err conftest.
$ac_objext \
29338 if test "${ac_cv_search_dlopen+set}" = set; then :
29342 if test "${ac_cv_search_dlopen+set}" = set; then :
29345 ac_cv_search_dlopen
=no
29347 rm conftest.
$ac_ext
29348 LIBS
=$ac_func_search_save_LIBS
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29351 $as_echo "$ac_cv_search_dlopen" >&6; }
29352 ac_res
=$ac_cv_search_dlopen
29353 if test "$ac_res" != no
; then :
29354 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29358 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29359 pluginlibs
="$pluginlibs -ldl"
29363 # Check that we can build shared objects with -fPIC -shared
29364 saved_LDFLAGS
="$LDFLAGS"
29365 saved_CFLAGS
="$CFLAGS"
29368 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29369 CFLAGS
="$CFLAGS -fPIC"
29370 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29373 CFLAGS
="$CFLAGS -fPIC"
29374 LDFLAGS
="$LDFLAGS -fPIC -shared"
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29378 $as_echo_n "checking for -fPIC -shared... " >&6; }
29379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29380 /* end confdefs.h. */
29390 if ac_fn_cxx_try_link
"$LINENO"; then :
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29392 $as_echo "yes" >&6; }; have_pic_shared
=yes
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29395 $as_echo "no" >&6; }; have_pic_shared
=no
29397 rm -f core conftest.err conftest.
$ac_objext \
29398 conftest
$ac_exeext conftest.
$ac_ext
29399 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29403 LDFLAGS
="$saved_LDFLAGS"
29404 CFLAGS
="$saved_CFLAGS"
29406 # If plugin support had been requested but not available, fail.
29407 if test x
"$enable_plugin" = x
"no" ; then
29408 if test x
"$default_plugin" != x
"yes"; then
29410 Building GCC with plugin support requires a host that supports
29411 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29418 if test x
"$enable_plugin" = x
"yes"; then
29420 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29425 # Enable --enable-host-shared
29426 # Check whether --enable-host-shared was given.
29427 if test "${enable_host_shared+set}" = set; then :
29428 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29437 # Check whether --enable-libquadmath-support was given.
29438 if test "${enable_libquadmath_support+set}" = set; then :
29439 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29441 ENABLE_LIBQUADMATH_SUPPORT
=yes
29444 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29446 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29451 # Specify what hash style to use by default.
29453 # Check whether --with-linker-hash-style was given.
29454 if test "${with_linker_hash_style+set}" = set; then :
29455 withval
=$with_linker_hash_style; case x
"$withval" in
29457 LINKER_HASH_STYLE
=sysv
29460 LINKER_HASH_STYLE
=gnu
29463 LINKER_HASH_STYLE
=both
29466 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29470 LINKER_HASH_STYLE
=''
29473 if test x
"${LINKER_HASH_STYLE}" != x
; then
29475 cat >>confdefs.h
<<_ACEOF
29476 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29481 # Specify what should be the default of -fdiagnostics-color option.
29483 # Check whether --with-diagnostics-color was given.
29484 if test "${with_diagnostics_color+set}" = set; then :
29485 withval
=$with_diagnostics_color; case x
"$withval" in
29487 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29490 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29493 DIAGNOSTICS_COLOR_DEFAULT
=-1
29496 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29499 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29503 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29507 cat >>confdefs.h
<<_ACEOF
29508 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29512 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29513 # of jit/jit-playback.c.
29514 cat > gcc-driver-name.h
<<EOF
29515 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29518 # Check whether --enable-default-pie was given.
29519 # Check whether --enable-default-pie was given.
29520 if test "${enable_default_pie+set}" = set; then :
29521 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29523 enable_default_pie
=no
29526 if test x
$enable_default_pie = xyes
; then
29528 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29533 # Check if -fno-PIE works.
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29535 $as_echo_n "checking for -fno-PIE option... " >&6; }
29536 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29537 $as_echo_n "(cached) " >&6
29539 saved_CXXFLAGS
="$CXXFLAGS"
29540 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29542 /* end confdefs.h. */
29543 int main(void) {return 0;}
29545 if ac_fn_cxx_try_compile
"$LINENO"; then :
29546 gcc_cv_c_no_fpie
=yes
29548 gcc_cv_c_no_fpie
=no
29550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29551 CXXFLAGS
="$saved_CXXFLAGS"
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29554 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29555 if test "$gcc_cv_c_no_fpie" = "yes"; then
29556 NO_PIE_CFLAGS
="-fno-PIE"
29560 # Check if -no-pie works.
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29562 $as_echo_n "checking for -no-pie option... " >&6; }
29563 if test "${gcc_cv_no_pie+set}" = set; then :
29564 $as_echo_n "(cached) " >&6
29566 saved_LDFLAGS
="$LDFLAGS"
29567 LDFLAGS
="$LDFLAGS -no-pie"
29568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29569 /* end confdefs.h. */
29570 int main(void) {return 0;}
29572 if ac_fn_cxx_try_link
"$LINENO"; then :
29577 rm -f core conftest.err conftest.
$ac_objext \
29578 conftest
$ac_exeext conftest.
$ac_ext
29579 LDFLAGS
="$saved_LDFLAGS"
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29582 $as_echo "$gcc_cv_no_pie" >&6; }
29583 if test "$gcc_cv_no_pie" = "yes"; then
29584 NO_PIE_FLAG
="-no-pie"
29588 # Check linker supports '-z bndplt'
29589 ld_bndplt_support
=no
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29591 $as_echo_n "checking linker -z bndplt option... " >&6; }
29592 if test x
"$ld_is_gold" = xno
; then
29593 if test $in_tree_ld = yes ; then
29594 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
29595 ld_bndplt_support
=yes
29597 elif test x
$gcc_cv_ld != x
; then
29598 # Check if linker supports -a bndplt option
29599 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29600 ld_bndplt_support
=yes
29604 if test x
"$ld_bndplt_support" = xyes
; then
29606 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29610 $as_echo "$ld_bndplt_support" >&6; }
29612 # Check linker supports '--push-state'/'--pop-state'
29613 ld_pushpopstate_support
=no
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29615 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29616 if test x
"$ld_is_gold" = xno
; then
29617 if test $in_tree_ld = yes ; then
29618 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
29619 ld_pushpopstate_support
=yes
29621 elif test x
$gcc_cv_ld != x
; then
29622 # Check if linker supports --push-state/--pop-state options
29623 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '--push-state' > /dev
/null
; then
29624 ld_pushpopstate_support
=yes
29628 if test x
"$ld_pushpopstate_support" = xyes
; then
29630 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29634 $as_echo "$ld_pushpopstate_support" >&6; }
29636 # Configure the subdirectories
29637 # AC_CONFIG_SUBDIRS($subdirs)
29639 # Create the Makefile
29640 # and configure language subdirectories
29641 ac_config_files
="$ac_config_files $all_outputs"
29644 ac_config_commands
="$ac_config_commands default"
29646 cat >confcache
<<\_ACEOF
29647 # This file is a shell script that caches the results of configure
29648 # tests run on this system so they can be shared between configure
29649 # scripts and configure runs, see configure's option --config-cache.
29650 # It is not useful on other systems. If it contains results you don't
29651 # want to keep, you may remove or edit it.
29653 # config.status only pays attention to the cache file if you give it
29654 # the --recheck option to rerun configure.
29656 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29657 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29658 # following values.
29662 # The following way of writing the cache mishandles newlines in values,
29663 # but we know of no workaround that is simple, portable, and efficient.
29664 # So, we kill variables containing newlines.
29665 # Ultrix sh set writes to stderr and can't be redirected directly,
29666 # and sets the high bit in the cache file unless we assign to the vars.
29668 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29669 eval ac_val
=\$
$ac_var
29673 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29674 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29677 _ | IFS | as_nl
) ;; #(
29678 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29679 *) { eval $ac_var=; unset $ac_var;} ;;
29685 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29686 *${as_nl}ac_space
=\
*)
29687 # `set' does not quote correctly, so add quotes: double-quote
29688 # substitution turns \\\\ into \\, and sed turns \\ into \.
29691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29694 # `set' quotes correctly as required by POSIX, so do not add quotes.
29695 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29706 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29708 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29709 if test -w "$cache_file"; then
29710 test "x$cache_file" != "x/dev/null" &&
29711 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29712 $as_echo "$as_me: updating cache $cache_file" >&6;}
29713 cat confcache
>$cache_file
29715 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29716 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29721 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29722 # Let make expand exec_prefix.
29723 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29725 DEFS
=-DHAVE_CONFIG_H
29729 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29730 # 1. Remove the extension, and $U if already installed.
29731 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29732 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29733 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29734 # will be set to the directory where LIBOBJS objects are built.
29735 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29736 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29738 LIBOBJS
=$ac_libobjs
29740 LTLIBOBJS
=$ac_ltlibobjs
29745 : ${CONFIG_STATUS=./config.status}
29747 ac_clean_files_save
=$ac_clean_files
29748 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29750 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29752 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29754 # Generated by $as_me.
29755 # Run this file to recreate the current configuration.
29756 # Compiler output produced by configure, useful for debugging
29757 # configure, is in config.log if it exists.
29760 ac_cs_recheck=false
29763 SHELL=\${CONFIG_SHELL-$SHELL}
29766 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29767 ## -------------------- ##
29768 ## M4sh Initialization. ##
29769 ## -------------------- ##
29771 # Be more Bourne compatible
29772 DUALCASE
=1; export DUALCASE
# for MKS sh
29773 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29776 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29777 # is contrary to our usage. Disable this feature.
29778 alias -g '${1+"$@"}'='"$@"'
29779 setopt NO_GLOB_SUBST
29781 case `(set -o) 2>/dev/null` in #(
29793 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29794 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29795 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29797 # Prefer a ksh shell builtin over an external printf program on Solaris,
29798 # but without wasting forks for bash or zsh.
29799 if test -z "$BASH_VERSION$ZSH_VERSION" \
29800 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29801 as_echo='print
-r --'
29802 as_echo_n='print
-rn --'
29803 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29804 as_echo='printf %s
\n'
29805 as_echo_n='printf %s
'
29807 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29808 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29809 as_echo_n='/usr
/ucb
/echo -n'
29811 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29812 as_echo_n_body='eval
29816 expr "X$arg" : "X\\(.*\\)$as_nl";
29817 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29819 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29821 export as_echo_n_body
29822 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29824 export as_echo_body
29825 as_echo='sh
-c $as_echo_body as_echo
'
29828 # The user is always right.
29829 if test "${PATH_SEPARATOR+set}" != set; then
29831 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29832 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29839 # We need space, tab and new line, in precisely that order. Quoting is
29840 # there to prevent editors from complaining about space-tab.
29841 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29842 # splitting by setting IFS to empty value.)
29845 # Find who we are. Look in the path if we contain no directory separator.
29847 *[\\/]* ) as_myself=$0 ;;
29848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29849 for as_dir in $PATH
29852 test -z "$as_dir" && as_dir=.
29853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29859 # We did not find ourselves, most probably we were run as `sh COMMAND'
29860 # in which case we are not to be found in the path.
29861 if test "x$as_myself" = x
; then
29864 if test ! -f "$as_myself"; then
29865 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29869 # Unset variables that we do not need and which cause bugs (e.g. in
29870 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29871 # suppresses any "Segmentation fault" message there. '((' could
29872 # trigger a bug in pdksh 5.2.14.
29873 for as_var
in BASH_ENV ENV MAIL MAILPATH
29874 do eval test x\
${$as_var+set} = xset \
29875 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29888 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29891 # as_fn_error ERROR [LINENO LOG_FD]
29892 # ---------------------------------
29893 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29894 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29895 # script with status $?, using 1 if that was 0.
29898 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29900 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29901 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29903 $as_echo "$as_me: error: $1" >&2
29904 as_fn_exit
$as_status
29908 # as_fn_set_status STATUS
29909 # -----------------------
29910 # Set $? to STATUS, without forking.
29911 as_fn_set_status
()
29914 } # as_fn_set_status
29916 # as_fn_exit STATUS
29917 # -----------------
29918 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29922 as_fn_set_status
$1
29928 # Portably unset VAR.
29931 { eval $1=; unset $1;}
29933 as_unset
=as_fn_unset
29934 # as_fn_append VAR VALUE
29935 # ----------------------
29936 # Append the text in VALUE to the end of the definition contained in VAR. Take
29937 # advantage of any shell optimizations that allow amortized linear growth over
29938 # repeated appends, instead of the typical quadratic growth present in naive
29940 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29941 eval 'as_fn_append ()
29952 # as_fn_arith ARG...
29953 # ------------------
29954 # Perform arithmetic evaluation on the ARGs, and store the result in the
29955 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29956 # must be portable across $(()) and expr.
29957 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29958 eval 'as_fn_arith ()
29965 as_val
=`expr "$@" || test $? -eq 1`
29970 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29971 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29977 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29978 as_basename
=basename
29983 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29989 as_me
=`$as_basename -- "$0" ||
29990 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29991 X"$0" : 'X\(//\)$' \| \
29992 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29994 sed '/^.*\/\([^/][^/]*\)\/*$/{
30008 # Avoid depending upon Character Ranges.
30009 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30010 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30011 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30012 as_cr_digits
='0123456789'
30013 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30015 ECHO_C
= ECHO_N
= ECHO_T
=
30016 case `echo -n x` in #(((((
30018 case `echo 'xy\c'` in
30019 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30021 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30028 rm -f conf$$ conf$$.exe conf$$.
file
30029 if test -d conf$$.dir
; then
30030 rm -f conf$$.dir
/conf$$.
file
30033 mkdir conf$$.dir
2>/dev
/null
30035 if (echo >conf$$.
file) 2>/dev
/null
; then
30036 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30038 # ... but there are two gotchas:
30039 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30040 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30041 # In both cases, we have to default to `cp -p'.
30042 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30044 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30052 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30053 rmdir conf$$.dir
2>/dev
/null
30058 # Create "$as_dir" as a directory, including parents if necessary.
30063 -*) as_dir
=.
/$as_dir;;
30065 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30069 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30070 *) as_qdir
=$as_dir;;
30072 as_dirs
="'$as_qdir' $as_dirs"
30073 as_dir
=`$as_dirname -- "$as_dir" ||
30074 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30075 X"$as_dir" : 'X\(//\)[^/]' \| \
30076 X"$as_dir" : 'X\(//\)$' \| \
30077 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30078 $as_echo X"$as_dir" |
30079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30083 /^X\(\/\/\)[^/].*/{
30096 test -d "$as_dir" && break
30098 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30099 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30103 if mkdir
-p .
2>/dev
/null
; then
30104 as_mkdir_p
='mkdir -p "$as_dir"'
30106 test -d .
/-p && rmdir .
/-p
30110 if test -x / >/dev
/null
2>&1; then
30111 as_test_x
='test -x'
30113 if ls -dL / >/dev
/null
2>&1; then
30120 if test -d "$1"; then
30126 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30127 ???[sx]*):;;*)false;;esac;fi
30131 as_executable_p
=$as_test_x
30133 # Sed expression to map a string onto a valid CPP name.
30134 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30136 # Sed expression to map a string onto a valid variable name.
30137 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30141 ## ----------------------------------- ##
30142 ## Main body of $CONFIG_STATUS script. ##
30143 ## ----------------------------------- ##
30145 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30147 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30148 # Save the log message, to keep $0 and so on meaningful, and to
30149 # report actual input values of CONFIG_FILES etc. instead of their
30150 # values after options handling.
30152 This file was extended by $as_me, which was
30153 generated by GNU Autoconf 2.64. Invocation command line was
30155 CONFIG_FILES = $CONFIG_FILES
30156 CONFIG_HEADERS = $CONFIG_HEADERS
30157 CONFIG_LINKS = $CONFIG_LINKS
30158 CONFIG_COMMANDS = $CONFIG_COMMANDS
30161 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30166 case $ac_config_files in *"
30167 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30170 case $ac_config_headers in *"
30171 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30176 # Files that config.status was made for.
30177 config_files="$ac_config_files"
30178 config_headers="$ac_config_headers"
30179 config_links="$ac_config_links"
30180 config_commands="$ac_config_commands"
30184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30186 \`$as_me' instantiates files and other configuration actions
30187 from templates according to the current configuration. Unless the files
30188 and actions are specified as TAGs, all are instantiated by default.
30190 Usage: $0 [OPTION]... [TAG]...
30192 -h, --help print this help, then exit
30193 -V, --version print version number and configuration settings, then exit
30194 -q, --quiet, --silent
30195 do not print progress messages
30196 -d, --debug don't remove temporary files
30197 --recheck update $as_me by reconfiguring in the same conditions
30198 --file=FILE[:TEMPLATE]
30199 instantiate the configuration file FILE
30200 --header=FILE[:TEMPLATE]
30201 instantiate the configuration header FILE
30203 Configuration files:
30206 Configuration headers:
30209 Configuration links:
30212 Configuration commands:
30215 Report bugs to the package provider."
30218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30221 configured by $0, generated by GNU Autoconf 2.64,
30222 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30224 Copyright (C) 2009 Free Software Foundation, Inc.
30225 This config.status script is free software; the Free Software Foundation
30226 gives unlimited permission to copy, distribute and modify it."
30231 test -n "\$AWK" || AWK=awk
30234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30235 # The default lists apply if the user does not specify any file.
30241 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30242 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30253 # Handling of the options.
30254 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30256 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30257 $as_echo "$ac_cs_version"; exit ;;
30258 --debug |
--debu |
--deb |
--de |
--d |
-d )
30260 --file |
--fil |
--fi |
--f )
30263 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30265 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30266 ac_need_defaults
=false
;;
30267 --header |
--heade |
--head |
--hea )
30270 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30272 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30273 ac_need_defaults
=false
;;
30275 # Conflict between --help and --header
30276 as_fn_error
"ambiguous option: \`$1'
30277 Try \`$0 --help' for more information.";;
30278 --help |
--hel |
-h )
30279 $as_echo "$ac_cs_usage"; exit ;;
30280 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30281 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30284 # This is an error.
30285 -*) as_fn_error
"unrecognized option: \`$1'
30286 Try \`$0 --help' for more information." ;;
30288 *) as_fn_append ac_config_targets
" $1"
30289 ac_need_defaults
=false
;;
30295 ac_configure_extra_args
=
30297 if $ac_cs_silent; then
30299 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30304 if \$ac_cs_recheck; then
30305 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30307 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30308 CONFIG_SHELL='$SHELL'
30309 export CONFIG_SHELL
30314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30318 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30319 ## Running $as_me. ##
30325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30329 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30330 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30337 # Handling of arguments.
30338 for ac_config_target
in $ac_config_targets
30340 case $ac_config_target in
30341 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30342 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30343 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30344 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30345 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30346 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30347 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30348 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30349 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30351 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30356 # If the user did not use the arguments to specify the items to instantiate,
30357 # then the envvar interface is used. Set only those that are not.
30358 # We use the long form for the default assignment because of an extremely
30359 # bizarre bug on SunOS 4.1.3.
30360 if $ac_need_defaults; then
30361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30363 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30364 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30367 # Have a temporary directory for convenience. Make it in the build tree
30368 # simply because there is no reason against having it here, and in addition,
30369 # creating and moving files from /tmp can sometimes cause problems.
30370 # Hook for its removal unless debugging.
30371 # Note that there is a small window in which the directory will not be cleaned:
30372 # after its creation but before its name has been assigned to `$tmp'.
30376 trap 'exit_status=$?
30377 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30379 trap 'as_fn_exit 1' 1 2 13 15
30381 # Create a (secure) tmp directory for tmp files.
30384 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30385 test -n "$tmp" && test -d "$tmp"
30388 tmp
=.
/conf$$
-$RANDOM
30389 (umask 077 && mkdir
"$tmp")
30390 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30392 # Set up the scripts for CONFIG_FILES section.
30393 # No need to generate them if there are no CONFIG_FILES.
30394 # This happens for instance with `./config.status config.h'.
30395 if test -n "$CONFIG_FILES"; then
30397 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30398 ac_cs_awk_getline
=:
30399 ac_cs_awk_pipe_init
=
30400 ac_cs_awk_read_file
='
30401 while ((getline aline < (F[key])) > 0)
30404 ac_cs_awk_pipe_fini
=
30406 ac_cs_awk_getline
=false
30407 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30408 ac_cs_awk_read_file
='
30410 print "cat " F[key] " &&"
30411 '$ac_cs_awk_pipe_init
30412 # The final `:' finishes the AND list.
30413 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30415 ac_cr
=`echo X | tr X '\015'`
30416 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30417 # But we know of no other shell where ac_cr would be empty at this
30418 # point, so we can use a bashism as a fallback.
30419 if test "x$ac_cr" = x
; then
30420 eval ac_cr
=\$
\'\\r
\'
30422 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30423 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30426 ac_cs_awk_cr
=$ac_cr
30429 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30432 # Create commands to substitute file output variables.
30434 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30435 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30436 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30439 } >conf$
$files.sh
&&
30440 . .
/conf$
$files.sh ||
30441 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30442 rm -f conf$
$files.sh
30445 echo "cat >conf$$subs.awk <<_ACEOF" &&
30446 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30448 } >conf$$subs.sh ||
30449 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30450 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30452 for ac_last_try in false false false false false :; do
30453 . ./conf$$subs.sh ||
30454 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30456 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30457 if test $ac_delim_n = $ac_delim_num; then
30459 elif $ac_last_try; then
30460 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30462 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30465 rm -f conf$$subs.sh
30467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30468 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30472 s/^/S["/; s
/!.
*/"]=/
30482 s/\(.\{148\}\).*/\1/
30484 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30489 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30496 s/\(.\{148\}\).*/\1/
30498 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30502 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30507 ' <conf$$subs.awk | sed '
30512 ' >>$CONFIG_STATUS || ac_write_fail=1
30513 rm -f conf$$subs.awk
30514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30516 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30517 for (key in S) S_is_set[key] = 1
30519 \$ac_cs_awk_pipe_init
30523 nfields = split(line, field, "@
")
30525 len = length(field[1])
30526 for (i = 2; i < nfields; i++) {
30528 keylen = length(key)
30529 if (S_is_set[key]) {
30531 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30532 len += length(value) + length(field[++i])
30537 if (nfields == 3 && !substed) {
30539 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30540 \$ac_cs_awk_read_file
30546 \$ac_cs_awk_pipe_fini
30549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30550 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30551 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30554 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30555 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30558 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30559 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30560 # trailing colons and then remove the whole line if VPATH becomes empty
30561 # (actually we leave an empty line to preserve line numbers).
30562 if test "x
$srcdir" = x.; then
30563 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30564 s/:*\$(srcdir):*/:/
30565 s/:*\${srcdir}:*/:/
30567 s/^\([^=]*=[ ]*\):*/\1/
30573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30574 fi # test -n "$CONFIG_FILES"
30576 # Set up the scripts for CONFIG_HEADERS section.
30577 # No need to generate them if there are no CONFIG_HEADERS.
30578 # This happens for instance with `./config.status Makefile'.
30579 if test -n "$CONFIG_HEADERS"; then
30580 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30584 # Transform confdefs.h into an awk script `defines.awk', embedded as
30585 # here-document in config.status, that substitutes the proper values into
30586 # config.h.in to produce config.h.
30588 # Create a delimiter string that does not exist in confdefs.h, to ease
30589 # handling of long lines.
30591 for ac_last_try in false false :; do
30592 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30593 if test -z "$ac_t"; then
30595 elif $ac_last_try; then
30596 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30598 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30602 # For the awk script, D is an array of macro values keyed by name,
30603 # likewise P contains macro parameters if any. Preserve backslash
30604 # newline sequences.
30606 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30608 s/.\{148\}/&'"$ac_delim"'/g
30611 s/^[ ]*#[ ]*define[ ][ ]*/ /
30618 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30620 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30624 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30625 D["\
1"]=" \
3\\\\\\n
"\\/p
30627 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30632 s/.\{148\}/&'"$ac_delim"'/g
30637 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30640 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30642 ' <confdefs.h | sed '
30643 s/'"$ac_delim"'/"\\\
30644 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30647 for (key in D) D_is_set[key] = 1
30650 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30652 split(line, arg, " ")
30653 if (arg[1] == "#") {
30657 defundef
= substr
(arg
[1], 2)
30660 split(mac1
, mac2
, "(") #)
30662 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30663 if (D_is_set
[macro
]) {
30664 # Preserve the white space surrounding the "#".
30665 print prefix
"define", macro P
[macro
] D
[macro
]
30668 # Replace #undef with comments. This is necessary, for example,
30669 # in the case of _POSIX_SOURCE, which is predefined and required
30670 # on some systems where configure will not decide to define it.
30671 if (defundef
== "undef") {
30672 print
"/*", prefix defundef
, macro
, "*/"
30680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30681 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30682 fi # test -n "$CONFIG_HEADERS"
30685 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30690 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30692 case $ac_mode$ac_tag in
30694 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30695 :[FH
]-) ac_tag
=-:-;;
30696 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30713 -) ac_f
="$tmp/stdin";;
30714 *) # Look for the file first in the build tree, then in the source tree
30715 # (if the path is not absolute). The absolute path cannot be DOS-style,
30716 # because $ac_f cannot contain `:'.
30720 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30722 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30724 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30725 as_fn_append ac_file_inputs
" '$ac_f'"
30728 # Let's still pretend it is `configure' which instantiates (i.e., don't
30729 # use $as_me), people would be surprised to read:
30730 # /* config.h. Generated by config.status. */
30731 configure_input
='Generated from '`
30732 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30734 if test x
"$ac_file" != x-
; then
30735 configure_input
="$ac_file. $configure_input"
30736 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30737 $as_echo "$as_me: creating $ac_file" >&6;}
30739 # Neutralize special characters interpreted by sed in replacement strings.
30740 case $configure_input in #(
30741 *\
&* |
*\|
* |
*\\* )
30742 ac_sed_conf_input
=`$as_echo "$configure_input" |
30743 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30744 *) ac_sed_conf_input
=$configure_input;;
30748 *:-:* |
*:-) cat >"$tmp/stdin" \
30749 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30754 ac_dir
=`$as_dirname -- "$ac_file" ||
30755 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30756 X"$ac_file" : 'X\(//\)[^/]' \| \
30757 X"$ac_file" : 'X\(//\)$' \| \
30758 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30759 $as_echo X"$ac_file" |
30760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30764 /^X\(\/\/\)[^/].*/{
30777 as_dir
="$ac_dir"; as_fn_mkdir_p
30781 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30783 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30784 # A ".." for each directory in $ac_dir_suffix.
30785 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30786 case $ac_top_builddir_sub in
30787 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30788 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30791 ac_abs_top_builddir
=$ac_pwd
30792 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30793 # for backward compatibility:
30794 ac_top_builddir
=$ac_top_build_prefix
30797 .
) # We are building in place.
30799 ac_top_srcdir
=$ac_top_builddir_sub
30800 ac_abs_top_srcdir
=$ac_pwd ;;
30801 [\\/]* | ?
:[\\/]* ) # Absolute name.
30802 ac_srcdir
=$srcdir$ac_dir_suffix;
30803 ac_top_srcdir
=$srcdir
30804 ac_abs_top_srcdir
=$srcdir ;;
30805 *) # Relative name.
30806 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30807 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30808 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30810 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30822 # If the template does not know about datarootdir, expand it.
30823 # FIXME: This hack should be removed a few years after 2.60.
30824 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30835 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30836 *datarootdir
*) ac_datarootdir_seen
=yes;;
30837 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30839 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30842 ac_datarootdir_hack='
30843 s&@datadir@&$datadir&g
30844 s&@docdir@&$docdir&g
30845 s&@infodir@&$infodir&g
30846 s&@localedir@&$localedir&g
30847 s&@mandir@&$mandir&g
30848 s&\\\${datarootdir}&$datarootdir&g' ;;
30852 # Neutralize VPATH when `$srcdir' = `.'.
30853 # Shell code in configure.ac might set extrasub.
30854 # FIXME: do we really want to maintain this feature?
30855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30856 ac_sed_extra="$ac_vpsub
30859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30861 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30862 s|@configure_input@|
$ac_sed_conf_input|
;t t
30863 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30864 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30865 s
&@srcdir@
&$ac_srcdir&;t t
30866 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30867 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30868 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30869 s
&@builddir@
&$ac_builddir&;t t
30870 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30871 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30872 $ac_datarootdir_hack
30874 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30875 if $ac_cs_awk_getline; then
30876 $AWK -f "$tmp/subs.
awk"
30878 $AWK -f "$tmp/subs.
awk" | $SHELL
30880 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30882 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30883 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30884 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30886 which seems to be undefined. Please make sure it is defined." >&5
30887 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30888 which seems to be undefined. Please make sure it is defined." >&2;}
30892 -) cat "$tmp/out" && rm -f "$tmp/out";;
30893 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30895 || as_fn_error "could not create $ac_file" "$LINENO" 5
30901 if test x"$ac_file" != x-; then
30903 $as_echo "/* $configure_input */" \
30904 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30905 } >"$tmp/config.h" \
30906 || as_fn_error "could not create $ac_file" "$LINENO" 5
30907 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30908 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30909 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30912 mv "$tmp/config.h" "$ac_file" \
30913 || as_fn_error "could not create $ac_file" "$LINENO" 5
30916 $as_echo "/* $configure_input */" \
30917 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30918 || as_fn_error "could not create -" "$LINENO" 5
30926 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30929 # Prefer the file from the source tree if names are identical.
30930 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30931 ac_source=$srcdir/$ac_source
30934 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30935 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30937 if test ! -r "$ac_source"; then
30938 as_fn_error "$ac_source: file not found" "$LINENO" 5
30942 # Try a relative symlink, then a hard link, then a copy.
30944 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30945 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30947 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30948 ln "$ac_source" "$ac_file" 2>/dev/null ||
30949 cp -p "$ac_source" "$ac_file" ||
30950 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30953 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30954 $as_echo "$as_me: executing $ac_file commands" >&6;}
30959 case $ac_file$ac_mode in
30960 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30962 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30963 for lang in $subdirs c-family common
30965 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30967 "as":F) chmod +x as ;;
30968 "collect-ld":F) chmod +x collect-ld ;;
30969 "nm":F) chmod +x nm ;;
30971 case ${CONFIG_HEADERS} in
30972 *auto-host.h:config.in*)
30975 # Make sure all the subdirs exist.
30976 for d in $subdirs doc build common c-family
30978 test -d $d || mkdir $d
30988 ac_clean_files=$ac_clean_files_save
30990 test $ac_write_fail = 0 ||
30991 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30994 # configure is writing to config.log, and then calls config.status.
30995 # config.status does its own redirection, appending to config.log.
30996 # Unfortunately, on DOS this fails, as config.log is still kept open
30997 # by configure, so config.status won't be able to
write to it
; its
30998 # output is simply discarded. So we exec the FD to /dev/null,
30999 # effectively closing config.log, so it can be properly (re)opened and
31000 # appended to by config.status. When coming back to configure, we
31001 # need to make the FD available again.
31002 if test "$no_create" != yes; then
31004 ac_config_status_args
=
31005 test "$silent" = yes &&
31006 ac_config_status_args
="$ac_config_status_args --quiet"
31008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31011 # would make configure fail if this is the last instruction.
31012 $ac_cs_success || as_fn_exit $?
31014 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31016 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}