2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
627 common_out_object_file
643 gcc_gxx_include_dir_add_sysroot
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
653 TM_MULTILIB_EXCEPTIONS_CONFIG
662 build_xm_include_list
664 build_install_headers_dir
666 all_selected_languages
686 ORIGINAL_NM_FOR_TARGET
688 ORIGINAL_LD_GOLD_FOR_TARGET
689 ORIGINAL_LD_BFD_FOR_TARGET
690 ORIGINAL_LD_FOR_TARGET
691 ORIGINAL_PLUGIN_LD_FOR_TARGET
693 ORIGINAL_AS_FOR_TARGET
711 NO_PIE_FLAG_FOR_BUILD
712 NO_PIE_CFLAGS_FOR_BUILD
722 BUILD_SYSTEM_HEADER_DIR
741 NATIVE_SYSTEM_HEADER_DIR
774 real_target_noncanonical
775 enable_as_accelerator
789 valgrind_path_defines
819 CROSS_SYSTEM_HEADER_DIR
820 TARGET_SYSTEM_ROOT_DEFINE
822 SYSROOT_CFLAGS_FOR_TARGET
868 program_transform_name
879 ac_subst_files
='option_includes
882 enable_option_checking
885 with_native_system_header_dir
890 enable_generated_files_in_srcdir
897 enable_build_format_warnings
901 enable_gather_detailed_mem_stats
902 enable_valgrind_annotations
922 enable_sjlj_exceptions
923 with_gcc_major_version_only
925 enable_leading_mingw64_underscores
928 enable_win32_registry
936 enable_gnu_indirect_function
937 enable_initfini_array
939 enable_fix_cortex_a53_835769
940 enable_fix_cortex_a53_843419
942 enable_gnu_unique_object
943 enable_linker_build_id
948 enable_maintainer_mode
950 enable_version_specific_runtime_libs
953 enable_libquadmath_support
954 with_linker_hash_style
955 with_diagnostics_color
958 ac_precious_vars
='build_alias
977 # Initialize some variables set by options.
979 ac_init_version
=false
980 ac_unrecognized_opts
=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
991 program_transform_name
=s
,x
,x
,
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir
='${exec_prefix}/bin'
1006 sbindir
='${exec_prefix}/sbin'
1007 libexecdir
='${exec_prefix}/libexec'
1008 datarootdir
='${prefix}/share'
1009 datadir
='${datarootdir}'
1010 sysconfdir
='${prefix}/etc'
1011 sharedstatedir
='${prefix}/com'
1012 localstatedir
='${prefix}/var'
1013 includedir
='${prefix}/include'
1014 oldincludedir
='/usr/include'
1015 docdir
='${datarootdir}/doc/${PACKAGE}'
1016 infodir
='${datarootdir}/info'
1021 libdir
='${exec_prefix}/lib'
1022 localedir
='${datarootdir}/locale'
1023 mandir
='${datarootdir}/man'
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\
$ac_option
1037 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1047 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1049 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1050 bindir
=$ac_optarg ;;
1052 -build |
--build |
--buil |
--bui |
--bu)
1053 ac_prev
=build_alias
;;
1054 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1055 build_alias
=$ac_optarg ;;
1057 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1058 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1059 ac_prev
=cache_file
;;
1060 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1061 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1062 cache_file
=$ac_optarg ;;
1064 --config-cache |
-C)
1065 cache_file
=config.cache
;;
1067 -datadir |
--datadir |
--datadi |
--datad)
1069 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1070 datadir
=$ac_optarg ;;
1072 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1073 |
--dataroo |
--dataro |
--datar)
1074 ac_prev
=datarootdir
;;
1075 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1076 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1077 datarootdir
=$ac_optarg ;;
1079 -disable-* |
--disable-*)
1080 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1083 as_fn_error
"invalid feature name: $ac_useropt"
1084 ac_useropt_orig
=$ac_useropt
1085 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_
$ac_useropt"
1090 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep
=', ';;
1093 eval enable_
$ac_useropt=no
;;
1095 -docdir |
--docdir |
--docdi |
--doc |
--do)
1097 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1098 docdir
=$ac_optarg ;;
1100 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1102 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1103 dvidir
=$ac_optarg ;;
1105 -enable-* |
--enable-*)
1106 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1109 as_fn_error
"invalid feature name: $ac_useropt"
1110 ac_useropt_orig
=$ac_useropt
1111 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_
$ac_useropt"
1116 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep
=', ';;
1119 eval enable_
$ac_useropt=\
$ac_optarg ;;
1121 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1122 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1123 |
--exec |
--exe |
--ex)
1124 ac_prev
=exec_prefix
;;
1125 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1126 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1127 |
--exec=* |
--exe=* |
--ex=*)
1128 exec_prefix
=$ac_optarg ;;
1130 -gas |
--gas |
--ga |
--g)
1131 # Obsolete; use --with-gas.
1134 -help |
--help |
--hel |
--he |
-h)
1135 ac_init_help
=long
;;
1136 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1137 ac_init_help
=recursive
;;
1138 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1139 ac_init_help
=short
;;
1141 -host |
--host |
--hos |
--ho)
1142 ac_prev
=host_alias
;;
1143 -host=* |
--host=* |
--hos=* |
--ho=*)
1144 host_alias
=$ac_optarg ;;
1146 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1148 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1150 htmldir
=$ac_optarg ;;
1152 -includedir |
--includedir |
--includedi |
--included |
--include \
1153 |
--includ |
--inclu |
--incl |
--inc)
1154 ac_prev
=includedir
;;
1155 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1156 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1157 includedir
=$ac_optarg ;;
1159 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1161 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1162 infodir
=$ac_optarg ;;
1164 -libdir |
--libdir |
--libdi |
--libd)
1166 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1167 libdir
=$ac_optarg ;;
1169 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1170 |
--libexe |
--libex |
--libe)
1171 ac_prev
=libexecdir
;;
1172 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1173 |
--libexe=* |
--libex=* |
--libe=*)
1174 libexecdir
=$ac_optarg ;;
1176 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1177 ac_prev
=localedir
;;
1178 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1179 localedir
=$ac_optarg ;;
1181 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1182 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1183 ac_prev
=localstatedir
;;
1184 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1185 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1186 localstatedir
=$ac_optarg ;;
1188 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1190 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1191 mandir
=$ac_optarg ;;
1193 -nfp |
--nfp |
--nf)
1194 # Obsolete; use --without-fp.
1197 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1198 |
--no-cr |
--no-c |
-n)
1201 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1202 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1205 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1206 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1207 |
--oldin |
--oldi |
--old |
--ol |
--o)
1208 ac_prev
=oldincludedir
;;
1209 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1210 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1211 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1212 oldincludedir
=$ac_optarg ;;
1214 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1216 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1217 prefix
=$ac_optarg ;;
1219 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1220 |
--program-pre |
--program-pr |
--program-p)
1221 ac_prev
=program_prefix
;;
1222 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1223 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1224 program_prefix
=$ac_optarg ;;
1226 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1227 |
--program-suf |
--program-su |
--program-s)
1228 ac_prev
=program_suffix
;;
1229 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1230 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1231 program_suffix
=$ac_optarg ;;
1233 -program-transform-name |
--program-transform-name \
1234 |
--program-transform-nam |
--program-transform-na \
1235 |
--program-transform-n |
--program-transform- \
1236 |
--program-transform |
--program-transfor \
1237 |
--program-transfo |
--program-transf \
1238 |
--program-trans |
--program-tran \
1239 |
--progr-tra |
--program-tr |
--program-t)
1240 ac_prev
=program_transform_name
;;
1241 -program-transform-name=* |
--program-transform-name=* \
1242 |
--program-transform-nam=* |
--program-transform-na=* \
1243 |
--program-transform-n=* |
--program-transform-=* \
1244 |
--program-transform=* |
--program-transfor=* \
1245 |
--program-transfo=* |
--program-transf=* \
1246 |
--program-trans=* |
--program-tran=* \
1247 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1248 program_transform_name
=$ac_optarg ;;
1250 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1252 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1253 pdfdir
=$ac_optarg ;;
1255 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1257 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1260 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1261 |
-silent |
--silent |
--silen |
--sile |
--sil)
1264 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1266 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1268 sbindir
=$ac_optarg ;;
1270 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1271 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1272 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1274 ac_prev
=sharedstatedir
;;
1275 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1276 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1277 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1279 sharedstatedir
=$ac_optarg ;;
1281 -site |
--site |
--sit)
1283 -site=* |
--site=* |
--sit=*)
1286 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1288 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1289 srcdir
=$ac_optarg ;;
1291 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1292 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1293 ac_prev
=sysconfdir
;;
1294 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1295 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1296 sysconfdir
=$ac_optarg ;;
1298 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1299 ac_prev
=target_alias
;;
1300 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1301 target_alias
=$ac_optarg ;;
1303 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1306 -version |
--version |
--versio |
--versi |
--vers |
-V)
1307 ac_init_version
=: ;;
1310 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1313 as_fn_error
"invalid package name: $ac_useropt"
1314 ac_useropt_orig
=$ac_useropt
1315 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1320 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep
=', ';;
1323 eval with_
$ac_useropt=\
$ac_optarg ;;
1325 -without-* |
--without-*)
1326 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1329 as_fn_error
"invalid package name: $ac_useropt"
1330 ac_useropt_orig
=$ac_useropt
1331 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1336 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep
=', ';;
1339 eval with_
$ac_useropt=no
;;
1342 # Obsolete; use --with-x.
1345 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1346 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1347 ac_prev
=x_includes
;;
1348 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1349 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1350 x_includes
=$ac_optarg ;;
1352 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1353 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1354 ac_prev
=x_libraries
;;
1355 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1356 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1357 x_libraries
=$ac_optarg ;;
1359 -*) as_fn_error
"unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information."
1364 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1368 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1370 eval $ac_envvar=\
$ac_optarg
1371 export $ac_envvar ;;
1374 # FIXME: should be removed in autoconf 3.0.
1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384 if test -n "$ac_prev"; then
1385 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error
"missing argument to $ac_option"
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1392 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1393 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397 # Check all directory arguments for consistency.
1398 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir
1403 eval ac_val
=\$
$ac_var
1404 # Remove trailing slashes.
1407 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\
$ac_val;;
1410 # Be sure to have absolute directory names.
1412 [\\/$
]* | ?
:[\\/]* ) continue;;
1413 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1415 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1423 target
=$target_alias
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x
; then
1427 if test "x$build_alias" = x
; then
1428 cross_compiling
=maybe
1429 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430 If a cross compiler is detected then cross compile mode will be used." >&2
1431 elif test "x$build_alias" != "x$host_alias"; then
1437 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1439 test "$silent" = yes && exec 6>/dev
/null
1442 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di
=`ls -di .` &&
1444 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1445 as_fn_error
"working directory cannot be determined"
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447 as_fn_error
"pwd does not report name of working directory"
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452 ac_srcdir_defaulted
=yes
1453 # Try the directory containing this script, then the parent directory.
1454 ac_confdir
=`$as_dirname -- "$as_myself" ||
1455 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456 X"$as_myself" : 'X\(//\)[^/]' \| \
1457 X"$as_myself" : 'X\(//\)$' \| \
1458 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1459 $as_echo X"$as_myself" |
1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1482 ac_srcdir_defaulted
=no
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1486 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1488 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1490 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1500 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1502 for ac_var
in $ac_precious_vars; do
1503 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1504 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1505 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1506 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1510 # Report the --help message.
1512 if test "$ac_init_help" = "long"; then
1513 # Omit some internal or obsolete options to make the list less imposing.
1514 # This message is too long to be a string in the A/UX 3.1 sh.
1516 \`configure' configures this package to adapt to many kinds of systems.
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE. See below for descriptions of some of the useful variables.
1523 Defaults for the options are specified in brackets.
1526 -h, --help display this help and exit
1527 --help=short display options specific to this package
1528 --help=recursive display the short help of all the included packages
1529 -V, --version display version information and exit
1530 -q, --quiet, --silent do not print \`checking...' messages
1531 --cache-file=FILE cache test results in FILE [disabled]
1532 -C, --config-cache alias for \`--cache-file=config.cache'
1533 -n, --no-create do not create output files
1534 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1536 Installation directories:
1537 --prefix=PREFIX install architecture-independent files in PREFIX
1538 [$ac_default_prefix]
1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1547 For better control, use the options below.
1549 Fine tuning of the installation directories:
1550 --bindir=DIR user executables [EPREFIX/bin]
1551 --sbindir=DIR system admin executables [EPREFIX/sbin]
1552 --libexecdir=DIR program executables [EPREFIX/libexec]
1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1556 --libdir=DIR object code libraries [EPREFIX/lib]
1557 --includedir=DIR C header files [PREFIX/include]
1558 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1559 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1560 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1561 --infodir=DIR info documentation [DATAROOTDIR/info]
1562 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1563 --mandir=DIR man documentation [DATAROOTDIR/man]
1564 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1565 --htmldir=DIR html documentation [DOCDIR]
1566 --dvidir=DIR dvi documentation [DOCDIR]
1567 --pdfdir=DIR pdf documentation [DOCDIR]
1568 --psdir=DIR ps documentation [DOCDIR]
1574 --program-prefix=PREFIX prepend PREFIX to installed program names
1575 --program-suffix=SUFFIX append SUFFIX to installed program names
1576 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1579 --build=BUILD configure
for building on BUILD
[guessed
]
1580 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1581 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1585 if test -n "$ac_init_help"; then
1590 --disable-option-checking ignore unrecognized
--enable/--with options
1591 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1592 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1593 --enable-generated-files-in-srcdir
1594 put copies of generated files
in source dir intended
1595 for creating
source tarballs
for users without
1596 texinfo bison or flex
1597 --disable-largefile omit support
for large files
1598 --disable-build-format-warnings
1599 don
't use -Wformat while building GCC
1600 --enable-werror-always enable -Werror despite compiler version
1601 --enable-checking[=LIST]
1602 enable expensive run-time checks. With LIST, enable
1603 only specific categories of checks. Categories are:
1604 yes,no,all,none,release. Flags are:
1605 assert,df,extra,fold,gc,gcac,gimple,misc,
1606 rtlflag,rtl,runtime,tree,valgrind,types
1607 --enable-coverage[=LEVEL]
1608 enable compiler's code coverage collection. Use to
1609 measure compiler performance and
locate unused parts
1610 of the compiler. With LEVEL
, specify optimization.
1611 Values are opt
, noopt
, default is noopt
1612 --enable-gather-detailed-mem-stats
1613 enable detailed memory allocation stats gathering
1614 --enable-valgrind-annotations
1615 enable valgrind runtime interaction
1616 --enable-multilib enable library support
for multiple ABIs
1617 --enable-multiarch enable support
for multiarch paths
1618 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1619 --enable-decimal-float={no
,yes,bid
,dpd
}
1620 enable decimal float extension to C. Selecting
'bid'
1621 or
'dpd' choses
which decimal floating point format
1623 --enable-fixed-point enable fixed-point arithmetic extension to C
1624 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1626 --enable-tls enable or disable generation of tls code overriding
1627 the assembler check
for tls support
1628 --enable-vtable-verify enable vtable verification feature
1629 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1630 GNU Objective-C runtime
1631 --disable-shared don't provide a shared libgcc
1632 --enable-languages=LIST specify
which front-ends to build
1633 --disable-rpath do not hardcode runtime library paths
1634 --enable-sjlj-exceptions
1635 arrange to use setjmp
/longjmp exception handling
1636 --enable-secureplt enable -msecure-plt by default
for PowerPC
1637 --enable-leading-mingw64-underscores
1638 enable leading underscores on
64 bit mingw targets
1639 --enable-cld enable -mcld by default
for 32bit x86
1640 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1642 --disable-win32-registry
1643 disable lookup of installation paths
in the Registry
1645 --enable-win32-registry enable registry lookup
(default
)
1646 --enable-win32-registry=KEY
1647 use KEY instead of GCC version as the last portion
1649 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1650 --enable-static[=PKGS
] build static libraries
[default
=yes]
1651 --enable-fast-install[=PKGS
]
1652 optimize
for fast installation
[default
=yes]
1653 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1654 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1655 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1656 --enable-gnu-indirect-function
1657 enable the use of the @gnu_indirect_function to
1659 --enable-initfini-array use .init_array
/.fini_array sections
1660 --enable-comdat enable COMDAT group support
1662 --enable-fix-cortex-a53-835769
1663 enable workaround
for AArch64 Cortex-A53 erratum
1665 --disable-fix-cortex-a53-835769
1666 disable workaround
for AArch64 Cortex-A53 erratum
1670 --enable-fix-cortex-a53-843419
1671 enable workaround
for AArch64 Cortex-A53 erratum
1673 --disable-fix-cortex-a53-843419
1674 disable workaround
for AArch64 Cortex-A53 erratum
1677 --enable-gnu-unique-object
1678 enable the use of the @gnu_unique_object ELF
1679 extension on glibc systems
1680 --enable-linker-build-id
1681 compiler will always pass
--build-id to linker
1682 --enable-default-ssp enable Stack Smashing Protection as default
1683 --enable-maintainer-mode
1684 enable make rules and dependencies not useful
(and
1685 sometimes confusing
) to the casual installer
1686 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1687 thrashing on the build machine
1688 --enable-version-specific-runtime-libs
1689 specify that runtime libraries should be installed
1690 in a compiler-specific directory
1691 --enable-plugin enable plugin support
1692 --enable-host-shared build
host code as shared libraries
1693 --disable-libquadmath-support
1694 disable libquadmath support
for Fortran
1695 --enable-default-pie enable Position Independent Executable as default
1698 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1699 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1700 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1701 --with-local-prefix=DIR specifies directory to put
local include
1702 --with-native-system-header-dir=dir
1703 use dir as the directory to
look for standard
1704 system header files
in. Defaults to
/usr
/include.
1705 --with-build-sysroot=sysroot
1706 use sysroot as the system root during the build
1707 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1708 --with-gxx-include-dir=DIR
1709 specifies directory to put g
++ header files
1710 --with-cpp-install-dir=DIR
1711 install the user visible C preprocessor
in DIR
1712 (relative to PREFIX
) as well as PREFIX
/bin
1713 --with-gnu-ld arrange to work with GNU ld
1714 --with-ld arrange to use the specified ld
(full pathname
)
1715 --with-demangler-in-ld try to use demangler
in GNU ld
1716 --with-gnu-as arrange to work with GNU as
1717 --with-as arrange to use the specified as
(full pathname
)
1718 --with-stabs arrange to use stabs instead of
host debug format
1719 --with-dwarf2 force the default debug format to be DWARF
2
1720 --with-specs=SPECS add SPECS to driver command-line processing
1721 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1722 --with-bugurl=URL Direct users to URL to report a bug
1723 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1724 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1725 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1726 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1727 --with-gcc-major-version-only
1728 use only GCC major number in filesystem paths
1729 --with-pic try to use only PIC/non-PIC objects [default=use
1731 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1732 --with-plugin-ld=[ARG] specify the plugin linker
1733 --with-glibc-version=M.N
1734 assume GCC used with glibc version M.N or later
1735 --with-long-double-128 use 128-bit long double by default
1736 --with-gc={page,zone} this option is not supported anymore. It used to
1737 choose the garbage collection mechanism to use with
1739 --with-system-zlib use installed libz
1740 --with-linker-hash-style={sysv,gnu,both}
1741 specify the linker hash style
1742 --with-diagnostics-color={never,auto,auto-if-env,always}
1743 specify the default of -fdiagnostics-color option
1744 auto-if-env stands for -fdiagnostics-color=auto if
1745 GCC_COLOR environment variable is present and
1746 -fdiagnostics-color=never otherwise
1748 Some influential environment variables:
1749 CC C compiler command
1750 CFLAGS C compiler flags
1751 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1752 nonstandard directory <lib dir>
1753 LIBS libraries to pass to the linker, e.g. -l<library>
1754 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1755 you have headers in a nonstandard directory <include dir>
1756 CXX C++ compiler command
1757 CXXFLAGS C++ compiler flags
1758 CXXCPP C++ preprocessor
1760 GMPLIBS How to link GMP
1761 GMPINC How to find GMP include files
1762 ISLLIBS How to link isl
1763 ISLINC How to find isl include files
1765 Use these variables to override the choices made by `configure' or to
help
1766 it to
find libraries and programs with nonstandard names
/locations.
1768 Report bugs to the package provider.
1773 if test "$ac_init_help" = "recursive"; then
1774 # If there are subdirs, report their specific --help.
1775 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1776 test -d "$ac_dir" ||
1777 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1782 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1784 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1785 # A ".." for each directory in $ac_dir_suffix.
1786 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1787 case $ac_top_builddir_sub in
1788 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1789 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1792 ac_abs_top_builddir
=$ac_pwd
1793 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1794 # for backward compatibility:
1795 ac_top_builddir
=$ac_top_build_prefix
1798 .
) # We are building in place.
1800 ac_top_srcdir
=$ac_top_builddir_sub
1801 ac_abs_top_srcdir
=$ac_pwd ;;
1802 [\\/]* | ?
:[\\/]* ) # Absolute name.
1803 ac_srcdir
=$srcdir$ac_dir_suffix;
1804 ac_top_srcdir
=$srcdir
1805 ac_abs_top_srcdir
=$srcdir ;;
1807 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1808 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1809 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1811 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1813 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1814 # Check for guested configure.
1815 if test -f "$ac_srcdir/configure.gnu"; then
1817 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1818 elif test -f "$ac_srcdir/configure"; then
1820 $SHELL "$ac_srcdir/configure" --help=recursive
1822 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1824 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1828 test -n "$ac_init_help" && exit $ac_status
1829 if $ac_init_version; then
1832 generated by GNU Autoconf
2.64
1834 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1835 This configure
script is free software
; the Free Software Foundation
1836 gives unlimited permission to copy
, distribute and modify it.
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile
()
1850 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1851 rm -f conftest.
$ac_objext
1852 if { { ac_try
="$ac_compile"
1854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_compile") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest.$ac_objext; then :
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 } # ac_fn_c_try_compile
1883 # ac_fn_cxx_try_compile LINENO
1884 # ----------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_cxx_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1893 *) ac_try_echo
=$ac_try;;
1895 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1899 if test -s conftest.err
; then
1900 grep -v '^ *+' conftest.err
>conftest.er1
1901 cat conftest.er1
>&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_cxx_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.
$ac_objext; then :
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.
$ac_ext >&5
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1919 } # ac_fn_cxx_try_compile
1921 # ac_fn_cxx_try_cpp LINENO
1922 # ------------------------
1923 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_cpp
()
1926 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1927 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1936 if test -s conftest.err; then
1937 grep -v '^ *+' conftest.err >conftest.er1
1938 cat conftest.er1 >&5
1939 mv -f conftest.er1 conftest.err
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } >/dev/null && {
1943 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1944 test ! -s conftest.err
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1956 } # ac_fn_cxx_try_cpp
1958 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1959 # ---------------------------------------------------------
1960 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1961 # the include files in INCLUDES and setting the cache variable VAR
1963 ac_fn_cxx_check_header_mongrel ()
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970 $as_echo_n "(cached) " >&6
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1976 # Is the header compilable?
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1978 $as_echo_n "checking $2 usability... " >&6; }
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1984 if ac_fn_cxx_try_compile "$LINENO"; then :
1985 ac_header_compiler=yes
1987 ac_header_compiler=no
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1991 $as_echo "$ac_header_compiler" >&6; }
1993 # Is the header present?
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1995 $as_echo_n "checking $2 presence... " >&6; }
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2000 if ac_fn_cxx_try_cpp "$LINENO"; then :
2001 ac_header_preproc=yes
2003 ac_header_preproc=no
2005 rm -f conftest.err conftest.$ac_ext
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2007 $as_echo "$ac_header_preproc" >&6; }
2009 # So? What about this header?
2010 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2013 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2015 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2019 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2021 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2023 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2025 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2031 $as_echo_n "checking for $2... " >&6; }
2032 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2033 $as_echo_n "(cached) " >&6
2035 eval "$3=\$ac_header_compiler"
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2043 } # ac_fn_cxx_check_header_mongrel
2045 # ac_fn_cxx_try_run LINENO
2046 # ------------------------
2047 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2048 # that executables *can* be run.
2049 ac_fn_cxx_try_run ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 if { { ac_try="$ac_link"
2054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2055 *) ac_try_echo
=$ac_try;;
2057 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_link") 2>&5
2061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2063 { { case "(($ac_try" in
2064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_try") 2>&5
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; }; }; then :
2075 $as_echo "$as_me: program exited with status $ac_status" >&5
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2079 ac_retval=$ac_status
2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085 } # ac_fn_cxx_try_run
2087 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2088 # ---------------------------------------------------------
2089 # Tests whether HEADER exists and can be compiled using the include files in
2090 # INCLUDES, setting the cache variable VAR accordingly.
2091 ac_fn_cxx_check_header_compile ()
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095 $as_echo_n "checking for $2... " >&6; }
2096 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2097 $as_echo_n "(cached) " >&6
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2104 if ac_fn_cxx_try_compile "$LINENO"; then :
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116 } # ac_fn_cxx_check_header_compile
2118 # ac_fn_c_try_cpp LINENO
2119 # ----------------------
2120 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 if { { ac_try="$ac_cpp conftest.$ac_ext"
2126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2127 *) ac_try_echo
=$ac_try;;
2129 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2133 if test -s conftest.err
; then
2134 grep -v '^ *+' conftest.err
>conftest.er1
2135 cat conftest.er1
>&5
2136 mv -f conftest.er1 conftest.err
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2139 test $ac_status = 0; } >/dev
/null
&& {
2140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2141 test ! -s conftest.err
2145 $as_echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.
$ac_ext >&5
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2155 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2156 # ----------------------------------------------
2157 # Tries to find the compile-time value of EXPR in a program that includes
2158 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2160 ac_fn_cxx_compute_int
()
2162 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2163 if test "$cross_compiling" = yes; then
2164 # Depending upon the size, compute the lo and hi bounds.
2165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) >= 0)];
2178 if ac_fn_cxx_try_compile
"$LINENO"; then :
2181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2194 if ac_fn_cxx_try_compile
"$LINENO"; then :
2195 ac_hi
=$ac_mid; break
2197 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2198 if test $ac_lo -le $ac_mid; then
2202 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2213 static int test_array [1 - 2 * !(($2) < 0)];
2220 if ac_fn_cxx_try_compile
"$LINENO"; then :
2223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2229 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2236 if ac_fn_cxx_try_compile
"$LINENO"; then :
2237 ac_lo
=$ac_mid; break
2239 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2240 if test $ac_mid -le $ac_hi; then
2244 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2254 # Binary search between lo and hi bounds.
2255 while test "x$ac_lo" != "x$ac_hi"; do
2256 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2263 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2270 if ac_fn_cxx_try_compile
"$LINENO"; then :
2273 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2278 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2285 static long int longval () { return $2; }
2286 static unsigned long int ulongval () { return $2; }
2293 FILE *f = fopen ("conftest.val", "w");
2298 long int i = longval ();
2301 fprintf (f, "%ld", i);
2305 unsigned long int i = ulongval ();
2308 fprintf (f, "%lu", i);
2310 /* Do not output a trailing newline, as this causes \r\n confusion
2311 on some platforms. */
2312 return ferror (f) || fclose (f) != 0;
2318 if ac_fn_cxx_try_run
"$LINENO"; then :
2319 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2323 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2324 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2328 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2331 } # ac_fn_cxx_compute_int
2333 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2334 # ---------------------------------------------
2335 # Tests whether TYPE exists after having included INCLUDES, setting cache
2336 # variable VAR accordingly.
2337 ac_fn_cxx_check_type
()
2339 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341 $as_echo_n "checking for $2... " >&6; }
2342 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2343 $as_echo_n "(cached) " >&6
2346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2358 if ac_fn_cxx_try_compile
"$LINENO"; then :
2359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2371 if ac_fn_cxx_try_compile
"$LINENO"; then :
2376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2385 } # ac_fn_cxx_check_type
2387 # ac_fn_c_find_intX_t LINENO BITS VAR
2388 # -----------------------------------
2389 # Finds a signed integer type with width BITS, setting cache variable VAR
2391 ac_fn_c_find_intX_t
()
2393 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2395 $as_echo_n "checking for int$2_t... " >&6; }
2396 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2397 $as_echo_n "(cached) " >&6
2400 for ac_type
in int
$2_t 'int' 'long int' \
2401 'long long int' 'short int' 'signed char'; do
2402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2404 $ac_includes_default
2408 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2415 if ac_fn_cxx_try_compile
"$LINENO"; then :
2416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 $ac_includes_default
2422 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2423 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2430 if ac_fn_cxx_try_compile
"$LINENO"; then :
2437 eval "$3=\$ac_type" ;;
2440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2444 if test "x$as_val" = x
""no
; then :
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2454 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2456 } # ac_fn_c_find_intX_t
2458 # ac_fn_cxx_try_link LINENO
2459 # -------------------------
2460 # Try to link conftest.$ac_ext, and return whether this succeeded.
2461 ac_fn_cxx_try_link
()
2463 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2464 rm -f conftest.
$ac_objext conftest
$ac_exeext
2465 if { { ac_try
="$ac_link"
2467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2471 $as_echo "$ac_try_echo"; } >&5
2472 (eval "$ac_link") 2>conftest.err
2474 if test -s conftest.err; then
2475 grep -v '^ *+' conftest.err >conftest.er1
2476 cat conftest.er1 >&5
2477 mv -f conftest.er1 conftest.err
2479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2480 test $ac_status = 0; } && {
2481 test -z "$ac_cxx_werror_flag" ||
2482 test ! -s conftest.err
2483 } && test -s conftest$ac_exeext && {
2484 test "$cross_compiling" = yes ||
2485 $as_test_x conftest$ac_exeext
2489 $as_echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2494 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2495 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2496 # interfere with the next link command; also delete a directory that is
2497 # left behind by Apple's compiler. We do this before executing the actions.
2498 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2499 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2502 } # ac_fn_cxx_try_link
2504 # ac_fn_c_find_uintX_t LINENO BITS VAR
2505 # ------------------------------------
2506 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2508 ac_fn_c_find_uintX_t ()
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2512 $as_echo_n "checking for uint$2_t... " >&6; }
2513 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2514 $as_echo_n "(cached) " >&6
2517 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2518 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2521 $ac_includes_default
2525 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2532 if ac_fn_cxx_try_compile "$LINENO"; then :
2537 eval "$3=\$ac_type" ;;
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 if test "x$as_val" = x""no; then :
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2551 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2554 } # ac_fn_c_find_uintX_t
2556 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2557 # ------------------------------------------------
2558 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2559 ac_fn_cxx_check_header_preproc ()
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2571 if ac_fn_cxx_try_cpp "$LINENO"; then :
2576 rm -f conftest.err conftest.$ac_ext
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2580 $as_echo "$ac_res" >&6; }
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2583 } # ac_fn_cxx_check_header_preproc
2585 # ac_fn_cxx_check_func LINENO FUNC VAR
2586 # ------------------------------------
2587 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2588 ac_fn_cxx_check_func ()
2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2592 $as_echo_n "checking for $2... " >&6; }
2593 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2594 $as_echo_n "(cached) " >&6
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2598 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2600 #define $2 innocuous_$2
2602 /* System header to define __stub macros and hopefully few prototypes,
2603 which can conflict with char $2 (); below.
2604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2605 <limits.h> exists even on freestanding compilers. */
2608 # include <limits.h>
2610 # include <assert.h>
2615 /* Override any GCC internal prototype to avoid an error.
2616 Use char because int might match the return type of a GCC
2617 builtin and then its argument prototype would still apply. */
2622 /* The GNU C library defines this for functions which it implements
2623 to always fail with ENOSYS. Some functions are actually named
2624 something starting with __ and the normal name is an alias. */
2625 #if defined __stub_$2 || defined __stub___$2
2637 if ac_fn_cxx_try_link "$LINENO"; then :
2642 rm -f core conftest.err conftest.$ac_objext \
2643 conftest$ac_exeext conftest.$ac_ext
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647 $as_echo "$ac_res" >&6; }
2648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2650 } # ac_fn_cxx_check_func
2652 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2653 # --------------------------------------
2654 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2655 ac_fn_cxx_check_decl ()
2657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2658 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2659 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2661 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2663 $as_echo_n "(cached) " >&6
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2671 #ifndef $as_decl_name
2673 (void) $as_decl_use;
2675 (void) $as_decl_name;
2683 if ac_fn_cxx_try_compile "$LINENO"; then :
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2695 } # ac_fn_cxx_check_decl
2697 # ac_fn_c_try_link LINENO
2698 # -----------------------
2699 # Try to link conftest.$ac_ext, and return whether this succeeded.
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 rm -f conftest.$ac_objext conftest$ac_exeext
2704 if { { ac_try="$ac_link"
2706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2707 *) ac_try_echo
=$ac_try;;
2709 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_link") 2>conftest.err
2713 if test -s conftest.err
; then
2714 grep -v '^ *+' conftest.err
>conftest.er1
2715 cat conftest.er1
>&5
2716 mv -f conftest.er1 conftest.err
2718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2719 test $ac_status = 0; } && {
2720 test -z "$ac_c_werror_flag" ||
2721 test ! -s conftest.err
2722 } && test -s conftest
$ac_exeext && {
2723 test "$cross_compiling" = yes ||
2724 $as_test_x conftest
$ac_exeext
2728 $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.
$ac_ext >&5
2733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2735 # interfere with the next link command; also delete a directory that is
2736 # left behind by Apple's compiler. We do this before executing the actions.
2737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2738 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2741 } # ac_fn_c_try_link
2743 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2744 # ----------------------------------------------
2745 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2746 ac_fn_c_check_header_preproc
()
2748 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2750 $as_echo_n "checking for $2... " >&6; }
2751 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2752 $as_echo_n "(cached) " >&6
2754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2758 if ac_fn_c_try_cpp
"$LINENO"; then :
2763 rm -f conftest.err conftest.
$ac_ext
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2767 $as_echo "$ac_res" >&6; }
2768 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2770 } # ac_fn_c_check_header_preproc
2772 # ac_fn_c_check_func LINENO FUNC VAR
2773 # ----------------------------------
2774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2775 ac_fn_c_check_func
()
2777 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2779 $as_echo_n "checking for $2... " >&6; }
2780 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2781 $as_echo_n "(cached) " >&6
2783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2784 /* end confdefs.h. */
2785 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2787 #define $2 innocuous_$2
2789 /* System header to define __stub macros and hopefully few prototypes,
2790 which can conflict with char $2 (); below.
2791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2792 <limits.h> exists even on freestanding compilers. */
2795 # include <limits.h>
2797 # include <assert.h>
2802 /* Override any GCC internal prototype to avoid an error.
2803 Use char because int might match the return type of a GCC
2804 builtin and then its argument prototype would still apply. */
2809 /* The GNU C library defines this for functions which it implements
2810 to always fail with ENOSYS. Some functions are actually named
2811 something starting with __ and the normal name is an alias. */
2812 #if defined __stub_$2 || defined __stub___$2
2824 if ac_fn_c_try_link
"$LINENO"; then :
2829 rm -f core conftest.err conftest.
$ac_objext \
2830 conftest
$ac_exeext conftest.
$ac_ext
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834 $as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2837 } # ac_fn_c_check_func
2838 cat >config.log
<<_ACEOF
2839 This file contains any messages produced by compilers while
2840 running configure, to aid debugging if configure makes a mistake.
2842 It was created by $as_me, which was
2843 generated by GNU Autoconf 2.64. Invocation command line was
2855 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2856 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2857 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2858 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2859 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2861 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2862 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2864 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2865 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2866 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2867 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2868 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2869 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2870 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir
=.
2879 $as_echo "PATH: $as_dir"
2895 # Keep a trace of the command line.
2896 # Strip out --no-create and --no-recursion so they do not pile up.
2897 # Strip out --silent because we don't want to record it for future runs.
2898 # Also quote any args containing shell meta-characters.
2899 # Make two passes to allow for proper duplicate-argument suppression.
2903 ac_must_keep_next
=false
2909 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2910 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2911 |
-silent |
--silent |
--silen |
--sile |
--sil)
2914 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2917 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2919 as_fn_append ac_configure_args1
" '$ac_arg'"
2920 if test $ac_must_keep_next = true
; then
2921 ac_must_keep_next
=false
# Got value, back to normal.
2924 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2925 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2926 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2927 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2928 case "$ac_configure_args0 " in
2929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2932 -* ) ac_must_keep_next
=true
;;
2935 as_fn_append ac_configure_args
" '$ac_arg'"
2940 { ac_configure_args0
=; unset ac_configure_args0
;}
2941 { ac_configure_args1
=; unset ac_configure_args1
;}
2943 # When interrupted or exit'd, cleanup temporary files, and complete
2944 # config.log. We remove comments because anyway the quotes in there
2945 # would cause problems or look ugly.
2946 # WARNING: Use '\'' to represent an apostrophe within the trap.
2947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2948 trap 'exit_status=$?
2949 # Save into config.log some information that might help in debugging.
2954 ## ---------------- ##
2955 ## Cache variables. ##
2956 ## ---------------- ##
2959 # The following way of writing the cache mishandles newlines in values,
2961 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2962 eval ac_val=\$$ac_var
2966 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2967 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2970 _ | IFS | as_nl) ;; #(
2971 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2972 *) { eval $ac_var=; unset $ac_var;} ;;
2977 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2978 *${as_nl}ac_space=\ *)
2980 "s/'\''/'\''\\\\'\'''\''/g;
2981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2984 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2992 ## ----------------- ##
2993 ## Output variables. ##
2994 ## ----------------- ##
2997 for ac_var in $ac_subst_vars
2999 eval ac_val=\$$ac_var
3001 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3003 $as_echo "$ac_var='\''$ac_val'\''"
3007 if test -n "$ac_subst_files"; then
3009 ## ------------------- ##
3010 ## File substitutions. ##
3011 ## ------------------- ##
3014 for ac_var
in $ac_subst_files
3016 eval ac_val
=\$
$ac_var
3018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3020 $as_echo "$ac_var='\''$ac_val'\''"
3025 if test -s confdefs.h; then
3035 test "$ac_signal" != 0 &&
3036 $as_echo "$as_me: caught signal $ac_signal"
3037 $as_echo "$as_me: exit $exit_status"
3039 rm -f core *.core core.conftest.* &&
3040 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3043 for ac_signal
in 1 2 13 15; do
3044 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3048 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3049 rm -f -r conftest
* confdefs.h
3051 $as_echo "/* confdefs.h */" > confdefs.h
3053 # Predefined preprocessor variables.
3055 cat >>confdefs.h
<<_ACEOF
3056 #define PACKAGE_NAME "$PACKAGE_NAME"
3059 cat >>confdefs.h
<<_ACEOF
3060 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3063 cat >>confdefs.h
<<_ACEOF
3064 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3067 cat >>confdefs.h
<<_ACEOF
3068 #define PACKAGE_STRING "$PACKAGE_STRING"
3071 cat >>confdefs.h
<<_ACEOF
3072 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3075 cat >>confdefs.h
<<_ACEOF
3076 #define PACKAGE_URL "$PACKAGE_URL"
3080 # Let the site file select an alternate cache file if it wants to.
3081 # Prefer an explicitly selected file to automatically selected ones.
3084 if test -n "$CONFIG_SITE"; then
3085 ac_site_file1
=$CONFIG_SITE
3086 elif test "x$prefix" != xNONE
; then
3087 ac_site_file1
=$prefix/share
/config.site
3088 ac_site_file2
=$prefix/etc
/config.site
3090 ac_site_file1
=$ac_default_prefix/share
/config.site
3091 ac_site_file2
=$ac_default_prefix/etc
/config.site
3093 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3095 test "x$ac_site_file" = xNONE
&& continue
3096 if test -r "$ac_site_file"; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3098 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3099 sed 's/^/| /' "$ac_site_file" >&5
3104 if test -r "$cache_file"; then
3105 # Some versions of bash will fail to source /dev/null (special
3106 # files actually), so we avoid doing that.
3107 if test -f "$cache_file"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3109 $as_echo "$as_me: loading cache $cache_file" >&6;}
3111 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3112 *) .
"./$cache_file";;
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3117 $as_echo "$as_me: creating cache $cache_file" >&6;}
3121 # Check that the precious variables saved in the cache have kept the same
3123 ac_cache_corrupted
=false
3124 for ac_var
in $ac_precious_vars; do
3125 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3126 eval ac_new_set
=\
$ac_env_${ac_var}_set
3127 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3128 eval ac_new_val
=\
$ac_env_${ac_var}_value
3129 case $ac_old_set,$ac_new_set in
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3132 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3133 ac_cache_corrupted
=: ;;
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3136 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3137 ac_cache_corrupted
=: ;;
3140 if test "x$ac_old_val" != "x$ac_new_val"; then
3141 # differences in whitespace do not lead to failure.
3142 ac_old_val_w
=`echo x $ac_old_val`
3143 ac_new_val_w
=`echo x $ac_new_val`
3144 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3146 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3147 ac_cache_corrupted
=:
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3150 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3151 eval $ac_var=\
$ac_old_val
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3154 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3156 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3159 # Pass precious variables to config.status.
3160 if test "$ac_new_set" = set; then
3162 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3163 *) ac_arg
=$ac_var=$ac_new_val ;;
3165 case " $ac_configure_args " in
3166 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3167 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3171 if $ac_cache_corrupted; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3175 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3176 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3178 ## -------------------- ##
3179 ## Main body of script. ##
3180 ## -------------------- ##
3183 ac_cpp
='$CPP $CPPFLAGS'
3184 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3193 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3196 gcc_version
=`cat $srcdir/BASE-VER`
3198 # Determine the host, build, and target systems
3200 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3201 for ac_t
in install-sh
install.sh shtool
; do
3202 if test -f "$ac_dir/$ac_t"; then
3204 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3209 if test -z "$ac_aux_dir"; then
3210 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3213 # These three variables are undocumented and unsupported,
3214 # and are intended to be withdrawn in a future Autoconf release.
3215 # They can cause serious problems if a builder's source tree is in a directory
3216 # whose full name contains unusual characters.
3217 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3218 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3219 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3222 # Make sure we can run config.sub.
3223 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3224 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3227 $as_echo_n "checking build system type... " >&6; }
3228 if test "${ac_cv_build+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3231 ac_build_alias
=$build_alias
3232 test "x$ac_build_alias" = x
&&
3233 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3234 test "x$ac_build_alias" = x
&&
3235 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3236 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3237 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3241 $as_echo "$ac_cv_build" >&6; }
3242 case $ac_cv_build in
3244 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3247 ac_save_IFS
=$IFS; IFS
='-'
3253 # Remember, the first character of IFS is used to create $*,
3254 # except with old shells:
3257 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3261 $as_echo_n "checking host system type... " >&6; }
3262 if test "${ac_cv_host+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3265 if test "x$host_alias" = x
; then
3266 ac_cv_host
=$ac_cv_build
3268 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3269 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3274 $as_echo "$ac_cv_host" >&6; }
3277 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3280 ac_save_IFS
=$IFS; IFS
='-'
3286 # Remember, the first character of IFS is used to create $*,
3287 # except with old shells:
3290 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3294 $as_echo_n "checking target system type... " >&6; }
3295 if test "${ac_cv_target+set}" = set; then :
3296 $as_echo_n "(cached) " >&6
3298 if test "x$target_alias" = x
; then
3299 ac_cv_target
=$ac_cv_host
3301 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3302 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3307 $as_echo "$ac_cv_target" >&6; }
3308 case $ac_cv_target in
3310 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3312 target
=$ac_cv_target
3313 ac_save_IFS
=$IFS; IFS
='-'
3319 # Remember, the first character of IFS is used to create $*,
3320 # except with old shells:
3323 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3326 # The aliases save the names the user supplied, while $host etc.
3327 # will get canonicalized.
3328 test -n "$target_alias" &&
3329 test "$program_prefix$program_suffix$program_transform_name" = \
3331 program_prefix
=${target_alias}-
3333 # Determine the noncanonical host name, for Ada.
3334 case ${build_alias} in
3335 "") build_noncanonical
=${build} ;;
3336 *) build_noncanonical
=${build_alias} ;;
3339 case ${host_alias} in
3340 "") host_noncanonical
=${build_noncanonical} ;;
3341 *) host_noncanonical
=${host_alias} ;;
3347 # Determine the noncanonical target name, for directory use.
3348 case ${target_alias} in
3349 "") target_noncanonical
=${host_noncanonical} ;;
3350 *) target_noncanonical
=${target_alias} ;;
3356 # Used for constructing correct paths for offload compilers.
3357 real_target_noncanonical
=${target_noncanonical}
3360 # Determine the target- and build-specific subdirectories
3362 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3363 # have matching libraries, they should use host libraries: Makefile.tpl
3364 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3365 # However, they still use the build modules, because the corresponding
3366 # host modules (e.g. bison) are only built for the host when bootstrap
3368 # - build_subdir is where we find build modules, and never changes.
3369 # - build_libsubdir is where we find build libraries, and can be overridden.
3371 # Prefix 'build-' so this never conflicts with target_subdir.
3372 build_subdir
="build-${build_noncanonical}"
3374 # Check whether --with-build-libsubdir was given.
3375 if test "${with_build_libsubdir+set}" = set; then :
3376 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3378 build_libsubdir
="$build_subdir"
3381 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3382 if ( test $srcdir = .
&& test -d gcc
) \
3383 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3384 host_subdir
="host-${host_noncanonical}"
3389 target_subdir
=${target_noncanonical}
3392 # Set program_transform_name
3393 test "$program_prefix" != NONE
&&
3394 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3395 # Use a double $ so make ignores it.
3396 test "$program_suffix" != NONE
&&
3397 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3398 # Double any \ or $.
3399 # By default was `s,x,x', remove it if useless.
3400 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3401 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3404 # Check for bogus environment variables.
3405 # Test if LIBRARY_PATH contains the notation for the current directory
3406 # since this would lead to problems installing/building glibc.
3407 # LIBRARY_PATH contains the current directory if one of the following
3409 # - one of the terminals (":" and ";") is the first or last sign
3410 # - two terminals occur directly after each other
3411 # - the path contains an element with a dot in it
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3413 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3414 case ${LIBRARY_PATH} in
3415 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3416 library_path_setting
="contains current directory"
3419 library_path_setting
="ok"
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3423 $as_echo "$library_path_setting" >&6; }
3424 if test "$library_path_setting" != "ok"; then
3426 *** LIBRARY_PATH shouldn't contain the current directory when
3427 *** building gcc. Please change the environment variable
3428 *** and run configure again." "$LINENO" 5
3431 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3432 # since this would lead to problems installing/building glibc.
3433 # GCC_EXEC_PREFIX contains the current directory if one of the following
3435 # - one of the terminals (":" and ";") is the first or last sign
3436 # - two terminals occur directly after each other
3437 # - the path contains an element with a dot in it
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3439 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3440 case ${GCC_EXEC_PREFIX} in
3441 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3442 gcc_exec_prefix_setting
="contains current directory"
3445 gcc_exec_prefix_setting
="ok"
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3449 $as_echo "$gcc_exec_prefix_setting" >&6; }
3450 if test "$gcc_exec_prefix_setting" != "ok"; then
3452 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3453 *** building gcc. Please change the environment variable
3454 *** and run configure again." "$LINENO" 5
3461 # Specify the local prefix
3464 # Check whether --with-local-prefix was given.
3465 if test "${with_local_prefix+set}" = set; then :
3466 withval
=$with_local_prefix; case "${withval}" in
3467 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3469 *) local_prefix
=$with_local_prefix ;;
3474 # Default local prefix if it is empty
3475 if test x
$local_prefix = x
; then
3476 local_prefix
=/usr
/local
3480 # Check whether --with-native-system-header-dir was given.
3481 if test "${with_native_system_header_dir+set}" = set; then :
3482 withval
=$with_native_system_header_dir;
3483 case ${with_native_system_header_dir} in
3484 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3485 /* |
[A-Za-z
]:[\\/]*) ;;
3486 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3488 configured_native_system_header_dir
="${withval}"
3491 configured_native_system_header_dir
=
3496 # Check whether --with-build-sysroot was given.
3497 if test "${with_build_sysroot+set}" = set; then :
3498 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3499 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3502 SYSROOT_CFLAGS_FOR_TARGET
=
3507 if test "x$prefix" = xNONE
; then
3508 test_prefix
=/usr
/local
3512 if test "x$exec_prefix" = xNONE
; then
3513 test_exec_prefix
=$test_prefix
3515 test_exec_prefix
=$exec_prefix
3519 # Check whether --with-sysroot was given.
3520 if test "${with_sysroot+set}" = set; then :
3521 withval
=$with_sysroot;
3522 case ${with_sysroot} in
3524 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3526 case ${with_sysroot} in
3527 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3528 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3531 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3532 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3534 case ${TARGET_SYSTEM_ROOT} in
3535 "${test_prefix}"|
"${test_prefix}/"*|\
3536 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3537 '${prefix}'|
'${prefix}/'*|\
3538 '${exec_prefix}'|
'${exec_prefix}/'*)
3539 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3540 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3547 TARGET_SYSTEM_ROOT_DEFINE
=
3548 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3556 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3557 # passed in by the toplevel make and thus we'd get different behavior
3558 # depending on where we built the sources.
3559 gcc_gxx_include_dir
=
3560 # Specify the g++ header file directory
3562 # Check whether --with-gxx-include-dir was given.
3563 if test "${with_gxx_include_dir+set}" = set; then :
3564 withval
=$with_gxx_include_dir; case "${withval}" in
3565 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3567 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3572 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3573 if test x
${gcc_gxx_include_dir} = x
; then
3574 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3575 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3577 libstdcxx_incdir
='include/c++/$(version)'
3578 if test x
$host != x
$target; then
3579 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3581 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3585 gcc_gxx_include_dir_add_sysroot
=0
3586 if test "${with_sysroot+set}" = set; then
3587 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3588 if test "${gcc_gxx_without_sysroot}"; then
3589 if test x
${with_sysroot} != x
/; then
3590 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3592 gcc_gxx_include_dir_add_sysroot
=1
3597 # Check whether --with-cpp_install_dir was given.
3598 if test "${with_cpp_install_dir+set}" = set; then :
3599 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3600 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3601 elif test x
$withval != xno
; then
3602 cpp_install_dir
=$withval
3607 # We would like to our source tree to be readonly. However when releases or
3608 # pre-releases are generated, the flex/bison generated files as well as the
3609 # various formats of manuals need to be included along with the rest of the
3610 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3614 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3615 # Check whether --enable-generated-files-in-srcdir was given.
3616 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3617 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3619 generated_files_in_srcdir
=no
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3624 $as_echo "$generated_files_in_srcdir" >&6; }
3626 if test "$generated_files_in_srcdir" = "yes"; then
3633 # -------------------
3634 # Find default linker
3635 # -------------------
3639 # Check whether --with-gnu-ld was given.
3640 if test "${with_gnu_ld+set}" = set; then :
3641 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3648 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3652 # With pre-defined ld
3654 # Check whether --with-ld was given.
3655 if test "${with_ld+set}" = set; then :
3656 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3659 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3660 if test ! -x "$DEFAULT_LINKER"; then
3661 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3662 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3664 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3668 cat >>confdefs.h
<<_ACEOF
3669 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3675 $as_echo_n "checking whether a default linker was specified... " >&6; }
3676 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3677 if test x
"$gnu_ld_flag" = x
"no"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3679 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3682 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3689 # With demangler in GNU ld
3691 # Check whether --with-demangler-in-ld was given.
3692 if test "${with_demangler_in_ld+set}" = set; then :
3693 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3699 # ----------------------
3700 # Find default assembler
3701 # ----------------------
3705 # Check whether --with-gnu-as was given.
3706 if test "${with_gnu_as+set}" = set; then :
3707 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3714 # Check whether --with-as was given.
3715 if test "${with_as+set}" = set; then :
3716 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3719 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3720 if test ! -x "$DEFAULT_ASSEMBLER"; then
3721 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3722 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3726 cat >>confdefs.h
<<_ACEOF
3727 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3733 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3734 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3735 if test x
"$gas_flag" = x
"no"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3737 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3740 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3751 # If a non-executable a.out is present (e.g. created by GNU as above even if
3752 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3753 # file, even when creating an executable, so an execution test fails.
3754 # Remove possible default executable files to avoid this.
3756 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3757 # Autoconf includes it.
3758 rm -f a.out a.exe b.out
3760 # Find the native compiler
3762 ac_cpp
='$CPP $CPPFLAGS'
3763 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3766 if test -n "$ac_tool_prefix"; then
3767 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3768 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if test "${ac_cv_prog_CC+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC
="$CC" # Let the user override the test.
3777 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3781 test -z "$as_dir" && as_dir
=.
3782 for ac_exec_ext
in '' $ac_executable_extensions; do
3783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3784 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 if test -n "$CC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 $as_echo "$CC" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3805 if test -z "$ac_cv_prog_CC"; then
3807 # Extract the first word of "gcc", so it can be a program name with args.
3808 set dummy gcc
; ac_word
=$2
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810 $as_echo_n "checking for $ac_word... " >&6; }
3811 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3812 $as_echo_n "(cached) " >&6
3814 if test -n "$ac_ct_CC"; then
3815 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3821 test -z "$as_dir" && as_dir
=.
3822 for ac_exec_ext
in '' $ac_executable_extensions; do
3823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3824 ac_cv_prog_ac_ct_CC
="gcc"
3825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3835 if test -n "$ac_ct_CC"; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3837 $as_echo "$ac_ct_CC" >&6; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3843 if test "x$ac_ct_CC" = x
; then
3846 case $cross_compiling:$ac_tool_warned in
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3850 ac_tool_warned
=yes ;;
3858 if test -z "$CC"; then
3859 if test -n "$ac_tool_prefix"; then
3860 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3861 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if test "${ac_cv_prog_CC+set}" = set; then :
3865 $as_echo_n "(cached) " >&6
3867 if test -n "$CC"; then
3868 ac_cv_prog_CC
="$CC" # Let the user override the test.
3870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir
=.
3875 for ac_exec_ext
in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 if test -n "$CC"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3890 $as_echo "$CC" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3899 if test -z "$CC"; then
3900 # Extract the first word of "cc", so it can be a program name with args.
3901 set dummy cc
; ac_word
=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if test "${ac_cv_prog_CC+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3907 if test -n "$CC"; then
3908 ac_cv_prog_CC
="$CC" # Let the user override the test.
3911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir
=.
3916 for ac_exec_ext
in '' $ac_executable_extensions; do
3917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3918 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3919 ac_prog_rejected
=yes
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3930 if test $ac_prog_rejected = yes; then
3931 # We found a bogon in the path, so make sure we never use it.
3932 set dummy
$ac_cv_prog_CC
3934 if test $# != 0; then
3935 # We chose a different compiler from the bogus one.
3936 # However, it has the same basename, so the bogon will be chosen
3937 # first if we set CC to just the basename; use the full file name.
3939 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3945 if test -n "$CC"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3947 $as_echo "$CC" >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3955 if test -z "$CC"; then
3956 if test -n "$ac_tool_prefix"; then
3957 for ac_prog
in cl.exe
3959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3960 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_CC+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3966 if test -n "$CC"; then
3967 ac_cv_prog_CC
="$CC" # Let the user override the test.
3969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir
=.
3974 for ac_exec_ext
in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 if test -n "$CC"; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3989 $as_echo "$CC" >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3996 test -n "$CC" && break
3999 if test -z "$CC"; then
4001 for ac_prog
in cl.exe
4003 # Extract the first word of "$ac_prog", so it can be a program name with args.
4004 set dummy
$ac_prog; ac_word
=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4010 if test -n "$ac_ct_CC"; then
4011 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir
=.
4018 for ac_exec_ext
in '' $ac_executable_extensions; do
4019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4020 ac_cv_prog_ac_ct_CC
="$ac_prog"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4031 if test -n "$ac_ct_CC"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4033 $as_echo "$ac_ct_CC" >&6; }
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4040 test -n "$ac_ct_CC" && break
4043 if test "x$ac_ct_CC" = x
; then
4046 case $cross_compiling:$ac_tool_warned in
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4050 ac_tool_warned
=yes ;;
4059 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error
"no acceptable C compiler found in \$PATH
4062 See \`config.log' for more details." "$LINENO" 5; }
4064 # Provide some information about the compiler.
4065 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4068 for ac_option
in --version -v -V -qversion; do
4069 { { ac_try
="$ac_compiler $ac_option >&5"
4071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075 $as_echo "$ac_try_echo"; } >&5
4076 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4078 if test -s conftest.err; then
4080 ... rest of stderr output deleted ...
4081 10q' conftest.err >conftest.er1
4082 cat conftest.er1 >&5
4083 rm -f conftest.er1 conftest.err
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4100 ac_clean_files_save=$ac_clean_files
4101 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4102 # Try to create an executable without -o first, disregard a.out.
4103 # It will help us diagnose broken compilers, and finding out an intuition
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4106 $as_echo_n "checking for C compiler default output file name... " >&6; }
4107 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4109 # The possible output files:
4110 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4113 for ac_file in $ac_files
4116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4117 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4122 if { { ac_try="$ac_link_default"
4124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4125 *) ac_try_echo
=$ac_try;;
4127 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4128 $as_echo "$ac_try_echo"; } >&5
4129 (eval "$ac_link_default") 2>&5
4131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4132 test $ac_status = 0; }; then :
4133 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4134 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4135 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4136 # so that the user can short-circuit this test for compilers unknown to
4138 for ac_file
in $ac_files ''
4140 test -f "$ac_file" ||
continue
4142 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4145 # We found the default executable, but exeext='' is most
4149 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4151 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4153 # We set ac_cv_exeext here because the later test for it is not
4154 # safe: cross compilers may not add the suffix if given an `-o'
4155 # argument, so we may need to know it at that point already.
4156 # Even if this section looks crufty: it has the advantage of
4163 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4169 $as_echo "$ac_file" >&6; }
4170 if test -z "$ac_file"; then :
4171 $as_echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.
$ac_ext >&5
4174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4176 { as_fn_set_status
77
4177 as_fn_error
"C compiler cannot create executables
4178 See \`config.log' for more details." "$LINENO" 5; }; }
4180 ac_exeext
=$ac_cv_exeext
4182 # Check that the compiler produces executables we can run. If not, either
4183 # the compiler is broken, or we cross compile.
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4185 $as_echo_n "checking whether the C compiler works... " >&6; }
4186 # If not cross compiling, check that we can run a simple program.
4187 if test "$cross_compiling" != yes; then
4188 if { ac_try
='./$ac_file'
4189 { { case "(($ac_try" in
4190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4194 $as_echo "$ac_try_echo"; } >&5
4195 (eval "$ac_try") 2>&5
4197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198 test $ac_status = 0; }; }; then
4201 if test "$cross_compiling" = maybe; then
4204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206 as_fn_error "cannot run C compiled programs.
4207 If you meant to cross compile
, use \
`--host'.
4208 See \`config.log
' for more details." "$LINENO" 5; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4213 $as_echo "yes" >&6; }
4215 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4216 ac_clean_files=$ac_clean_files_save
4217 # Check that the compiler produces executables we can run. If not, either
4218 # the compiler is broken, or we cross compile.
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4220 $as_echo_n "checking whether we are cross compiling... " >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4222 $as_echo "$cross_compiling" >&6; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4225 $as_echo_n "checking for suffix of executables... " >&6; }
4226 if { { ac_try="$ac_link"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4232 $as_echo "$ac_try_echo"; } >&5
4233 (eval "$ac_link") 2>&5
4235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236 test $ac_status = 0; }; then :
4237 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4238 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4239 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4241 for ac_file
in conftest.exe conftest conftest.
*; do
4242 test -f "$ac_file" ||
continue
4244 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4245 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4253 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4254 See \`config.log' for more details." "$LINENO" 5; }
4256 rm -f conftest
$ac_cv_exeext
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4258 $as_echo "$ac_cv_exeext" >&6; }
4260 rm -f conftest.
$ac_ext
4261 EXEEXT
=$ac_cv_exeext
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4264 $as_echo_n "checking for suffix of object files... " >&6; }
4265 if test "${ac_cv_objext+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4279 rm -f conftest.o conftest.obj
4280 if { { ac_try
="$ac_compile"
4282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_compile") 2>&5
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; }; then :
4291 for ac_file in conftest.o conftest.obj conftest.*; do
4292 test -f "$ac_file" || continue;
4294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4300 $as_echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4305 as_fn_error "cannot compute suffix of object files
: cannot compile
4306 See \
`config.log' for more details." "$LINENO" 5; }
4308 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4311 $as_echo "$ac_cv_objext" >&6; }
4312 OBJEXT=$ac_cv_objext
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4315 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4316 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4333 if ac_fn_c_try_compile "$LINENO"; then :
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4343 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4344 if test $ac_compiler_gnu = yes; then
4349 ac_test_CFLAGS=${CFLAGS+set}
4350 ac_save_CFLAGS=$CFLAGS
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4352 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4353 if test "${ac_cv_prog_cc_g+set}" = set; then :
4354 $as_echo_n "(cached) " >&6
4356 ac_save_c_werror_flag=$ac_c_werror_flag
4357 ac_c_werror_flag=yes
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4371 if ac_fn_c_try_compile "$LINENO"; then :
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4386 if ac_fn_c_try_compile "$LINENO"; then :
4389 ac_c_werror_flag=$ac_save_c_werror_flag
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4402 if ac_fn_c_try_compile "$LINENO"; then :
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410 ac_c_werror_flag=$ac_save_c_werror_flag
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4413 $as_echo "$ac_cv_prog_cc_g" >&6; }
4414 if test "$ac_test_CFLAGS" = set; then
4415 CFLAGS=$ac_save_CFLAGS
4416 elif test $ac_cv_prog_cc_g = yes; then
4417 if test "$GCC" = yes; then
4423 if test "$GCC" = yes; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4430 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4431 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4434 ac_cv_prog_cc_c89=no
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4440 #include <sys/types.h>
4441 #include <sys/stat.h>
4442 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4443 struct buf { int x; };
4444 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4445 static char *e (p, i)
4451 static char *f (char * (*g) (char **, int), char **p, ...)
4456 s = g (p, va_arg (v,int));
4461 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4462 function prototypes and stuff, but not '\xHH' hex character constants.
4463 These don't provoke an error unfortunately, instead are silently treated
4464 as 'x'. The following induces an error, until -std is added to get
4465 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4466 array size at least. It's necessary to write '\x00'==0 to get something
4467 that's true only with -std. */
4468 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4470 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4471 inside strings and character constants. */
4473 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4475 int test (int i, double x);
4476 struct s1 {int (*f) (int a);};
4477 struct s2 {int (*f) (double a);};
4478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4489 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4490 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4492 CC="$ac_save_CC $ac_arg"
4493 if ac_fn_c_try_compile "$LINENO"; then :
4494 ac_cv_prog_cc_c89=$ac_arg
4496 rm -f core conftest.err conftest.$ac_objext
4497 test "x$ac_cv_prog_cc_c89" != "xno" && break
4499 rm -f conftest.$ac_ext
4504 case "x$ac_cv_prog_cc_c89" in
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4507 $as_echo "none needed" >&6; } ;;
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4510 $as_echo "unsupported" >&6; } ;;
4512 CC="$CC $ac_cv_prog_cc_c89"
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4514 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4516 if test "x$ac_cv_prog_cc_c89" != xno; then :
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527 ac_cpp='$CXXCPP $CPPFLAGS'
4528 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4531 if test -z "$CXX"; then
4532 if test -n "$CCC"; then
4535 if test -n "$ac_tool_prefix"; then
4536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4538 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4539 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_CXX+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4545 if test -n "$CXX"; then
4546 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 if test -n "$CXX"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4568 $as_echo "$CXX" >&6; }
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$CXX" && break
4578 if test -z "$CXX"; then
4580 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4582 # Extract the first word of "$ac_prog", so it can be a program name with args.
4583 set dummy $ac_prog; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4589 if test -n "$ac_ct_CXX"; then
4590 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_ac_ct_CXX="$ac_prog"
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4610 if test -n "$ac_ct_CXX"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4612 $as_echo "$ac_ct_CXX" >&6; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4619 test -n "$ac_ct_CXX" && break
4622 if test "x$ac_ct_CXX" = x; then
4625 case $cross_compiling:$ac_tool_warned in
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629 ac_tool_warned=yes ;;
4637 # Provide some information about the compiler.
4638 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4641 for ac_option in --version -v -V -qversion; do
4642 { { ac_try="$ac_compiler $ac_option >&5"
4644 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4645 *) ac_try_echo
=$ac_try;;
4647 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4648 $as_echo "$ac_try_echo"; } >&5
4649 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4651 if test -s conftest.err
; then
4653 ... rest of stderr output deleted ...
4654 10q' conftest.err
>conftest.er1
4655 cat conftest.er1
>&5
4656 rm -f conftest.er1 conftest.err
4658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659 test $ac_status = 0; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4663 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4664 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4681 if ac_fn_cxx_try_compile
"$LINENO"; then :
4686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4687 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4691 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4692 if test $ac_compiler_gnu = yes; then
4697 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4698 ac_save_CXXFLAGS
=$CXXFLAGS
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4700 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4701 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4705 ac_cxx_werror_flag
=yes
4708 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4719 if ac_fn_cxx_try_compile
"$LINENO"; then :
4720 ac_cv_prog_cxx_g
=yes
4723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4734 if ac_fn_cxx_try_compile
"$LINENO"; then :
4737 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4750 if ac_fn_cxx_try_compile
"$LINENO"; then :
4751 ac_cv_prog_cxx_g
=yes
4753 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4755 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4758 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4761 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4762 if test "$ac_test_CXXFLAGS" = set; then
4763 CXXFLAGS
=$ac_save_CXXFLAGS
4764 elif test $ac_cv_prog_cxx_g = yes; then
4765 if test "$GXX" = yes; then
4771 if test "$GXX" = yes; then
4778 ac_cpp
='$CPP $CPPFLAGS'
4779 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4786 if test -n "$ac_tool_prefix"; then
4787 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4788 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4794 if test -n "$GNATBIND"; then
4795 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir
=.
4802 for ac_exec_ext
in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 GNATBIND
=$ac_cv_prog_GNATBIND
4815 if test -n "$GNATBIND"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4817 $as_echo "$GNATBIND" >&6; }
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4825 if test -z "$ac_cv_prog_GNATBIND"; then
4826 ac_ct_GNATBIND
=$GNATBIND
4827 # Extract the first word of "gnatbind", so it can be a program name with args.
4828 set dummy gnatbind
; ac_word
=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4832 $as_echo_n "(cached) " >&6
4834 if test -n "$ac_ct_GNATBIND"; then
4835 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir
=.
4842 for ac_exec_ext
in '' $ac_executable_extensions; do
4843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4855 if test -n "$ac_ct_GNATBIND"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4857 $as_echo "$ac_ct_GNATBIND" >&6; }
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4863 if test "x$ac_ct_GNATBIND" = x
; then
4866 case $cross_compiling:$ac_tool_warned in
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870 ac_tool_warned
=yes ;;
4872 GNATBIND
=$ac_ct_GNATBIND
4875 GNATBIND
="$ac_cv_prog_GNATBIND"
4878 if test -n "$ac_tool_prefix"; then
4879 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4880 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4884 $as_echo_n "(cached) " >&6
4886 if test -n "$GNATMAKE"; then
4887 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4893 test -z "$as_dir" && as_dir
=.
4894 for ac_exec_ext
in '' $ac_executable_extensions; do
4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 GNATMAKE
=$ac_cv_prog_GNATMAKE
4907 if test -n "$GNATMAKE"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4909 $as_echo "$GNATMAKE" >&6; }
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4917 if test -z "$ac_cv_prog_GNATMAKE"; then
4918 ac_ct_GNATMAKE
=$GNATMAKE
4919 # Extract the first word of "gnatmake", so it can be a program name with args.
4920 set dummy gnatmake
; ac_word
=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
4926 if test -n "$ac_ct_GNATMAKE"; then
4927 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4933 test -z "$as_dir" && as_dir
=.
4934 for ac_exec_ext
in '' $ac_executable_extensions; do
4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4936 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4947 if test -n "$ac_ct_GNATMAKE"; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4949 $as_echo "$ac_ct_GNATMAKE" >&6; }
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4955 if test "x$ac_ct_GNATMAKE" = x
; then
4958 case $cross_compiling:$ac_tool_warned in
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned
=yes ;;
4964 GNATMAKE
=$ac_ct_GNATMAKE
4967 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4971 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4972 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4975 cat >conftest.adb
<<EOF
4976 procedure conftest is begin null; end conftest;
4978 acx_cv_cc_gcc_supports_ada
=no
4979 # There is a bug in old released versions of GCC which causes the
4980 # driver to exit successfully when the appropriate language module
4981 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4982 # Therefore we must check for the error message as well as an
4983 # unsuccessful exit.
4984 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4985 # given a .adb file, but produce no object file. So we must check
4986 # if an object file was really produced to guard against this.
4987 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4988 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4989 acx_cv_cc_gcc_supports_ada
=yes
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4994 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4996 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5003 # Do configure tests with the C++ compiler, since that's what we build with.
5005 ac_cpp
='$CXXCPP $CPPFLAGS'
5006 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5011 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5012 # optimizations to be activated explicitly by the toplevel.
5014 */prev-gcc
/xgcc
*) ;;
5015 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5016 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5021 # Determine PICFLAG for target gnatlib.
5027 # PIC is the default on some targets or must not be used.
5029 # For darwin, common symbols are not allowed in MH_DYLIB files
5031 # If we are using a compiler supporting mdynamic-no-pic
5032 # and the option has been tested as safe to add, then cancel
5033 # it here, since the code generated is incompatible with shared
5035 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5036 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5040 # PIC is the default.
5043 # PIC is the default for 64-bit PA HP-UX.
5045 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5047 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5049 i
[34567]86-*-interix[3-9]*)
5050 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5051 # Instead, we relocate shared libraries at runtime.
5053 i
[34567]86-*-nto-qnx*)
5054 # QNX uses GNU C++, but need to define -shared option too, otherwise
5056 PICFLAG_FOR_TARGET
='-fPIC -shared'
5058 i
[34567]86-pc-msdosdjgpp*)
5059 # DJGPP does not support shared libraries at all.
5062 # On IA64 HP-UX, PIC is the default but the pic flag
5063 # sets the default TLS model and affects inlining.
5064 PICFLAG_FOR_TARGET
=-fPIC
5067 # PIC is the default.
5069 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5070 # All AIX code is PIC.
5073 # Some targets support both -fPIC and -fpic, but prefer the latter.
5075 i
[34567]86-*-* | x86_64-
*-*)
5076 PICFLAG_FOR_TARGET
=-fpic
5078 # FIXME: Override -fPIC default in libgcc only?
5079 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5080 PICFLAG_FOR_TARGET
=-fpic
5082 # FIXME: Simplify to sh*-*-netbsd*?
5083 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5084 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5085 PICFLAG_FOR_TARGET
=-fpic
5087 # Default to -fPIC unless specified otherwise.
5089 PICFLAG_FOR_TARGET
=-fPIC
5093 # If the user explicitly uses -fpic/-fPIC, keep that.
5094 case "${CFLAGS_FOR_TARGET}" in
5096 PICFLAG_FOR_TARGET
=-fpic
5099 PICFLAG_FOR_TARGET
=-fPIC
5105 # -------------------------
5106 # Check C compiler features
5107 # -------------------------
5111 ac_cpp
='$CXXCPP $CPPFLAGS'
5112 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5113 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5114 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5116 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5117 if test -z "$CXXCPP"; then
5118 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5121 # Double quotes because CXXCPP needs to be expanded
5122 for CXXCPP
in "$CXX -E" "/lib/cpp"
5125 for ac_cxx_preproc_warn_flag
in '' yes
5127 # Use a header file that comes with gcc, so configuring glibc
5128 # with a fresh cross-compiler works.
5129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130 # <limits.h> exists even on freestanding compilers.
5131 # On the NeXT, cc -E runs the code through the compiler's parser,
5132 # not just through cpp. "Syntax error" is here to catch this case.
5133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5136 # include <limits.h>
5138 # include <assert.h>
5142 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5145 # Broken: fails on valid input.
5148 rm -f conftest.err conftest.
$ac_ext
5150 # OK, works on sane cases. Now check whether nonexistent headers
5151 # can be detected and how.
5152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 #include <ac_nonexistent.h>
5156 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5157 # Broken: success on invalid input.
5160 # Passes both tests.
5164 rm -f conftest.err conftest.
$ac_ext
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.err conftest.
$ac_ext
5169 if $ac_preproc_ok; then :
5174 ac_cv_prog_CXXCPP
=$CXXCPP
5177 CXXCPP
=$ac_cv_prog_CXXCPP
5179 ac_cv_prog_CXXCPP
=$CXXCPP
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5182 $as_echo "$CXXCPP" >&6; }
5184 for ac_cxx_preproc_warn_flag
in '' yes
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5195 # include <limits.h>
5197 # include <assert.h>
5201 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5204 # Broken: fails on valid input.
5207 rm -f conftest.err conftest.
$ac_ext
5209 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how.
5211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <ac_nonexistent.h>
5215 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5216 # Broken: success on invalid input.
5219 # Passes both tests.
5223 rm -f conftest.err conftest.
$ac_ext
5226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227 rm -f conftest.err conftest.
$ac_ext
5228 if $ac_preproc_ok; then :
5231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5233 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5234 See \`config.log' for more details." "$LINENO" 5; }
5238 ac_cpp
='$CXXCPP $CPPFLAGS'
5239 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5245 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5246 if test "${ac_cv_path_GREP+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5249 if test -z "$GREP"; then
5250 ac_path_GREP_found
=false
5251 # Loop through the user's path and test for each of PROGNAME-LIST
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5253 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_prog
in grep ggrep
; do
5258 for ac_exec_ext
in '' $ac_executable_extensions; do
5259 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5260 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5261 # Check for GNU ac_path_GREP and select it if it is found.
5262 # Check for GNU $ac_path_GREP
5263 case `"$ac_path_GREP" --version 2>&1` in
5265 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5268 $as_echo_n 0123456789 >"conftest.in"
5271 cat "conftest.in" "conftest.in" >"conftest.tmp"
5272 mv "conftest.tmp" "conftest.in"
5273 cp "conftest.in" "conftest.nl"
5274 $as_echo 'GREP' >> "conftest.nl"
5275 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5276 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5277 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5278 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5279 # Best one so far, save it but keep looking for a better one
5280 ac_cv_path_GREP
="$ac_path_GREP"
5281 ac_path_GREP_max
=$ac_count
5283 # 10*(2^10) chars as input seems more than enough
5284 test $ac_count -gt 10 && break
5286 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5289 $ac_path_GREP_found && break 3
5294 if test -z "$ac_cv_path_GREP"; then
5295 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5298 ac_cv_path_GREP
=$GREP
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5303 $as_echo "$ac_cv_path_GREP" >&6; }
5304 GREP
="$ac_cv_path_GREP"
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5308 $as_echo_n "checking for egrep... " >&6; }
5309 if test "${ac_cv_path_EGREP+set}" = set; then :
5310 $as_echo_n "(cached) " >&6
5312 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5313 then ac_cv_path_EGREP
="$GREP -E"
5315 if test -z "$EGREP"; then
5316 ac_path_EGREP_found
=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5319 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5322 test -z "$as_dir" && as_dir
=.
5323 for ac_prog
in egrep; do
5324 for ac_exec_ext
in '' $ac_executable_extensions; do
5325 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5326 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5327 # Check for GNU ac_path_EGREP and select it if it is found.
5328 # Check for GNU $ac_path_EGREP
5329 case `"$ac_path_EGREP" --version 2>&1` in
5331 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5334 $as_echo_n 0123456789 >"conftest.in"
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 $as_echo 'EGREP' >> "conftest.nl"
5341 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5342 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5343 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5344 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_EGREP
="$ac_path_EGREP"
5347 ac_path_EGREP_max
=$ac_count
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
5352 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5355 $ac_path_EGREP_found && break 3
5360 if test -z "$ac_cv_path_EGREP"; then
5361 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5364 ac_cv_path_EGREP
=$EGREP
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5370 $as_echo "$ac_cv_path_EGREP" >&6; }
5371 EGREP
="$ac_cv_path_EGREP"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5375 $as_echo_n "checking for ANSI C header files... " >&6; }
5376 if test "${ac_cv_header_stdc+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5394 if ac_fn_cxx_try_compile
"$LINENO"; then :
5395 ac_cv_header_stdc
=yes
5397 ac_cv_header_stdc
=no
5399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5401 if test $ac_cv_header_stdc = yes; then
5402 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev
/null
2>&1; then :
5412 ac_cv_header_stdc
=no
5418 if test $ac_cv_header_stdc = yes; then
5419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5426 $EGREP "free" >/dev
/null
2>&1; then :
5429 ac_cv_header_stdc
=no
5435 if test $ac_cv_header_stdc = yes; then
5436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5437 if test "$cross_compiling" = yes; then :
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5444 #if ((' ' & 0x0FF) == 0x020)
5445 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5446 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5448 # define ISLOWER(c) \
5449 (('a' <= (c) && (c) <= 'i') \
5450 || ('j' <= (c) && (c) <= 'r') \
5451 || ('s' <= (c) && (c) <= 'z'))
5452 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5455 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5460 for (i = 0; i < 256; i++)
5461 if (XOR (islower (i), ISLOWER (i))
5462 || toupper (i) != TOUPPER (i))
5467 if ac_fn_cxx_try_run
"$LINENO"; then :
5470 ac_cv_header_stdc
=no
5472 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5473 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5479 $as_echo "$ac_cv_header_stdc" >&6; }
5480 if test $ac_cv_header_stdc = yes; then
5482 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5486 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5487 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5488 inttypes.h stdint.h unistd.h
5490 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5493 eval as_val
=\$
$as_ac_Header
5494 if test "x$as_val" = x
""yes; then :
5495 cat >>confdefs.h
<<_ACEOF
5496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5505 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5506 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5513 if test "$MINIX" = yes; then
5515 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5518 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5521 $as_echo "#define _MINIX 1" >>confdefs.h
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5527 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5528 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5529 $as_echo_n "(cached) " >&6
5531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5534 # define __EXTENSIONS__ 1
5535 $ac_includes_default
5544 if ac_fn_cxx_try_compile
"$LINENO"; then :
5545 ac_cv_safe_to_define___extensions__
=yes
5547 ac_cv_safe_to_define___extensions__
=no
5549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5552 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5553 test $ac_cv_safe_to_define___extensions__ = yes &&
5554 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5556 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5558 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5560 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5562 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5566 ac_cpp
='$CPP $CPPFLAGS'
5567 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5568 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5571 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5572 # On Suns, sometimes $CPP names a directory.
5573 if test -n "$CPP" && test -d "$CPP"; then
5576 if test -z "$CPP"; then
5577 if test "${ac_cv_prog_CPP+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
5580 # Double quotes because CPP needs to be expanded
5581 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5584 for ac_c_preproc_warn_flag
in '' yes
5586 # Use a header file that comes with gcc, so configuring glibc
5587 # with a fresh cross-compiler works.
5588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5589 # <limits.h> exists even on freestanding compilers.
5590 # On the NeXT, cc -E runs the code through the compiler's parser,
5591 # not just through cpp. "Syntax error" is here to catch this case.
5592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5595 # include <limits.h>
5597 # include <assert.h>
5601 if ac_fn_c_try_cpp
"$LINENO"; then :
5604 # Broken: fails on valid input.
5607 rm -f conftest.err conftest.
$ac_ext
5609 # OK, works on sane cases. Now check whether nonexistent headers
5610 # can be detected and how.
5611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 #include <ac_nonexistent.h>
5615 if ac_fn_c_try_cpp
"$LINENO"; then :
5616 # Broken: success on invalid input.
5619 # Passes both tests.
5623 rm -f conftest.err conftest.
$ac_ext
5626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5627 rm -f conftest.err conftest.
$ac_ext
5628 if $ac_preproc_ok; then :
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5641 $as_echo "$CPP" >&6; }
5643 for ac_c_preproc_warn_flag
in '' yes
5645 # Use a header file that comes with gcc, so configuring glibc
5646 # with a fresh cross-compiler works.
5647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5648 # <limits.h> exists even on freestanding compilers.
5649 # On the NeXT, cc -E runs the code through the compiler's parser,
5650 # not just through cpp. "Syntax error" is here to catch this case.
5651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5654 # include <limits.h>
5656 # include <assert.h>
5660 if ac_fn_c_try_cpp
"$LINENO"; then :
5663 # Broken: fails on valid input.
5666 rm -f conftest.err conftest.
$ac_ext
5668 # OK, works on sane cases. Now check whether nonexistent headers
5669 # can be detected and how.
5670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h. */
5672 #include <ac_nonexistent.h>
5674 if ac_fn_c_try_cpp
"$LINENO"; then :
5675 # Broken: success on invalid input.
5678 # Passes both tests.
5682 rm -f conftest.err conftest.
$ac_ext
5685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5686 rm -f conftest.err conftest.
$ac_ext
5687 if $ac_preproc_ok; then :
5690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5692 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5693 See \`config.log' for more details." "$LINENO" 5; }
5697 ac_cpp
='$CXXCPP $CPPFLAGS'
5698 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5703 $as_echo_n "checking for inline... " >&6; }
5704 if test "${ac_cv_c_inline+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5708 for ac_kw
in inline __inline__ __inline
; do
5709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5713 static $ac_kw foo_t static_foo () {return 0; }
5714 $ac_kw foo_t foo () {return 0; }
5718 if ac_fn_cxx_try_compile
"$LINENO"; then :
5719 ac_cv_c_inline
=$ac_kw
5721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5722 test "$ac_cv_c_inline" != no
&& break
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5727 $as_echo "$ac_cv_c_inline" >&6; }
5729 case $ac_cv_c_inline in
5732 case $ac_cv_c_inline in
5734 *) ac_val
=$ac_cv_c_inline;;
5736 cat >>confdefs.h
<<_ACEOF
5738 #define inline $ac_val
5745 # Check whether --enable-largefile was given.
5746 if test "${enable_largefile+set}" = set; then :
5747 enableval
=$enable_largefile;
5750 if test "$enable_largefile" != no
; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5753 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5754 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 ac_cv_sys_largefile_CC
=no
5758 if test "$GCC" != yes; then
5761 # IRIX 6.2 and later do not support large files by default,
5762 # so use the C compiler's -n32 option if that helps.
5763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765 #include <sys/types.h>
5766 /* Check that off_t can represent 2**63 - 1 correctly.
5767 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5768 since some C++ compilers masquerading as C compilers
5769 incorrectly reject 9223372036854775807. */
5770 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5771 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5772 && LARGE_OFF_T % 2147483647 == 1)
5782 if ac_fn_cxx_try_compile
"$LINENO"; then :
5785 rm -f core conftest.err conftest.
$ac_objext
5787 if ac_fn_cxx_try_compile
"$LINENO"; then :
5788 ac_cv_sys_largefile_CC
=' -n32'; break
5790 rm -f core conftest.err conftest.
$ac_objext
5794 rm -f conftest.
$ac_ext
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5798 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5799 if test "$ac_cv_sys_largefile_CC" != no
; then
5800 CC
=$CC$ac_cv_sys_largefile_CC
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5804 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5805 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5811 #include <sys/types.h>
5812 /* Check that off_t can represent 2**63 - 1 correctly.
5813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5814 since some C++ compilers masquerading as C compilers
5815 incorrectly reject 9223372036854775807. */
5816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5818 && LARGE_OFF_T % 2147483647 == 1)
5828 if ac_fn_cxx_try_compile
"$LINENO"; then :
5829 ac_cv_sys_file_offset_bits
=no
; break
5831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #define _FILE_OFFSET_BITS 64
5835 #include <sys/types.h>
5836 /* Check that off_t can represent 2**63 - 1 correctly.
5837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5838 since some C++ compilers masquerading as C compilers
5839 incorrectly reject 9223372036854775807. */
5840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5842 && LARGE_OFF_T % 2147483647 == 1)
5852 if ac_fn_cxx_try_compile
"$LINENO"; then :
5853 ac_cv_sys_file_offset_bits
=64; break
5855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5856 ac_cv_sys_file_offset_bits
=unknown
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5861 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5862 case $ac_cv_sys_file_offset_bits in #(
5865 cat >>confdefs.h
<<_ACEOF
5866 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5871 if test $ac_cv_sys_file_offset_bits = unknown
; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5873 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5874 if test "${ac_cv_sys_large_files+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5897 if ac_fn_cxx_try_compile
"$LINENO"; then :
5898 ac_cv_sys_large_files
=no
; break
5900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903 #define _LARGE_FILES 1
5904 #include <sys/types.h>
5905 /* Check that off_t can represent 2**63 - 1 correctly.
5906 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5907 since some C++ compilers masquerading as C compilers
5908 incorrectly reject 9223372036854775807. */
5909 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5910 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5911 && LARGE_OFF_T % 2147483647 == 1)
5921 if ac_fn_cxx_try_compile
"$LINENO"; then :
5922 ac_cv_sys_large_files
=1; break
5924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5925 ac_cv_sys_large_files
=unknown
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5930 $as_echo "$ac_cv_sys_large_files" >&6; }
5931 case $ac_cv_sys_large_files in #(
5934 cat >>confdefs.h
<<_ACEOF
5935 #define _LARGE_FILES $ac_cv_sys_large_files
5944 # sizeof(char) is 1 by definition.
5945 # The cast to long int works around a bug in the HP C Compiler
5946 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5947 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5948 # This bug is HP SR number 8606223364.
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5950 $as_echo_n "checking size of void *... " >&6; }
5951 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5954 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5957 if test "$ac_cv_type_void_p" = yes; then
5958 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5959 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5960 { as_fn_set_status
77
5961 as_fn_error
"cannot compute sizeof (void *)
5962 See \`config.log' for more details." "$LINENO" 5; }; }
5964 ac_cv_sizeof_void_p
=0
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5970 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5974 cat >>confdefs.h
<<_ACEOF
5975 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5979 # The cast to long int works around a bug in the HP C Compiler
5980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5982 # This bug is HP SR number 8606223364.
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5984 $as_echo_n "checking size of short... " >&6; }
5985 if test "${ac_cv_sizeof_short+set}" = set; then :
5986 $as_echo_n "(cached) " >&6
5988 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5991 if test "$ac_cv_type_short" = yes; then
5992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5994 { as_fn_set_status
77
5995 as_fn_error
"cannot compute sizeof (short)
5996 See \`config.log' for more details." "$LINENO" 5; }; }
5998 ac_cv_sizeof_short
=0
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6004 $as_echo "$ac_cv_sizeof_short" >&6; }
6008 cat >>confdefs.h
<<_ACEOF
6009 #define SIZEOF_SHORT $ac_cv_sizeof_short
6013 # The cast to long int works around a bug in the HP C Compiler
6014 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6015 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6016 # This bug is HP SR number 8606223364.
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6018 $as_echo_n "checking size of int... " >&6; }
6019 if test "${ac_cv_sizeof_int+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6022 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6025 if test "$ac_cv_type_int" = yes; then
6026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6028 { as_fn_set_status
77
6029 as_fn_error
"cannot compute sizeof (int)
6030 See \`config.log' for more details." "$LINENO" 5; }; }
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6038 $as_echo "$ac_cv_sizeof_int" >&6; }
6042 cat >>confdefs.h
<<_ACEOF
6043 #define SIZEOF_INT $ac_cv_sizeof_int
6047 # The cast to long int works around a bug in the HP C Compiler
6048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6050 # This bug is HP SR number 8606223364.
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6052 $as_echo_n "checking size of long... " >&6; }
6053 if test "${ac_cv_sizeof_long+set}" = set; then :
6054 $as_echo_n "(cached) " >&6
6056 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6059 if test "$ac_cv_type_long" = yes; then
6060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6062 { as_fn_set_status
77
6063 as_fn_error
"cannot compute sizeof (long)
6064 See \`config.log' for more details." "$LINENO" 5; }; }
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6072 $as_echo "$ac_cv_sizeof_long" >&6; }
6076 cat >>confdefs.h
<<_ACEOF
6077 #define SIZEOF_LONG $ac_cv_sizeof_long
6081 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6082 if test "x$ac_cv_type_long_long" = x
""yes; then :
6084 cat >>confdefs.h
<<_ACEOF
6085 #define HAVE_LONG_LONG 1
6088 # The cast to long int works around a bug in the HP C Compiler
6089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6091 # This bug is HP SR number 8606223364.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6093 $as_echo_n "checking size of long long... " >&6; }
6094 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6095 $as_echo_n "(cached) " >&6
6097 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6100 if test "$ac_cv_type_long_long" = yes; then
6101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6103 { as_fn_set_status
77
6104 as_fn_error
"cannot compute sizeof (long long)
6105 See \`config.log' for more details." "$LINENO" 5; }; }
6107 ac_cv_sizeof_long_long
=0
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6113 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6117 cat >>confdefs.h
<<_ACEOF
6118 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6124 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6125 case $ac_cv_c_int8_t in #(
6129 cat >>confdefs.h
<<_ACEOF
6130 #define int8_t $ac_cv_c_int8_t
6135 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6136 case $ac_cv_c_int16_t in #(
6140 cat >>confdefs.h
<<_ACEOF
6141 #define int16_t $ac_cv_c_int16_t
6146 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6147 case $ac_cv_c_int32_t in #(
6151 cat >>confdefs.h
<<_ACEOF
6152 #define int32_t $ac_cv_c_int32_t
6157 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6158 case $ac_cv_c_int64_t in #(
6162 cat >>confdefs.h
<<_ACEOF
6163 #define int64_t $ac_cv_c_int64_t
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6170 $as_echo_n "checking for long long int... " >&6; }
6171 if test "${ac_cv_type_long_long_int+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6174 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6177 /* For now, do not test the preprocessor; as of 2007 there are too many
6178 implementations with broken preprocessors. Perhaps this can
6179 be revisited in 2012. In the meantime, code should not expect
6180 #if to work with literals wider than 32 bits. */
6181 /* Test literals. */
6182 long long int ll = 9223372036854775807ll;
6183 long long int nll = -9223372036854775807LL;
6184 unsigned long long int ull = 18446744073709551615ULL;
6185 /* Test constant expressions. */
6186 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6188 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6194 /* Test availability of runtime routines for shift and division. */
6195 long long int llmax = 9223372036854775807ll;
6196 unsigned long long int ullmax = 18446744073709551615ull;
6197 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6198 | (llmax / ll) | (llmax % ll)
6199 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6200 | (ullmax / ull) | (ullmax % ull));
6206 if ac_fn_cxx_try_link
"$LINENO"; then :
6207 if test "$cross_compiling" = yes; then :
6208 ac_cv_type_long_long_int
=yes
6210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6215 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6216 # define LLONG_MAX (HALF - 1 + HALF)
6221 long long int n = 1;
6225 long long int m = n << i;
6228 if (LLONG_MAX / 2 < m)
6236 if ac_fn_cxx_try_run
"$LINENO"; then :
6237 ac_cv_type_long_long_int
=yes
6239 ac_cv_type_long_long_int
=no
6241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6242 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6246 ac_cv_type_long_long_int
=no
6248 rm -f core conftest.err conftest.
$ac_objext \
6249 conftest
$ac_exeext conftest.
$ac_ext
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6252 $as_echo "$ac_cv_type_long_long_int" >&6; }
6253 if test $ac_cv_type_long_long_int = yes; then
6255 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6261 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6262 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6264 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6267 test $ac_cv_type_long_long_int = yes \
6268 && ac_type
='long long int' \
6269 || ac_type
='long int'
6271 cat >>confdefs.h
<<_ACEOF
6272 #define intmax_t $ac_type
6279 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6280 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6282 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6285 for ac_type
in 'int' 'long int' 'long long int'; do
6286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 $ac_includes_default
6292 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6299 if ac_fn_cxx_try_compile
"$LINENO"; then :
6301 cat >>confdefs.h
<<_ACEOF
6302 #define intptr_t $ac_type
6307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6308 test -z "$ac_type" && break
6313 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6314 case $ac_cv_c_uint8_t in #(
6318 $as_echo "#define _UINT8_T 1" >>confdefs.h
6321 cat >>confdefs.h
<<_ACEOF
6322 #define uint8_t $ac_cv_c_uint8_t
6327 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6328 case $ac_cv_c_uint16_t in #(
6333 cat >>confdefs.h
<<_ACEOF
6334 #define uint16_t $ac_cv_c_uint16_t
6339 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6340 case $ac_cv_c_uint32_t in #(
6344 $as_echo "#define _UINT32_T 1" >>confdefs.h
6347 cat >>confdefs.h
<<_ACEOF
6348 #define uint32_t $ac_cv_c_uint32_t
6353 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6354 case $ac_cv_c_uint64_t in #(
6358 $as_echo "#define _UINT64_T 1" >>confdefs.h
6361 cat >>confdefs.h
<<_ACEOF
6362 #define uint64_t $ac_cv_c_uint64_t
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6369 $as_echo_n "checking for unsigned long long int... " >&6; }
6370 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6373 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6376 /* For now, do not test the preprocessor; as of 2007 there are too many
6377 implementations with broken preprocessors. Perhaps this can
6378 be revisited in 2012. In the meantime, code should not expect
6379 #if to work with literals wider than 32 bits. */
6380 /* Test literals. */
6381 long long int ll = 9223372036854775807ll;
6382 long long int nll = -9223372036854775807LL;
6383 unsigned long long int ull = 18446744073709551615ULL;
6384 /* Test constant expressions. */
6385 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6387 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6393 /* Test availability of runtime routines for shift and division. */
6394 long long int llmax = 9223372036854775807ll;
6395 unsigned long long int ullmax = 18446744073709551615ull;
6396 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6397 | (llmax / ll) | (llmax % ll)
6398 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6399 | (ullmax / ull) | (ullmax % ull));
6405 if ac_fn_cxx_try_link
"$LINENO"; then :
6406 ac_cv_type_unsigned_long_long_int
=yes
6408 ac_cv_type_unsigned_long_long_int
=no
6410 rm -f core conftest.err conftest.
$ac_objext \
6411 conftest
$ac_exeext conftest.
$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6414 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6415 if test $ac_cv_type_unsigned_long_long_int = yes; then
6417 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6423 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6424 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6426 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6429 test $ac_cv_type_unsigned_long_long_int = yes \
6430 && ac_type
='unsigned long long int' \
6431 || ac_type
='unsigned long int'
6433 cat >>confdefs.h
<<_ACEOF
6434 #define uintmax_t $ac_type
6441 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6442 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6444 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6447 for ac_type
in 'unsigned int' 'unsigned long int' \
6448 'unsigned long long int'; do
6449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451 $ac_includes_default
6455 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6462 if ac_fn_cxx_try_compile
"$LINENO"; then :
6464 cat >>confdefs.h
<<_ACEOF
6465 #define uintptr_t $ac_type
6470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6471 test -z "$ac_type" && break
6488 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6489 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6492 # check what underlying integer type int64_t uses
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6494 $as_echo_n "checking for int64_t underlying type... " >&6; }
6495 if test "${ac_cv_int64_t_type+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6502 #ifdef HAVE_STDINT_H
6505 template <typename T> struct X { };
6507 struct X<long> { typedef long t; };
6517 if ac_fn_cxx_try_compile
"$LINENO"; then :
6518 ac_cv_int64_t_type
=long
6520 ac_cv_int64_t_type
="long long"
6522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6525 $as_echo "$ac_cv_int64_t_type" >&6; }
6526 if test "$ac_cv_int64_t_type" = "long"; then
6528 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6534 #ifdef HAVE_STDINT_H
6537 template <typename T> struct X { };
6539 struct X<long long> { typedef long long t; };
6549 if ac_fn_cxx_try_compile
"$LINENO"; then :
6552 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6558 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6559 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6571 int a, b; std::swap(a,b);
6576 if ac_fn_cxx_try_compile
"$LINENO"; then :
6577 ac_cv_std_swap_in_utility
=yes
6579 ac_cv_std_swap_in_utility
=no
6581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6584 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6585 if test $ac_cv_std_swap_in_utility = yes; then
6587 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6591 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6592 # If the host compiler is affected by the bug, and we build with optimization
6593 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6594 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6595 # Since there is no reliable feature check for the presence of this bug,
6596 # we simply use a GCC version number check. (This should never trigger for
6597 # stages 2 or 3 of a native bootstrap.)
6599 if test "$GCC" = yes; then
6600 saved_CXXFLAGS
="$CXXFLAGS"
6602 # The following test compilation will succeed if and only if $CXX accepts
6603 # -fno-strict-aliasing *and* is older than GCC 4.3.
6604 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6606 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6610 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6611 #error compiler not affected by placement new aliasing bug
6615 if ac_fn_cxx_try_compile
"$LINENO"; then :
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6617 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6622 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6624 CXXFLAGS
="$saved_CXXFLAGS"
6630 # ---------------------
6631 # Warnings and checking
6632 # ---------------------
6634 # Check $CC warning features (if it's GCC).
6635 # We want to use -pedantic, but we don't want warnings about
6638 # * overlong strings
6639 # * C++11 narrowing conversions in { }
6640 # So, we only use -pedantic if we can disable those warnings.
6642 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6643 # Check whether --enable-build-format-warnings was given.
6644 if test "${enable_build_format_warnings+set}" = set; then :
6645 enableval
=$enable_build_format_warnings;
6647 enable_build_format_warnings
=yes
6650 if test $enable_build_format_warnings = no
; then :
6656 ac_cpp
='$CXXCPP $CPPFLAGS'
6657 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6662 save_CXXFLAGS
="$CXXFLAGS"
6663 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6664 # Do the check with the no- prefix removed since gcc silently
6665 # accepts any -Wno-* option on purpose
6666 case $real_option in
6667 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6668 *) option
=$real_option ;;
6670 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6673 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6674 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6675 $as_echo_n "(cached) " >&6
6678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6689 if ac_fn_cxx_try_compile
"$LINENO"; then :
6690 eval "$as_acx_Woption=yes"
6692 eval "$as_acx_Woption=no"
6694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6697 eval ac_res
=\$
$as_acx_Woption
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6699 $as_echo "$ac_res" >&6; }
6700 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6701 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6704 CXXFLAGS
="$save_CXXFLAGS"
6706 ac_cpp
='$CXXCPP $CPPFLAGS'
6707 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6714 ac_cpp
='$CPP $CPPFLAGS'
6715 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6720 save_CFLAGS
="$CFLAGS"
6721 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6722 # Do the check with the no- prefix removed since gcc silently
6723 # accepts any -Wno-* option on purpose
6724 case $real_option in
6725 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6726 *) option
=$real_option ;;
6728 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6731 $as_echo_n "checking whether $CC supports $option... " >&6; }
6732 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6733 $as_echo_n "(cached) " >&6
6736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6747 if ac_fn_c_try_compile
"$LINENO"; then :
6748 eval "$as_acx_Woption=yes"
6750 eval "$as_acx_Woption=no"
6752 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6755 eval ac_res
=\$
$as_acx_Woption
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6757 $as_echo "$ac_res" >&6; }
6758 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6759 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6762 CFLAGS
="$save_CFLAGS"
6764 ac_cpp
='$CXXCPP $CPPFLAGS'
6765 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6771 ac_cpp
='$CXXCPP $CPPFLAGS'
6772 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6777 save_CXXFLAGS
="$CXXFLAGS"
6778 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6779 # Do the check with the no- prefix removed since gcc silently
6780 # accepts any -Wno-* option on purpose
6781 case $real_option in
6782 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6783 *) option
=$real_option ;;
6785 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6788 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6789 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6790 $as_echo_n "(cached) " >&6
6793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6804 if ac_fn_cxx_try_compile
"$LINENO"; then :
6805 eval "$as_acx_Woption=yes"
6807 eval "$as_acx_Woption=no"
6809 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6812 eval ac_res
=\$
$as_acx_Woption
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6814 $as_echo "$ac_res" >&6; }
6815 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6816 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6819 CXXFLAGS
="$save_CXXFLAGS"
6821 ac_cpp
='$CXXCPP $CPPFLAGS'
6822 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6828 ac_cpp
='$CPP $CPPFLAGS'
6829 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6834 save_CFLAGS
="$CFLAGS"
6835 for real_option
in -Wold-style-definition -Wc++-compat; do
6836 # Do the check with the no- prefix removed since gcc silently
6837 # accepts any -Wno-* option on purpose
6838 case $real_option in
6839 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6840 *) option
=$real_option ;;
6842 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6845 $as_echo_n "checking whether $CC supports $option... " >&6; }
6846 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6847 $as_echo_n "(cached) " >&6
6850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6861 if ac_fn_c_try_compile
"$LINENO"; then :
6862 eval "$as_acx_Woption=yes"
6864 eval "$as_acx_Woption=no"
6866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6869 eval ac_res
=\$
$as_acx_Woption
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6871 $as_echo "$ac_res" >&6; }
6872 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6873 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6876 CFLAGS
="$save_CFLAGS"
6878 ac_cpp
='$CXXCPP $CPPFLAGS'
6879 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6885 ac_cpp
='$CXXCPP $CPPFLAGS'
6886 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6887 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6888 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6890 # Do the check with the no- prefix removed from the warning options
6891 # since gcc silently accepts any -Wno-* option on purpose
6892 if test "$GXX" = yes; then :
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6894 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6895 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6896 $as_echo_n "(cached) " >&6
6898 save_CXXFLAGS
="$CXXFLAGS"
6899 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6911 if ac_fn_cxx_try_compile
"$LINENO"; then :
6912 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6914 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6917 CXXFLAGS
="$save_CXXFLAGS"
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6920 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6921 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6922 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6927 ac_cpp
='$CXXCPP $CPPFLAGS'
6928 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6934 ac_cpp
='$CXXCPP $CPPFLAGS'
6935 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6939 # Check whether --enable-werror-always was given.
6940 if test "${enable_werror_always+set}" = set; then :
6941 enableval
=$enable_werror_always;
6943 enable_werror_always
=no
6946 if test $enable_werror_always = yes; then :
6947 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6951 ac_cpp
='$CXXCPP $CPPFLAGS'
6952 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6958 # The above macros do nothing if the compiler is not GCC. However, the
6959 # Makefile has more goo to add other flags, so these variables are used
6960 # to enable warnings only for GCC.
6963 if test "x$GCC" = "xyes"; then
6964 warn_cflags
='$(GCC_WARN_CFLAGS)'
6965 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6970 # Disable exceptions and RTTI if building with g++
6972 ac_cpp
='$CPP $CPPFLAGS'
6973 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6978 save_CFLAGS
="$CFLAGS"
6979 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6980 # Do the check with the no- prefix removed since gcc silently
6981 # accepts any -Wno-* option on purpose
6982 case $real_option in
6983 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6984 *) option
=$real_option ;;
6986 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6989 $as_echo_n "checking whether $CC supports $option... " >&6; }
6990 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6991 $as_echo_n "(cached) " >&6
6994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
7005 if ac_fn_c_try_compile
"$LINENO"; then :
7006 eval "$as_acx_Woption=yes"
7008 eval "$as_acx_Woption=no"
7010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7013 eval ac_res
=\$
$as_acx_Woption
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7015 $as_echo "$ac_res" >&6; }
7016 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7017 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7020 CFLAGS
="$save_CFLAGS"
7022 ac_cpp
='$CXXCPP $CPPFLAGS'
7023 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7029 # Enable expensive internal checks
7031 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7035 # Check whether --enable-checking was given.
7036 if test "${enable_checking+set}" = set; then :
7037 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7040 # Determine the default checks.
7041 if test x
$is_release = x
; then
7042 ac_checking_flags
=yes,extra
7044 ac_checking_flags
=release
7048 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7049 for check
in release
$ac_checking_flags
7052 # these set all the flags to specific states
7053 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7054 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7055 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7056 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7057 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7058 ac_types_checking
=1 ;;
7059 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7060 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7061 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7062 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7063 ac_tree_checking
= ; ac_valgrind_checking
= ;
7064 ac_types_checking
= ;;
7065 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7066 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7067 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7068 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7069 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7070 ac_types_checking
=1 ;;
7071 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7072 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7073 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7074 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7075 ac_tree_checking
= ; ac_valgrind_checking
= ;
7076 ac_types_checking
= ;;
7077 # these enable particular checks
7078 assert
) ac_assert_checking
=1 ;;
7079 df
) ac_df_checking
=1 ;;
7080 extra
) ac_extra_checking
=1 ;;
7081 fold) ac_fold_checking
=1 ;;
7082 gc
) ac_gc_checking
=1 ;;
7083 gcac
) ac_gc_always_collect
=1 ;;
7084 gimple
) ac_gimple_checking
=1 ;;
7085 misc
) ac_checking
=1 ;;
7086 rtl
) ac_rtl_checking
=1 ;;
7087 rtlflag
) ac_rtlflag_checking
=1 ;;
7088 runtime
) ac_runtime_checking
=1 ;;
7089 tree
) ac_tree_checking
=1 ;;
7090 types
) ac_types_checking
=1 ;;
7091 valgrind
) ac_valgrind_checking
=1 ;;
7092 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7098 if test x
$ac_checking != x
; then
7100 $as_echo "#define CHECKING_P 1" >>confdefs.h
7102 nocommon_flag
=-fno-common
7104 $as_echo "#define CHECKING_P 0" >>confdefs.h
7108 if test x
$ac_extra_checking != x
; then
7110 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7113 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7116 if test x
$ac_df_checking != x
; then
7118 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7121 if test x
$ac_assert_checking != x
; then
7123 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7126 if test x
$ac_gimple_checking != x
; then
7128 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7132 if test x
$ac_runtime_checking != x
; then
7134 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7137 if test x
$ac_tree_checking != x
; then
7139 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7143 if test x
$ac_types_checking != x
; then
7145 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7149 if test x
$ac_rtl_checking != x
; then
7151 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7154 if test x
$ac_rtlflag_checking != x
; then
7156 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7159 if test x
$ac_gc_checking != x
; then
7161 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7164 if test x
$ac_gc_always_collect != x
; then
7166 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7169 if test x
$ac_fold_checking != x
; then
7171 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7174 valgrind_path_defines
=
7177 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7178 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7186 # It is certainly possible that there's valgrind but no valgrind.h.
7187 # GCC relies on making annotations so we must have both.
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7189 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <valgrind/memcheck.h>
7193 #ifndef VALGRIND_DISCARD
7194 #error VALGRIND_DISCARD not defined
7197 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7198 gcc_cv_header_valgrind_memcheck_h
=yes
7200 gcc_cv_header_valgrind_memcheck_h
=no
7202 rm -f conftest.err conftest.
$ac_ext
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7204 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7206 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 #include <memcheck.h>
7210 #ifndef VALGRIND_DISCARD
7211 #error VALGRIND_DISCARD not defined
7214 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7215 gcc_cv_header_memcheck_h
=yes
7217 gcc_cv_header_memcheck_h
=no
7219 rm -f conftest.err conftest.
$ac_ext
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7221 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7222 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7224 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7227 if test $gcc_cv_header_memcheck_h = yes; then
7229 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7233 if test x
$ac_valgrind_checking != x
; then
7235 # Prepare PATH_SEPARATOR.
7236 # The user is always right.
7237 if test "${PATH_SEPARATOR+set}" != set; then
7238 echo "#! /bin/sh" >conf$$.sh
7239 echo "exit 0" >>conf$$.sh
7241 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7249 # Find out how to test for executable files. Don't use a zero-byte file,
7250 # as systems may use methods other than mode bits to determine executability.
7251 cat >conf$$.
file <<_ASEOF
7255 chmod +x conf$$.
file
7256 if test -x conf$$.
file >/dev
/null
2>&1; then
7257 ac_executable_p
="test -x"
7259 ac_executable_p
="test -f"
7263 # Extract the first word of "valgrind", so it can be a program name with args.
7264 set dummy valgrind
; ac_word
=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7270 case "$valgrind_path" in
7272 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7275 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7276 for ac_dir
in $PATH; do
7278 test -z "$ac_dir" && ac_dir
=.
7279 for ac_exec_ext
in '' $ac_executable_extensions; do
7280 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7281 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7282 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7292 valgrind_path
="$ac_cv_path_valgrind_path"
7293 if test -n "$valgrind_path"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7295 $as_echo "$valgrind_path" >&6; }
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7301 if test "x$valgrind_path" = "x" \
7302 ||
(test $have_valgrind_h = no \
7303 && test $gcc_cv_header_memcheck_h = no \
7304 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7305 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7307 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7308 valgrind_command
="$valgrind_path -q"
7310 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7316 # Enable code coverage collection
7317 # Check whether --enable-coverage was given.
7318 if test "${enable_coverage+set}" = set; then :
7319 enableval
=$enable_coverage; case "${enableval}" in
7321 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7324 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7327 # a.k.a. --disable-coverage
7331 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7340 # Check whether --enable-gather-detailed-mem-stats was given.
7341 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7342 enableval
=$enable_gather_detailed_mem_stats;
7344 enable_gather_detailed_mem_stats
=no
7347 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7349 cat >>confdefs.h
<<_ACEOF
7350 #define GATHER_STATISTICS $gather_stats
7354 # Check whether --enable-valgrind-annotations was given.
7355 if test "${enable_valgrind_annotations+set}" = set; then :
7356 enableval
=$enable_valgrind_annotations;
7358 enable_valgrind_annotations
=no
7361 if test x
$enable_valgrind_annotations != xno \
7362 ||
test x
$ac_valgrind_checking != x
; then
7363 if (test $have_valgrind_h = no \
7364 && test $gcc_cv_header_memcheck_h = no \
7365 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7366 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7369 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7373 # -------------------------------
7374 # Miscenalleous configure options
7375 # -------------------------------
7379 # Check whether --with-stabs was given.
7380 if test "${with_stabs+set}" = set; then :
7381 withval
=$with_stabs; stabs
="$with_stabs"
7387 # Determine whether or not multilibs are enabled.
7388 # Check whether --enable-multilib was given.
7389 if test "${enable_multilib+set}" = set; then :
7390 enableval
=$enable_multilib;
7397 # Determine whether or not multiarch is enabled.
7398 # Check whether --enable-multiarch was given.
7399 if test "${enable_multiarch+set}" = set; then :
7400 enableval
=$enable_multiarch; case "${enableval}" in
7401 yes|no|auto
) enable_multiarch
=$enableval;;
7402 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7405 enable_multiarch
=auto
7408 if test x
${enable_multiarch} = xauto
; then
7409 if test x
${with_native_system_header_dir} != x
; then
7410 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7413 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7414 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7419 $as_echo_n "checking for multiarch configuration... " >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7422 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7424 # needed for setting the multiarch name for soft-float/hard-float ABIs
7428 # Enable __cxa_atexit for C++.
7429 # Check whether --enable-__cxa_atexit was given.
7430 if test "${enable___cxa_atexit+set}" = set; then :
7431 enableval
=$enable___cxa_atexit;
7435 # Enable C extension for decimal float if target supports it.
7437 # Check whether --enable-decimal-float was given.
7438 if test "${enable_decimal_float+set}" = set; then :
7439 enableval
=$enable_decimal_float;
7440 case $enable_decimal_float in
7441 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7442 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7443 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7449 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7450 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7451 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7452 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7453 enable_decimal_float
=yes
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7457 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7458 enable_decimal_float
=no
7465 # x86's use BID format instead of DPD
7466 case x
$enable_decimal_float in
7469 i?
86*-*-* | x86_64
*-*-*)
7470 enable_decimal_float
=bid
7473 enable_decimal_float
=dpd
7476 default_decimal_float
=$enable_decimal_float
7479 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7480 # dependency on libdecnumber.
7481 default_decimal_float
=dpd
7488 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7490 cat >>confdefs.h
<<_ACEOF
7491 #define ENABLE_DECIMAL_FLOAT $dfp
7495 # Use default_decimal_float for dependency.
7496 enable_decimal_float
=$default_decimal_float
7498 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7500 cat >>confdefs.h
<<_ACEOF
7501 #define ENABLE_DECIMAL_BID_FORMAT $bid
7505 # Enable C extension for fixed-point arithmetic.
7506 # Check whether --enable-fixed-point was given.
7507 if test "${enable_fixed_point+set}" = set; then :
7508 enableval
=$enable_fixed_point;
7513 enable_fixed_point
=yes
7517 enable_fixed_point
=yes
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7521 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7522 enable_fixed_point
=no
7530 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7532 cat >>confdefs.h
<<_ACEOF
7533 #define ENABLE_FIXED_POINT $fixedpoint
7538 # Pass with no value to take the default
7539 # Pass with a value to specify a thread package
7540 # Check whether --enable-threads was given.
7541 if test "${enable_threads+set}" = set; then :
7542 enableval
=$enable_threads;
7548 # Check whether --enable-tls was given.
7549 if test "${enable_tls+set}" = set; then :
7550 enableval
=$enable_tls;
7553 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7554 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7562 # Check whether --enable-vtable-verify was given.
7563 if test "${enable_vtable_verify+set}" = set; then :
7564 enableval
=$enable_vtable_verify;
7566 enable_vtable_verify
=no
7569 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7571 cat >>confdefs.h
<<_ACEOF
7572 #define ENABLE_VTABLE_VERIFY $vtable_verify
7576 # Check whether --enable-objc-gc was given.
7577 if test "${enable_objc_gc+set}" = set; then :
7578 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7589 # Check whether --with-dwarf2 was given.
7590 if test "${with_dwarf2+set}" = set; then :
7591 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7597 # Check whether --enable-shared was given.
7598 if test "${enable_shared+set}" = set; then :
7599 enableval
=$enable_shared;
7600 case $enable_shared in
7604 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7605 for pkg
in $enableval; do
7606 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7621 # Check whether --with-specs was given.
7622 if test "${with_specs+set}" = set; then :
7623 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7633 # Check whether --with-pkgversion was given.
7634 if test "${with_pkgversion+set}" = set; then :
7635 withval
=$with_pkgversion; case "$withval" in
7636 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7638 *) PKGVERSION
="($withval) " ;;
7649 # Check whether --with-bugurl was given.
7650 if test "${with_bugurl+set}" = set; then :
7651 withval
=$with_bugurl; case "$withval" in
7652 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7655 *) BUGURL
="$withval"
7659 BUGURL
="https://gcc.gnu.org/bugs/"
7669 REPORT_BUGS_TO
="<$BUGURL>"
7670 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7677 # Sanity check enable_languages in case someone does not run the toplevel
7678 # configure # script.
7679 # Check whether --enable-languages was given.
7680 if test "${enable_languages+set}" = set; then :
7681 enableval
=$enable_languages; case ,${enable_languages}, in
7683 # go safe -- we cannot be much sure without the toplevel
7685 # analysis of which target libs are present and usable
7689 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7694 enable_languages
=c
,${enable_languages}
7702 if test x
"$enable_as_accelerator_for" != x
; then
7704 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7706 enable_as_accelerator
=yes
7709 # In this case we expect offload compiler to be built as native, so we
7710 # need to rename the driver to avoid clashes with host's drivers.
7711 program_transform_name
="s&^&${target}-&" ;;
7713 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7714 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7715 accel_dir_suffix
=/accel
/${target_noncanonical}
7716 real_target_noncanonical
=${enable_as_accelerator_for}
7722 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7723 tgt
=`echo $tgt | sed 's/=.*//'`
7725 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7731 if test x
"$offload_targets" = x
; then
7732 offload_targets
=$tgt
7734 offload_targets
="$offload_targets,$tgt"
7738 cat >>confdefs.h
<<_ACEOF
7739 #define OFFLOAD_TARGETS "$offload_targets"
7742 if test x
"$enable_offloading" != x
; then
7744 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7748 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7752 if test x
"$enable_hsa" = x1
; then
7754 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7759 # Check whether --with-multilib-list was given.
7760 if test "${with_multilib_list+set}" = set; then :
7761 withval
=$with_multilib_list; :
7763 with_multilib_list
=default
7767 # -------------------------
7768 # Checks for other programs
7769 # -------------------------
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7772 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7774 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7775 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7776 $as_echo_n "(cached) " >&6
7778 cat >conftest.
make <<\_ACEOF
7781 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7783 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7784 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7786 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7788 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7792 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7794 $as_echo "yes" >&6; }
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 SET_MAKE
="MAKE=${MAKE-make}"
7803 # Find some useful tools
7804 for ac_prog
in gawk mawk nawk
awk
7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
7807 set dummy
$ac_prog; ac_word
=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if test "${ac_cv_prog_AWK+set}" = set; then :
7811 $as_echo_n "(cached) " >&6
7813 if test -n "$AWK"; then
7814 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7820 test -z "$as_dir" && as_dir
=.
7821 for ac_exec_ext
in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_prog_AWK
="$ac_prog"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 if test -n "$AWK"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7836 $as_echo "$AWK" >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7843 test -n "$AWK" && break
7846 # We need awk to create options.c and options.h.
7847 # Bail out if it's missing.
7849 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7853 $as_echo_n "checking whether ln -s works... " >&6; }
7854 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7855 $as_echo_n "(cached) " >&6
7857 rm -f conftestdata_t
7858 echo >conftestdata_f
7859 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7861 gcc_cv_prog_LN_S
="ln -s"
7863 if ln conftestdata_f conftestdata_t
2>/dev
/null
7867 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7869 gcc_cv_prog_LN_S
="cp -p"
7875 rm -f conftestdata_f conftestdata_t
7878 LN_S
="$gcc_cv_prog_LN_S"
7879 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7881 $as_echo "yes" >&6; }
7883 if test "$gcc_cv_prog_LN_S" = "ln"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7885 $as_echo "no, using ln" >&6; }
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7888 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7893 $as_echo_n "checking whether ln works... " >&6; }
7894 if test "${acx_cv_prog_LN+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7897 rm -f conftestdata_t
7898 echo >conftestdata_f
7899 if ln conftestdata_f conftestdata_t
2>/dev
/null
7905 rm -f conftestdata_f conftestdata_t
7908 if test $acx_cv_prog_LN = no
; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7911 $as_echo "no, using $LN" >&6; }
7913 LN
="$acx_cv_prog_LN"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7915 $as_echo "yes" >&6; }
7918 if test -n "$ac_tool_prefix"; then
7919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7920 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7926 if test -n "$RANLIB"; then
7927 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7933 test -z "$as_dir" && as_dir
=.
7934 for ac_exec_ext
in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 RANLIB
=$ac_cv_prog_RANLIB
7947 if test -n "$RANLIB"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7949 $as_echo "$RANLIB" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7957 if test -z "$ac_cv_prog_RANLIB"; then
7958 ac_ct_RANLIB
=$RANLIB
7959 # Extract the first word of "ranlib", so it can be a program name with args.
7960 set dummy ranlib
; ac_word
=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7966 if test -n "$ac_ct_RANLIB"; then
7967 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7973 test -z "$as_dir" && as_dir
=.
7974 for ac_exec_ext
in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7987 if test -n "$ac_ct_RANLIB"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7989 $as_echo "$ac_ct_RANLIB" >&6; }
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7995 if test "x$ac_ct_RANLIB" = x
; then
7998 case $cross_compiling:$ac_tool_warned in
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8002 ac_tool_warned
=yes ;;
8004 RANLIB
=$ac_ct_RANLIB
8007 RANLIB
="$ac_cv_prog_RANLIB"
8013 # Find a good install program. We prefer a C program (faster),
8014 # so one script is as good as another. But avoid the broken or
8015 # incompatible versions:
8016 # SysV /etc/install, /usr/sbin/install
8017 # SunOS /usr/etc/install
8018 # IRIX /sbin/install
8020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8022 # ./install, which can be erroneously created by make from ./install.sh.
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8024 $as_echo_n "checking for a BSD compatible install... " >&6; }
8025 if test -z "$INSTALL"; then
8026 if test "${ac_cv_path_install+set}" = set; then :
8027 $as_echo_n "(cached) " >&6
8029 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8030 for ac_dir
in $PATH; do
8031 # Account for people who put trailing slashes in PATH elements.
8033 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8035 # OSF1 and SCO ODT 3.0 have their own names for install.
8036 for ac_prog
in ginstall scoinst
install; do
8037 if test -f $ac_dir/$ac_prog; then
8038 if test $ac_prog = install &&
8039 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8040 # AIX install. It has an incompatible calling convention.
8041 # OSF/1 installbsd also uses dspmsg, but is usable.
8044 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8055 if test "${ac_cv_path_install+set}" = set; then
8056 INSTALL
="$ac_cv_path_install"
8058 # As a last resort, use the slow shell script. We don't cache a
8059 # path for INSTALL within a source directory, because that will
8060 # break other packages using the cache if that directory is
8061 # removed, or if the path is relative.
8062 INSTALL
="$ac_install_sh"
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8066 $as_echo "$INSTALL" >&6; }
8068 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8069 # It thinks the first close brace ends the variable substitution.
8070 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8072 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8075 # See if cmp has --ignore-initial.
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8077 $as_echo_n "checking for cmp's capabilities... " >&6; }
8078 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
8083 gcc_cv_prog_cmp_skip
=slowcompare
8084 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8085 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8088 gcc_cv_prog_cmp_skip
=gnucompare
8091 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8092 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8093 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8096 gcc_cv_prog_cmp_skip
=fastcompare
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8104 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8105 make_compare_target
=$gcc_cv_prog_cmp_skip
8109 # See if we have the mktemp command.
8110 # Extract the first word of "mktemp", so it can be a program name with args.
8111 set dummy mktemp
; ac_word
=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8117 if test -n "$have_mktemp_command"; then
8118 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8124 test -z "$as_dir" && as_dir
=.
8125 for ac_exec_ext
in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_prog_have_mktemp_command
="yes"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8138 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8139 if test -n "$have_mktemp_command"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8141 $as_echo "$have_mktemp_command" >&6; }
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8149 # See if makeinfo has been installed and is modern enough
8150 # that we can use it.
8152 # Extract the first word of "makeinfo", so it can be a program name with args.
8153 set dummy makeinfo
; ac_word
=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8157 $as_echo_n "(cached) " >&6
8159 if test -n "$MAKEINFO"; then
8160 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8166 test -z "$as_dir" && as_dir
=.
8167 for ac_exec_ext
in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_prog_MAKEINFO
="makeinfo"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8179 MAKEINFO
=$ac_cv_prog_MAKEINFO
8180 if test -n "$MAKEINFO"; then
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8182 $as_echo "$MAKEINFO" >&6; }
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8189 if test -n "$MAKEINFO"; then
8190 # Found it, now check the version.
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8192 $as_echo_n "checking for modern makeinfo... " >&6; }
8193 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
8196 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8197 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8199 case $ac_prog_version in
8200 '') gcc_cv_prog_makeinfo_modern
=no
;;
8201 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8202 *) gcc_cv_prog_makeinfo_modern
=no
;;
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8207 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8209 gcc_cv_prog_makeinfo_modern
=no
8211 if test $gcc_cv_prog_makeinfo_modern = no
; then
8212 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8215 if test $gcc_cv_prog_makeinfo_modern = no
; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8217 *** Makeinfo is missing or too old.
8218 *** Info documentation will not be built." >&5
8219 $as_echo "$as_me: WARNING:
8220 *** Makeinfo is missing or too old.
8221 *** Info documentation will not be built." >&2;}
8228 # Is pod2man recent enough to regenerate manpages?
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8230 $as_echo_n "checking for recent Pod::Man... " >&6; }
8231 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233 $as_echo "yes" >&6; }
8234 GENERATED_MANPAGES
=generated-manpages
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8242 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy
$ac_prog; ac_word
=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_FLEX+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8254 if test -n "$FLEX"; then
8255 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir
=.
8262 for ac_exec_ext
in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_FLEX
="$ac_prog"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 FLEX
=$ac_cv_prog_FLEX
8275 if test -n "$FLEX"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8277 $as_echo "$FLEX" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8284 test -n "$FLEX" && break
8286 test -n "$FLEX" || FLEX
="$MISSING flex"
8290 for ac_prog
in bison
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293 set dummy
$ac_prog; ac_word
=$2
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8295 $as_echo_n "checking for $ac_word... " >&6; }
8296 if test "${ac_cv_prog_BISON+set}" = set; then :
8297 $as_echo_n "(cached) " >&6
8299 if test -n "$BISON"; then
8300 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8302 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8306 test -z "$as_dir" && as_dir
=.
8307 for ac_exec_ext
in '' $ac_executable_extensions; do
8308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8309 ac_cv_prog_BISON
="$ac_prog"
8310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 BISON
=$ac_cv_prog_BISON
8320 if test -n "$BISON"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8322 $as_echo "$BISON" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8329 test -n "$BISON" && break
8331 test -n "$BISON" || BISON
="$MISSING bison"
8334 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8335 # check for build == host before using them.
8338 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8339 && test -d ..
/binutils
; then
8340 NM
='${objdir}/../binutils/nm-new'
8342 # Extract the first word of "nm", so it can be a program name with args.
8343 set dummy nm
; ac_word
=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_NM+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8349 if test -n "$NM"; then
8350 ac_cv_prog_NM
="$NM" # Let the user override the test.
8352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir
=.
8357 for ac_exec_ext
in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8371 if test -n "$NM"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8373 $as_echo "$NM" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8383 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8384 && test -d ..
/binutils
; then
8385 AR
='${objdir}/../binutils/ar'
8387 # Extract the first word of "ar", so it can be a program name with args.
8388 set dummy
ar; ac_word
=$2
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8390 $as_echo_n "checking for $ac_word... " >&6; }
8391 if test "${ac_cv_prog_AR+set}" = set; then :
8392 $as_echo_n "(cached) " >&6
8394 if test -n "$AR"; then
8395 ac_cv_prog_AR
="$AR" # Let the user override the test.
8397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8401 test -z "$as_dir" && as_dir
=.
8402 for ac_exec_ext
in '' $ac_executable_extensions; do
8403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8416 if test -n "$AR"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8418 $as_echo "$AR" >&6; }
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8427 # The jit documentation looks better if built with sphinx, but can be
8428 # built with texinfo if sphinx is not available.
8429 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8430 # Extract the first word of "sphinx-build", so it can be a program name with args.
8431 set dummy sphinx-build
; ac_word
=$2
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8433 $as_echo_n "checking for $ac_word... " >&6; }
8434 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8435 $as_echo_n "(cached) " >&6
8437 if test -n "$doc_build_sys"; then
8438 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8444 test -z "$as_dir" && as_dir
=.
8445 for ac_exec_ext
in '' $ac_executable_extensions; do
8446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447 ac_cv_prog_doc_build_sys
="sphinx"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8458 doc_build_sys
=$ac_cv_prog_doc_build_sys
8459 if test -n "$doc_build_sys"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8461 $as_echo "$doc_build_sys" >&6; }
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8469 # --------------------
8470 # Checks for C headers
8471 # --------------------
8473 # Need to reject headers which give warnings, so that the -Werror bootstrap
8474 # works later. *sigh* This needs to come before all header checks.
8476 ac_c_preproc_warn_flag
=yes
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8479 $as_echo_n "checking for ANSI C header files... " >&6; }
8480 if test "${ac_cv_header_stdc+set}" = set; then :
8481 $as_echo_n "(cached) " >&6
8483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8498 if ac_fn_cxx_try_compile
"$LINENO"; then :
8499 ac_cv_header_stdc
=yes
8501 ac_cv_header_stdc
=no
8503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8505 if test $ac_cv_header_stdc = yes; then
8506 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8513 $EGREP "memchr" >/dev
/null
2>&1; then :
8516 ac_cv_header_stdc
=no
8522 if test $ac_cv_header_stdc = yes; then
8523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8530 $EGREP "free" >/dev
/null
2>&1; then :
8533 ac_cv_header_stdc
=no
8539 if test $ac_cv_header_stdc = yes; then
8540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8541 if test "$cross_compiling" = yes; then :
8544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8548 #if ((' ' & 0x0FF) == 0x020)
8549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8552 # define ISLOWER(c) \
8553 (('a' <= (c) && (c) <= 'i') \
8554 || ('j' <= (c) && (c) <= 'r') \
8555 || ('s' <= (c) && (c) <= 'z'))
8556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8564 for (i = 0; i < 256; i++)
8565 if (XOR (islower (i), ISLOWER (i))
8566 || toupper (i) != TOUPPER (i))
8571 if ac_fn_cxx_try_run
"$LINENO"; then :
8574 ac_cv_header_stdc
=no
8576 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8577 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8583 $as_echo "$ac_cv_header_stdc" >&6; }
8584 if test $ac_cv_header_stdc = yes; then
8586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8591 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8592 if test "${ac_cv_header_time+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
8595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 #include <sys/types.h>
8598 #include <sys/time.h>
8604 if ((struct tm *) 0)
8610 if ac_fn_cxx_try_compile
"$LINENO"; then :
8611 ac_cv_header_time
=yes
8613 ac_cv_header_time
=no
8615 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8618 $as_echo "$ac_cv_header_time" >&6; }
8619 if test $ac_cv_header_time = yes; then
8621 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8626 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8627 if test "${gcc_cv_header_string+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
8630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8631 /* end confdefs.h. */
8633 #include <strings.h>
8642 if ac_fn_cxx_try_compile
"$LINENO"; then :
8643 gcc_cv_header_string
=yes
8645 gcc_cv_header_string
=no
8647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8650 $as_echo "$gcc_cv_header_string" >&6; }
8651 if test $gcc_cv_header_string = yes; then
8653 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8658 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8659 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
8662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 #include <sys/types.h>
8665 #include <sys/wait.h>
8667 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8670 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8678 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8683 if ac_fn_cxx_try_compile
"$LINENO"; then :
8684 ac_cv_header_sys_wait_h
=yes
8686 ac_cv_header_sys_wait_h
=no
8688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8691 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8692 if test $ac_cv_header_sys_wait_h = yes; then
8694 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8699 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8700 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8701 $as_echo_n "(cached) " >&6
8703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 #include <sys/types.h>
8706 #include <termios.h>
8712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8713 $EGREP "yes" >/dev
/null
2>&1; then :
8714 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8716 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8722 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8724 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8726 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8727 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
8730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8732 #include <sys/types.h>
8733 #include <sys/ioctl.h>
8739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8740 $EGREP "yes" >/dev
/null
2>&1; then :
8741 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8743 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8749 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8751 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8753 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8758 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8759 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8760 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8761 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8763 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8764 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8765 eval as_val
=\$
$as_ac_Header
8766 if test "x$as_val" = x
""yes; then :
8767 cat >>confdefs.h
<<_ACEOF
8768 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8775 # Check for thread headers.
8776 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8777 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8783 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8784 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8791 # These tests can't be done till we know if we have limits.h.
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8793 $as_echo_n "checking for CHAR_BIT... " >&6; }
8794 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
8797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 #ifdef HAVE_LIMITS_H
8806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8807 $EGREP "found" >/dev
/null
2>&1; then :
8808 gcc_cv_decl_char_bit
=yes
8810 gcc_cv_decl_char_bit
=no
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8817 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8818 if test $gcc_cv_decl_char_bit = no
; then
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8820 $as_echo_n "checking number of bits in a byte... " >&6; }
8821 if test "${gcc_cv_c_nbby+set}" = set; then :
8822 $as_echo_n "(cached) " >&6
8826 while test $i -lt 65; do
8827 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8834 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8835 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8841 if ac_fn_cxx_try_compile
"$LINENO"; then :
8842 gcc_cv_c_nbby
=$i; break
8844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8847 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8851 $as_echo "$gcc_cv_c_nbby" >&6; }
8852 if test $gcc_cv_c_nbby = failed
; then
8853 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8856 cat >>confdefs.h
<<_ACEOF
8857 #define CHAR_BIT $gcc_cv_c_nbby
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8863 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8864 if test "${ac_cv_c_bigendian+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8867 ac_cv_c_bigendian
=unknown
8868 # See if we're dealing with a universal compiler.
8869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 #ifndef __APPLE_CC__
8872 not a universal capable compiler
8877 if ac_fn_cxx_try_compile
"$LINENO"; then :
8879 # Check for potential -arch flags. It is not universal unless
8880 # there are at least two -arch flags with different values.
8883 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8884 if test -n "$ac_prev"; then
8886 i?
86 | x86_64 | ppc | ppc64
)
8887 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8890 ac_cv_c_bigendian
=universal
8896 elif test "x$ac_word" = "x-arch"; then
8901 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8902 if test $ac_cv_c_bigendian = unknown
; then
8903 # See if sys/param.h defines the BYTE_ORDER macro.
8904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906 #include <sys/types.h>
8907 #include <sys/param.h>
8912 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8913 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8922 if ac_fn_cxx_try_compile
"$LINENO"; then :
8923 # It does; now see whether it defined to BIG_ENDIAN or not.
8924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #include <sys/types.h>
8927 #include <sys/param.h>
8932 #if BYTE_ORDER != BIG_ENDIAN
8940 if ac_fn_cxx_try_compile
"$LINENO"; then :
8941 ac_cv_c_bigendian
=yes
8943 ac_cv_c_bigendian
=no
8945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8949 if test $ac_cv_c_bigendian = unknown
; then
8950 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8958 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8966 if ac_fn_cxx_try_compile
"$LINENO"; then :
8967 # It does; now see whether it defined to _BIG_ENDIAN or not.
8968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8983 if ac_fn_cxx_try_compile
"$LINENO"; then :
8984 ac_cv_c_bigendian
=yes
8986 ac_cv_c_bigendian
=no
8988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8992 if test $ac_cv_c_bigendian = unknown
; then
8993 # Compile a test program.
8994 if test "$cross_compiling" = yes; then :
8995 # Try to guess by grepping values from an object file.
8996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 short int ascii_mm[] =
8999 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9000 short int ascii_ii[] =
9001 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9002 int use_ascii (int i) {
9003 return ascii_mm[i] + ascii_ii[i];
9005 short int ebcdic_ii[] =
9006 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9007 short int ebcdic_mm[] =
9008 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9009 int use_ebcdic (int i) {
9010 return ebcdic_mm[i] + ebcdic_ii[i];
9017 return use_ascii (foo) == use_ebcdic (foo);
9022 if ac_fn_cxx_try_compile
"$LINENO"; then :
9023 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9024 ac_cv_c_bigendian
=yes
9026 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9027 if test "$ac_cv_c_bigendian" = unknown
; then
9028 ac_cv_c_bigendian
=no
9030 # finding both strings is unlikely to happen, but who knows?
9031 ac_cv_c_bigendian
=unknown
9035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 $ac_includes_default
9044 /* Are we little or big endian? From Harbison&Steele. */
9048 char c[sizeof (long int)];
9051 return u.c[sizeof (long int) - 1] == 1;
9057 if ac_fn_cxx_try_run
"$LINENO"; then :
9058 ac_cv_c_bigendian
=no
9060 ac_cv_c_bigendian
=yes
9062 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9063 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9069 $as_echo "$ac_cv_c_bigendian" >&6; }
9070 case $ac_cv_c_bigendian in #(
9072 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9078 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9082 as_fn_error
"unknown endianness
9083 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9087 # ----------------------
9088 # Checks for C++ headers
9089 # ----------------------
9092 ac_cpp
='$CXXCPP $CPPFLAGS'
9093 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9094 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9095 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9097 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9098 if test -z "$CXXCPP"; then
9099 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9102 # Double quotes because CXXCPP needs to be expanded
9103 for CXXCPP
in "$CXX -E" "/lib/cpp"
9106 for ac_cxx_preproc_warn_flag
in '' yes
9108 # Use a header file that comes with gcc, so configuring glibc
9109 # with a fresh cross-compiler works.
9110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9111 # <limits.h> exists even on freestanding compilers.
9112 # On the NeXT, cc -E runs the code through the compiler's parser,
9113 # not just through cpp. "Syntax error" is here to catch this case.
9114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9115 /* end confdefs.h. */
9117 # include <limits.h>
9119 # include <assert.h>
9123 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9126 # Broken: fails on valid input.
9129 rm -f conftest.err conftest.
$ac_ext
9131 # OK, works on sane cases. Now check whether nonexistent headers
9132 # can be detected and how.
9133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <ac_nonexistent.h>
9137 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9138 # Broken: success on invalid input.
9141 # Passes both tests.
9145 rm -f conftest.err conftest.
$ac_ext
9148 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9149 rm -f conftest.err conftest.
$ac_ext
9150 if $ac_preproc_ok; then :
9155 ac_cv_prog_CXXCPP
=$CXXCPP
9158 CXXCPP
=$ac_cv_prog_CXXCPP
9160 ac_cv_prog_CXXCPP
=$CXXCPP
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9163 $as_echo "$CXXCPP" >&6; }
9165 for ac_cxx_preproc_warn_flag
in '' yes
9167 # Use a header file that comes with gcc, so configuring glibc
9168 # with a fresh cross-compiler works.
9169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9170 # <limits.h> exists even on freestanding compilers.
9171 # On the NeXT, cc -E runs the code through the compiler's parser,
9172 # not just through cpp. "Syntax error" is here to catch this case.
9173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9176 # include <limits.h>
9178 # include <assert.h>
9182 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9185 # Broken: fails on valid input.
9188 rm -f conftest.err conftest.
$ac_ext
9190 # OK, works on sane cases. Now check whether nonexistent headers
9191 # can be detected and how.
9192 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h. */
9194 #include <ac_nonexistent.h>
9196 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9197 # Broken: success on invalid input.
9200 # Passes both tests.
9204 rm -f conftest.err conftest.
$ac_ext
9207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9208 rm -f conftest.err conftest.
$ac_ext
9209 if $ac_preproc_ok; then :
9212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9215 See \`config.log' for more details." >&5
9216 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9217 See \`config.log' for more details." >&2;}; }
9221 ac_cpp
='$CXXCPP $CPPFLAGS'
9222 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9223 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9224 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9227 for ac_header
in unordered_map
9229 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9230 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9231 cat >>confdefs.h
<<_ACEOF
9232 #define HAVE_UNORDERED_MAP 1
9238 for ac_header
in tr1/unordered_map
9240 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9241 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9242 cat >>confdefs.h
<<_ACEOF
9243 #define HAVE_TR1_UNORDERED_MAP 1
9249 for ac_header
in ext
/hash_map
9251 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9252 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9253 cat >>confdefs.h
<<_ACEOF
9254 #define HAVE_EXT_HASH_MAP 1
9262 # Dependency checking.
9265 rm -rf .tst
2>/dev
/null
9266 mkdir .tst
2>/dev
/null
9267 if test -d .tst
; then
9272 rmdir .tst
2>/dev
/null
9274 DEPDIR
="${am__leading_dot}deps"
9276 ac_config_commands
="$ac_config_commands depdir"
9279 ac_config_commands
="$ac_config_commands gccdepdir"
9282 depcc
="$CXX" am_compiler_list
=
9284 am_depcomp
=$ac_aux_dir/depcomp
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9286 $as_echo_n "checking dependency style of $depcc... " >&6; }
9287 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9288 $as_echo_n "(cached) " >&6
9290 if test -f "$am_depcomp"; then
9291 # We make a subdir and do the tests there. Otherwise we can end up
9292 # making bogus files that we don't know about and never remove. For
9293 # instance it was reported that on HP-UX the gcc test will end up
9294 # making a dummy file named `D' -- because `-MD' means `put the output
9297 # Copy depcomp to subdir because otherwise we won't find it if we're
9298 # using a relative directory.
9299 cp "$am_depcomp" conftest.dir
9301 # We will build objects and dependencies in a subdirectory because
9302 # it helps to detect inapplicable dependency modes. For instance
9303 # both Tru64's cc and ICC support -MD to output dependencies as a
9304 # side effect of compilation, but ICC will put the dependencies in
9305 # the current directory while Tru64 will put them in the object
9309 am_cv_CXX_dependencies_compiler_type
=none
9310 if test "$am_compiler_list" = ""; then
9311 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9313 for depmode
in $am_compiler_list; do
9314 if test $depmode = none
; then break; fi
9316 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9317 # Setup a source with many dependencies, because some compilers
9318 # like to wrap large dependency lists on column 80 (with \), and
9319 # we should not choose a depcomp mode which is confused by this.
9321 # We need to recreate these files for each test, as the compiler may
9322 # overwrite some of them when testing with obscure command lines.
9323 # This happens at least with the AIX C compiler.
9325 for i
in 1 2 3 4 5 6; do
9326 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9327 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9328 # Solaris 8's {/usr,}/bin/sh.
9329 touch sub
/conftst
$i.h
9331 echo "include sub/conftest.Po" > confmf
9333 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9334 # mode. It turns out that the SunPro C++ compiler does not properly
9335 # handle `-M -o', and we need to detect this.
9336 depcmd
="depmode=$depmode \
9337 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9339 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9340 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9341 if env
$depcmd > conftest.err
2>&1 &&
9342 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9343 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9344 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9345 # icc doesn't choke on unknown options, it will just issue warnings
9346 # or remarks (even with -Werror). So we grep stderr for any message
9347 # that says an option was ignored or not supported.
9348 # When given -MP, icc 7.0 and 7.1 complain thusly:
9349 # icc: Command line warning: ignoring option '-M'; no argument required
9350 # The diagnosis changed in icc 8.0:
9351 # icc: Command line remark: option '-MP' not supported
9352 if (grep 'ignoring option' conftest.err ||
9353 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9354 am_cv_CXX_dependencies_compiler_type
=$depmode
9355 $as_echo "$as_me:$LINENO: success" >&5
9359 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9360 sed -e 's/^/| /' < conftest.err
>&5
9366 am_cv_CXX_dependencies_compiler_type
=none
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9371 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9372 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9373 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9374 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9384 # These libraries may be used by collect2.
9385 # We may need a special search path to get them linked.
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9387 $as_echo_n "checking for collect2 libraries... " >&6; }
9388 if test "${gcc_cv_collect2_libs+set}" = set; then :
9389 $as_echo_n "(cached) " >&6
9392 for libs
in '' -lld -lmld \
9393 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9394 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9415 if ac_fn_cxx_try_link
"$LINENO"; then :
9416 gcc_cv_collect2_libs
="$libs"; break
9418 rm -f core conftest.err conftest.
$ac_objext \
9419 conftest
$ac_exeext conftest.
$ac_ext
9422 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9425 $as_echo "$gcc_cv_collect2_libs" >&6; }
9426 case $gcc_cv_collect2_libs in
9428 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9432 # When building Ada code on Alpha, we need exc_resume which is usually in
9433 # -lexc. So test for it.
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9437 $as_echo_n "checking for library containing exc_resume... " >&6; }
9438 if test "${ac_cv_search_exc_resume+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9441 ac_func_search_save_LIBS
=$LIBS
9442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9445 /* Override any GCC internal prototype to avoid an error.
9446 Use char because int might match the return type of a GCC
9447 builtin and then its argument prototype would still apply. */
9455 return exc_resume ();
9460 for ac_lib
in '' exc
; do
9461 if test -z "$ac_lib"; then
9462 ac_res
="none required"
9465 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9467 if ac_fn_cxx_try_link
"$LINENO"; then :
9468 ac_cv_search_exc_resume
=$ac_res
9470 rm -f core conftest.err conftest.
$ac_objext \
9472 if test "${ac_cv_search_exc_resume+set}" = set; then :
9476 if test "${ac_cv_search_exc_resume+set}" = set; then :
9479 ac_cv_search_exc_resume
=no
9482 LIBS
=$ac_func_search_save_LIBS
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9485 $as_echo "$ac_cv_search_exc_resume" >&6; }
9486 ac_res
=$ac_cv_search_exc_resume
9487 if test "$ac_res" != no
; then :
9488 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9496 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9500 $as_echo_n "checking for library containing kstat_open... " >&6; }
9501 if test "${ac_cv_search_kstat_open+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9504 ac_func_search_save_LIBS
=$LIBS
9505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9508 /* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
9518 return kstat_open ();
9523 for ac_lib
in '' kstat
; do
9524 if test -z "$ac_lib"; then
9525 ac_res
="none required"
9528 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9530 if ac_fn_cxx_try_link
"$LINENO"; then :
9531 ac_cv_search_kstat_open
=$ac_res
9533 rm -f core conftest.err conftest.
$ac_objext \
9535 if test "${ac_cv_search_kstat_open+set}" = set; then :
9539 if test "${ac_cv_search_kstat_open+set}" = set; then :
9542 ac_cv_search_kstat_open
=no
9545 LIBS
=$ac_func_search_save_LIBS
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9548 $as_echo "$ac_cv_search_kstat_open" >&6; }
9549 ac_res
=$ac_cv_search_kstat_open
9550 if test "$ac_res" != no
; then :
9551 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9555 EXTRA_GCC_LIBS
="$LIBS"
9559 # Some systems put ldexp and frexp in libm instead of libc; assume
9560 # they're both in the same place. jcf-dump needs them.
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9564 $as_echo_n "checking for library containing ldexp... " >&6; }
9565 if test "${ac_cv_search_ldexp+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9568 ac_func_search_save_LIBS
=$LIBS
9569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9587 for ac_lib
in '' m
; do
9588 if test -z "$ac_lib"; then
9589 ac_res
="none required"
9592 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9594 if ac_fn_cxx_try_link
"$LINENO"; then :
9595 ac_cv_search_ldexp
=$ac_res
9597 rm -f core conftest.err conftest.
$ac_objext \
9599 if test "${ac_cv_search_ldexp+set}" = set; then :
9603 if test "${ac_cv_search_ldexp+set}" = set; then :
9606 ac_cv_search_ldexp
=no
9609 LIBS
=$ac_func_search_save_LIBS
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9612 $as_echo "$ac_cv_search_ldexp" >&6; }
9613 ac_res
=$ac_cv_search_ldexp
9614 if test "$ac_res" != no
; then :
9615 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9623 # Use <inttypes.h> only if it exists,
9624 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9627 $as_echo_n "checking for inttypes.h... " >&6; }
9628 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9629 $as_echo_n "(cached) " >&6
9631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9633 #define __STDC_FORMAT_MACROS
9634 #include <sys/types.h>
9635 #include <inttypes.h>
9647 if ac_fn_cxx_try_compile
"$LINENO"; then :
9648 gcc_cv_header_inttypes_h
=yes
9650 gcc_cv_header_inttypes_h
=no
9652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9656 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9657 if test $gcc_cv_header_inttypes_h = yes; then
9659 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9665 for ac_func
in times clock kill getrlimit setrlimit atoq \
9666 popen sysconf strsignal getrusage nl_langinfo \
9667 gettimeofday mbstowcs wcswidth mmap setlocale \
9668 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
9670 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9671 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9672 eval as_val
=\$
$as_ac_var
9673 if test "x$as_val" = x
""yes; then :
9674 cat >>confdefs.h
<<_ACEOF
9675 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9682 if test x
$ac_cv_func_mbstowcs = xyes
; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9684 $as_echo_n "checking whether mbstowcs works... " >&6; }
9685 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9688 if test "$cross_compiling" = yes; then :
9689 gcc_cv_func_mbstowcs_works
=yes
9691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9700 if ac_fn_cxx_try_run
"$LINENO"; then :
9701 gcc_cv_func_mbstowcs_works
=yes
9703 gcc_cv_func_mbstowcs_works
=no
9705 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9706 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9711 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9712 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9714 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9719 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9720 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9724 cat >>confdefs.h
<<_ACEOF
9730 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9731 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9735 cat >>confdefs.h
<<_ACEOF
9736 #define caddr_t char *
9743 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9744 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9745 gcc_header_sys_mman_h
=yes
9747 gcc_header_sys_mman_h
=no
9750 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9751 if test "x$ac_cv_func_mmap" = x
""yes; then :
9757 if test "$gcc_header_sys_mman_h" != yes \
9758 ||
test "$gcc_func_mmap" != yes; then
9759 gcc_cv_func_mmap_file
=no
9760 gcc_cv_func_mmap_dev_zero
=no
9761 gcc_cv_func_mmap_anon
=no
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9764 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9765 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 # Add a system to this blacklist if
9769 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9770 # memory area containing the same data that you'd get if you applied
9771 # read() to the same fd. The only system known to have a problem here
9772 # is VMS, where text files have record structure.
9775 gcc_cv_func_mmap_file
=no
;;
9777 gcc_cv_func_mmap_file
=yes;;
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9781 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9783 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9784 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9785 $as_echo_n "(cached) " >&6
9787 # Add a system to this blacklist if it has mmap() but /dev/zero
9788 # does not exist, or if mmapping /dev/zero does not give anonymous
9789 # zeroed pages with both the following properties:
9790 # 1. If you map N consecutive pages in with one call, and then
9791 # unmap any subset of those pages, the pages that were not
9792 # explicitly unmapped remain accessible.
9793 # 2. If you map two adjacent blocks of memory and then unmap them
9794 # both at once, they must both go away.
9795 # Systems known to be in this category are Windows (all variants),
9798 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9799 gcc_cv_func_mmap_dev_zero
=no
;;
9801 gcc_cv_func_mmap_dev_zero
=yes;;
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9805 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9807 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9809 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9810 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9815 #include <sys/types.h>
9816 #include <sys/mman.h>
9819 #ifndef MAP_ANONYMOUS
9820 #define MAP_ANONYMOUS MAP_ANON
9826 int n = MAP_ANONYMOUS;
9831 if ac_fn_cxx_try_compile
"$LINENO"; then :
9832 gcc_cv_decl_map_anon
=yes
9834 gcc_cv_decl_map_anon
=no
9836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9839 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9841 if test $gcc_cv_decl_map_anon = no
; then
9842 gcc_cv_func_mmap_anon
=no
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9845 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9846 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9849 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9850 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9851 # doesn't give anonymous zeroed pages with the same properties listed
9852 # above for use of /dev/zero.
9853 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9855 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9856 gcc_cv_func_mmap_anon
=no
;;
9858 gcc_cv_func_mmap_anon
=yes;;
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9862 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9866 if test $gcc_cv_func_mmap_file = yes; then
9868 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9871 if test $gcc_cv_func_mmap_dev_zero = yes; then
9873 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9876 if test $gcc_cv_func_mmap_anon = yes; then
9878 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9885 # Under VMS, vfork works very differently than on Unix. The standard test
9886 # won't work, and it isn't easily adaptable. It makes more sense to
9888 ac_cv_func_vfork_works
=yes
9891 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9892 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9896 cat >>confdefs.h
<<_ACEOF
9902 for ac_header
in vfork.h
9904 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9905 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9906 cat >>confdefs.h
<<_ACEOF
9907 #define HAVE_VFORK_H 1
9913 for ac_func
in fork vfork
9915 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9916 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9917 eval as_val
=\$
$as_ac_var
9918 if test "x$as_val" = x
""yes; then :
9919 cat >>confdefs.h
<<_ACEOF
9920 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9926 if test "x$ac_cv_func_fork" = xyes
; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9928 $as_echo_n "checking for working fork... " >&6; }
9929 if test "${ac_cv_func_fork_works+set}" = set; then :
9930 $as_echo_n "(cached) " >&6
9932 if test "$cross_compiling" = yes; then :
9933 ac_cv_func_fork_works
=cross
9935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 $ac_includes_default
9942 /* By Ruediger Kuhlmann. */
9949 if ac_fn_cxx_try_run
"$LINENO"; then :
9950 ac_cv_func_fork_works
=yes
9952 ac_cv_func_fork_works
=no
9954 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9955 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9960 $as_echo "$ac_cv_func_fork_works" >&6; }
9963 ac_cv_func_fork_works
=$ac_cv_func_fork
9965 if test "x$ac_cv_func_fork_works" = xcross
; then
9967 *-*-amigaos* |
*-*-msdosdjgpp*)
9968 # Override, as these systems have only a dummy fork() stub
9969 ac_cv_func_fork_works
=no
9972 ac_cv_func_fork_works
=yes
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9976 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9978 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9979 if test "x$ac_cv_func_vfork" = xyes
; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9981 $as_echo_n "checking for working vfork... " >&6; }
9982 if test "${ac_cv_func_vfork_works+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9985 if test "$cross_compiling" = yes; then :
9986 ac_cv_func_vfork_works
=cross
9988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 /* Thanks to Paul Eggert for this test. */
9991 $ac_includes_default
9992 #include <sys/wait.h>
9996 /* On some sparc systems, changes by the child to local and incoming
9997 argument registers are propagated back to the parent. The compiler
9998 is told about this with #include <vfork.h>, but some compilers
9999 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10000 static variable whose address is put into a register that is
10001 clobbered by the vfork. */
10004 sparc_address_test (int arg)
10006 sparc_address_test (arg) int arg;
10009 static pid_t child;
10027 pid_t parent = getpid ();
10030 sparc_address_test (0);
10035 /* Here is another test for sparc vfork register problems. This
10036 test uses lots of local variables, at least as many local
10037 variables as main has allocated so far including compiler
10038 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10039 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10040 reuse the register of parent for one of the local variables,
10041 since it will think that parent can't possibly be used any more
10042 in this routine. Assigning to the local variable will thus
10043 munge parent in the parent process. */
10045 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10046 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10047 /* Convince the compiler that p..p7 are live; otherwise, it might
10048 use the same hardware register for all 8 local variables. */
10049 if (p != p1 || p != p2 || p != p3 || p != p4
10050 || p != p5 || p != p6 || p != p7)
10053 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10054 from child file descriptors. If the child closes a descriptor
10055 before it execs or exits, this munges the parent's descriptor
10056 as well. Test for this by closing stdout in the child. */
10057 _exit(close(fileno(stdout)) != 0);
10062 while (wait(&status) != child)
10065 /* Was there some problem with vforking? */
10068 /* Did the child fail? (This shouldn't happen.) */
10071 /* Did the vfork/compiler bug occur? */
10072 || parent != getpid()
10074 /* Did the file descriptor bug occur? */
10075 || fstat(fileno(stdout), &st) != 0
10080 if ac_fn_cxx_try_run
"$LINENO"; then :
10081 ac_cv_func_vfork_works
=yes
10083 ac_cv_func_vfork_works
=no
10085 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10086 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10091 $as_echo "$ac_cv_func_vfork_works" >&6; }
10094 if test "x$ac_cv_func_fork_works" = xcross
; then
10095 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10097 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10100 if test "x$ac_cv_func_vfork_works" = xyes
; then
10102 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10106 $as_echo "#define vfork fork" >>confdefs.h
10109 if test "x$ac_cv_func_fork_works" = xyes
; then
10111 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10117 if test "X$prefix" = "XNONE"; then
10118 acl_final_prefix
="$ac_default_prefix"
10120 acl_final_prefix
="$prefix"
10122 if test "X$exec_prefix" = "XNONE"; then
10123 acl_final_exec_prefix
='${prefix}'
10125 acl_final_exec_prefix
="$exec_prefix"
10127 acl_save_prefix
="$prefix"
10128 prefix
="$acl_final_prefix"
10129 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10130 prefix
="$acl_save_prefix"
10133 # Check whether --with-gnu-ld was given.
10134 if test "${with_gnu_ld+set}" = set; then :
10135 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10140 # Prepare PATH_SEPARATOR.
10141 # The user is always right.
10142 if test "${PATH_SEPARATOR+set}" != set; then
10143 echo "#! /bin/sh" >conf$$.sh
10144 echo "exit 0" >>conf$$.sh
10146 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10154 if test "$GCC" = yes; then
10155 # Check if gcc -print-prog-name=ld gives a path.
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10157 $as_echo_n "checking for ld used by GCC... " >&6; }
10160 # gcc leaves a trailing carriage return which upsets mingw
10161 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10163 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10166 # Accept absolute paths.
10167 [\\/]* |
[A-Za-z
]:[\\/]*)
10168 re_direlt
='/[^/][^/]*/\.\./'
10169 # Canonicalize the path of ld
10170 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10171 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10172 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10174 test -z "$LD" && LD
="$ac_prog"
10177 # If it fails, then pretend we aren't using GCC.
10181 # If it is relative, then search for the first ld in PATH.
10182 with_gnu_ld
=unknown
10185 elif test "$with_gnu_ld" = yes; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10187 $as_echo_n "checking for GNU ld... " >&6; }
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10190 $as_echo_n "checking for non-GNU ld... " >&6; }
10192 if test "${acl_cv_path_LD+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10195 if test -z "$LD"; then
10196 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10197 for ac_dir
in $PATH; do
10198 test -z "$ac_dir" && ac_dir
=.
10199 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10200 acl_cv_path_LD
="$ac_dir/$ac_prog"
10201 # Check to see if the program is GNU ld. I'd rather use --version,
10202 # but apparently some GNU ld's only accept -v.
10203 # Break only if it was the GNU/non-GNU ld that we prefer.
10204 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10205 test "$with_gnu_ld" != no
&& break
10207 test "$with_gnu_ld" != yes && break
10213 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10217 LD
="$acl_cv_path_LD"
10218 if test -n "$LD"; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10220 $as_echo "$LD" >&6; }
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223 $as_echo "no" >&6; }
10225 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10227 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10228 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
10231 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10232 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10233 acl_cv_prog_gnu_ld
=yes
10235 acl_cv_prog_gnu_ld
=no
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10239 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10240 with_gnu_ld
=$acl_cv_prog_gnu_ld
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10245 $as_echo_n "checking for shared library run path origin... " >&6; }
10246 if test "${acl_cv_rpath+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10250 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10251 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10253 rm -f .
/conftest.sh
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10258 $as_echo "$acl_cv_rpath" >&6; }
10260 libext
="$acl_cv_libext"
10261 shlibext
="$acl_cv_shlibext"
10262 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10263 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10264 hardcode_direct
="$acl_cv_hardcode_direct"
10265 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10266 # Check whether --enable-rpath was given.
10267 if test "${enable_rpath+set}" = set; then :
10268 enableval
=$enable_rpath; :
10282 acl_save_prefix
="$prefix"
10283 prefix
="$acl_final_prefix"
10284 acl_save_exec_prefix
="$exec_prefix"
10285 exec_prefix
="$acl_final_exec_prefix"
10287 eval additional_includedir
=\"$includedir\"
10288 eval additional_libdir
=\"$libdir\"
10290 exec_prefix
="$acl_save_exec_prefix"
10291 prefix
="$acl_save_prefix"
10294 # Check whether --with-libiconv-prefix was given.
10295 if test "${with_libiconv_prefix+set}" = set; then :
10296 withval
=$with_libiconv_prefix;
10297 if test "X$withval" = "Xno"; then
10300 if test "X$withval" = "X"; then
10302 acl_save_prefix
="$prefix"
10303 prefix
="$acl_final_prefix"
10304 acl_save_exec_prefix
="$exec_prefix"
10305 exec_prefix
="$acl_final_exec_prefix"
10307 eval additional_includedir
=\"$includedir\"
10308 eval additional_libdir
=\"$libdir\"
10310 exec_prefix
="$acl_save_exec_prefix"
10311 prefix
="$acl_save_prefix"
10314 additional_includedir
="$withval/include"
10315 additional_libdir
="$withval/lib"
10326 names_already_handled
=
10327 names_next_round
='iconv '
10328 while test -n "$names_next_round"; do
10329 names_this_round
="$names_next_round"
10331 for name
in $names_this_round; do
10333 for n
in $names_already_handled; do
10334 if test "$n" = "$name"; then
10335 already_handled
=yes
10339 if test -z "$already_handled"; then
10340 names_already_handled
="$names_already_handled $name"
10341 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10342 eval value
=\"\
$HAVE_LIB$uppername\"
10343 if test -n "$value"; then
10344 if test "$value" = yes; then
10345 eval value
=\"\
$LIB$uppername\"
10346 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10347 eval value
=\"\
$LTLIB$uppername\"
10348 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10357 if test $use_additional = yes; then
10358 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10359 found_dir
="$additional_libdir"
10360 found_so
="$additional_libdir/lib$name.$shlibext"
10361 if test -f "$additional_libdir/lib$name.la"; then
10362 found_la
="$additional_libdir/lib$name.la"
10365 if test -f "$additional_libdir/lib$name.$libext"; then
10366 found_dir
="$additional_libdir"
10367 found_a
="$additional_libdir/lib$name.$libext"
10368 if test -f "$additional_libdir/lib$name.la"; then
10369 found_la
="$additional_libdir/lib$name.la"
10374 if test "X$found_dir" = "X"; then
10375 for x
in $LDFLAGS $LTLIBICONV; do
10377 acl_save_prefix
="$prefix"
10378 prefix
="$acl_final_prefix"
10379 acl_save_exec_prefix
="$exec_prefix"
10380 exec_prefix
="$acl_final_exec_prefix"
10382 exec_prefix
="$acl_save_exec_prefix"
10383 prefix
="$acl_save_prefix"
10387 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10388 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10390 found_so
="$dir/lib$name.$shlibext"
10391 if test -f "$dir/lib$name.la"; then
10392 found_la
="$dir/lib$name.la"
10395 if test -f "$dir/lib$name.$libext"; then
10397 found_a
="$dir/lib$name.$libext"
10398 if test -f "$dir/lib$name.la"; then
10399 found_la
="$dir/lib$name.la"
10405 if test "X$found_dir" != "X"; then
10410 if test "X$found_dir" != "X"; then
10411 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10412 if test "X$found_so" != "X"; then
10413 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10414 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10417 for x
in $ltrpathdirs; do
10418 if test "X$x" = "X$found_dir"; then
10423 if test -z "$haveit"; then
10424 ltrpathdirs
="$ltrpathdirs $found_dir"
10426 if test "$hardcode_direct" = yes; then
10427 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10429 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10430 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10432 for x
in $rpathdirs; do
10433 if test "X$x" = "X$found_dir"; then
10438 if test -z "$haveit"; then
10439 rpathdirs
="$rpathdirs $found_dir"
10443 for x
in $LDFLAGS $LIBICONV; do
10445 acl_save_prefix
="$prefix"
10446 prefix
="$acl_final_prefix"
10447 acl_save_exec_prefix
="$exec_prefix"
10448 exec_prefix
="$acl_final_exec_prefix"
10450 exec_prefix
="$acl_save_exec_prefix"
10451 prefix
="$acl_save_prefix"
10453 if test "X$x" = "X-L$found_dir"; then
10458 if test -z "$haveit"; then
10459 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10461 if test "$hardcode_minus_L" != no
; then
10462 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10464 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10470 if test "X$found_a" != "X"; then
10471 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10473 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10476 additional_includedir
=
10477 case "$found_dir" in
10479 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10480 additional_includedir
="$basedir/include"
10483 if test "X$additional_includedir" != "X"; then
10484 if test "X$additional_includedir" != "X/usr/include"; then
10486 if test "X$additional_includedir" = "X/usr/local/include"; then
10487 if test -n "$GCC"; then
10489 linux
*) haveit
=yes;;
10493 if test -z "$haveit"; then
10494 for x
in $CPPFLAGS $INCICONV; do
10496 acl_save_prefix
="$prefix"
10497 prefix
="$acl_final_prefix"
10498 acl_save_exec_prefix
="$exec_prefix"
10499 exec_prefix
="$acl_final_exec_prefix"
10501 exec_prefix
="$acl_save_exec_prefix"
10502 prefix
="$acl_save_prefix"
10504 if test "X$x" = "X-I$additional_includedir"; then
10509 if test -z "$haveit"; then
10510 if test -d "$additional_includedir"; then
10511 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10517 if test -n "$found_la"; then
10518 save_libdir
="$libdir"
10519 case "$found_la" in
10520 */* |
*\\*) .
"$found_la" ;;
10521 *) .
"./$found_la" ;;
10523 libdir
="$save_libdir"
10524 for dep
in $dependency_libs; do
10527 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10528 if test "X$additional_libdir" != "X/usr/lib"; then
10530 if test "X$additional_libdir" = "X/usr/local/lib"; then
10531 if test -n "$GCC"; then
10533 linux
*) haveit
=yes;;
10537 if test -z "$haveit"; then
10539 for x
in $LDFLAGS $LIBICONV; do
10541 acl_save_prefix
="$prefix"
10542 prefix
="$acl_final_prefix"
10543 acl_save_exec_prefix
="$exec_prefix"
10544 exec_prefix
="$acl_final_exec_prefix"
10546 exec_prefix
="$acl_save_exec_prefix"
10547 prefix
="$acl_save_prefix"
10549 if test "X$x" = "X-L$additional_libdir"; then
10554 if test -z "$haveit"; then
10555 if test -d "$additional_libdir"; then
10556 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10560 for x
in $LDFLAGS $LTLIBICONV; do
10562 acl_save_prefix
="$prefix"
10563 prefix
="$acl_final_prefix"
10564 acl_save_exec_prefix
="$exec_prefix"
10565 exec_prefix
="$acl_final_exec_prefix"
10567 exec_prefix
="$acl_save_exec_prefix"
10568 prefix
="$acl_save_prefix"
10570 if test "X$x" = "X-L$additional_libdir"; then
10575 if test -z "$haveit"; then
10576 if test -d "$additional_libdir"; then
10577 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10584 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10585 if test "$enable_rpath" != no
; then
10587 for x
in $rpathdirs; do
10588 if test "X$x" = "X$dir"; then
10593 if test -z "$haveit"; then
10594 rpathdirs
="$rpathdirs $dir"
10597 for x
in $ltrpathdirs; do
10598 if test "X$x" = "X$dir"; then
10603 if test -z "$haveit"; then
10604 ltrpathdirs
="$ltrpathdirs $dir"
10609 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10612 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10615 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10616 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10622 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10623 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10629 if test "X$rpathdirs" != "X"; then
10630 if test -n "$hardcode_libdir_separator"; then
10632 for found_dir
in $rpathdirs; do
10633 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10635 acl_save_libdir
="$libdir"
10637 eval flag
=\"$hardcode_libdir_flag_spec\"
10638 libdir
="$acl_save_libdir"
10639 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10641 for found_dir
in $rpathdirs; do
10642 acl_save_libdir
="$libdir"
10643 libdir
="$found_dir"
10644 eval flag
=\"$hardcode_libdir_flag_spec\"
10645 libdir
="$acl_save_libdir"
10646 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10650 if test "X$ltrpathdirs" != "X"; then
10651 for found_dir
in $ltrpathdirs; do
10652 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10663 $as_echo_n "checking for iconv... " >&6; }
10664 if test "${am_cv_func_iconv+set}" = set; then :
10665 $as_echo_n "(cached) " >&6
10668 am_cv_func_iconv
="no, consider installing GNU libiconv"
10670 am_save_CPPFLAGS
="$CPPFLAGS"
10671 CPPFLAGS
="$CPPFLAGS $INCICONV"
10672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 #include <stdlib.h>
10679 iconv_t cd = iconv_open("","");
10680 iconv(cd,NULL,NULL,NULL,NULL);
10686 if ac_fn_cxx_try_link
"$LINENO"; then :
10687 am_cv_func_iconv
=yes
10689 rm -f core conftest.err conftest.
$ac_objext \
10690 conftest
$ac_exeext conftest.
$ac_ext
10691 CPPFLAGS
="$am_save_CPPFLAGS"
10693 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10694 for _libs
in .libs _libs
; do
10695 am_save_CPPFLAGS
="$CPPFLAGS"
10696 am_save_LIBS
="$LIBS"
10697 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10698 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10700 /* end confdefs.h. */
10701 #include <stdlib.h>
10706 iconv_t cd = iconv_open("","");
10707 iconv(cd,NULL,NULL,NULL,NULL);
10713 if ac_fn_cxx_try_link
"$LINENO"; then :
10714 INCICONV
="-I../libiconv/include"
10715 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10716 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10717 am_cv_lib_iconv
=yes
10718 am_cv_func_iconv
=yes
10720 rm -f core conftest.err conftest.
$ac_objext \
10721 conftest
$ac_exeext conftest.
$ac_ext
10722 CPPFLAGS
="$am_save_CPPFLAGS"
10723 LIBS
="$am_save_LIBS"
10724 if test "$am_cv_func_iconv" = "yes"; then
10730 if test "$am_cv_func_iconv" != yes; then
10731 am_save_CPPFLAGS
="$CPPFLAGS"
10732 am_save_LIBS
="$LIBS"
10733 CPPFLAGS
="$LIBS $INCICONV"
10734 LIBS
="$LIBS $LIBICONV"
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 am_cv_lib_iconv
=yes
10751 am_cv_func_iconv
=yes
10753 rm -f core conftest.err conftest.
$ac_objext \
10754 conftest
$ac_exeext conftest.
$ac_ext
10755 CPPFLAGS
="$am_save_CPPFLAGS"
10756 LIBS
="$am_save_LIBS"
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10761 $as_echo "$am_cv_func_iconv" >&6; }
10762 if test "$am_cv_func_iconv" = yes; then
10764 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10767 if test "$am_cv_lib_iconv" = yes; then
10769 for element
in $INCICONV; do
10771 for x
in $CPPFLAGS; do
10773 acl_save_prefix
="$prefix"
10774 prefix
="$acl_final_prefix"
10775 acl_save_exec_prefix
="$exec_prefix"
10776 exec_prefix
="$acl_final_exec_prefix"
10778 exec_prefix
="$acl_save_exec_prefix"
10779 prefix
="$acl_save_prefix"
10781 if test "X$x" = "X$element"; then
10786 if test -z "$haveit"; then
10787 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10792 $as_echo_n "checking how to link with libiconv... " >&6; }
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10794 $as_echo "$LIBICONV" >&6; }
10802 if test "$am_cv_func_iconv" = yes; then
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10804 $as_echo_n "checking for iconv declaration... " >&6; }
10805 if test "${am_cv_proto_iconv+set}" = set; then :
10806 $as_echo_n "(cached) " >&6
10809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10812 #include <stdlib.h>
10818 #if defined(__STDC__) || defined(__cplusplus)
10819 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10832 if ac_fn_cxx_try_compile
"$LINENO"; then :
10833 am_cv_proto_iconv_arg1
=""
10835 am_cv_proto_iconv_arg1
="const"
10837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10838 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);"
10841 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10843 }$am_cv_proto_iconv" >&5
10845 }$am_cv_proto_iconv" >&6; }
10847 cat >>confdefs.h
<<_ACEOF
10848 #define ICONV_CONST $am_cv_proto_iconv_arg1
10854 # Until we have in-tree GNU iconv:
10856 if test -f "$LTLIBICONV"; then
10857 LIBICONV_DEP
=$LTLIBICONV
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10863 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10864 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10867 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10869 #include <locale.h>
10878 if ac_fn_cxx_try_link
"$LINENO"; then :
10879 am_cv_val_LC_MESSAGES
=yes
10881 am_cv_val_LC_MESSAGES
=no
10883 rm -f core conftest.err conftest.
$ac_objext \
10884 conftest
$ac_exeext conftest.
$ac_ext
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10887 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10888 if test $am_cv_val_LC_MESSAGES = yes; then
10890 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10897 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10898 if test "${am_cv_langinfo_codeset+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10903 #include <langinfo.h>
10907 char* cs = nl_langinfo(CODESET);
10912 if ac_fn_cxx_try_link
"$LINENO"; then :
10913 am_cv_langinfo_codeset
=yes
10915 am_cv_langinfo_codeset
=no
10917 rm -f core conftest.err conftest.
$ac_objext \
10918 conftest
$ac_exeext conftest.
$ac_ext
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10922 $as_echo "$am_cv_langinfo_codeset" >&6; }
10923 if test $am_cv_langinfo_codeset = yes; then
10925 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10930 # We will need to find libiberty.h and ansidecl.h
10931 saved_CFLAGS
="$CFLAGS"
10932 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10933 saved_CXXFLAGS
="$CXXFLAGS"
10934 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10936 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10937 # normal autoconf function for these. But force definition of
10938 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10939 # basename handling in libiberty.h.
10940 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10941 #undef HAVE_DECL_BASENAME
10942 #define HAVE_DECL_BASENAME 1
10943 #include \"ansidecl.h\"
10944 #include \"system.h\"
10946 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10952 cat >>confdefs.h
<<_ACEOF
10953 #define HAVE_DECL_BASENAME $ac_have_decl
10955 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10956 #undef HAVE_DECL_BASENAME
10957 #define HAVE_DECL_BASENAME 1
10958 #include \"ansidecl.h\"
10959 #include \"system.h\"
10961 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10967 cat >>confdefs.h
<<_ACEOF
10968 #define HAVE_DECL_STRSTR $ac_have_decl
10972 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10973 madvise stpcpy strnlen strsignal strverscmp \
10974 strtol strtoul strtoll strtoull setenv unsetenv \
10975 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10976 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
10978 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10980 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10981 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10982 $as_echo_n "(cached) " >&6
10984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10987 #define $ac_tr_decl 1
10989 #include "ansidecl.h"
10990 #include "system.h"
10996 char *(*pfn) = (char *(*)) $ac_func ;
11002 if ac_fn_cxx_try_compile
"$LINENO"; then :
11003 eval "gcc_cv_have_decl_$ac_func=yes"
11005 eval "gcc_cv_have_decl_$ac_func=no"
11007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11010 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11012 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11013 #define $ac_tr_decl 1
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11019 #define $ac_tr_decl 0
11027 for ac_func
in getrlimit setrlimit getrusage
11029 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11031 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11032 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11033 $as_echo_n "(cached) " >&6
11035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 #define $ac_tr_decl 1
11040 #include "ansidecl.h"
11041 #include "system.h"
11042 #ifdef HAVE_SYS_RESOURCE_H
11043 #include <sys/resource.h>
11051 char *(*pfn) = (char *(*)) $ac_func ;
11057 if ac_fn_cxx_try_compile
"$LINENO"; then :
11058 eval "gcc_cv_have_decl_$ac_func=yes"
11060 eval "gcc_cv_have_decl_$ac_func=no"
11062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11065 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11067 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11068 #define $ac_tr_decl 1
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11073 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11074 #define $ac_tr_decl 0
11082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11083 /* end confdefs.h. */
11085 #include "ansidecl.h"
11086 #include "system.h"
11087 #ifdef HAVE_SYS_RESOURCE_H
11088 #include <sys/resource.h>
11099 if ac_fn_cxx_try_compile
"$LINENO"; then :
11103 $as_echo "#define rlim_t long" >>confdefs.h
11106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11108 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11109 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11110 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11111 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11112 for ac_func
in ldgetname
11114 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11116 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11117 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11118 $as_echo_n "(cached) " >&6
11120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11121 /* end confdefs.h. */
11123 #define $ac_tr_decl 1
11125 #include "ansidecl.h"
11126 #include "system.h"
11127 #ifdef HAVE_LDFCN_H
11138 char *(*pfn) = (char *(*)) $ac_func ;
11144 if ac_fn_cxx_try_compile
"$LINENO"; then :
11145 eval "gcc_cv_have_decl_$ac_func=yes"
11147 eval "gcc_cv_have_decl_$ac_func=no"
11149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11152 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11154 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11155 #define $ac_tr_decl 1
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11161 #define $ac_tr_decl 0
11169 for ac_func
in times
11171 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11173 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11174 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11175 $as_echo_n "(cached) " >&6
11177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11180 #define $ac_tr_decl 1
11182 #include "ansidecl.h"
11183 #include "system.h"
11184 #ifdef HAVE_SYS_TIMES_H
11185 #include <sys/times.h>
11193 char *(*pfn) = (char *(*)) $ac_func ;
11199 if ac_fn_cxx_try_compile
"$LINENO"; then :
11200 eval "gcc_cv_have_decl_$ac_func=yes"
11202 eval "gcc_cv_have_decl_$ac_func=no"
11204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11207 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11210 #define $ac_tr_decl 1
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11216 #define $ac_tr_decl 0
11224 for ac_func
in sigaltstack
11226 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11228 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11229 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11230 $as_echo_n "(cached) " >&6
11232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11235 #define $ac_tr_decl 1
11237 #include "ansidecl.h"
11238 #include "system.h"
11239 #include <signal.h>
11246 char *(*pfn) = (char *(*)) $ac_func ;
11252 if ac_fn_cxx_try_compile
"$LINENO"; then :
11253 eval "gcc_cv_have_decl_$ac_func=yes"
11255 eval "gcc_cv_have_decl_$ac_func=no"
11257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11260 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11262 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11263 #define $ac_tr_decl 1
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11269 #define $ac_tr_decl 0
11277 # More time-related stuff.
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11279 $as_echo_n "checking for struct tms... " >&6; }
11280 if test "${ac_cv_struct_tms+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11287 #include "ansidecl.h"
11288 #include "system.h"
11289 #ifdef HAVE_SYS_TIMES_H
11290 #include <sys/times.h>
11301 if ac_fn_cxx_try_compile
"$LINENO"; then :
11302 ac_cv_struct_tms
=yes
11304 ac_cv_struct_tms
=no
11306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11309 $as_echo "$ac_cv_struct_tms" >&6; }
11310 if test $ac_cv_struct_tms = yes; then
11312 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11316 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11317 # revisit after autoconf 2.50.
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11319 $as_echo_n "checking for clock_t... " >&6; }
11320 if test "${gcc_cv_type_clock_t+set}" = set; then :
11321 $as_echo_n "(cached) " >&6
11324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11325 /* end confdefs.h. */
11327 #include "ansidecl.h"
11328 #include "system.h"
11338 if ac_fn_cxx_try_compile
"$LINENO"; then :
11339 gcc_cv_type_clock_t
=yes
11341 gcc_cv_type_clock_t
=no
11343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11346 $as_echo "$gcc_cv_type_clock_t" >&6; }
11347 if test $gcc_cv_type_clock_t = yes; then
11349 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11353 # Check if F_SETLKW is supported by fcntl.
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11355 $as_echo_n "checking for F_SETLKW... " >&6; }
11356 if test "${ac_cv_f_setlkw+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
11360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11373 return fcntl (1, F_SETLKW, &fl);
11378 if ac_fn_cxx_try_compile
"$LINENO"; then :
11383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11386 $as_echo "$ac_cv_f_setlkw" >&6; }
11387 if test $ac_cv_f_setlkw = yes; then
11389 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11393 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11394 CFLAGS
="$saved_CFLAGS"
11395 CXXFLAGS
="$saved_CXXFLAGS"
11397 # mkdir takes a single argument on some systems.
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11399 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11400 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11401 $as_echo_n "(cached) " >&6
11403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11406 #include <sys/types.h>
11407 #ifdef HAVE_SYS_STAT_H
11408 # include <sys/stat.h>
11410 #ifdef HAVE_UNISTD_H
11411 # include <unistd.h>
11413 #ifdef HAVE_DIRECT_H
11414 # include <direct.h>
11424 if ac_fn_cxx_try_compile
"$LINENO"; then :
11425 gcc_cv_mkdir_takes_one_arg
=no
11427 gcc_cv_mkdir_takes_one_arg
=yes
11429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11432 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11433 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11435 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11446 # With Setjmp/Longjmp based exception handling.
11447 # Check whether --enable-sjlj-exceptions was given.
11448 if test "${enable_sjlj_exceptions+set}" = set; then :
11449 enableval
=$enable_sjlj_exceptions; case $target in
11451 if test $enableval != yes; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11453 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11458 force_sjlj_exceptions
=yes
11462 force_sjlj_exceptions
=yes
11466 force_sjlj_exceptions
=yes
11470 force_sjlj_exceptions
=no
11475 if test $force_sjlj_exceptions = yes; then
11476 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11478 cat >>confdefs.h
<<_ACEOF
11479 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11484 # --------------------------------------------------------
11485 # Build, host, and target specific configuration fragments
11486 # --------------------------------------------------------
11488 # Collect build-machine-specific information.
11489 .
${srcdir}/config.build
11491 # Collect host-machine-specific information.
11492 .
${srcdir}/config.
host
11496 # Collect target-machine-specific information.
11497 .
${srcdir}/config.gcc
11499 extra_objs
="${host_extra_objs} ${extra_objs}"
11500 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11502 # Default the target-machine variables that were not explicitly set.
11503 if test x
"$tm_file" = x
11504 then tm_file
=$cpu_type/$cpu_type.h
; fi
11506 if test x
"$extra_headers" = x
11507 then extra_headers
=; fi
11509 if test x
$md_file = x
11510 then md_file
=$cpu_type/$cpu_type.md
; fi
11512 if test x
$out_file = x
11513 then out_file
=$cpu_type/$cpu_type.c
; fi
11515 if test x
"$tmake_file" = x
11516 then tmake_file
=$cpu_type/t-
$cpu_type
11519 # Support --enable-initfini-array.
11520 if test x
$enable_initfini_array != xno
; then
11521 tm_file
="${tm_file} initfini-array.h"
11524 if test x
"$dwarf2" = xyes
11525 then tm_file
="$tm_file tm-dwarf2.h"
11528 # Say what files are being used for the output code and MD file.
11529 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11530 echo "Using \`$srcdir/config/$md_file' as machine description file."
11532 # If any of the xm_file variables contain nonexistent files, warn
11533 # about them and drop them.
11536 for x
in $build_xm_file; do
11537 if test -f $srcdir/config
/$x
11539 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11540 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11543 build_xm_file
="$bx"
11546 for x
in $host_xm_file; do
11547 if test -f $srcdir/config
/$x
11549 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11550 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11556 for x
in $xm_file; do
11557 if test -f $srcdir/config
/$x
11559 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11560 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11566 for f
in $tm_file; do
11569 if test $count = ax
; then
11570 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11572 echo "Using the following target machine macro files:"
11573 for f
in $tm_file; do
11574 echo " $srcdir/config/$f"
11578 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11580 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11584 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11586 cat >>confdefs.h
<<_ACEOF
11587 #define HAVE_GNU_LD $gnu_ld_bool
11591 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11593 cat >>confdefs.h
<<_ACEOF
11594 #define HAVE_GNU_AS $gnu_as_bool
11599 for f
in $host_xm_file; do
11602 if test $count = a
; then
11604 elif test $count = ax
; then
11605 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11607 echo "Using the following host machine macro files:"
11608 for f
in $host_xm_file; do
11609 echo " $srcdir/config/$f"
11612 echo "Using ${out_host_hook_obj} for host machine hooks."
11614 if test "$host_xm_file" != "$build_xm_file"; then
11616 for f
in $build_xm_file; do
11619 if test $count = a
; then
11621 elif test $count = ax
; then
11622 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11624 echo "Using the following build machine macro files:"
11625 for f
in $build_xm_file; do
11626 echo " $srcdir/config/$f"
11631 if test -n "$configured_native_system_header_dir"; then
11632 native_system_header_dir
=$configured_native_system_header_dir
11634 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11638 powerpc
*-*-darwin*)
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11640 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11641 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11644 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11647 #include <sys/cdefs.h>
11648 #include <sys/signal.h>
11649 #include <ucontext.h>
11650 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11653 if ac_fn_cxx_try_compile
"$LINENO"; then :
11654 gcc_cv_mcontext_underscores
=no
11656 gcc_cv_mcontext_underscores
=yes
11658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11661 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11662 if test $gcc_cv_mcontext_underscores = yes; then
11664 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11674 # Check if a valid thread package
11675 case ${enable_threads} in
11678 target_thread_file
='single'
11682 target_thread_file
='single'
11684 aix | dce | lynx | mipssde | posix | rtems | \
11685 single | tpf | vxworks | win32
)
11686 target_thread_file
=${enable_threads}
11689 echo "${enable_threads} is an unknown thread package" 1>&2
11694 if test x
${thread_file} = x
; then
11695 # No thread file set by target-specific clauses in config.gcc,
11696 # so use file chosen by default logic above
11697 thread_file
=${target_thread_file}
11705 if test x
$enable___cxa_atexit = xyes || \
11706 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11707 if test x
$host = x
$target; then
11709 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11710 # keyed to flag_use_cxa_atexit
11718 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11719 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11722 echo "__cxa_atexit can't be enabled on this target"
11728 # We can't check for __cxa_atexit when building a cross, so assume
11732 if test x
$use_cxa_atexit = xyes
; then
11734 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11739 # Look for a file containing extra machine modes.
11740 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11741 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11744 cat >>confdefs.h
<<_ACEOF
11745 #define EXTRA_MODES_FILE "config/$extra_modes"
11750 # Convert extra_options into a form suitable for Makefile use.
11753 for f
in $extra_options; do
11754 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11755 all_opt_files
="$all_opt_files $srcdir/config/$f"
11759 # auto-host.h is the file containing items generated by autoconf and is
11760 # the first file included by config.h.
11761 # If host=build, it is correct to have bconfig include auto-host.h
11762 # as well. If host!=build, we are in error and need to do more
11763 # work to find out the build config parameters.
11764 if test x
$host = x
$build
11766 build_auto
=auto-host.h
11768 # We create a subdir, then run autoconf in the subdir.
11769 # To prevent recursion we set host and build for the new
11770 # invocation of configure to the build for this invocation
11777 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11778 *) realsrcdir
=..
/${srcdir};;
11780 # Clearing GMPINC is necessary to prevent host headers being
11781 # used by the build compiler. Defining GENERATOR_FILE stops
11782 # system.h from including gmp.h.
11783 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11784 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11785 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11786 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11787 ${realsrcdir}/configure \
11788 --enable-languages=${enable_languages-all} \
11789 --target=$target_alias --host=$build_alias --build=$build_alias
11791 # We just finished tests for the build machine, so rename
11792 # the file auto-build.h in the gcc directory.
11793 mv auto-host.h ..
/auto-build.h
11796 build_auto
=auto-build.h
11800 tm_file
="${tm_file} defaults.h"
11801 tm_p_file
="${tm_p_file} tm-preds.h"
11802 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11803 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11804 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11805 # put this back in temporarily.
11806 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11812 # Compile in configure arguments.
11813 if test -f configargs.h
; then
11814 # Being re-configured.
11815 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11816 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11818 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11821 # Double all backslashes and backslash all quotes to turn
11822 # gcc_config_arguments into a C string.
11823 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11824 $gcc_config_arguments
11826 gcc_config_arguments_str
=`cat conftest.out`
11829 cat > configargs.h
<<EOF
11830 /* Generated automatically. */
11831 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11832 static const char thread_model[] = "$thread_file";
11834 static const struct {
11835 const char *name, *value;
11836 } configure_default_options[] = $configure_default_options;
11839 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11840 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11841 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11842 if test -f $srcdir/REVISION
; then
11843 gcc_REVISION
=`cat $srcdir/REVISION`
11847 cat > plugin-version.h
<<EOF
11848 #include "configargs.h"
11850 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11851 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11852 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11853 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11855 static char basever[] = "$gcc_BASEVER";
11856 static char datestamp[] = "$gcc_DATESTAMP";
11857 static char devphase[] = "$gcc_DEVPHASE";
11858 static char revision[] = "$gcc_REVISION";
11860 /* FIXME plugins: We should make the version information more precise.
11861 One way to do is to add a checksum. */
11863 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11864 devphase, revision,
11865 configuration_arguments};
11868 # Determine what GCC version number to use in filesystem paths.
11870 get_gcc_base_ver
="cat"
11872 # Check whether --with-gcc-major-version-only was given.
11873 if test "${with_gcc_major_version_only+set}" = set; then :
11874 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
11875 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11883 # Internationalization
11884 # If we haven't got the data from the intl directory,
11885 # assume NLS is disabled.
11894 if test -f ..
/intl
/config.intl
; then
11895 . ..
/intl
/config.intl
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11898 $as_echo_n "checking whether NLS is requested... " >&6; }
11899 if test x
"$USE_NLS" != xyes
; then
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901 $as_echo "no" >&6; }
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904 $as_echo "yes" >&6; }
11906 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11910 $as_echo_n "checking for catalogs to be installed... " >&6; }
11911 # Look for .po and .gmo files in the source directory.
11914 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11915 # If there aren't any .gmo files the shell will give us the
11916 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11918 case "$cat" in *\
**)
11921 # The quadruple backslash is collapsed to a double backslash
11922 # by the backticks, then collapsed again by the double quotes,
11923 # leaving us with one backslash in the sed expression (right
11924 # before the dot that mustn't act as a wildcard).
11925 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11926 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11927 # The user is allowed to set LINGUAS to a list of languages to
11928 # install catalogs for. If it's empty that means "all of them."
11929 if test "x$LINGUAS" = x
; then
11930 CATALOGS
="$CATALOGS $cat"
11931 XLINGUAS
="$XLINGUAS $lang"
11933 case "$LINGUAS" in *$lang*)
11934 CATALOGS
="$CATALOGS $cat"
11935 XLINGUAS
="$XLINGUAS $lang"
11940 LINGUAS
="$XLINGUAS"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11942 $as_echo "$LINGUAS" >&6; }
11955 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11956 # -liconv on the link line twice.
11957 case "$LIBINTL" in *$LIBICONV*)
11961 # Check whether --enable-secureplt was given.
11962 if test "${enable_secureplt+set}" = set; then :
11963 enableval
=$enable_secureplt;
11967 # Check whether --enable-leading-mingw64-underscores was given.
11968 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11969 enableval
=$enable_leading_mingw64_underscores;
11972 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11974 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11978 # Check whether --enable-cld was given.
11979 if test "${enable_cld+set}" = set; then :
11980 enableval
=$enable_cld;
11986 # Check whether --enable-frame-pointer was given.
11987 if test "${enable_frame_pointer+set}" = set; then :
11988 enableval
=$enable_frame_pointer;
11992 linux
* | darwin
[8912]*)
11993 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11995 enable_frame_pointer
=no
11998 enable_frame_pointer
=yes
12005 # Windows32 Registry support for specifying GCC installation paths.
12006 # Check whether --enable-win32-registry was given.
12007 if test "${enable_win32_registry+set}" = set; then :
12008 enableval
=$enable_win32_registry;
12013 win32 | pe | cygwin
* | mingw32
*)
12014 if test "x$enable_win32_registry" != xno
; then
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12016 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12017 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12018 $as_echo_n "(cached) " >&6
12020 ac_func_search_save_LIBS
=$LIBS
12021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12022 /* end confdefs.h. */
12024 /* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12030 char RegOpenKeyExA ();
12034 return RegOpenKeyExA ();
12039 for ac_lib
in '' advapi32
; do
12040 if test -z "$ac_lib"; then
12041 ac_res
="none required"
12044 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12046 if ac_fn_cxx_try_link
"$LINENO"; then :
12047 ac_cv_search_RegOpenKeyExA
=$ac_res
12049 rm -f core conftest.err conftest.
$ac_objext \
12051 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12055 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12058 ac_cv_search_RegOpenKeyExA
=no
12060 rm conftest.
$ac_ext
12061 LIBS
=$ac_func_search_save_LIBS
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12064 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12065 ac_res
=$ac_cv_search_RegOpenKeyExA
12066 if test "$ac_res" != no
; then :
12067 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12070 enable_win32_registry
=no
12075 if test "x$enable_win32_registry" != xno
; then
12077 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12080 if test "x$enable_win32_registry" != xyes \
12081 && test "x$enable_win32_registry" != x
; then
12083 cat >>confdefs.h
<<_ACEOF
12084 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12092 # Get an absolute path to the GCC top-level source directory
12093 holddir
=`${PWDCMD-pwd}`
12095 topdir
=`${PWDCMD-pwd}`
12098 # Conditionalize the makefile for this host machine.
12100 for f
in ${host_xmake_file}
12102 if test -f ${srcdir}/config
/$f
12104 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12108 # Conditionalize the makefile for this target machine.
12110 for f
in ${tmake_file}
12112 if test -f ${srcdir}/config
/$f
12114 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12117 tmake_file
="${tmake_file_}"
12119 out_object_file
=`basename $out_file .c`.o
12120 common_out_object_file
=`basename $common_out_file .c`.o
12122 tm_file_list
="options.h"
12123 tm_include_list
="options.h insn-constants.h"
12124 for f
in $tm_file; do
12127 f
=`echo $f | sed 's/^..//'`
12128 tm_file_list
="${tm_file_list} $f"
12129 tm_include_list
="${tm_include_list} $f"
12132 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12133 tm_include_list
="${tm_include_list} $f"
12136 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12137 tm_include_list
="${tm_include_list} config/$f"
12144 for f
in $tm_p_file; do
12147 tm_p_file_list
="${tm_p_file_list} $f"
12148 tm_p_include_list
="${tm_p_include_list} $f"
12151 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12152 tm_p_include_list
="${tm_p_include_list} config/$f"
12158 for f
in $xm_file; do
12161 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12162 xm_include_list
="${xm_include_list} $f"
12165 xm_file_list
="${xm_file_list} $f"
12166 xm_include_list
="${xm_include_list} $f"
12169 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12170 xm_include_list
="${xm_include_list} config/$f"
12176 host_xm_include_list
=
12177 for f
in $host_xm_file; do
12180 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12181 host_xm_include_list
="${host_xm_include_list} $f"
12184 host_xm_file_list
="${host_xm_file_list} $f"
12185 host_xm_include_list
="${host_xm_include_list} $f"
12188 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12189 host_xm_include_list
="${host_xm_include_list} config/$f"
12194 build_xm_file_list
=
12195 for f
in $build_xm_file; do
12198 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12199 build_xm_include_list
="${build_xm_include_list} $f"
12201 auto-build.h | auto-host.h
)
12202 build_xm_file_list
="${build_xm_file_list} $f"
12203 build_xm_include_list
="${build_xm_include_list} $f"
12206 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12207 build_xm_include_list
="${build_xm_include_list} config/$f"
12212 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12213 # cross-compiler which does not use the native headers and libraries.
12214 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12217 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12218 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12220 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12221 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12222 if test "x$with_build_sysroot" != x
; then
12223 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12225 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12228 if test x
$host != x
$target
12230 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12232 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12233 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12234 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12237 if test "x$with_build_sysroot" != "x"; then
12238 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12239 elif test "x$with_sysroot" = x
; then
12240 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12241 elif test "x$with_sysroot" = xyes
; then
12242 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12244 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12247 target_header_dir
=${native_system_header_dir}
12250 # If this is a cross-compiler that does not
12251 # have its own set of headers then define
12254 # If this is using newlib, without having the headers available now,
12255 # then define inhibit_libc in LIBGCC2_CFLAGS.
12256 # This prevents libgcc2 from containing any code which requires libc
12258 : ${inhibit_libc=false}
12259 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12260 test x
$with_newlib = xyes
; } &&
12261 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12266 # When building gcc with a cross-compiler, we need to adjust things so
12267 # that the generator programs are still built with the native compiler.
12268 # Also, we cannot run fixincludes.
12270 # These are the normal (build=host) settings:
12271 CC_FOR_BUILD
='$(CC)'
12272 CXX_FOR_BUILD
='$(CXX)'
12273 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12274 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12275 BUILD_LDFLAGS
='$(LDFLAGS)'
12276 STMP_FIXINC
=stmp-fixinc
12278 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12279 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12281 # And these apply if build != host, or we are generating coverage data
12282 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12284 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12285 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12286 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12288 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12289 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12290 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12291 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12296 # Expand extra_headers to include complete path.
12297 # This substitutes for lots of t-* files.
12298 extra_headers_list
=
12299 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12300 for file in ${extra_headers} ; do
12301 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12304 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12305 if test x
"$use_gcc_tgmath" = xyes
12306 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12309 # Define collect2 in Makefile.
12310 case $host_can_use_collect2 in
12312 *) collect2
='collect2$(exeext)' ;;
12316 # Add a definition of USE_COLLECT2 if system wants one.
12317 case $use_collect2 in
12318 no
) use_collect2
= ;;
12321 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12322 xm_defines
="${xm_defines} USE_COLLECT2"
12323 case $host_can_use_collect2 in
12325 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12332 cat >>confdefs.h
<<_ACEOF
12333 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12337 # ---------------------------
12338 # Assembler & linker features
12339 # ---------------------------
12341 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12342 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12343 # However when ld-new is first executed from the build tree, libtool will
12344 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12345 # to the build tree. While doing this we need to use the previous-stage
12346 # linker, or we have an infinite loop. The presence of a shell script as
12347 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12348 # the gcc/collect-ld script. So we need to know how libtool works, or
12349 # exec-tool will fail.
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12355 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12360 macro_version
='2.2.7a'
12361 macro_revision
='1.3134'
12375 ltmain
="$ac_aux_dir/ltmain.sh"
12377 # Backslashify metacharacters that are still active within
12378 # double-quoted strings.
12379 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12381 # Same as above, but do not quote variable references.
12382 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12384 # Sed substitution to delay expansion of an escaped shell variable in a
12385 # double_quote_subst'ed string.
12386 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12388 # Sed substitution to delay expansion of an escaped single quote.
12389 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12391 # Sed substitution to avoid accidental globbing in evaled expressions
12392 no_glob_subst
='s/\*/\\\*/g'
12394 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12395 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12396 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12399 $as_echo_n "checking how to print strings... " >&6; }
12400 # Test print first, because it will be a builtin if present.
12401 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12402 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12404 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12407 # Use this function as a fallback that always works.
12408 func_fallback_echo ()
12410 eval 'cat <<_LTECHO_EOF
12414 ECHO='func_fallback_echo
'
12417 # func_echo_all arg...
12418 # Invoke $ECHO with all args, space-separated.
12425 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12426 $as_echo "printf" >&6; } ;;
12427 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12428 $as_echo "print -r" >&6; } ;;
12429 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12430 $as_echo "cat" >&6; } ;;
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12447 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12448 if test "${ac_cv_path_SED+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12451 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12452 for ac_i in 1 2 3 4 5 6 7; do
12453 ac_script="$ac_script$as_nl$ac_script"
12455 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12456 { ac_script=; unset ac_script;}
12457 if test -z "$SED"; then
12458 ac_path_SED_found=false
12459 # Loop through the user's path and
test for each of PROGNAME-LIST
12460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12461 for as_dir
in $PATH
12464 test -z "$as_dir" && as_dir
=.
12465 for ac_prog
in sed gsed
; do
12466 for ac_exec_ext
in '' $ac_executable_extensions; do
12467 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12468 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12469 # Check for GNU ac_path_SED and select it if it is found.
12470 # Check for GNU $ac_path_SED
12471 case `"$ac_path_SED" --version 2>&1` in
12473 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12476 $as_echo_n 0123456789 >"conftest.in"
12479 cat "conftest.in" "conftest.in" >"conftest.tmp"
12480 mv "conftest.tmp" "conftest.in"
12481 cp "conftest.in" "conftest.nl"
12482 $as_echo '' >> "conftest.nl"
12483 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12484 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12485 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12486 if test $ac_count -gt ${ac_path_SED_max-0}; then
12487 # Best one so far, save it but keep looking for a better one
12488 ac_cv_path_SED
="$ac_path_SED"
12489 ac_path_SED_max
=$ac_count
12491 # 10*(2^10) chars as input seems more than enough
12492 test $ac_count -gt 10 && break
12494 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12497 $ac_path_SED_found && break 3
12502 if test -z "$ac_cv_path_SED"; then
12503 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12506 ac_cv_path_SED
=$SED
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12511 $as_echo "$ac_cv_path_SED" >&6; }
12512 SED
="$ac_cv_path_SED"
12515 test -z "$SED" && SED
=sed
12516 Xsed
="$SED -e 1s/^X//"
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12529 $as_echo_n "checking for fgrep... " >&6; }
12530 if test "${ac_cv_path_FGREP+set}" = set; then :
12531 $as_echo_n "(cached) " >&6
12533 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12534 then ac_cv_path_FGREP
="$GREP -F"
12536 if test -z "$FGREP"; then
12537 ac_path_FGREP_found
=false
12538 # Loop through the user's path and test for each of PROGNAME-LIST
12539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12540 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12543 test -z "$as_dir" && as_dir
=.
12544 for ac_prog
in fgrep
; do
12545 for ac_exec_ext
in '' $ac_executable_extensions; do
12546 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12547 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12548 # Check for GNU ac_path_FGREP and select it if it is found.
12549 # Check for GNU $ac_path_FGREP
12550 case `"$ac_path_FGREP" --version 2>&1` in
12552 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12555 $as_echo_n 0123456789 >"conftest.in"
12558 cat "conftest.in" "conftest.in" >"conftest.tmp"
12559 mv "conftest.tmp" "conftest.in"
12560 cp "conftest.in" "conftest.nl"
12561 $as_echo 'FGREP' >> "conftest.nl"
12562 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12563 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12564 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12565 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12566 # Best one so far, save it but keep looking for a better one
12567 ac_cv_path_FGREP
="$ac_path_FGREP"
12568 ac_path_FGREP_max
=$ac_count
12570 # 10*(2^10) chars as input seems more than enough
12571 test $ac_count -gt 10 && break
12573 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12576 $ac_path_FGREP_found && break 3
12581 if test -z "$ac_cv_path_FGREP"; then
12582 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12585 ac_cv_path_FGREP
=$FGREP
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12591 $as_echo "$ac_cv_path_FGREP" >&6; }
12592 FGREP
="$ac_cv_path_FGREP"
12595 test -z "$GREP" && GREP
=grep
12615 # Check whether --with-gnu-ld was given.
12616 if test "${with_gnu_ld+set}" = set; then :
12617 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12623 if test "$GCC" = yes; then
12624 # Check if gcc -print-prog-name=ld gives a path.
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12626 $as_echo_n "checking for ld used by $CC... " >&6; }
12629 # gcc leaves a trailing carriage return which upsets mingw
12630 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12632 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12635 # Accept absolute paths.
12637 re_direlt
='/[^/][^/]*/\.\./'
12638 # Canonicalize the pathname of ld
12639 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12640 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12641 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12643 test -z "$LD" && LD
="$ac_prog"
12646 # If it fails, then pretend we aren't using GCC.
12650 # If it is relative, then search for the first ld in PATH.
12651 with_gnu_ld
=unknown
12654 elif test "$with_gnu_ld" = yes; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12656 $as_echo_n "checking for GNU ld... " >&6; }
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12659 $as_echo_n "checking for non-GNU ld... " >&6; }
12661 if test "${lt_cv_path_LD+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12664 if test -z "$LD"; then
12665 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12666 for ac_dir
in $PATH; do
12668 test -z "$ac_dir" && ac_dir
=.
12669 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12670 lt_cv_path_LD
="$ac_dir/$ac_prog"
12671 # Check to see if the program is GNU ld. I'd rather use --version,
12672 # but apparently some variants of GNU ld only accept -v.
12673 # Break only if it was the GNU/non-GNU ld that we prefer.
12674 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12675 *GNU
* |
*'with BFD'*)
12676 test "$with_gnu_ld" != no
&& break
12679 test "$with_gnu_ld" != yes && break
12686 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12690 LD
="$lt_cv_path_LD"
12691 if test -n "$LD"; then
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12693 $as_echo "$LD" >&6; }
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12698 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12700 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12701 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12702 $as_echo_n "(cached) " >&6
12704 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12705 case `$LD -v 2>&1 </dev/null` in
12706 *GNU
* |
*'with BFD'*)
12707 lt_cv_prog_gnu_ld
=yes
12710 lt_cv_prog_gnu_ld
=no
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12715 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12716 with_gnu_ld
=$lt_cv_prog_gnu_ld
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12727 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12728 if test "${lt_cv_path_NM+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
12731 if test -n "$NM"; then
12732 # Let the user override the test.
12733 lt_cv_path_NM
="$NM"
12735 lt_nm_to_check
="${ac_tool_prefix}nm"
12736 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12737 lt_nm_to_check
="$lt_nm_to_check nm"
12739 for lt_tmp_nm
in $lt_nm_to_check; do
12740 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12741 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12743 test -z "$ac_dir" && ac_dir
=.
12744 tmp_nm
="$ac_dir/$lt_tmp_nm"
12745 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12746 # Check to see if the nm accepts a BSD-compat flag.
12747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12748 # nm: unknown option "B" ignored
12749 # Tru64's nm complains that /dev/null is an invalid object file
12750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12751 */dev
/null
* |
*'Invalid file or object type'*)
12752 lt_cv_path_NM
="$tmp_nm -B"
12756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12758 lt_cv_path_NM
="$tmp_nm -p"
12762 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12763 continue # so that we can try to find one that supports BSD flags
12772 : ${lt_cv_path_NM=no}
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12776 $as_echo "$lt_cv_path_NM" >&6; }
12777 if test "$lt_cv_path_NM" != "no"; then
12778 NM
="$lt_cv_path_NM"
12780 # Didn't find any BSD compatible name lister, look for dumpbin.
12781 if test -n "$DUMPBIN"; then :
12782 # Let the user override the test.
12784 if test -n "$ac_tool_prefix"; then
12785 for ac_prog
in dumpbin
"link -dump"
12787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12788 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12790 $as_echo_n "checking for $ac_word... " >&6; }
12791 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12792 $as_echo_n "(cached) " >&6
12794 if test -n "$DUMPBIN"; then
12795 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12797 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12798 for as_dir
in $PATH
12801 test -z "$as_dir" && as_dir
=.
12802 for ac_exec_ext
in '' $ac_executable_extensions; do
12803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12804 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12814 DUMPBIN
=$ac_cv_prog_DUMPBIN
12815 if test -n "$DUMPBIN"; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12817 $as_echo "$DUMPBIN" >&6; }
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12824 test -n "$DUMPBIN" && break
12827 if test -z "$DUMPBIN"; then
12828 ac_ct_DUMPBIN
=$DUMPBIN
12829 for ac_prog
in dumpbin
"link -dump"
12831 # Extract the first word of "$ac_prog", so it can be a program name with args.
12832 set dummy
$ac_prog; ac_word
=$2
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834 $as_echo_n "checking for $ac_word... " >&6; }
12835 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12838 if test -n "$ac_ct_DUMPBIN"; then
12839 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12842 for as_dir
in $PATH
12845 test -z "$as_dir" && as_dir
=.
12846 for ac_exec_ext
in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12859 if test -n "$ac_ct_DUMPBIN"; then
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12861 $as_echo "$ac_ct_DUMPBIN" >&6; }
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864 $as_echo "no" >&6; }
12868 test -n "$ac_ct_DUMPBIN" && break
12871 if test "x$ac_ct_DUMPBIN" = x
; then
12874 case $cross_compiling:$ac_tool_warned in
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12878 ac_tool_warned
=yes ;;
12880 DUMPBIN
=$ac_ct_DUMPBIN
12884 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12886 DUMPBIN
="$DUMPBIN -symbols"
12894 if test "$DUMPBIN" != ":"; then
12898 test -z "$NM" && NM
=nm
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12906 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12907 if test "${lt_cv_nm_interface+set}" = set; then :
12908 $as_echo_n "(cached) " >&6
12910 lt_cv_nm_interface
="BSD nm"
12911 echo "int some_variable = 0;" > conftest.
$ac_ext
12912 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12913 (eval "$ac_compile" 2>conftest.err
)
12914 cat conftest.err
>&5
12915 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12916 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12917 cat conftest.err
>&5
12918 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12919 cat conftest.out
>&5
12920 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12921 lt_cv_nm_interface
="MS dumpbin"
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12926 $as_echo "$lt_cv_nm_interface" >&6; }
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12929 $as_echo_n "checking whether ln -s works... " >&6; }
12931 if test "$LN_S" = "ln -s"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12933 $as_echo "yes" >&6; }
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12936 $as_echo "no, using $LN_S" >&6; }
12939 # find the maximum length of command line arguments
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12941 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12942 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12950 # On DJGPP, this test can blow up pretty badly due to problems in libc
12951 # (any single argument exceeding 2000 bytes causes a buffer overrun
12952 # during glob expansion). Even if it were fixed, the result of this
12953 # check would be larger than it should be.
12954 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12958 # Under GNU Hurd, this test is not required because there is
12959 # no limit to the length of command line arguments.
12960 # Libtool will interpret -1 as no limit whatsoever
12961 lt_cv_sys_max_cmd_len
=-1;
12964 cygwin
* | mingw
* | cegcc
*)
12965 # On Win9x/ME, this test blows up -- it succeeds, but takes
12966 # about 5 minutes as the teststring grows exponentially.
12967 # Worse, since 9x/ME are not pre-emptively multitasking,
12968 # you end up with a "frozen" computer, even though with patience
12969 # the test eventually succeeds (with a max line length of 256k).
12970 # Instead, let's just punt: use the minimum linelength reported by
12971 # all of the supported platforms: 8192 (on NT/2K/XP).
12972 lt_cv_sys_max_cmd_len
=8192;
12976 # On MiNT this can take a long time and run out of memory.
12977 lt_cv_sys_max_cmd_len
=8192;
12981 # On AmigaOS with pdksh, this test takes hours, literally.
12982 # So we just punt and use a minimum line length of 8192.
12983 lt_cv_sys_max_cmd_len
=8192;
12986 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12987 # This has been around since 386BSD, at least. Likely further.
12988 if test -x /sbin
/sysctl
; then
12989 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12990 elif test -x /usr
/sbin
/sysctl
; then
12991 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12993 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12995 # And add a safety zone
12996 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12997 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13001 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13002 lt_cv_sys_max_cmd_len
=196608
13006 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13007 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13008 # nice to cause kernel panics so lets avoid the loop below.
13009 # First set a reasonable default.
13010 lt_cv_sys_max_cmd_len
=16384
13012 if test -x /sbin
/sysconfig
; then
13013 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13014 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13019 lt_cv_sys_max_cmd_len
=102400
13021 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13022 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13023 if test -n "$kargmax"; then
13024 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13026 lt_cv_sys_max_cmd_len
=32768
13030 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13031 if test -n "$lt_cv_sys_max_cmd_len"; then
13032 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13033 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13035 # Make teststring a little bigger before we do anything with it.
13036 # a 1K string should be a reasonable start.
13037 for i
in 1 2 3 4 5 6 7 8 ; do
13038 teststring
=$teststring$teststring
13040 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13041 # If test is not a shell built-in, we'll probably end up computing a
13042 # maximum length that is only half of the actual maximum length, but
13044 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13045 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13046 test $i != 17 # 1/2 MB should be enough
13049 teststring
=$teststring$teststring
13051 # Only check the string length outside the loop.
13052 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13054 # Add a significant safety factor because C++ compilers can tack on
13055 # massive amounts of additional arguments before passing them to the
13056 # linker. It appears as though 1/2 is a usable value.
13057 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13064 if test -n $lt_cv_sys_max_cmd_len ; then
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13066 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13069 $as_echo "none" >&6; }
13071 max_cmd_len
=$lt_cv_sys_max_cmd_len
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13083 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13084 # Try some XSI features
13086 ( _lt_dummy
="a/b/c"
13087 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13089 && eval 'test $(( 1 + 1 )) -eq 2 \
13090 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13093 $as_echo "$xsi_shell" >&6; }
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13097 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13099 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13101 && lt_shell_append=yes
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13103 $as_echo "$lt_shell_append" >&6; }
13106 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13116 # test EBCDIC or ASCII
13117 case `echo X|tr X '\101'` in
13118 A) # ASCII based system
13119 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13120 lt_SP2NL='tr \040 \012'
13121 lt_NL2SP='tr \015\012 \040\040'
13123 *) # EBCDIC based system
13124 lt_SP2NL='tr \100 \n'
13125 lt_NL2SP='tr \r\n \100\100'
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13138 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13139 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13140 $as_echo_n "(cached
) " >&6
13142 lt_cv_ld_reload_flag='-r'
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13145 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13146 reload_flag=$lt_cv_ld_reload_flag
13147 case $reload_flag in
13149 *) reload_flag=" $reload_flag" ;;
13151 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13154 if test "$GCC" = yes; then
13155 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13157 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13170 if test -n "$ac_tool_prefix"; then
13171 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13172 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13174 $as_echo_n "checking
for $ac_word...
" >&6; }
13175 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13176 $as_echo_n "(cached
) " >&6
13178 if test -n "$OBJDUMP"; then
13179 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13182 for as_dir in $PATH
13185 test -z "$as_dir" && as_dir=.
13186 for ac_exec_ext in '' $ac_executable_extensions; do
13187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13188 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13189 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13198 OBJDUMP=$ac_cv_prog_OBJDUMP
13199 if test -n "$OBJDUMP"; then
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13201 $as_echo "$OBJDUMP" >&6; }
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13204 $as_echo "no
" >&6; }
13209 if test -z "$ac_cv_prog_OBJDUMP"; then
13210 ac_ct_OBJDUMP=$OBJDUMP
13211 # Extract the first word of "objdump
", so it can be a program name with args.
13212 set dummy objdump; ac_word=$2
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13214 $as_echo_n "checking
for $ac_word...
" >&6; }
13215 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13216 $as_echo_n "(cached
) " >&6
13218 if test -n "$ac_ct_OBJDUMP"; then
13219 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13225 test -z "$as_dir" && as_dir=.
13226 for ac_exec_ext in '' $ac_executable_extensions; do
13227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13228 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13229 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13238 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13239 if test -n "$ac_ct_OBJDUMP"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13241 $as_echo "$ac_ct_OBJDUMP" >&6; }
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13244 $as_echo "no
" >&6; }
13247 if test "x
$ac_ct_OBJDUMP" = x; then
13250 case $cross_compiling:$ac_tool_warned in
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13253 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13254 ac_tool_warned=yes ;;
13256 OBJDUMP=$ac_ct_OBJDUMP
13259 OBJDUMP="$ac_cv_prog_OBJDUMP"
13262 test -z "$OBJDUMP" && OBJDUMP=objdump
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13273 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13274 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13275 $as_echo_n "(cached
) " >&6
13277 lt_cv_file_magic_cmd='$MAGIC_CMD'
13278 lt_cv_file_magic_test_file=
13279 lt_cv_deplibs_check_method='unknown'
13280 # Need to set the preceding variable on all platforms that support
13281 # interlibrary dependencies.
13282 # 'none' -- dependencies not supported.
13283 # `unknown' -- same as none, but documents that we really don't know.
13284 # 'pass_all' -- all dependencies passed with no checks.
13285 # 'test_compile' -- check by making test program.
13286 # 'file_magic [[regex]]' -- check by looking for files in library path
13287 # which responds to the $file_magic_cmd with a given extended regex.
13288 # If you have `file' or equivalent on your system and you're not sure
13289 # whether `pass_all' will *always* work, you probably want this one.
13293 lt_cv_deplibs_check_method=pass_all
13297 lt_cv_deplibs_check_method=pass_all
13301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13302 lt_cv_file_magic_cmd='/usr/bin/file -L'
13303 lt_cv_file_magic_test_file=/shlib/libc.so
13307 # func_win32_libid is a shell function defined in ltmain.sh
13308 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13309 lt_cv_file_magic_cmd='func_win32_libid'
13313 # Base MSYS/MinGW do not provide the 'file' command needed by
13314 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13315 # unless we find 'file', for example because we are cross-compiling.
13316 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13317 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13318 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13319 lt_cv_file_magic_cmd='func_win32_libid'
13321 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13322 lt_cv_file_magic_cmd='$OBJDUMP -f'
13327 # use the weaker test based on 'objdump'. See mingw*.
13328 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13329 lt_cv_file_magic_cmd='$OBJDUMP -f'
13332 darwin* | rhapsody*)
13333 lt_cv_deplibs_check_method=pass_all
13336 freebsd* | dragonfly*)
13337 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13340 # Not sure whether the presence of OpenBSD here was a mistake.
13341 # Let's accept both of them until this is cleared up.
13342 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13343 lt_cv_file_magic_cmd=/usr/bin/file
13344 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13348 lt_cv_deplibs_check_method=pass_all
13353 lt_cv_deplibs_check_method=pass_all
13357 lt_cv_deplibs_check_method=pass_all
13360 hpux10.20* | hpux11*)
13361 lt_cv_file_magic_cmd=/usr/bin/file
13364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13365 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13368 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]'
13369 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13373 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13379 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13383 irix5* | irix6* | nonstopux*)
13385 *-32|*"-32 ") libmagic=32-bit;;
13386 *-n32|*"-n32 ") libmagic=N32;;
13387 *-64|*"-64 ") libmagic=64-bit;;
13388 *) libmagic=never-match;;
13390 lt_cv_deplibs_check_method=pass_all
13393 # This must be Linux ELF.
13394 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13395 lt_cv_deplibs_check_method=pass_all
13399 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13408 lt_cv_file_magic_cmd=/usr/bin/file
13409 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13413 lt_cv_deplibs_check_method=pass_all
13417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13424 osf3* | osf4* | osf5*)
13425 lt_cv_deplibs_check_method=pass_all
13429 lt_cv_deplibs_check_method=pass_all
13433 lt_cv_deplibs_check_method=pass_all
13436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13437 lt_cv_deplibs_check_method=pass_all
13441 case $host_vendor in
13443 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]'
13444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13447 lt_cv_deplibs_check_method=pass_all
13450 lt_cv_file_magic_cmd='/bin/file'
13451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13454 lt_cv_file_magic_cmd='/bin/file'
13455 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13456 lt_cv_file_magic_test_file=/lib/libc.so
13459 lt_cv_deplibs_check_method=pass_all
13462 lt_cv_deplibs_check_method=pass_all
13468 lt_cv_deplibs_check_method=pass_all
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13474 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13475 file_magic_cmd=$lt_cv_file_magic_cmd
13476 deplibs_check_method=$lt_cv_deplibs_check_method
13477 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13490 if test -n "$ac_tool_prefix"; then
13491 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13492 set dummy ${ac_tool_prefix}ar; ac_word=$2
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13494 $as_echo_n "checking
for $ac_word...
" >&6; }
13495 if test "${ac_cv_prog_AR+set}" = set; then :
13496 $as_echo_n "(cached
) " >&6
13498 if test -n "$AR"; then
13499 ac_cv_prog_AR="$AR" # Let the user override the test.
13501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13502 for as_dir in $PATH
13505 test -z "$as_dir" && as_dir=.
13506 for ac_exec_ext in '' $ac_executable_extensions; do
13507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13508 ac_cv_prog_AR="${ac_tool_prefix}ar"
13509 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13519 if test -n "$AR"; then
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13521 $as_echo "$AR" >&6; }
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13524 $as_echo "no
" >&6; }
13529 if test -z "$ac_cv_prog_AR"; then
13531 # Extract the first word of "ar", so it can be a program name with args.
13532 set dummy ar; ac_word=$2
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13534 $as_echo_n "checking
for $ac_word...
" >&6; }
13535 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13536 $as_echo_n "(cached
) " >&6
13538 if test -n "$ac_ct_AR"; then
13539 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13542 for as_dir in $PATH
13545 test -z "$as_dir" && as_dir=.
13546 for ac_exec_ext in '' $ac_executable_extensions; do
13547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13548 ac_cv_prog_ac_ct_AR="ar"
13549 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13558 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13559 if test -n "$ac_ct_AR"; then
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13561 $as_echo "$ac_ct_AR" >&6; }
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13564 $as_echo "no
" >&6; }
13567 if test "x
$ac_ct_AR" = x; then
13570 case $cross_compiling:$ac_tool_warned in
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13573 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13574 ac_tool_warned=yes ;;
13579 AR="$ac_cv_prog_AR"
13582 test -z "$AR" && AR=ar
13583 test -z "$AR_FLAGS" && AR_FLAGS=cru
13595 if test -n "$ac_tool_prefix"; then
13596 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13597 set dummy ${ac_tool_prefix}strip; ac_word=$2
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13599 $as_echo_n "checking
for $ac_word...
" >&6; }
13600 if test "${ac_cv_prog_STRIP+set}" = set; then :
13601 $as_echo_n "(cached
) " >&6
13603 if test -n "$STRIP"; then
13604 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607 for as_dir in $PATH
13610 test -z "$as_dir" && as_dir=.
13611 for ac_exec_ext in '' $ac_executable_extensions; do
13612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13613 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13623 STRIP=$ac_cv_prog_STRIP
13624 if test -n "$STRIP"; then
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13626 $as_echo "$STRIP" >&6; }
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13629 $as_echo "no
" >&6; }
13634 if test -z "$ac_cv_prog_STRIP"; then
13636 # Extract the first word of "strip
", so it can be a program name with args.
13637 set dummy strip; ac_word=$2
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13639 $as_echo_n "checking
for $ac_word...
" >&6; }
13640 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13641 $as_echo_n "(cached
) " >&6
13643 if test -n "$ac_ct_STRIP"; then
13644 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13647 for as_dir in $PATH
13650 test -z "$as_dir" && as_dir=.
13651 for ac_exec_ext in '' $ac_executable_extensions; do
13652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13653 ac_cv_prog_ac_ct_STRIP="strip
"
13654 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13663 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13664 if test -n "$ac_ct_STRIP"; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13666 $as_echo "$ac_ct_STRIP" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13669 $as_echo "no
" >&6; }
13672 if test "x
$ac_ct_STRIP" = x; then
13675 case $cross_compiling:$ac_tool_warned in
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13678 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13679 ac_tool_warned=yes ;;
13684 STRIP="$ac_cv_prog_STRIP"
13687 test -z "$STRIP" && STRIP=:
13694 if test -n "$ac_tool_prefix"; then
13695 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13696 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13698 $as_echo_n "checking
for $ac_word...
" >&6; }
13699 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13700 $as_echo_n "(cached
) " >&6
13702 if test -n "$RANLIB"; then
13703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13713 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13722 RANLIB=$ac_cv_prog_RANLIB
13723 if test -n "$RANLIB"; then
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13725 $as_echo "$RANLIB" >&6; }
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13728 $as_echo "no
" >&6; }
13733 if test -z "$ac_cv_prog_RANLIB"; then
13734 ac_ct_RANLIB=$RANLIB
13735 # Extract the first word of "ranlib
", so it can be a program name with args.
13736 set dummy ranlib; ac_word=$2
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13738 $as_echo_n "checking
for $ac_word...
" >&6; }
13739 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13740 $as_echo_n "(cached
) " >&6
13742 if test -n "$ac_ct_RANLIB"; then
13743 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746 for as_dir in $PATH
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
13751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13752 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13753 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13763 if test -n "$ac_ct_RANLIB"; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13765 $as_echo "$ac_ct_RANLIB" >&6; }
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13768 $as_echo "no
" >&6; }
13771 if test "x
$ac_ct_RANLIB" = x; then
13774 case $cross_compiling:$ac_tool_warned in
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13777 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13778 ac_tool_warned=yes ;;
13780 RANLIB=$ac_ct_RANLIB
13783 RANLIB="$ac_cv_prog_RANLIB"
13786 test -z "$RANLIB" && RANLIB=:
13793 # Determine commands to create old-style static archives.
13794 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13795 old_postinstall_cmds='chmod 644 $oldlib'
13796 old_postuninstall_cmds=
13798 if test -n "$RANLIB"; then
13801 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13804 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13807 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13812 lock_old_archive_extraction=yes ;;
13814 lock_old_archive_extraction=no ;;
13855 # If no C compiler was specified, use CC.
13858 # If no C compiler flags were specified, use CFLAGS.
13859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13861 # Allow CC to be a program name with arguments.
13865 # Check for command to grab the raw symbol name followed by C symbol from nm.
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13867 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13868 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13869 $as_echo_n "(cached
) " >&6
13872 # These are sane defaults that work on at least a few old systems.
13873 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13875 # Character class describing NM global symbol codes.
13876 symcode='[BCDEGRST]'
13878 # Regexp to match symbols that can be accessed directly from C.
13879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13881 # Define system-specific variables.
13886 cygwin* | mingw* | pw32* | cegcc*)
13887 symcode='[ABCDGISTW]'
13890 if test "$host_cpu" = ia64; then
13891 symcode='[ABCDEGRST]'
13894 irix* | nonstopux*)
13895 symcode='[BCDEGRST]'
13898 symcode='[BCDEGQRST]'
13909 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13917 # If we're using GNU nm, then use its standard symbol codes.
13918 case `$NM -V 2>&1` in
13919 *GNU* | *'with BFD'*)
13920 symcode='[ABCDGIRSTW]' ;;
13923 # Transform an extracted symbol line into a proper C declaration.
13924 # Some systems (esp. on ia64) link data and code symbols differently,
13925 # so use this general approach.
13926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13928 # Transform an extracted symbol line into symbol name and symbol address
13929 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13930 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'"
13932 # Handle CRLF in mingw tool chain
13936 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13940 # Try without a prefix underscore, then with it.
13941 for ac_symprfx in "" "_
"; do
13943 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13944 symxfrm="\\1 $ac_symprfx\\2 \\2"
13946 # Write the raw and C identifiers.
13947 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13948 # Fake it for dumpbin and say T for any non-static function
13949 # and D for any global variable.
13950 # Also find C++ and __fastcall symbols from MSVC++,
13951 # which start with @ or ?.
13952 lt_cv_sys_global_symbol_pipe="$AWK '"\
13953 " {last_section=section; section=\$ 3};"\
13954 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13955 " \$ 0!~/External *\|/{next};"\
13956 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13957 " {if(hide[section]) next};"\
13958 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13959 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13960 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13961 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13962 " ' prfx
=^
$ac_symprfx"
13964 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13967 # Check to see that the pipe works correctly.
13971 cat > conftest.$ac_ext <<_LT_EOF
13976 void nm_test_func(void);
13977 void nm_test_func(void){}
13981 int main(){nm_test_var='a';nm_test_func();return(0);}
13984 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13985 (eval $ac_compile) 2>&5
13987 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13988 test $ac_status = 0; }; then
13989 # Now try to grab the symbols.
13991 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13992 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13994 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13995 test $ac_status = 0; } && test -s "$nlist"; then
13996 # Try sorting and uniquifying the output.
13997 if sort "$nlist" | uniq > "$nlist"T; then
13998 mv -f "$nlist"T "$nlist"
14003 # Make sure that we snagged all the symbols we need.
14004 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14005 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14006 cat <<_LT_EOF > conftest.$ac_ext
14012 # Now generate the symbol file.
14013 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14015 cat <<_LT_EOF >> conftest.$ac_ext
14017 /* The mapping between symbol names and symbols. */
14022 lt__PROGRAM__LTX_preloaded_symbols[] =
14024 { "@PROGRAM@
", (void *) 0 },
14026 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14027 cat <<\_LT_EOF >> conftest.$ac_ext
14031 /* This works around a problem in FreeBSD linker */
14032 #ifdef FREEBSD_WORKAROUND
14033 static const void *lt_preloaded_setup() {
14034 return lt__PROGRAM__LTX_preloaded_symbols;
14042 # Now try linking the two files.
14043 mv conftest.$ac_objext conftstm.$ac_objext
14044 lt_save_LIBS="$LIBS"
14045 lt_save_CFLAGS="$CFLAGS"
14046 LIBS="conftstm.
$ac_objext"
14047 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14048 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14049 (eval $ac_link) 2>&5
14051 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14052 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14055 LIBS="$lt_save_LIBS"
14056 CFLAGS="$lt_save_CFLAGS"
14058 echo "cannot
find nm_test_func
in $nlist" >&5
14061 echo "cannot
find nm_test_var
in $nlist" >&5
14064 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14067 echo "$progname: failed program was
:" >&5
14068 cat conftest.$ac_ext >&5
14070 rm -rf conftest* conftst*
14072 # Do not use the global_symbol_pipe unless it works.
14073 if test "$pipe_works" = yes; then
14076 lt_cv_sys_global_symbol_pipe=
14082 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14083 lt_cv_sys_global_symbol_to_cdecl=
14085 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14087 $as_echo "failed
" >&6; }
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14090 $as_echo "ok
" >&6; }
14114 # Check whether --enable-libtool-lock was given.
14115 if test "${enable_libtool_lock+set}" = set; then :
14116 enableval=$enable_libtool_lock;
14119 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14121 # Some flags need to be propagated to the compiler or linker for good
14125 # Find out which ABI we are using.
14126 echo 'int i;' > conftest.$ac_ext
14127 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14128 (eval $ac_compile) 2>&5
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14131 test $ac_status = 0; }; then
14132 case `/usr/bin/file conftest.$ac_objext` in
14134 HPUX_IA64_MODE="32"
14137 HPUX_IA64_MODE="64"
14144 # Find out which ABI we are using.
14145 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14146 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14147 (eval $ac_compile) 2>&5
14149 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14150 test $ac_status = 0; }; then
14151 if test "$lt_cv_prog_gnu_ld" = yes; then
14152 case `/usr/bin/file conftest.$ac_objext` in
14154 LD="${LD-ld} -melf32bsmip"
14157 LD="${LD-ld} -melf32bmipn32"
14160 LD="${LD-ld} -melf64bmip"
14164 case `/usr/bin/file conftest.$ac_objext` in
14180 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14181 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14182 # Find out which ABI we are using.
14183 echo 'int i;' > conftest.$ac_ext
14184 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14185 (eval $ac_compile) 2>&5
14187 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14188 test $ac_status = 0; }; then
14189 case `/usr/bin/file conftest.o` in
14192 x86_64-*kfreebsd*-gnu)
14193 LD="${LD-ld} -m elf_i386_fbsd
"
14196 case `/usr/bin/file conftest.o` in
14198 LD="${LD-ld} -m elf32_x86_64
"
14201 LD="${LD-ld} -m elf_i386
"
14205 powerpc64le-*linux*)
14206 LD="${LD-ld} -m elf32lppclinux
"
14209 LD="${LD-ld} -m elf32ppclinux
"
14212 LD="${LD-ld} -m elf_s390
"
14215 LD="${LD-ld} -m elf32_sparc
"
14221 x86_64-*kfreebsd*-gnu)
14222 LD="${LD-ld} -m elf_x86_64_fbsd
"
14225 LD="${LD-ld} -m elf_x86_64
"
14228 LD="${LD-ld} -m elf64lppc
"
14231 LD="${LD-ld} -m elf64ppc
"
14233 s390*-*linux*|s390*-*tpf*)
14234 LD="${LD-ld} -m elf64_s390
"
14237 LD="${LD-ld} -m elf64_sparc
"
14247 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14248 SAVE_CFLAGS="$CFLAGS"
14249 CFLAGS="$CFLAGS -belf"
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14251 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14252 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14253 $as_echo_n "(cached
) " >&6
14256 ac_cpp='$CPP $CPPFLAGS'
14257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14272 if ac_fn_c_try_link "$LINENO"; then :
14273 lt_cv_cc_needs_belf=yes
14275 lt_cv_cc_needs_belf=no
14277 rm -f core conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
14280 ac_cpp='$CPP $CPPFLAGS'
14281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14287 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14288 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14289 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14290 CFLAGS="$SAVE_CFLAGS"
14294 # Find out which ABI we are using.
14295 echo 'int i;' > conftest.$ac_ext
14296 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14297 (eval $ac_compile) 2>&5
14299 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14300 test $ac_status = 0; }; then
14301 case `/usr/bin/file conftest.o` in
14303 case $lt_cv_prog_gnu_ld in
14304 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14306 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14318 need_locks="$enable_libtool_lock"
14322 rhapsody* | darwin*)
14323 if test -n "$ac_tool_prefix"; then
14324 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14325 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14327 $as_echo_n "checking
for $ac_word...
" >&6; }
14328 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14329 $as_echo_n "(cached
) " >&6
14331 if test -n "$DSYMUTIL"; then
14332 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335 for as_dir in $PATH
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14342 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14351 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14352 if test -n "$DSYMUTIL"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14354 $as_echo "$DSYMUTIL" >&6; }
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14357 $as_echo "no
" >&6; }
14362 if test -z "$ac_cv_prog_DSYMUTIL"; then
14363 ac_ct_DSYMUTIL=$DSYMUTIL
14364 # Extract the first word of "dsymutil
", so it can be a program name with args.
14365 set dummy dsymutil; ac_word=$2
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14367 $as_echo_n "checking
for $ac_word...
" >&6; }
14368 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14369 $as_echo_n "(cached
) " >&6
14371 if test -n "$ac_ct_DSYMUTIL"; then
14372 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375 for as_dir in $PATH
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14382 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14391 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14392 if test -n "$ac_ct_DSYMUTIL"; then
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14394 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14397 $as_echo "no
" >&6; }
14400 if test "x
$ac_ct_DSYMUTIL" = x; then
14403 case $cross_compiling:$ac_tool_warned in
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14406 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14407 ac_tool_warned=yes ;;
14409 DSYMUTIL=$ac_ct_DSYMUTIL
14412 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14415 if test -n "$ac_tool_prefix"; then
14416 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14417 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14419 $as_echo_n "checking
for $ac_word...
" >&6; }
14420 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14421 $as_echo_n "(cached
) " >&6
14423 if test -n "$NMEDIT"; then
14424 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14430 test -z "$as_dir" && as_dir=.
14431 for ac_exec_ext in '' $ac_executable_extensions; do
14432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14433 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14443 NMEDIT=$ac_cv_prog_NMEDIT
14444 if test -n "$NMEDIT"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14446 $as_echo "$NMEDIT" >&6; }
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14449 $as_echo "no
" >&6; }
14454 if test -z "$ac_cv_prog_NMEDIT"; then
14455 ac_ct_NMEDIT=$NMEDIT
14456 # Extract the first word of "nmedit
", so it can be a program name with args.
14457 set dummy nmedit; ac_word=$2
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14459 $as_echo_n "checking
for $ac_word...
" >&6; }
14460 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14461 $as_echo_n "(cached
) " >&6
14463 if test -n "$ac_ct_NMEDIT"; then
14464 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14467 for as_dir in $PATH
14470 test -z "$as_dir" && as_dir=.
14471 for ac_exec_ext in '' $ac_executable_extensions; do
14472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14473 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14474 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14483 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14484 if test -n "$ac_ct_NMEDIT"; then
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14486 $as_echo "$ac_ct_NMEDIT" >&6; }
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14489 $as_echo "no
" >&6; }
14492 if test "x
$ac_ct_NMEDIT" = x; then
14495 case $cross_compiling:$ac_tool_warned in
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14498 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14499 ac_tool_warned=yes ;;
14501 NMEDIT=$ac_ct_NMEDIT
14504 NMEDIT="$ac_cv_prog_NMEDIT"
14507 if test -n "$ac_tool_prefix"; then
14508 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14509 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14511 $as_echo_n "checking
for $ac_word...
" >&6; }
14512 if test "${ac_cv_prog_LIPO+set}" = set; then :
14513 $as_echo_n "(cached
) " >&6
14515 if test -n "$LIPO"; then
14516 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519 for as_dir in $PATH
14522 test -z "$as_dir" && as_dir=.
14523 for ac_exec_ext in '' $ac_executable_extensions; do
14524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14525 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14526 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14535 LIPO=$ac_cv_prog_LIPO
14536 if test -n "$LIPO"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14538 $as_echo "$LIPO" >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14541 $as_echo "no
" >&6; }
14546 if test -z "$ac_cv_prog_LIPO"; then
14548 # Extract the first word of "lipo
", so it can be a program name with args.
14549 set dummy lipo; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14551 $as_echo_n "checking
for $ac_word...
" >&6; }
14552 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14553 $as_echo_n "(cached
) " >&6
14555 if test -n "$ac_ct_LIPO"; then
14556 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14565 ac_cv_prog_ac_ct_LIPO="lipo
"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14575 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14576 if test -n "$ac_ct_LIPO"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14578 $as_echo "$ac_ct_LIPO" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14581 $as_echo "no
" >&6; }
14584 if test "x
$ac_ct_LIPO" = x; then
14587 case $cross_compiling:$ac_tool_warned in
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14590 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14591 ac_tool_warned=yes ;;
14596 LIPO="$ac_cv_prog_LIPO"
14599 if test -n "$ac_tool_prefix"; then
14600 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14601 set dummy ${ac_tool_prefix}otool; ac_word=$2
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14603 $as_echo_n "checking
for $ac_word...
" >&6; }
14604 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14605 $as_echo_n "(cached
) " >&6
14607 if test -n "$OTOOL"; then
14608 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14611 for as_dir in $PATH
14614 test -z "$as_dir" && as_dir=.
14615 for ac_exec_ext in '' $ac_executable_extensions; do
14616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14617 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14618 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14627 OTOOL=$ac_cv_prog_OTOOL
14628 if test -n "$OTOOL"; then
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14630 $as_echo "$OTOOL" >&6; }
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14633 $as_echo "no
" >&6; }
14638 if test -z "$ac_cv_prog_OTOOL"; then
14640 # Extract the first word of "otool
", so it can be a program name with args.
14641 set dummy otool; ac_word=$2
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14643 $as_echo_n "checking
for $ac_word...
" >&6; }
14644 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14645 $as_echo_n "(cached
) " >&6
14647 if test -n "$ac_ct_OTOOL"; then
14648 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
14656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14657 ac_cv_prog_ac_ct_OTOOL="otool
"
14658 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14667 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14668 if test -n "$ac_ct_OTOOL"; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14670 $as_echo "$ac_ct_OTOOL" >&6; }
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14673 $as_echo "no
" >&6; }
14676 if test "x
$ac_ct_OTOOL" = x; then
14679 case $cross_compiling:$ac_tool_warned in
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14682 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14683 ac_tool_warned=yes ;;
14688 OTOOL="$ac_cv_prog_OTOOL"
14691 if test -n "$ac_tool_prefix"; then
14692 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14693 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14695 $as_echo_n "checking
for $ac_word...
" >&6; }
14696 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14697 $as_echo_n "(cached
) " >&6
14699 if test -n "$OTOOL64"; then
14700 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14703 for as_dir in $PATH
14706 test -z "$as_dir" && as_dir=.
14707 for ac_exec_ext in '' $ac_executable_extensions; do
14708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14709 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14710 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14719 OTOOL64=$ac_cv_prog_OTOOL64
14720 if test -n "$OTOOL64"; then
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14722 $as_echo "$OTOOL64" >&6; }
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14725 $as_echo "no
" >&6; }
14730 if test -z "$ac_cv_prog_OTOOL64"; then
14731 ac_ct_OTOOL64=$OTOOL64
14732 # Extract the first word of "otool64
", so it can be a program name with args.
14733 set dummy otool64; ac_word=$2
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14735 $as_echo_n "checking
for $ac_word...
" >&6; }
14736 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14737 $as_echo_n "(cached
) " >&6
14739 if test -n "$ac_ct_OTOOL64"; then
14740 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14746 test -z "$as_dir" && as_dir=.
14747 for ac_exec_ext in '' $ac_executable_extensions; do
14748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14749 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14750 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14759 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14760 if test -n "$ac_ct_OTOOL64"; then
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14762 $as_echo "$ac_ct_OTOOL64" >&6; }
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14765 $as_echo "no
" >&6; }
14768 if test "x
$ac_ct_OTOOL64" = x; then
14771 case $cross_compiling:$ac_tool_warned in
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14774 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14775 ac_tool_warned=yes ;;
14777 OTOOL64=$ac_ct_OTOOL64
14780 OTOOL64="$ac_cv_prog_OTOOL64"
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14810 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14811 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14812 $as_echo_n "(cached
) " >&6
14814 lt_cv_apple_cc_single_mod=no
14815 if test -z "${LT_MULTI_MODULE}"; then
14816 # By default we will add the -single_module flag. You can override
14817 # by either setting the environment variable LT_MULTI_MODULE
14818 # non-empty at configure time, or by adding -multi_module to the
14820 rm -rf libconftest.dylib*
14821 echo "int foo
(void
){return 1;}" > conftest.c
14822 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14823 -dynamiclib -Wl,-single_module conftest.c
" >&5
14824 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14825 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14827 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14828 lt_cv_apple_cc_single_mod=yes
14830 cat conftest.err >&5
14832 rm -rf libconftest.dylib*
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14837 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14839 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14840 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14841 $as_echo_n "(cached
) " >&6
14843 lt_cv_ld_exported_symbols_list=no
14844 save_LDFLAGS=$LDFLAGS
14845 echo "_main
" > conftest.sym
14846 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h. */
14858 if ac_fn_c_try_link "$LINENO"; then :
14859 lt_cv_ld_exported_symbols_list=yes
14861 lt_cv_ld_exported_symbols_list=no
14863 rm -f core conftest.err conftest.$ac_objext \
14864 conftest$ac_exeext conftest.$ac_ext
14865 LDFLAGS="$save_LDFLAGS"
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14869 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14871 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14872 if test "${lt_cv_ld_force_load+set}" = set; then :
14873 $as_echo_n "(cached
) " >&6
14875 lt_cv_ld_force_load=no
14876 cat > conftest.c << _LT_EOF
14877 int forced_loaded() { return 2;}
14879 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14880 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14881 echo "$AR cru libconftest.a conftest.o
" >&5
14882 $AR cru libconftest.a conftest.o 2>&5
14883 cat > conftest.c << _LT_EOF
14884 int main() { return 0;}
14886 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14887 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14889 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14890 lt_cv_ld_force_load=yes
14892 cat conftest.err >&5
14894 rm -f conftest.err libconftest.a conftest conftest.c
14895 rm -rf conftest.dSYM
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14899 $as_echo "$lt_cv_ld_force_load" >&6; }
14901 rhapsody* | darwin1.[012])
14902 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14904 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14905 darwin*) # darwin 5.x on
14906 # if running on 10.5 or later, the deployment target defaults
14907 # to the OS version, if on x86, and 10.4, the deployment
14908 # target defaults to 10.4. Don't you love it?
14909 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14910 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14911 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14913 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14915 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14919 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14920 _lt_dar_single_mod='$single_module'
14922 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14923 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14925 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14927 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14928 _lt_dsymutil='~$DSYMUTIL $lib || :'
14936 for ac_header in dlfcn.h
14938 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14939 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14940 cat >>confdefs.h <<_ACEOF
14941 #define HAVE_DLFCN_H 1
14958 enable_win32_dll=no
14961 # Check whether --enable-shared was given.
14962 if test "${enable_shared+set}" = set; then :
14963 enableval=$enable_shared; p=${PACKAGE-default}
14965 yes) enable_shared=yes ;;
14966 no) enable_shared=no ;;
14969 # Look at the argument we got. We use all the common list separators.
14970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14971 for pkg in $enableval; do
14973 if test "X
$pkg" = "X
$p"; then
14992 # Check whether --enable-static was given.
14993 if test "${enable_static+set}" = set; then :
14994 enableval=$enable_static; p=${PACKAGE-default}
14996 yes) enable_static=yes ;;
14997 no) enable_static=no ;;
15000 # Look at the argument we got. We use all the common list separators.
15001 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15002 for pkg in $enableval; do
15004 if test "X
$pkg" = "X
$p"; then
15024 # Check whether --with-pic was given.
15025 if test "${with_pic+set}" = set; then :
15026 withval=$with_pic; pic_mode="$withval"
15032 test -z "$pic_mode" && pic_mode=default
15040 # Check whether --enable-fast-install was given.
15041 if test "${enable_fast_install+set}" = set; then :
15042 enableval=$enable_fast_install; p=${PACKAGE-default}
15044 yes) enable_fast_install=yes ;;
15045 no) enable_fast_install=no ;;
15047 enable_fast_install=no
15048 # Look at the argument we got. We use all the common list separators.
15049 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15050 for pkg in $enableval; do
15052 if test "X
$pkg" = "X
$p"; then
15053 enable_fast_install=yes
15060 enable_fast_install=yes
15073 # This can be used to rebuild libtool when needed
15074 LIBTOOL_DEPS="$ltmain"
15076 # Always use our own libtool.
15077 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15104 test -z "$LN_S" && LN_S="ln -s"
15119 if test -n "${ZSH_VERSION+set}" ; then
15120 setopt NO_GLOB_SUBST
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15124 $as_echo_n "checking
for objdir...
" >&6; }
15125 if test "${lt_cv_objdir+set}" = set; then :
15126 $as_echo_n "(cached
) " >&6
15128 rm -f .libs 2>/dev/null
15129 mkdir .libs 2>/dev/null
15130 if test -d .libs; then
15133 # MS-DOS does not allow filenames that begin with a dot.
15136 rmdir .libs 2>/dev/null
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15139 $as_echo "$lt_cv_objdir" >&6; }
15140 objdir=$lt_cv_objdir
15146 cat >>confdefs.h <<_ACEOF
15147 #define LT_OBJDIR "$lt_cv_objdir/"
15155 # AIX sometimes has problems with the GCC collect2 program. For some
15156 # reason, if we set the COLLECT_NAMES environment variable, the problems
15157 # vanish in a puff of smoke.
15158 if test "X
${COLLECT_NAMES+set}" != Xset; then
15160 export COLLECT_NAMES
15165 # Global variables:
15167 can_build_shared=yes
15169 # All known linkers require a `.a' archive for static linking (except MSVC,
15170 # which needs '.lib').
15173 with_gnu_ld="$lt_cv_prog_gnu_ld"
15176 old_CFLAGS="$CFLAGS"
15178 # Set sane defaults for various variables
15179 test -z "$CC" && CC=cc
15180 test -z "$LTCC" && LTCC=$CC
15181 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15182 test -z "$LD" && LD=ld
15183 test -z "$ac_objext" && ac_objext=o
15185 for cc_temp in $compiler""; do
15187 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15188 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15193 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15196 # Only perform the check for file, if the check method requires it
15197 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15198 case $deplibs_check_method in
15200 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15202 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15203 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15204 $as_echo_n "(cached
) " >&6
15208 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15211 lt_save_MAGIC_CMD="$MAGIC_CMD"
15212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15213 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15214 for ac_dir in $ac_dummy; do
15216 test -z "$ac_dir" && ac_dir=.
15217 if test -f $ac_dir/${ac_tool_prefix}file; then
15218 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15219 if test -n "$file_magic_test_file"; then
15220 case $deplibs_check_method in
15222 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15225 $EGREP "$file_magic_regex" > /dev/null; then
15230 *** Warning: the command libtool uses to detect shared libraries,
15231 *** $file_magic_cmd, produces output that libtool cannot recognize.
15232 *** The result is that libtool may fail to recognize shared libraries
15233 *** as such. This will affect the creation of libtool libraries that
15234 *** depend on shared libraries, but programs linked with such libtool
15235 *** libraries will work regardless of this problem. Nevertheless, you
15236 *** may want to report the problem to your system manager and/or to
15237 *** bug-libtool@gnu.org
15247 MAGIC_CMD="$lt_save_MAGIC_CMD"
15252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15253 if test -n "$MAGIC_CMD"; then
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15255 $as_echo "$MAGIC_CMD" >&6; }
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15258 $as_echo "no
" >&6; }
15265 if test -z "$lt_cv_path_MAGIC_CMD"; then
15266 if test -n "$ac_tool_prefix"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15268 $as_echo_n "checking
for file...
" >&6; }
15269 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15270 $as_echo_n "(cached
) " >&6
15274 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15277 lt_save_MAGIC_CMD="$MAGIC_CMD"
15278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15279 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15280 for ac_dir in $ac_dummy; do
15282 test -z "$ac_dir" && ac_dir=.
15283 if test -f $ac_dir/file; then
15284 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15285 if test -n "$file_magic_test_file"; then
15286 case $deplibs_check_method in
15288 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15290 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15291 $EGREP "$file_magic_regex" > /dev/null; then
15296 *** Warning: the command libtool uses to detect shared libraries,
15297 *** $file_magic_cmd, produces output that libtool cannot recognize.
15298 *** The result is that libtool may fail to recognize shared libraries
15299 *** as such. This will affect the creation of libtool libraries that
15300 *** depend on shared libraries, but programs linked with such libtool
15301 *** libraries will work regardless of this problem. Nevertheless, you
15302 *** may want to report the problem to your system manager and/or to
15303 *** bug-libtool@gnu.org
15313 MAGIC_CMD="$lt_save_MAGIC_CMD"
15318 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15319 if test -n "$MAGIC_CMD"; then
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15321 $as_echo "$MAGIC_CMD" >&6; }
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15324 $as_echo "no
" >&6; }
15337 # Use C for the default configuration in the libtool script
15341 ac_cpp='$CPP $CPPFLAGS'
15342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15347 # Source file extension for C test sources.
15350 # Object file extension for compiled C test sources.
15354 # Code to be used in simple compile tests
15355 lt_simple_compile_test_code="int some_variable
= 0;"
15357 # Code to be used in simple link tests
15358 lt_simple_link_test_code='int main(){return(0);}'
15366 # If no C compiler was specified, use CC.
15369 # If no C compiler flags were specified, use CFLAGS.
15370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15372 # Allow CC to be a program name with arguments.
15375 # Save the default compiler, since it gets overwritten when the other
15376 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15377 compiler_DEFAULT=$CC
15379 # save warnings/boilerplate of simple test code
15380 ac_outfile=conftest.$ac_objext
15381 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15382 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15383 _lt_compiler_boilerplate=`cat conftest.err`
15386 ac_outfile=conftest.$ac_objext
15387 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15388 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15389 _lt_linker_boilerplate=`cat conftest.err`
15394 ## There is no encapsulation within the following macros, do not change
15395 ## the running order or otherwise move them around unless you know exactly
15396 ## what you are doing...
15397 if test -n "$compiler"; then
15399 lt_prog_compiler_no_builtin_flag=
15401 if test "$GCC" = yes; then
15402 case $cc_basename in
15404 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15406 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15410 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15411 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15412 $as_echo_n "(cached
) " >&6
15414 lt_cv_prog_compiler_rtti_exceptions=no
15415 ac_outfile=conftest.$ac_objext
15416 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15417 lt_compiler_flag="-fno-rtti -fno-exceptions"
15418 # Insert the option either (1) after the last *FLAGS variable, or
15419 # (2) before a word containing "conftest.
", or (3) at the end.
15420 # Note that $ac_compile itself does not contain backslashes and begins
15421 # with a dollar sign (not a hyphen), so the echo should work correctly.
15422 # The option is referenced via a variable to avoid confusing sed.
15423 lt_compile=`echo "$ac_compile" | $SED \
15424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15426 -e 's:$: $lt_compiler_flag:'`
15427 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15428 (eval "$lt_compile" 2>conftest.err)
15430 cat conftest.err >&5
15431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15432 if (exit $ac_status) && test -s "$ac_outfile"; then
15433 # The compiler can only warn and ignore the option if not recognized
15434 # So say no if there are warnings other than the usual output.
15435 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15438 lt_cv_prog_compiler_rtti_exceptions=yes
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15445 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15447 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15448 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15460 lt_prog_compiler_wl=
15461 lt_prog_compiler_pic=
15462 lt_prog_compiler_static=
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15465 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15467 if test "$GCC" = yes; then
15468 lt_prog_compiler_wl='-Wl,'
15469 lt_prog_compiler_static='-static'
15473 # All AIX code is PIC.
15474 if test "$host_cpu" = ia64; then
15475 # AIX 5 now supports IA64 processor
15476 lt_prog_compiler_static='-Bstatic'
15478 lt_prog_compiler_pic='-fPIC'
15484 # see comment about AmigaOS4 .so support
15485 lt_prog_compiler_pic='-fPIC'
15488 # FIXME: we need at least 68020 code to build shared libraries, but
15489 # adding the `-m68020' flag to GCC prevents building anything better,
15491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15497 # PIC is the default for these OSes.
15500 mingw* | cygwin* | pw32* | os2* | cegcc*)
15501 # This hack is so that the source file can tell whether it is being
15502 # built for inclusion in a dll (and should export symbols for example).
15503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15504 # (--disable-auto-import) libraries
15505 lt_prog_compiler_pic='-DDLL_EXPORT'
15508 darwin* | rhapsody*)
15509 # PIC is the default on this platform
15510 # Common symbols not allowed in MH_DYLIB files
15511 lt_prog_compiler_pic='-fno-common'
15515 # PIC is the default for Haiku.
15516 # The "-static" flag exists, but is broken.
15517 lt_prog_compiler_static=
15521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15523 # sets the default TLS model and affects inlining.
15529 lt_prog_compiler_pic='-fPIC'
15535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15536 # Instead, we relocate shared libraries at runtime.
15540 # Just because we use GCC doesn't mean we suddenly get shared libraries
15541 # on systems that don't support them.
15542 lt_prog_compiler_can_build_shared=no
15547 # QNX uses GNU C++, but need to define -shared option too, otherwise
15548 # it will coredump.
15549 lt_prog_compiler_pic='-fPIC -shared'
15553 if test -d /usr/nec; then
15554 lt_prog_compiler_pic=-Kconform_pic
15559 lt_prog_compiler_pic='-fPIC'
15563 case $cc_basename in
15564 nvcc*) # Cuda Compiler Driver 2.2
15565 lt_prog_compiler_wl='-Xlinker '
15566 lt_prog_compiler_pic='-Xcompiler -fPIC'
15570 # PORTME Check for flag to pass linker flags through the system compiler.
15573 lt_prog_compiler_wl='-Wl,'
15574 if test "$host_cpu" = ia64; then
15575 # AIX 5 now supports IA64 processor
15576 lt_prog_compiler_static='-Bstatic'
15578 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15582 mingw* | cygwin* | pw32* | os2* | cegcc*)
15583 # This hack is so that the source file can tell whether it is being
15584 # built for inclusion in a dll (and should export symbols for example).
15585 lt_prog_compiler_pic='-DDLL_EXPORT'
15588 hpux9* | hpux10* | hpux11*)
15589 lt_prog_compiler_wl='-Wl,'
15590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15591 # not for PA HP-UX.
15597 lt_prog_compiler_pic='+Z'
15600 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15601 lt_prog_compiler_static='${wl}-a ${wl}archive'
15604 irix5* | irix6* | nonstopux*)
15605 lt_prog_compiler_wl='-Wl,'
15606 # PIC (with -KPIC) is the default.
15607 lt_prog_compiler_static='-non_shared'
15610 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15611 case $cc_basename in
15612 # old Intel for x86_64 which still supported -KPIC.
15614 lt_prog_compiler_wl='-Wl,'
15615 lt_prog_compiler_pic='-KPIC'
15616 lt_prog_compiler_static='-static'
15618 # icc used to be incompatible with GCC.
15619 # ICC 10 doesn't accept -KPIC any more.
15621 lt_prog_compiler_wl='-Wl,'
15622 lt_prog_compiler_pic='-fPIC'
15623 lt_prog_compiler_static='-static'
15625 # Lahey Fortran 8.1.
15627 lt_prog_compiler_wl='-Wl,'
15628 lt_prog_compiler_pic='--shared'
15629 lt_prog_compiler_static='--static'
15631 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15632 # Portland Group compilers (*not* the Pentium gcc compiler,
15633 # which looks to be a dead project)
15634 lt_prog_compiler_wl='-Wl,'
15635 lt_prog_compiler_pic='-fpic'
15636 lt_prog_compiler_static='-Bstatic'
15639 lt_prog_compiler_wl='-Wl,'
15640 # All Alpha code is PIC.
15641 lt_prog_compiler_static='-non_shared'
15643 xl* | bgxl* | bgf* | mpixl*)
15644 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_pic='-qpic'
15647 lt_prog_compiler_static='-qstaticlink'
15650 case `$CC -V 2>&1 | sed 5q` in
15651 *Sun\ F* | *Sun*Fortran*)
15652 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15653 lt_prog_compiler_pic='-KPIC'
15654 lt_prog_compiler_static='-Bstatic'
15655 lt_prog_compiler_wl=''
15659 lt_prog_compiler_pic='-KPIC'
15660 lt_prog_compiler_static='-Bstatic'
15661 lt_prog_compiler_wl='-Wl,'
15669 lt_prog_compiler_pic='-KPIC'
15670 lt_prog_compiler_static='-Bstatic'
15674 # QNX uses GNU C++, but need to define -shared option too, otherwise
15675 # it will coredump.
15676 lt_prog_compiler_pic='-fPIC -shared'
15679 osf3* | osf4* | osf5*)
15680 lt_prog_compiler_wl='-Wl,'
15681 # All OSF/1 code is PIC.
15682 lt_prog_compiler_static='-non_shared'
15686 lt_prog_compiler_static='-non_shared'
15690 lt_prog_compiler_pic='-KPIC'
15691 lt_prog_compiler_static='-Bstatic'
15692 case $cc_basename in
15693 f77* | f90* | f95*)
15694 lt_prog_compiler_wl='-Qoption ld ';;
15696 lt_prog_compiler_wl='-Wl,';;
15701 lt_prog_compiler_wl='-Qoption ld '
15702 lt_prog_compiler_pic='-PIC'
15703 lt_prog_compiler_static='-Bstatic'
15706 sysv4 | sysv4.2uw2* | sysv4.3*)
15707 lt_prog_compiler_wl='-Wl,'
15708 lt_prog_compiler_pic='-KPIC'
15709 lt_prog_compiler_static='-Bstatic'
15713 if test -d /usr/nec ;then
15714 lt_prog_compiler_pic='-Kconform_pic'
15715 lt_prog_compiler_static='-Bstatic'
15719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15720 lt_prog_compiler_wl='-Wl,'
15721 lt_prog_compiler_pic='-KPIC'
15722 lt_prog_compiler_static='-Bstatic'
15726 lt_prog_compiler_wl='-Wl,'
15727 lt_prog_compiler_can_build_shared=no
15731 lt_prog_compiler_pic='-pic'
15732 lt_prog_compiler_static='-Bstatic'
15736 lt_prog_compiler_can_build_shared=no
15742 # For platforms which do not support PIC, -DPIC is meaningless:
15744 lt_prog_compiler_pic=
15747 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15751 $as_echo "$lt_prog_compiler_pic" >&6; }
15759 # Check to make sure the PIC flag actually works.
15761 if test -n "$lt_prog_compiler_pic"; then
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15763 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15764 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15765 $as_echo_n "(cached
) " >&6
15767 lt_cv_prog_compiler_pic_works=no
15768 ac_outfile=conftest.$ac_objext
15769 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15770 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15771 # Insert the option either (1) after the last *FLAGS variable, or
15772 # (2) before a word containing "conftest.
", or (3) at the end.
15773 # Note that $ac_compile itself does not contain backslashes and begins
15774 # with a dollar sign (not a hyphen), so the echo should work correctly.
15775 # The option is referenced via a variable to avoid confusing sed.
15776 lt_compile=`echo "$ac_compile" | $SED \
15777 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15778 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15779 -e 's:$: $lt_compiler_flag:'`
15780 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15781 (eval "$lt_compile" 2>conftest.err)
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15785 if (exit $ac_status) && test -s "$ac_outfile"; then
15786 # The compiler can only warn and ignore the option if not recognized
15787 # So say no if there are warnings other than the usual output.
15788 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15789 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15791 lt_cv_prog_compiler_pic_works=yes
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15798 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15800 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15801 case $lt_prog_compiler_pic in
15803 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15806 lt_prog_compiler_pic=
15807 lt_prog_compiler_can_build_shared=no
15818 # Check to make sure the static flag actually works.
15820 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15822 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15823 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15824 $as_echo_n "(cached
) " >&6
15826 lt_cv_prog_compiler_static_works=no
15827 save_LDFLAGS="$LDFLAGS"
15828 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15829 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15830 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15831 # The linker can only warn and ignore the option if not recognized
15832 # So say no if there are warnings
15833 if test -s conftest.err; then
15834 # Append any errors to the config.log.
15835 cat conftest.err 1>&5
15836 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15837 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15838 if diff conftest.exp conftest.er2 >/dev/null; then
15839 lt_cv_prog_compiler_static_works=yes
15842 lt_cv_prog_compiler_static_works=yes
15846 LDFLAGS="$save_LDFLAGS"
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15850 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15852 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15855 lt_prog_compiler_static=
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15865 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15866 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15867 $as_echo_n "(cached
) " >&6
15869 lt_cv_prog_compiler_c_o=no
15870 $RM -r conftest 2>/dev/null
15874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15876 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15877 # Insert the option either (1) after the last *FLAGS variable, or
15878 # (2) before a word containing "conftest.
", or (3) at the end.
15879 # Note that $ac_compile itself does not contain backslashes and begins
15880 # with a dollar sign (not a hyphen), so the echo should work correctly.
15881 lt_compile=`echo "$ac_compile" | $SED \
15882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15884 -e 's:$: $lt_compiler_flag:'`
15885 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15886 (eval "$lt_compile" 2>out/conftest.err)
15888 cat out/conftest.err >&5
15889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15890 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15892 # The compiler can only warn and ignore the option if not recognized
15893 # So say no if there are warnings
15894 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15895 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15896 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15897 lt_cv_prog_compiler_c_o=yes
15902 # SGI C++ compiler will create directory out/ii_files/ for
15903 # template instantiation
15904 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15905 $RM out/* && rmdir out
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15912 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15920 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15921 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15922 $as_echo_n "(cached
) " >&6
15924 lt_cv_prog_compiler_c_o=no
15925 $RM -r conftest 2>/dev/null
15929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15931 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15932 # Insert the option either (1) after the last *FLAGS variable, or
15933 # (2) before a word containing "conftest.
", or (3) at the end.
15934 # Note that $ac_compile itself does not contain backslashes and begins
15935 # with a dollar sign (not a hyphen), so the echo should work correctly.
15936 lt_compile=`echo "$ac_compile" | $SED \
15937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15939 -e 's:$: $lt_compiler_flag:'`
15940 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15941 (eval "$lt_compile" 2>out/conftest.err)
15943 cat out/conftest.err >&5
15944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15947 # The compiler can only warn and ignore the option if not recognized
15948 # So say no if there are warnings
15949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15952 lt_cv_prog_compiler_c_o=yes
15957 # SGI C++ compiler will create directory out/ii_files/ for
15958 # template instantiation
15959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15960 $RM out/* && rmdir out
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15967 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15972 hard_links="nottested
"
15973 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15974 # do not overwrite the value of need_locks provided by the user
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15976 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15981 ln conftest.a conftest.b 2>&5 || hard_links=no
15982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15984 $as_echo "$hard_links" >&6; }
15985 if test "$hard_links" = no; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15987 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16000 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16003 allow_undefined_flag=
16004 always_export_symbols=no
16006 archive_expsym_cmds=
16007 compiler_needs_object=no
16008 enable_shared_with_static_runtimes=no
16009 export_dynamic_flag_spec=
16010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16011 hardcode_automatic=no
16013 hardcode_direct_absolute=no
16014 hardcode_libdir_flag_spec=
16015 hardcode_libdir_flag_spec_ld=
16016 hardcode_libdir_separator=
16017 hardcode_minus_L=no
16018 hardcode_shlibpath_var=unsupported
16020 link_all_deplibs=unknown
16022 module_expsym_cmds=
16023 old_archive_from_new_cmds=
16024 old_archive_from_expsyms_cmds=
16025 thread_safe_flag_spec=
16026 whole_archive_flag_spec=
16027 # include_expsyms should be a list of space-separated symbols to be *always*
16028 # included in the symbol list
16030 # exclude_expsyms can be an extended regexp of symbols to exclude
16031 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16032 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16033 # as well as any symbol that contains `d'.
16034 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16035 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16036 # platforms (ab)use it in PIC code, but their linkers get confused if
16037 # the symbol is explicitly referenced. Since portable code cannot
16038 # rely on this symbol name, it's probably fine to never include it in
16039 # preloaded symbol tables.
16040 # Exclude shared library initialization/finalization symbols.
16041 extract_expsyms_cmds=
16044 cygwin* | mingw* | pw32* | cegcc*)
16045 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16046 # When not using gcc, we currently assume that we are using
16047 # Microsoft Visual C++.
16048 if test "$GCC" != yes; then
16053 # we just hope/assume this is gcc and not c89 (= MSVC++)
16063 # On some targets, GNU ld is compatible enough with the native linker
16064 # that we're better off using the native interface for both.
16065 lt_use_gnu_ld_interface=no
16066 if test "$with_gnu_ld" = yes; then
16069 # The AIX port of GNU ld has always aspired to compatibility
16070 # with the native linker. However, as the warning in the GNU ld
16071 # block says, versions before 2.19.5* couldn't really create working
16072 # shared libraries, regardless of the interface used.
16073 case `$LD -v 2>&1` in
16074 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16075 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16076 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16078 lt_use_gnu_ld_interface=yes
16083 lt_use_gnu_ld_interface=yes
16088 if test "$lt_use_gnu_ld_interface" = yes; then
16089 # If archive_cmds runs LD, not CC, wlarc should be empty
16092 # Set some defaults for GNU ld with shared library support. These
16093 # are reset later if shared libraries are not supported. Putting them
16094 # here allows them to be overridden if necessary.
16095 runpath_var=LD_RUN_PATH
16096 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16097 export_dynamic_flag_spec='${wl}--export-dynamic'
16098 # ancient GNU ld didn't support --whole-archive et. al.
16099 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16100 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16102 whole_archive_flag_spec=
16104 supports_anon_versioning=no
16105 case `$LD -v 2>&1` in
16106 *GNU\ gold*) supports_anon_versioning=yes ;;
16107 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16108 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16109 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16110 *\ 2.11.*) ;; # other 2.11 versions
16111 *) supports_anon_versioning=yes ;;
16114 # See if GNU ld supports shared libraries.
16117 # On AIX/PPC, the GNU linker is very broken
16118 if test "$host_cpu" != ia64; then
16122 *** Warning: the GNU linker, at least up to release 2.19, is reported
16123 *** to be unable to reliably create shared libraries on AIX.
16124 *** Therefore, libtool is disabling shared libraries support. If you
16125 *** really care for shared libraries, you may want to install binutils
16126 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16127 *** You will then need to restart the configuration process.
16136 # see comment about AmigaOS4 .so support
16137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16138 archive_expsym_cmds=''
16141 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)'
16142 hardcode_libdir_flag_spec
='-L$libdir'
16143 hardcode_minus_L
=yes
16149 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16150 allow_undefined_flag
=unsupported
16151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16152 # support --undefined. This deserves some investigation. FIXME
16153 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16159 cygwin
* | mingw
* | pw32
* | cegcc
*)
16160 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16161 # as there is no search path for DLLs.
16162 hardcode_libdir_flag_spec
='-L$libdir'
16163 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16164 allow_undefined_flag
=unsupported
16165 always_export_symbols
=no
16166 enable_shared_with_static_runtimes
=yes
16167 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16169 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16170 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16171 # If the export-symbols file already is a .def file (1st line
16172 # is EXPORTS), use it as is; otherwise, prepend...
16173 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16174 cp $export_symbols $output_objdir/$soname.def;
16176 echo EXPORTS > $output_objdir/$soname.def;
16177 cat $export_symbols >> $output_objdir/$soname.def;
16179 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16186 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16187 link_all_deplibs
=yes
16192 hardcode_shlibpath_var
=no
16193 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16194 export_dynamic_flag_spec
='${wl}-E'
16195 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16196 # Instead, shared libraries are loaded at an image base (0x10000000 by
16197 # default) and relocated if they conflict, which is a slow very memory
16198 # consuming and fragmenting process. To avoid this, we pick a random,
16199 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16200 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16201 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16202 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'
16205 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16207 if test "$host_os" = linux-dietlibc
; then
16208 case $cc_basename in
16209 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16212 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16213 && test "$tmp_diet" = no
16215 tmp_addflag
=' $pic_flag'
16216 tmp_sharedflag
='-shared'
16217 case $cc_basename,$host_cpu in
16218 pgcc
*) # Portland Group C compiler
16219 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'
16220 tmp_addflag
=' $pic_flag'
16222 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16223 # Portland Group f77 and f90 compilers
16224 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'
16225 tmp_addflag
=' $pic_flag -Mnomain' ;;
16226 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16227 tmp_addflag
=' -i_dynamic' ;;
16228 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16229 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16230 ifc
* | ifort
*) # Intel Fortran compiler
16231 tmp_addflag
=' -nofor_main' ;;
16232 lf95
*) # Lahey Fortran 8.1
16233 whole_archive_flag_spec
=
16234 tmp_sharedflag
='--shared' ;;
16235 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16236 tmp_sharedflag
='-qmkshrobj'
16238 nvcc
*) # Cuda Compiler Driver 2.2
16239 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'
16240 compiler_needs_object
=yes
16243 case `$CC -V 2>&1 | sed 5q` in
16244 *Sun\ C
*) # Sun C 5.9
16245 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'
16246 compiler_needs_object
=yes
16247 tmp_sharedflag
='-G' ;;
16248 *Sun\ F
*) # Sun Fortran 8.3
16249 tmp_sharedflag
='-G' ;;
16251 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16253 if test "x$supports_anon_versioning" = xyes
; then
16254 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16255 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16256 echo "local: *; };" >> $output_objdir/$libname.ver~
16257 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16260 case $cc_basename in
16261 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16262 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16263 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16264 hardcode_libdir_flag_spec
=
16265 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16266 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16267 if test "x$supports_anon_versioning" = xyes
; then
16268 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16270 echo "local: *; };" >> $output_objdir/$libname.ver~
16271 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16281 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16282 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16285 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16286 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16291 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16295 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16296 *** create shared libraries on Solaris systems. Therefore, libtool
16297 *** is disabling shared libraries support. We urge you to upgrade GNU
16298 *** binutils to release 2.9.1 or newer. Another option is to modify
16299 *** your PATH or compiler configuration so that the native linker is
16300 *** used, and then restart.
16303 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16304 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16305 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16311 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16312 case `$LD -v 2>&1` in
16313 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16317 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16318 *** reliably create shared libraries on SCO systems. Therefore, libtool
16319 *** is disabling shared libraries support. We urge you to upgrade GNU
16320 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16321 *** your PATH or compiler configuration so that the native linker is
16322 *** used, and then restart.
16327 # For security reasons, it is highly recommended that you always
16328 # use absolute paths for naming shared libraries, and exclude the
16329 # DT_RUNPATH tag from executables and libraries. But doing so
16330 # requires that you compile everything twice, which is a pain.
16331 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16332 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16333 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16334 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16343 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16345 hardcode_direct
=yes
16346 hardcode_shlibpath_var
=no
16350 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16351 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16352 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16359 if test "$ld_shlibs" = no
; then
16361 hardcode_libdir_flag_spec
=
16362 export_dynamic_flag_spec
=
16363 whole_archive_flag_spec
=
16366 # PORTME fill in a description of your system's linker (not GNU ld)
16369 allow_undefined_flag
=unsupported
16370 always_export_symbols
=yes
16371 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'
16372 # Note: this linker hardcodes the directories in LIBPATH if there
16373 # are no directories specified by -L.
16374 hardcode_minus_L
=yes
16375 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16376 # Neither direct hardcoding nor static linking is supported with a
16378 hardcode_direct
=unsupported
16383 if test "$host_cpu" = ia64
; then
16384 # On IA64, the linker does run time linking by default, so we don't
16385 # have to do anything special.
16386 aix_use_runtimelinking
=no
16387 exp_sym_flag
='-Bexport'
16390 # If we're using GNU nm, then we don't want the "-C" option.
16391 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16392 # Also, AIX nm treats weak defined symbols like other global
16393 # defined symbols, whereas GNU nm marks them as "W".
16394 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16395 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'
16397 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'
16399 aix_use_runtimelinking
=no
16401 # Test if we are trying to use run time linking or normal
16402 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16403 # need to do runtime linking.
16404 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16405 for ld_flag
in $LDFLAGS; do
16406 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16407 aix_use_runtimelinking
=yes
16414 exp_sym_flag
='-bexport'
16415 no_entry_flag
='-bnoentry'
16418 # When large executables or shared objects are built, AIX ld can
16419 # have problems creating the table of contents. If linking a library
16420 # or program results in "error TOC overflow" add -mminimal-toc to
16421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16425 hardcode_direct
=yes
16426 hardcode_direct_absolute
=yes
16427 hardcode_libdir_separator
=':'
16428 link_all_deplibs
=yes
16429 file_list_spec
='${wl}-f,'
16431 if test "$GCC" = yes; then
16432 case $host_os in aix4.
[012]|aix4.
[012].
*)
16433 # We only want to do this on AIX 4.2 and lower, the check
16434 # below for broken collect2 doesn't work under 4.3+
16435 collect2name
=`${CC} -print-prog-name=collect2`
16436 if test -f "$collect2name" &&
16437 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16439 # We have reworked collect2
16442 # We have old collect2
16443 hardcode_direct
=unsupported
16444 # It fails to find uninstalled libraries when the uninstalled
16445 # path is not listed in the libpath. Setting hardcode_minus_L
16446 # to unsupported forces relinking
16447 hardcode_minus_L
=yes
16448 hardcode_libdir_flag_spec
='-L$libdir'
16449 hardcode_libdir_separator
=
16453 shared_flag
='-shared'
16454 if test "$aix_use_runtimelinking" = yes; then
16455 shared_flag
="$shared_flag "'${wl}-G'
16459 if test "$host_cpu" = ia64
; then
16460 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16461 # chokes on -Wl,-G. The following line is correct:
16464 if test "$aix_use_runtimelinking" = yes; then
16465 shared_flag
='${wl}-G'
16467 shared_flag
='${wl}-bM:SRE'
16472 export_dynamic_flag_spec
='${wl}-bexpall'
16473 # It seems that -bexpall does not export symbols beginning with
16474 # underscore (_), so it is better to generate a list of symbols to export.
16475 always_export_symbols
=yes
16476 if test "$aix_use_runtimelinking" = yes; then
16477 # Warning - without using the other runtime loading flags (-brtl),
16478 # -berok will link without error, but may produce a broken library.
16479 allow_undefined_flag
='-berok'
16480 # Determine the default libpath from the value encoded in an
16481 # empty executable.
16482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16483 /* end confdefs.h. */
16493 if ac_fn_c_try_link
"$LINENO"; then :
16495 lt_aix_libpath_sed
='
16496 /Import File Strings/,/^$/ {
16502 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16503 # Check for a 64-bit object if we didn't find anything.
16504 if test -z "$aix_libpath"; then
16505 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16508 rm -f core conftest.err conftest.
$ac_objext \
16509 conftest
$ac_exeext conftest.
$ac_ext
16510 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16512 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16513 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"
16515 if test "$host_cpu" = ia64
; then
16516 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16517 allow_undefined_flag
="-z nodefs"
16518 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"
16520 # Determine the default libpath from the value encoded in an
16521 # empty executable.
16522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16533 if ac_fn_c_try_link
"$LINENO"; then :
16535 lt_aix_libpath_sed
='
16536 /Import File Strings/,/^$/ {
16542 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16543 # Check for a 64-bit object if we didn't find anything.
16544 if test -z "$aix_libpath"; then
16545 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16548 rm -f core conftest.err conftest.
$ac_objext \
16549 conftest
$ac_exeext conftest.
$ac_ext
16550 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16552 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16553 # Warning - without using the other run time loading flags,
16554 # -berok will link without error, but may produce a broken library.
16555 no_undefined_flag
=' ${wl}-bernotok'
16556 allow_undefined_flag
=' ${wl}-berok'
16557 if test "$with_gnu_ld" = yes; then
16558 # We only use this code for GNU lds that support --whole-archive.
16559 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16561 # Exported symbols can be pulled into shared objects from archives
16562 whole_archive_flag_spec
='$convenience'
16564 archive_cmds_need_lc
=yes
16565 # This is similar to how AIX traditionally builds its shared libraries.
16566 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'
16574 # see comment about AmigaOS4 .so support
16575 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16576 archive_expsym_cmds
=''
16579 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)'
16580 hardcode_libdir_flag_spec
='-L$libdir'
16581 hardcode_minus_L
=yes
16587 export_dynamic_flag_spec
=-rdynamic
16590 cygwin
* | mingw
* | pw32
* | cegcc
*)
16591 # When not using gcc, we currently assume that we are using
16592 # Microsoft Visual C++.
16593 # hardcode_libdir_flag_spec is actually meaningless, as there is
16594 # no search path for DLLs.
16595 hardcode_libdir_flag_spec
=' '
16596 allow_undefined_flag
=unsupported
16597 # Tell ltmain to make .lib files, not .a files.
16599 # Tell ltmain to make .dll files, not .so files.
16601 # FIXME: Setting linknames here is a bad hack.
16602 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16603 # The linker will automatically build a .lib file if we build a DLL.
16604 old_archive_from_new_cmds
='true'
16605 # FIXME: Should let the user specify the lib program.
16606 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16607 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16608 enable_shared_with_static_runtimes
=yes
16611 darwin
* | rhapsody
*)
16614 archive_cmds_need_lc
=no
16616 hardcode_automatic
=yes
16617 hardcode_shlibpath_var
=unsupported
16618 if test "$lt_cv_ld_force_load" = "yes"; then
16619 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\"`'
16621 whole_archive_flag_spec
=''
16623 link_all_deplibs
=yes
16624 allow_undefined_flag
="$_lt_dar_allow_undefined"
16625 case $cc_basename in
16626 ifort
*) _lt_dar_can_shared
=yes ;;
16627 *) _lt_dar_can_shared
=$GCC ;;
16629 if test "$_lt_dar_can_shared" = "yes"; then
16630 output_verbose_link_cmd
=func_echo_all
16631 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16632 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16633 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}"
16634 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}"
16643 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16644 hardcode_libdir_flag_spec
='-L$libdir'
16645 hardcode_shlibpath_var
=no
16648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16649 # support. Future versions do this automatically, but an explicit c++rt0.o
16650 # does not break anything, and helps significantly (at the cost of a little
16653 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16654 hardcode_libdir_flag_spec
='-R$libdir'
16655 hardcode_direct
=yes
16656 hardcode_shlibpath_var
=no
16659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16661 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_direct
=yes
16663 hardcode_minus_L
=yes
16664 hardcode_shlibpath_var
=no
16667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16668 freebsd
* | dragonfly
*)
16669 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16670 hardcode_libdir_flag_spec
='-R$libdir'
16671 hardcode_direct
=yes
16672 hardcode_shlibpath_var
=no
16676 if test "$GCC" = yes; then
16677 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'
16679 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'
16681 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16682 hardcode_libdir_separator
=:
16683 hardcode_direct
=yes
16685 # hardcode_minus_L: Not really in the search PATH,
16686 # but as the default location of the library.
16687 hardcode_minus_L
=yes
16688 export_dynamic_flag_spec
='${wl}-E'
16692 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16693 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16695 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16697 if test "$with_gnu_ld" = no
; then
16698 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16699 hardcode_libdir_flag_spec_ld
='+b $libdir'
16700 hardcode_libdir_separator
=:
16701 hardcode_direct
=yes
16702 hardcode_direct_absolute
=yes
16703 export_dynamic_flag_spec
='${wl}-E'
16704 # hardcode_minus_L: Not really in the search PATH,
16705 # but as the default location of the library.
16706 hardcode_minus_L
=yes
16711 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16714 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16717 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16720 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16726 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16729 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16733 # Older versions of the 11.00 compiler do not understand -b yet
16734 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16736 $as_echo_n "checking if $CC understands -b... " >&6; }
16737 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16738 $as_echo_n "(cached) " >&6
16740 lt_cv_prog_compiler__b
=no
16741 save_LDFLAGS
="$LDFLAGS"
16742 LDFLAGS
="$LDFLAGS -b"
16743 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16744 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16745 # The linker can only warn and ignore the option if not recognized
16746 # So say no if there are warnings
16747 if test -s conftest.err
; then
16748 # Append any errors to the config.log.
16749 cat conftest.err
1>&5
16750 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16751 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16752 if diff conftest.exp conftest.er2
>/dev
/null
; then
16753 lt_cv_prog_compiler__b
=yes
16756 lt_cv_prog_compiler__b
=yes
16760 LDFLAGS
="$save_LDFLAGS"
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16764 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16766 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16767 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16775 if test "$with_gnu_ld" = no
; then
16776 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16777 hardcode_libdir_separator
=:
16782 hardcode_shlibpath_var
=no
16785 hardcode_direct
=yes
16786 hardcode_direct_absolute
=yes
16787 export_dynamic_flag_spec
='${wl}-E'
16789 # hardcode_minus_L: Not really in the search PATH,
16790 # but as the default location of the library.
16791 hardcode_minus_L
=yes
16797 irix5
* | irix6
* | nonstopux
*)
16798 if test "$GCC" = yes; then
16799 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'
16800 # Try to use the -exported_symbol ld option, if it does not
16801 # work, assume that -exports_file does not work either and
16802 # implicitly export all symbols.
16803 save_LDFLAGS
="$LDFLAGS"
16804 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h. */
16809 if ac_fn_c_try_link
"$LINENO"; then :
16810 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'
16813 rm -f core conftest.err conftest.
$ac_objext \
16814 conftest
$ac_exeext conftest.
$ac_ext
16815 LDFLAGS
="$save_LDFLAGS"
16817 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'
16818 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'
16820 archive_cmds_need_lc
='no'
16821 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16822 hardcode_libdir_separator
=:
16824 link_all_deplibs
=yes
16828 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16829 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16831 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16833 hardcode_libdir_flag_spec
='-R$libdir'
16834 hardcode_direct
=yes
16835 hardcode_shlibpath_var
=no
16839 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16840 hardcode_direct
=yes
16841 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16842 hardcode_libdir_separator
=:
16843 hardcode_shlibpath_var
=no
16850 if test -f /usr
/libexec
/ld.so
; then
16851 hardcode_direct
=yes
16852 hardcode_shlibpath_var
=no
16853 hardcode_direct_absolute
=yes
16854 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16855 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16856 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16857 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16858 export_dynamic_flag_spec
='${wl}-E'
16861 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16862 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16863 hardcode_libdir_flag_spec
='-R$libdir'
16866 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16867 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16877 hardcode_libdir_flag_spec
='-L$libdir'
16878 hardcode_minus_L
=yes
16879 allow_undefined_flag
=unsupported
16880 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'
16881 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16885 if test "$GCC" = yes; then
16886 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16887 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'
16889 allow_undefined_flag
=' -expect_unresolved \*'
16890 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'
16892 archive_cmds_need_lc
='no'
16893 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16894 hardcode_libdir_separator
=:
16897 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16898 if test "$GCC" = yes; then
16899 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16900 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'
16901 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16903 allow_undefined_flag
=' -expect_unresolved \*'
16904 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'
16905 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~
16906 $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'
16908 # Both c and cxx compiler support -rpath directly
16909 hardcode_libdir_flag_spec
='-rpath $libdir'
16911 archive_cmds_need_lc
='no'
16912 hardcode_libdir_separator
=:
16916 no_undefined_flag
=' -z defs'
16917 if test "$GCC" = yes; then
16919 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16920 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16921 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16923 case `$CC -V 2>&1` in
16926 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16927 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16928 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16932 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16933 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16934 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16938 hardcode_libdir_flag_spec
='-R$libdir'
16939 hardcode_shlibpath_var
=no
16941 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16943 # The compiler driver will combine and reorder linker options,
16944 # but understands `-z linker_flag'. GCC discards it without `$wl',
16945 # but is careful enough not to reorder.
16946 # Supported since Solaris 2.6 (maybe 2.5.1?)
16947 if test "$GCC" = yes; then
16948 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16950 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16954 link_all_deplibs
=yes
16958 if test "x$host_vendor" = xsequent
; then
16959 # Use $CC to link under sequent, because it throws in some extra .o
16960 # files that make .init and .fini sections work.
16961 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16963 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16965 hardcode_libdir_flag_spec
='-L$libdir'
16966 hardcode_direct
=yes
16967 hardcode_minus_L
=yes
16968 hardcode_shlibpath_var
=no
16972 case $host_vendor in
16974 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16975 hardcode_direct
=yes # is this really true???
16978 ## LD is ld it makes a PLAMLIB
16979 ## CC just makes a GrossModule.
16980 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16981 reload_cmds
='$CC -r -o $output$reload_objs'
16985 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16986 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16989 runpath_var
='LD_RUN_PATH'
16990 hardcode_shlibpath_var
=no
16994 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16995 hardcode_shlibpath_var
=no
16996 export_dynamic_flag_spec
='-Bexport'
17000 if test -d /usr
/nec
; then
17001 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17002 hardcode_shlibpath_var
=no
17003 runpath_var
=LD_RUN_PATH
17004 hardcode_runpath_var
=yes
17009 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17010 no_undefined_flag
='${wl}-z,text'
17011 archive_cmds_need_lc
=no
17012 hardcode_shlibpath_var
=no
17013 runpath_var
='LD_RUN_PATH'
17015 if test "$GCC" = yes; then
17016 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17017 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17019 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17020 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17024 sysv5
* | sco3.2v5
* | sco5v6
*)
17025 # Note: We can NOT use -z defs as we might desire, because we do not
17026 # link with -lc, and that would cause any symbols used from libc to
17027 # always be unresolved, which means just about no library would
17028 # ever link correctly. If we're not using GNU ld we use -z text
17029 # though, which does catch some bad symbols but isn't as heavy-handed
17031 no_undefined_flag
='${wl}-z,text'
17032 allow_undefined_flag
='${wl}-z,nodefs'
17033 archive_cmds_need_lc
=no
17034 hardcode_shlibpath_var
=no
17035 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17036 hardcode_libdir_separator
=':'
17037 link_all_deplibs
=yes
17038 export_dynamic_flag_spec
='${wl}-Bexport'
17039 runpath_var
='LD_RUN_PATH'
17041 if test "$GCC" = yes; then
17042 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17045 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17046 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17052 hardcode_libdir_flag_spec
='-L$libdir'
17053 hardcode_shlibpath_var
=no
17061 if test x
$host_vendor = xsni
; then
17063 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17064 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17071 $as_echo "$ld_shlibs" >&6; }
17072 test "$ld_shlibs" = no
&& can_build_shared
=no
17074 with_gnu_ld
=$with_gnu_ld
17091 # Do we need to explicitly link libc?
17093 case "x$archive_cmds_need_lc" in
17095 # Assume -lc should be added
17096 archive_cmds_need_lc
=yes
17098 if test "$enable_shared" = yes && test "$GCC" = yes; then
17099 case $archive_cmds in
17101 # FIXME: we may have to deal with multi-command sequences.
17104 # Test whether the compiler implicitly links with -lc since on some
17105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17106 # to ld, don't add -lc before -lgcc.
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17108 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17109 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17110 $as_echo_n "(cached) " >&6
17113 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17116 (eval $ac_compile) 2>&5
17118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17119 test $ac_status = 0; } 2>conftest.err
; then
17122 libobjs
=conftest.
$ac_objext
17124 wl
=$lt_prog_compiler_wl
17125 pic_flag
=$lt_prog_compiler_pic
17131 lt_save_allow_undefined_flag
=$allow_undefined_flag
17132 allow_undefined_flag
=
17133 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17134 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17137 test $ac_status = 0; }
17139 lt_cv_archive_cmds_need_lc
=no
17141 lt_cv_archive_cmds_need_lc
=yes
17143 allow_undefined_flag
=$lt_save_allow_undefined_flag
17145 cat conftest.err
1>&5
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17151 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17152 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17316 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17318 if test "$GCC" = yes; then
17320 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17321 *) lt_awk_arg
="/^libraries:/" ;;
17324 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17325 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17327 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17328 case $lt_search_path_spec in
17330 # if the path contains ";" then we assume it to be the separator
17331 # otherwise default to the standard path separator (i.e. ":") - it is
17332 # assumed that no part of a normal pathname contains ";" but that should
17333 # okay in the real world where ";" in dirpaths is itself problematic.
17334 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17337 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17340 # Ok, now we have the path, separated by spaces, we can step through it
17341 # and add multilib dir if necessary.
17342 lt_tmp_lt_search_path_spec
=
17343 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17344 for lt_sys_path
in $lt_search_path_spec; do
17345 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17346 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17348 test -d "$lt_sys_path" && \
17349 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17352 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17353 BEGIN {RS=" "; FS="/|\n";} {
17356 for (lt_i = NF; lt_i > 0; lt_i--) {
17357 if ($lt_i != "" && $lt_i != ".") {
17358 if ($lt_i == "..") {
17361 if (lt_count == 0) {
17362 lt_foo="/" $lt_i lt_foo;
17369 if (lt_foo != "") { lt_freq[lt_foo]++; }
17370 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17372 # AWK program above erroneously prepends '/' to C:/dos/paths
17375 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17376 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17378 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17380 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17382 library_names_spec
=
17383 libname_spec
='lib$name'
17387 postuninstall_cmds
=
17391 shlibpath_overrides_runpath
=unknown
17393 dynamic_linker
="$host_os ld.so"
17394 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17395 need_lib_prefix
=unknown
17396 hardcode_into_libs
=no
17398 # when you set need_version to no, make sure it does not cause -set_version
17399 # flags to be left without arguments
17400 need_version
=unknown
17405 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17406 shlibpath_var
=LIBPATH
17408 # AIX 3 has no versioning support, so we append a major version to the name.
17409 soname_spec
='${libname}${release}${shared_ext}$major'
17416 hardcode_into_libs
=yes
17417 if test "$host_cpu" = ia64
; then
17418 # AIX 5 supports IA64
17419 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17420 shlibpath_var
=LD_LIBRARY_PATH
17422 # With GCC up to 2.95.x, collect2 would create an import file
17423 # for dependence libraries. The import file would start with
17424 # the line `#! .'. This would cause the generated library to
17425 # depend on `.', always an invalid library. This was fixed in
17426 # development snapshots of GCC prior to 3.0.
17428 aix4 | aix4.
[01] | aix4.
[01].
*)
17429 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17431 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17434 can_build_shared
=no
17438 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17439 # soname into executable. Probably we can add versioning support to
17440 # collect2, so additional links can be useful in future.
17441 if test "$aix_use_runtimelinking" = yes; then
17442 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17443 # instead of lib<name>.a to let people know that these are not
17444 # typical AIX shared libraries.
17445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17447 # We preserve .a as extension for shared libraries through AIX4.2
17448 # and later when we are not doing run time linking.
17449 library_names_spec
='${libname}${release}.a $libname.a'
17450 soname_spec
='${libname}${release}${shared_ext}$major'
17452 shlibpath_var
=LIBPATH
17459 # Since July 2007 AmigaOS4 officially supports .so libraries.
17460 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17461 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 library_names_spec
='$libname.ixlibrary $libname.a'
17465 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17466 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'
17472 library_names_spec
='${libname}${shared_ext}'
17473 dynamic_linker
="$host_os ld.so"
17474 shlibpath_var
=LIBRARY_PATH
17480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17481 soname_spec
='${libname}${release}${shared_ext}$major'
17482 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17483 shlibpath_var
=LD_LIBRARY_PATH
17484 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17485 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17486 # the default ld.so.conf also contains /usr/contrib/lib and
17487 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17488 # libtool to hard-code these into programs
17491 cygwin
* | mingw
* | pw32
* | cegcc
*)
17492 version_type
=windows
17497 case $GCC,$host_os in
17498 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17499 library_names_spec
='$libname.dll.a'
17500 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17501 postinstall_cmds
='base_file=`basename \${file}`~
17502 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17503 dldir=$destdir/`dirname \$dlpath`~
17504 test -d \$dldir || mkdir -p \$dldir~
17505 $install_prog $dir/$dlname \$dldir/$dlname~
17506 chmod a+x \$dldir/$dlname~
17507 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17508 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17510 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17511 dlpath=$dir/\$dldll~
17513 shlibpath_overrides_runpath
=yes
17517 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17518 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17520 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17523 # MinGW DLLs use traditional 'lib' prefix
17524 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17527 # pw32 DLLs use 'pw' prefix rather than 'lib'
17528 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17534 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17537 dynamic_linker
='Win32 ld.exe'
17538 # FIXME: first we should search . and the directory the executable is in
17542 darwin
* | rhapsody
*)
17543 dynamic_linker
="$host_os dyld"
17544 version_type
=darwin
17547 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17548 soname_spec
='${libname}${release}${major}$shared_ext'
17549 shlibpath_overrides_runpath
=yes
17550 shlibpath_var
=DYLD_LIBRARY_PATH
17551 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17553 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17554 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17562 soname_spec
='${libname}${release}${shared_ext}$major'
17563 shlibpath_var
=LD_LIBRARY_PATH
17566 freebsd
* | dragonfly
*)
17567 # DragonFly does not have aout. When/if they implement a new
17568 # versioning mechanism, adjust this.
17569 if test -x /usr
/bin
/objformat
; then
17570 objformat
=`/usr/bin/objformat`
17573 freebsd
[23].
*) objformat
=aout
;;
17574 *) objformat
=elf
;;
17577 version_type
=freebsd-
$objformat
17578 case $version_type in
17580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17585 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17589 shlibpath_var
=LD_LIBRARY_PATH
17592 shlibpath_overrides_runpath
=yes
17594 freebsd3.
[01]* | freebsdelf3.
[01]*)
17595 shlibpath_overrides_runpath
=yes
17596 hardcode_into_libs
=yes
17598 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17599 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17600 shlibpath_overrides_runpath
=no
17601 hardcode_into_libs
=yes
17603 *) # from 4.6 on, and DragonFly
17604 shlibpath_overrides_runpath
=yes
17605 hardcode_into_libs
=yes
17614 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17615 soname_spec
='${libname}${release}${shared_ext}$major'
17616 shlibpath_var
=LD_LIBRARY_PATH
17617 hardcode_into_libs
=yes
17624 dynamic_linker
="$host_os runtime_loader"
17625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17626 soname_spec
='${libname}${release}${shared_ext}$major'
17627 shlibpath_var
=LIBRARY_PATH
17628 shlibpath_overrides_runpath
=yes
17629 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17630 hardcode_into_libs
=yes
17633 hpux9
* | hpux10
* | hpux11
*)
17634 # Give a soname corresponding to the major version so that dld.sl refuses to
17635 # link against other versions.
17642 hardcode_into_libs
=yes
17643 dynamic_linker
="$host_os dld.so"
17644 shlibpath_var
=LD_LIBRARY_PATH
17645 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17646 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647 soname_spec
='${libname}${release}${shared_ext}$major'
17648 if test "X$HPUX_IA64_MODE" = X32
; then
17649 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17651 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17653 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17657 hardcode_into_libs
=yes
17658 dynamic_linker
="$host_os dld.sl"
17659 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17660 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17662 soname_spec
='${libname}${release}${shared_ext}$major'
17663 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17664 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17668 dynamic_linker
="$host_os dld.sl"
17669 shlibpath_var
=SHLIB_PATH
17670 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17671 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17672 soname_spec
='${libname}${release}${shared_ext}$major'
17675 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17676 postinstall_cmds
='chmod 555 $lib'
17677 # or fails outright, so override atomically:
17678 install_override_mode
=555
17685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17686 soname_spec
='${libname}${release}${shared_ext}$major'
17687 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17688 shlibpath_var
=LD_LIBRARY_PATH
17689 shlibpath_overrides_runpath
=no
17690 hardcode_into_libs
=yes
17693 irix5
* | irix6
* | nonstopux
*)
17695 nonstopux
*) version_type
=nonstopux
;;
17697 if test "$lt_cv_prog_gnu_ld" = yes; then
17705 soname_spec
='${libname}${release}${shared_ext}$major'
17706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17708 irix5
* | nonstopux
*)
17709 libsuff
= shlibsuff
=
17712 case $LD in # libtool.m4 will add one of these switches to LD
17713 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17714 libsuff
= shlibsuff
= libmagic
=32-bit;;
17715 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17716 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17717 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17718 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17719 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17723 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17724 shlibpath_overrides_runpath
=no
17725 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17726 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17727 hardcode_into_libs
=yes
17730 # No shared lib support for Linux oldld, aout, or coff.
17731 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17735 # This must be Linux ELF.
17736 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17741 soname_spec
='${libname}${release}${shared_ext}$major'
17742 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17743 shlibpath_var
=LD_LIBRARY_PATH
17744 shlibpath_overrides_runpath
=no
17746 # Some binutils ld are patched to set DT_RUNPATH
17747 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17748 $as_echo_n "(cached) " >&6
17750 lt_cv_shlibpath_overrides_runpath
=no
17751 save_LDFLAGS
=$LDFLAGS
17752 save_libdir
=$libdir
17753 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17754 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17756 /* end confdefs.h. */
17766 if ac_fn_c_try_link
"$LINENO"; then :
17767 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17768 lt_cv_shlibpath_overrides_runpath
=yes
17771 rm -f core conftest.err conftest.
$ac_objext \
17772 conftest
$ac_exeext conftest.
$ac_ext
17773 LDFLAGS
=$save_LDFLAGS
17774 libdir
=$save_libdir
17778 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17780 # This implies no fast_install, which is unacceptable.
17781 # Some rework will be needed to allow for fast_install
17782 # before this can be enabled.
17783 hardcode_into_libs
=yes
17785 # Append ld.so.conf contents to the search path
17786 if test -f /etc
/ld.so.conf
; then
17787 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' ' '`
17788 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17791 # We used to test for /lib/ld.so.1 and disable shared libraries on
17792 # powerpc, because MkLinux only supported shared libraries with the
17793 # GNU dynamic linker. Since this was broken with cross compilers,
17794 # most powerpc-linux boxes support dynamic linking these days and
17795 # people can always --disable-shared, the test was removed, and we
17796 # assume the GNU/Linux dynamic linker is in use.
17797 dynamic_linker
='GNU/Linux ld.so'
17804 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17805 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17806 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17807 dynamic_linker
='NetBSD (a.out) ld.so'
17809 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17810 soname_spec
='${libname}${release}${shared_ext}$major'
17811 dynamic_linker
='NetBSD ld.elf_so'
17813 shlibpath_var
=LD_LIBRARY_PATH
17814 shlibpath_overrides_runpath
=yes
17815 hardcode_into_libs
=yes
17820 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17821 shlibpath_var
=LD_LIBRARY_PATH
17822 shlibpath_overrides_runpath
=yes
17829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830 soname_spec
='${libname}${release}${shared_ext}$major'
17831 shlibpath_var
=LD_LIBRARY_PATH
17832 shlibpath_overrides_runpath
=no
17833 hardcode_into_libs
=yes
17834 dynamic_linker
='ldqnx.so'
17839 sys_lib_dlsearch_path_spec
="/usr/lib"
17841 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17843 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17844 *) need_version
=no
;;
17846 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17847 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17848 shlibpath_var
=LD_LIBRARY_PATH
17849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17851 openbsd2.
[89] | openbsd2.
[89].
*)
17852 shlibpath_overrides_runpath
=no
17855 shlibpath_overrides_runpath
=yes
17859 shlibpath_overrides_runpath
=yes
17864 libname_spec
='$name'
17867 library_names_spec
='$libname${shared_ext} $libname.a'
17868 dynamic_linker
='OS/2 ld.exe'
17869 shlibpath_var
=LIBPATH
17872 osf3
* | osf4
* | osf5
*)
17876 soname_spec
='${libname}${release}${shared_ext}$major'
17877 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17878 shlibpath_var
=LD_LIBRARY_PATH
17879 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17880 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17891 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17892 soname_spec
='${libname}${release}${shared_ext}$major'
17893 shlibpath_var
=LD_LIBRARY_PATH
17894 shlibpath_overrides_runpath
=yes
17895 hardcode_into_libs
=yes
17896 # ldd complains unless libraries are executable
17897 postinstall_cmds
='chmod +x $lib'
17902 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17903 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17904 shlibpath_var
=LD_LIBRARY_PATH
17905 shlibpath_overrides_runpath
=yes
17906 if test "$with_gnu_ld" = yes; then
17914 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17915 soname_spec
='${libname}${release}${shared_ext}$major'
17916 shlibpath_var
=LD_LIBRARY_PATH
17917 case $host_vendor in
17919 shlibpath_overrides_runpath
=no
17921 runpath_var
=LD_RUN_PATH
17929 shlibpath_overrides_runpath
=no
17930 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17936 if test -d /usr
/nec
;then
17938 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17939 soname_spec
='$libname${shared_ext}.$major'
17940 shlibpath_var
=LD_LIBRARY_PATH
17944 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17945 version_type
=freebsd-elf
17948 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17949 soname_spec
='${libname}${release}${shared_ext}$major'
17950 shlibpath_var
=LD_LIBRARY_PATH
17951 shlibpath_overrides_runpath
=yes
17952 hardcode_into_libs
=yes
17953 if test "$with_gnu_ld" = yes; then
17954 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17956 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17959 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17963 sys_lib_dlsearch_path_spec
='/usr/lib'
17967 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17972 shlibpath_var
=LD_LIBRARY_PATH
17973 shlibpath_overrides_runpath
=no
17974 hardcode_into_libs
=yes
17979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec
='${libname}${release}${shared_ext}$major'
17981 shlibpath_var
=LD_LIBRARY_PATH
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17989 $as_echo "$dynamic_linker" >&6; }
17990 test "$dynamic_linker" = no
&& can_build_shared
=no
17992 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17993 if test "$GCC" = yes; then
17994 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17997 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17998 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18000 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18001 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18096 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18098 if test -n "$hardcode_libdir_flag_spec" ||
18099 test -n "$runpath_var" ||
18100 test "X$hardcode_automatic" = "Xyes" ; then
18102 # We can hardcode non-existent directories.
18103 if test "$hardcode_direct" != no
&&
18104 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18105 # have to relink, otherwise we might link with an installed library
18106 # when we should be linking with a yet-to-be-installed one
18107 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18108 test "$hardcode_minus_L" != no
; then
18109 # Linking always hardcodes the temporary library directory.
18110 hardcode_action
=relink
18112 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18113 hardcode_action
=immediate
18116 # We cannot hardcode anything, or else we can only hardcode existing
18118 hardcode_action
=unsupported
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18121 $as_echo "$hardcode_action" >&6; }
18123 if test "$hardcode_action" = relink ||
18124 test "$inherit_rpath" = yes; then
18125 # Fast installation is not supported
18126 enable_fast_install
=no
18127 elif test "$shlibpath_overrides_runpath" = yes ||
18128 test "$enable_shared" = no
; then
18129 # Fast installation is not necessary
18130 enable_fast_install
=needless
18138 if test "x$enable_dlopen" != xyes
; then
18139 enable_dlopen
=unknown
18140 enable_dlopen_self
=unknown
18141 enable_dlopen_self_static
=unknown
18148 lt_cv_dlopen
="load_add_on"
18150 lt_cv_dlopen_self
=yes
18153 mingw
* | pw32
* | cegcc
*)
18154 lt_cv_dlopen
="LoadLibrary"
18159 lt_cv_dlopen
="dlopen"
18164 # if libdl is installed we need to link against it
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18166 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18167 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18168 $as_echo_n "(cached) " >&6
18170 ac_check_lib_save_LIBS
=$LIBS
18172 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18173 /* end confdefs.h. */
18175 /* Override any GCC internal prototype to avoid an error.
18176 Use char because int might match the return type of a GCC
18177 builtin and then its argument prototype would still apply. */
18190 if ac_fn_c_try_link
"$LINENO"; then :
18191 ac_cv_lib_dl_dlopen
=yes
18193 ac_cv_lib_dl_dlopen
=no
18195 rm -f core conftest.err conftest.
$ac_objext \
18196 conftest
$ac_exeext conftest.
$ac_ext
18197 LIBS
=$ac_check_lib_save_LIBS
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18200 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18201 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18202 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18205 lt_cv_dlopen
="dyld"
18207 lt_cv_dlopen_self
=yes
18214 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18215 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18216 lt_cv_dlopen
="shl_load"
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18219 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18220 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18221 $as_echo_n "(cached) " >&6
18223 ac_check_lib_save_LIBS
=$LIBS
18225 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18238 return shl_load ();
18243 if ac_fn_c_try_link
"$LINENO"; then :
18244 ac_cv_lib_dld_shl_load
=yes
18246 ac_cv_lib_dld_shl_load
=no
18248 rm -f core conftest.err conftest.
$ac_objext \
18249 conftest
$ac_exeext conftest.
$ac_ext
18250 LIBS
=$ac_check_lib_save_LIBS
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18253 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18254 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18255 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18257 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18258 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18259 lt_cv_dlopen
="dlopen"
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18262 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18263 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18264 $as_echo_n "(cached) " >&6
18266 ac_check_lib_save_LIBS
=$LIBS
18268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18271 /* Override any GCC internal prototype to avoid an error.
18272 Use char because int might match the return type of a GCC
18273 builtin and then its argument prototype would still apply. */
18286 if ac_fn_c_try_link
"$LINENO"; then :
18287 ac_cv_lib_dl_dlopen
=yes
18289 ac_cv_lib_dl_dlopen
=no
18291 rm -f core conftest.err conftest.
$ac_objext \
18292 conftest
$ac_exeext conftest.
$ac_ext
18293 LIBS
=$ac_check_lib_save_LIBS
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18296 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18297 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18298 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18301 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18302 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18303 $as_echo_n "(cached) " >&6
18305 ac_check_lib_save_LIBS
=$LIBS
18306 LIBS
="-lsvld $LIBS"
18307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18308 /* end confdefs.h. */
18310 /* Override any GCC internal prototype to avoid an error.
18311 Use char because int might match the return type of a GCC
18312 builtin and then its argument prototype would still apply. */
18325 if ac_fn_c_try_link
"$LINENO"; then :
18326 ac_cv_lib_svld_dlopen
=yes
18328 ac_cv_lib_svld_dlopen
=no
18330 rm -f core conftest.err conftest.
$ac_objext \
18331 conftest
$ac_exeext conftest.
$ac_ext
18332 LIBS
=$ac_check_lib_save_LIBS
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18335 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18336 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18337 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18340 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18341 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18342 $as_echo_n "(cached) " >&6
18344 ac_check_lib_save_LIBS
=$LIBS
18346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18347 /* end confdefs.h. */
18349 /* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
18359 return dld_link ();
18364 if ac_fn_c_try_link
"$LINENO"; then :
18365 ac_cv_lib_dld_dld_link
=yes
18367 ac_cv_lib_dld_dld_link
=no
18369 rm -f core conftest.err conftest.
$ac_objext \
18370 conftest
$ac_exeext conftest.
$ac_ext
18371 LIBS
=$ac_check_lib_save_LIBS
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18374 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18375 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18376 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18397 if test "x$lt_cv_dlopen" != xno
; then
18403 case $lt_cv_dlopen in
18405 save_CPPFLAGS
="$CPPFLAGS"
18406 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18408 save_LDFLAGS
="$LDFLAGS"
18409 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18412 LIBS
="$lt_cv_dlopen_libs $LIBS"
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18415 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18416 if test "${lt_cv_dlopen_self+set}" = set; then :
18417 $as_echo_n "(cached) " >&6
18419 if test "$cross_compiling" = yes; then :
18420 lt_cv_dlopen_self
=cross
18422 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18423 lt_status
=$lt_dlunknown
18424 cat > conftest.
$ac_ext <<_LT_EOF
18425 #line 18425 "configure"
18426 #include "confdefs.h"
18435 # define LT_DLGLOBAL RTLD_GLOBAL
18438 # define LT_DLGLOBAL DL_GLOBAL
18440 # define LT_DLGLOBAL 0
18444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18445 find out it does not work in some platform. */
18446 #ifndef LT_DLLAZY_OR_NOW
18448 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18451 # define LT_DLLAZY_OR_NOW DL_LAZY
18454 # define LT_DLLAZY_OR_NOW RTLD_NOW
18457 # define LT_DLLAZY_OR_NOW DL_NOW
18459 # define LT_DLLAZY_OR_NOW 0
18466 /* When -fvisbility=hidden is used, assume the code has been annotated
18467 correspondingly for the symbols needed. */
18468 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18469 void fnord () __attribute__((visibility("default")));
18472 void fnord () { int i=42; }
18475 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18476 int status = $lt_dlunknown;
18480 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18483 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18484 else puts (dlerror ());
18486 /* dlclose (self); */
18494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18495 (eval $ac_link) 2>&5
18497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18498 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18499 (.
/conftest
; exit; ) >&5 2>/dev
/null
18501 case x
$lt_status in
18502 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18503 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18504 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18507 # compilation failed
18508 lt_cv_dlopen_self
=no
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18516 $as_echo "$lt_cv_dlopen_self" >&6; }
18518 if test "x$lt_cv_dlopen_self" = xyes
; then
18519 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18521 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18522 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18523 $as_echo_n "(cached) " >&6
18525 if test "$cross_compiling" = yes; then :
18526 lt_cv_dlopen_self_static
=cross
18528 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18529 lt_status
=$lt_dlunknown
18530 cat > conftest.
$ac_ext <<_LT_EOF
18531 #line 18531 "configure"
18532 #include "confdefs.h"
18541 # define LT_DLGLOBAL RTLD_GLOBAL
18544 # define LT_DLGLOBAL DL_GLOBAL
18546 # define LT_DLGLOBAL 0
18550 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18551 find out it does not work in some platform. */
18552 #ifndef LT_DLLAZY_OR_NOW
18554 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18557 # define LT_DLLAZY_OR_NOW DL_LAZY
18560 # define LT_DLLAZY_OR_NOW RTLD_NOW
18563 # define LT_DLLAZY_OR_NOW DL_NOW
18565 # define LT_DLLAZY_OR_NOW 0
18572 /* When -fvisbility=hidden is used, assume the code has been annotated
18573 correspondingly for the symbols needed. */
18574 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18575 void fnord () __attribute__((visibility("default")));
18578 void fnord () { int i=42; }
18581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18582 int status = $lt_dlunknown;
18586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18589 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18590 else puts (dlerror ());
18592 /* dlclose (self); */
18600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18601 (eval $ac_link) 2>&5
18603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18604 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18605 (.
/conftest
; exit; ) >&5 2>/dev
/null
18607 case x
$lt_status in
18608 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18609 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18610 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18613 # compilation failed
18614 lt_cv_dlopen_self_static
=no
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18622 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18625 CPPFLAGS
="$save_CPPFLAGS"
18626 LDFLAGS
="$save_LDFLAGS"
18631 case $lt_cv_dlopen_self in
18632 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18633 *) enable_dlopen_self
=unknown
;;
18636 case $lt_cv_dlopen_self_static in
18637 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18638 *) enable_dlopen_self_static
=unknown
;;
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18661 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18662 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18663 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18664 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18666 $as_echo "yes" >&6; }
18668 # FIXME - insert some real tests, host_os isn't really good enough
18671 if test -n "$STRIP" ; then
18672 striplib
="$STRIP -x"
18673 old_striplib
="$STRIP -S"
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18675 $as_echo "yes" >&6; }
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18678 $as_echo "no" >&6; }
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18683 $as_echo "no" >&6; }
18699 # Report which library types will actually be built
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18701 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18703 $as_echo "$can_build_shared" >&6; }
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18706 $as_echo_n "checking whether to build shared libraries... " >&6; }
18707 test "$can_build_shared" = "no" && enable_shared
=no
18709 # On AIX, shared libraries and static libraries use the same namespace, and
18710 # are all built from PIC.
18713 test "$enable_shared" = yes && enable_static
=no
18714 if test -n "$RANLIB"; then
18715 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18716 postinstall_cmds
='$RANLIB $lib'
18721 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18722 test "$enable_shared" = yes && enable_static
=no
18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18727 $as_echo "$enable_shared" >&6; }
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18730 $as_echo_n "checking whether to build static libraries... " >&6; }
18731 # Make sure either enable_shared or enable_static is yes.
18732 test "$enable_shared" = yes || enable_static
=yes
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18734 $as_echo "$enable_static" >&6; }
18741 ac_cpp
='$CXXCPP $CPPFLAGS'
18742 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18743 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18744 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18748 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18749 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18750 (test "X$CXX" != "Xg++"))) ; then
18752 ac_cpp
='$CXXCPP $CPPFLAGS'
18753 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18754 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18755 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18757 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18758 if test -z "$CXXCPP"; then
18759 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18760 $as_echo_n "(cached) " >&6
18762 # Double quotes because CXXCPP needs to be expanded
18763 for CXXCPP
in "$CXX -E" "/lib/cpp"
18765 ac_preproc_ok
=false
18766 for ac_cxx_preproc_warn_flag
in '' yes
18768 # Use a header file that comes with gcc, so configuring glibc
18769 # with a fresh cross-compiler works.
18770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18771 # <limits.h> exists even on freestanding compilers.
18772 # On the NeXT, cc -E runs the code through the compiler's parser,
18773 # not just through cpp. "Syntax error" is here to catch this case.
18774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18777 # include <limits.h>
18779 # include <assert.h>
18783 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18786 # Broken: fails on valid input.
18789 rm -f conftest.err conftest.
$ac_ext
18791 # OK, works on sane cases. Now check whether nonexistent headers
18792 # can be detected and how.
18793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18794 /* end confdefs.h. */
18795 #include <ac_nonexistent.h>
18797 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18798 # Broken: success on invalid input.
18801 # Passes both tests.
18805 rm -f conftest.err conftest.
$ac_ext
18808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18809 rm -f conftest.err conftest.
$ac_ext
18810 if $ac_preproc_ok; then :
18815 ac_cv_prog_CXXCPP
=$CXXCPP
18818 CXXCPP
=$ac_cv_prog_CXXCPP
18820 ac_cv_prog_CXXCPP
=$CXXCPP
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18823 $as_echo "$CXXCPP" >&6; }
18824 ac_preproc_ok
=false
18825 for ac_cxx_preproc_warn_flag
in '' yes
18827 # Use a header file that comes with gcc, so configuring glibc
18828 # with a fresh cross-compiler works.
18829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18830 # <limits.h> exists even on freestanding compilers.
18831 # On the NeXT, cc -E runs the code through the compiler's parser,
18832 # not just through cpp. "Syntax error" is here to catch this case.
18833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18834 /* end confdefs.h. */
18836 # include <limits.h>
18838 # include <assert.h>
18842 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18845 # Broken: fails on valid input.
18848 rm -f conftest.err conftest.
$ac_ext
18850 # OK, works on sane cases. Now check whether nonexistent headers
18851 # can be detected and how.
18852 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18853 /* end confdefs.h. */
18854 #include <ac_nonexistent.h>
18856 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18857 # Broken: success on invalid input.
18860 # Passes both tests.
18864 rm -f conftest.err conftest.
$ac_ext
18867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18868 rm -f conftest.err conftest.
$ac_ext
18869 if $ac_preproc_ok; then :
18872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18874 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18875 See \`config.log' for more details." "$LINENO" 5; }
18879 ac_cpp
='$CXXCPP $CPPFLAGS'
18880 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18885 _lt_caught_CXX_error
=yes
18889 ac_cpp
='$CXXCPP $CPPFLAGS'
18890 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18891 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18892 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18894 archive_cmds_need_lc_CXX
=no
18895 allow_undefined_flag_CXX
=
18896 always_export_symbols_CXX
=no
18897 archive_expsym_cmds_CXX
=
18898 compiler_needs_object_CXX
=no
18899 export_dynamic_flag_spec_CXX
=
18900 hardcode_direct_CXX
=no
18901 hardcode_direct_absolute_CXX
=no
18902 hardcode_libdir_flag_spec_CXX
=
18903 hardcode_libdir_flag_spec_ld_CXX
=
18904 hardcode_libdir_separator_CXX
=
18905 hardcode_minus_L_CXX
=no
18906 hardcode_shlibpath_var_CXX
=unsupported
18907 hardcode_automatic_CXX
=no
18908 inherit_rpath_CXX
=no
18910 module_expsym_cmds_CXX
=
18911 link_all_deplibs_CXX
=unknown
18912 old_archive_cmds_CXX
=$old_archive_cmds
18913 reload_flag_CXX
=$reload_flag
18914 reload_cmds_CXX
=$reload_cmds
18915 no_undefined_flag_CXX
=
18916 whole_archive_flag_spec_CXX
=
18917 enable_shared_with_static_runtimes_CXX
=no
18919 # Source file extension for C++ test sources.
18922 # Object file extension for compiled C++ test sources.
18926 # No sense in running all these tests if we already determined that
18927 # the CXX compiler isn't working. Some variables (like enable_shared)
18928 # are currently assumed to apply to all compilers on this platform,
18929 # and will be corrupted by setting them based on a non-working compiler.
18930 if test "$_lt_caught_CXX_error" != yes; then
18931 # Code to be used in simple compile tests
18932 lt_simple_compile_test_code
="int some_variable = 0;"
18934 # Code to be used in simple link tests
18935 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18944 # If no C compiler was specified, use CC.
18947 # If no C compiler flags were specified, use CFLAGS.
18948 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18950 # Allow CC to be a program name with arguments.
18954 # save warnings/boilerplate of simple test code
18955 ac_outfile
=conftest.
$ac_objext
18956 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18957 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18958 _lt_compiler_boilerplate
=`cat conftest.err`
18961 ac_outfile
=conftest.
$ac_objext
18962 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18963 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18964 _lt_linker_boilerplate
=`cat conftest.err`
18968 # Allow CC to be a program name with arguments.
18973 lt_save_with_gnu_ld
=$with_gnu_ld
18974 lt_save_path_LD
=$lt_cv_path_LD
18975 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18976 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18978 $as_unset lt_cv_prog_gnu_ld
18980 if test -n "${lt_cv_path_LDCXX+set}"; then
18981 lt_cv_path_LD
=$lt_cv_path_LDCXX
18983 $as_unset lt_cv_path_LD
18985 test -z "${LDCXX+set}" || LD
=$LDCXX
18989 for cc_temp
in $compiler""; do
18991 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18992 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18997 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19000 if test -n "$compiler"; then
19001 # We don't want -fno-exception when compiling C++ code, so set the
19002 # no_builtin_flag separately
19003 if test "$GXX" = yes; then
19004 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19006 lt_prog_compiler_no_builtin_flag_CXX
=
19009 if test "$GXX" = yes; then
19010 # Set up default GNU C++ configuration
19014 # Check whether --with-gnu-ld was given.
19015 if test "${with_gnu_ld+set}" = set; then :
19016 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19022 if test "$GCC" = yes; then
19023 # Check if gcc -print-prog-name=ld gives a path.
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19025 $as_echo_n "checking for ld used by $CC... " >&6; }
19028 # gcc leaves a trailing carriage return which upsets mingw
19029 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19031 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19034 # Accept absolute paths.
19036 re_direlt
='/[^/][^/]*/\.\./'
19037 # Canonicalize the pathname of ld
19038 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19039 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19040 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19042 test -z "$LD" && LD
="$ac_prog"
19045 # If it fails, then pretend we aren't using GCC.
19049 # If it is relative, then search for the first ld in PATH.
19050 with_gnu_ld
=unknown
19053 elif test "$with_gnu_ld" = yes; then
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19055 $as_echo_n "checking for GNU ld... " >&6; }
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19058 $as_echo_n "checking for non-GNU ld... " >&6; }
19060 if test "${lt_cv_path_LD+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19063 if test -z "$LD"; then
19064 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19065 for ac_dir
in $PATH; do
19067 test -z "$ac_dir" && ac_dir
=.
19068 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19069 lt_cv_path_LD
="$ac_dir/$ac_prog"
19070 # Check to see if the program is GNU ld. I'd rather use --version,
19071 # but apparently some variants of GNU ld only accept -v.
19072 # Break only if it was the GNU/non-GNU ld that we prefer.
19073 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19074 *GNU
* |
*'with BFD'*)
19075 test "$with_gnu_ld" != no
&& break
19078 test "$with_gnu_ld" != yes && break
19085 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19089 LD
="$lt_cv_path_LD"
19090 if test -n "$LD"; then
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19092 $as_echo "$LD" >&6; }
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19095 $as_echo "no" >&6; }
19097 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19099 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19100 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19101 $as_echo_n "(cached) " >&6
19103 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19104 case `$LD -v 2>&1 </dev/null` in
19105 *GNU
* |
*'with BFD'*)
19106 lt_cv_prog_gnu_ld
=yes
19109 lt_cv_prog_gnu_ld
=no
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19114 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19115 with_gnu_ld
=$lt_cv_prog_gnu_ld
19123 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19124 # archiving commands below assume that GNU ld is being used.
19125 if test "$with_gnu_ld" = yes; then
19126 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19127 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'
19129 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19130 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19132 # If archive_cmds runs LD, not CC, wlarc should be empty
19133 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19134 # investigate it a little bit more. (MM)
19137 # ancient GNU ld didn't support --whole-archive et. al.
19138 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19139 $GREP 'no-whole-archive' > /dev
/null
; then
19140 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19142 whole_archive_flag_spec_CXX
=
19148 # A generic and very simple default shared library creation
19149 # command for GNU C++ for the case where it uses the native
19150 # linker, instead of GNU ld. If possible, this setting should
19151 # overridden to take advantage of the native linker features on
19152 # the platform it is being used on.
19153 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19156 # Commands to make compiler produce verbose output that lists
19157 # what "hidden" libraries, object files and flags are used when
19158 # linking a shared library.
19159 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19167 # PORTME: fill in a description of your system's C++ link characteristics
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19169 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19173 # FIXME: insert proper C++ library support
19177 if test "$host_cpu" = ia64
; then
19178 # On IA64, the linker does run time linking by default, so we don't
19179 # have to do anything special.
19180 aix_use_runtimelinking
=no
19181 exp_sym_flag
='-Bexport'
19184 aix_use_runtimelinking
=no
19186 # Test if we are trying to use run time linking or normal
19187 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19188 # need to do runtime linking.
19189 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19190 for ld_flag
in $LDFLAGS; do
19193 aix_use_runtimelinking
=yes
19201 exp_sym_flag
='-bexport'
19202 no_entry_flag
='-bnoentry'
19205 # When large executables or shared objects are built, AIX ld can
19206 # have problems creating the table of contents. If linking a library
19207 # or program results in "error TOC overflow" add -mminimal-toc to
19208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19211 archive_cmds_CXX
=''
19212 hardcode_direct_CXX
=yes
19213 hardcode_direct_absolute_CXX
=yes
19214 hardcode_libdir_separator_CXX
=':'
19215 link_all_deplibs_CXX
=yes
19216 file_list_spec_CXX
='${wl}-f,'
19218 if test "$GXX" = yes; then
19219 case $host_os in aix4.
[012]|aix4.
[012].
*)
19220 # We only want to do this on AIX 4.2 and lower, the check
19221 # below for broken collect2 doesn't work under 4.3+
19222 collect2name
=`${CC} -print-prog-name=collect2`
19223 if test -f "$collect2name" &&
19224 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19226 # We have reworked collect2
19229 # We have old collect2
19230 hardcode_direct_CXX
=unsupported
19231 # It fails to find uninstalled libraries when the uninstalled
19232 # path is not listed in the libpath. Setting hardcode_minus_L
19233 # to unsupported forces relinking
19234 hardcode_minus_L_CXX
=yes
19235 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19236 hardcode_libdir_separator_CXX
=
19239 shared_flag
='-shared'
19240 if test "$aix_use_runtimelinking" = yes; then
19241 shared_flag
="$shared_flag "'${wl}-G'
19245 if test "$host_cpu" = ia64
; then
19246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19247 # chokes on -Wl,-G. The following line is correct:
19250 if test "$aix_use_runtimelinking" = yes; then
19251 shared_flag
='${wl}-G'
19253 shared_flag
='${wl}-bM:SRE'
19258 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19259 # It seems that -bexpall does not export symbols beginning with
19260 # underscore (_), so it is better to generate a list of symbols to
19262 always_export_symbols_CXX
=yes
19263 if test "$aix_use_runtimelinking" = yes; then
19264 # Warning - without using the other runtime loading flags (-brtl),
19265 # -berok will link without error, but may produce a broken library.
19266 allow_undefined_flag_CXX
='-berok'
19267 # Determine the default libpath from the value encoded in an empty
19269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19270 /* end confdefs.h. */
19280 if ac_fn_cxx_try_link
"$LINENO"; then :
19282 lt_aix_libpath_sed
='
19283 /Import File Strings/,/^$/ {
19289 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19290 # Check for a 64-bit object if we didn't find anything.
19291 if test -z "$aix_libpath"; then
19292 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19295 rm -f core conftest.err conftest.
$ac_objext \
19296 conftest
$ac_exeext conftest.
$ac_ext
19297 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19299 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19301 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"
19303 if test "$host_cpu" = ia64
; then
19304 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19305 allow_undefined_flag_CXX
="-z nodefs"
19306 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"
19308 # Determine the default libpath from the value encoded in an
19309 # empty executable.
19310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h. */
19321 if ac_fn_cxx_try_link
"$LINENO"; then :
19323 lt_aix_libpath_sed
='
19324 /Import File Strings/,/^$/ {
19330 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19331 # Check for a 64-bit object if we didn't find anything.
19332 if test -z "$aix_libpath"; then
19333 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19336 rm -f core conftest.err conftest.
$ac_objext \
19337 conftest
$ac_exeext conftest.
$ac_ext
19338 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19340 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19341 # Warning - without using the other run time loading flags,
19342 # -berok will link without error, but may produce a broken library.
19343 no_undefined_flag_CXX
=' ${wl}-bernotok'
19344 allow_undefined_flag_CXX
=' ${wl}-berok'
19345 if test "$with_gnu_ld" = yes; then
19346 # We only use this code for GNU lds that support --whole-archive.
19347 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19349 # Exported symbols can be pulled into shared objects from archives
19350 whole_archive_flag_spec_CXX
='$convenience'
19352 archive_cmds_need_lc_CXX
=yes
19353 # This is similar to how AIX traditionally builds its shared
19355 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'
19361 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19362 allow_undefined_flag_CXX
=unsupported
19363 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19364 # support --undefined. This deserves some investigation. FIXME
19365 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372 case $cc_basename in
19374 # FIXME: insert proper C++ library support
19380 cygwin
* | mingw
* | pw32
* | cegcc
*)
19381 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19382 # as there is no search path for DLLs.
19383 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19384 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19385 allow_undefined_flag_CXX
=unsupported
19386 always_export_symbols_CXX
=no
19387 enable_shared_with_static_runtimes_CXX
=yes
19389 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19390 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'
19391 # If the export-symbols file already is a .def file (1st line
19392 # is EXPORTS), use it as is; otherwise, prepend...
19393 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19394 cp $export_symbols $output_objdir/$soname.def;
19396 echo EXPORTS > $output_objdir/$soname.def;
19397 cat $export_symbols >> $output_objdir/$soname.def;
19399 $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'
19404 darwin
* | rhapsody
*)
19407 archive_cmds_need_lc_CXX
=no
19408 hardcode_direct_CXX
=no
19409 hardcode_automatic_CXX
=yes
19410 hardcode_shlibpath_var_CXX
=unsupported
19411 if test "$lt_cv_ld_force_load" = "yes"; then
19412 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\"`'
19414 whole_archive_flag_spec_CXX
=''
19416 link_all_deplibs_CXX
=yes
19417 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19418 case $cc_basename in
19419 ifort
*) _lt_dar_can_shared
=yes ;;
19420 *) _lt_dar_can_shared
=$GCC ;;
19422 if test "$_lt_dar_can_shared" = "yes"; then
19423 output_verbose_link_cmd
=func_echo_all
19424 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}"
19425 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19426 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}"
19427 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}"
19428 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19429 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}"
19430 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}"
19440 case $cc_basename in
19442 # FIXME: insert proper C++ library support
19446 # Green Hills C++ Compiler
19447 # FIXME: insert proper C++ library support
19451 # FIXME: insert proper C++ library support
19458 # C++ shared libraries reported to be fairly broken before
19464 archive_cmds_need_lc_CXX
=no
19467 freebsd
* | dragonfly
*)
19468 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19477 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19478 link_all_deplibs_CXX
=yes
19482 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19483 hardcode_libdir_separator_CXX
=:
19484 export_dynamic_flag_spec_CXX
='${wl}-E'
19485 hardcode_direct_CXX
=yes
19486 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19487 # but as the default
19488 # location of the library.
19490 case $cc_basename in
19492 # FIXME: insert proper C++ library support
19496 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'
19497 # Commands to make compiler produce verbose output that lists
19498 # what "hidden" libraries, object files and flags are used when
19499 # linking a shared library.
19501 # There doesn't appear to be a way to prevent this compiler from
19502 # explicitly linking system object files so we need to strip them
19503 # from the output so that they don't get included in the library
19505 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"'
19508 if test "$GXX" = yes; then
19509 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'
19511 # FIXME: insert proper C++ library support
19519 if test $with_gnu_ld = no
; then
19520 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19521 hardcode_libdir_separator_CXX
=:
19527 export_dynamic_flag_spec_CXX
='${wl}-E'
19533 hardcode_direct_CXX
=no
19534 hardcode_shlibpath_var_CXX
=no
19537 hardcode_direct_CXX
=yes
19538 hardcode_direct_absolute_CXX
=yes
19539 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19540 # but as the default
19541 # location of the library.
19545 case $cc_basename in
19547 # FIXME: insert proper C++ library support
19553 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19556 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19559 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19562 # Commands to make compiler produce verbose output that lists
19563 # what "hidden" libraries, object files and flags are used when
19564 # linking a shared library.
19566 # There doesn't appear to be a way to prevent this compiler from
19567 # explicitly linking system object files so we need to strip them
19568 # from the output so that they don't get included in the library
19570 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"'
19573 if test "$GXX" = yes; then
19574 if test $with_gnu_ld = no
; then
19577 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19580 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19583 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'
19588 # FIXME: insert proper C++ library support
19596 hardcode_direct_CXX
=no
19597 hardcode_shlibpath_var_CXX
=no
19598 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19599 export_dynamic_flag_spec_CXX
='${wl}-E'
19600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19601 # Instead, shared libraries are loaded at an image base (0x10000000 by
19602 # default) and relocated if they conflict, which is a slow very memory
19603 # consuming and fragmenting process. To avoid this, we pick a random,
19604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19606 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'
19607 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'
19610 case $cc_basename in
19613 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'
19615 # Archives containing C++ object files must be created using
19616 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19617 # necessary to make sure instantiated templates are included
19619 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19622 if test "$GXX" = yes; then
19623 if test "$with_gnu_ld" = no
; then
19624 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'
19626 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'
19629 link_all_deplibs_CXX
=yes
19632 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19633 hardcode_libdir_separator_CXX
=:
19634 inherit_rpath_CXX
=yes
19637 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19638 case $cc_basename in
19640 # Kuck and Associates, Inc. (KAI) C++ Compiler
19642 # KCC will only create a shared library if the output file
19643 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19644 # to its proper name (with version) after linking.
19645 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'
19646 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'
19647 # Commands to make compiler produce verbose output that lists
19648 # what "hidden" libraries, object files and flags are used when
19649 # linking a shared library.
19651 # There doesn't appear to be a way to prevent this compiler from
19652 # explicitly linking system object files so we need to strip them
19653 # from the output so that they don't get included in the library
19655 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"'
19657 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19658 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19660 # Archives containing C++ object files must be created using
19661 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19662 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19667 # version 8.0 and above of icpc choke on multiply defined symbols
19668 # if we add $predep_objects and $postdep_objects, however 7.1 and
19669 # earlier do not add the objects themselves.
19670 case `$CC -V 2>&1` in
19672 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19673 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'
19675 *) # Version 8.0 or newer
19678 ia64
*) tmp_idyn
=' -i_dynamic';;
19680 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19681 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'
19684 archive_cmds_need_lc_CXX
=no
19685 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19686 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19687 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19690 # Portland Group C++ compiler
19692 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19693 prelink_cmds_CXX
='tpldir=Template.dir~
19695 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19696 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19697 old_archive_cmds_CXX
='tpldir=Template.dir~
19699 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19700 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19702 archive_cmds_CXX
='tpldir=Template.dir~
19704 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19705 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19706 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19708 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19709 $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'
19711 *) # Version 6 and above use weak symbols
19712 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19713 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'
19717 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19718 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19719 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'
19723 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19724 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'
19726 runpath_var
=LD_RUN_PATH
19727 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19728 hardcode_libdir_separator_CXX
=:
19730 # Commands to make compiler produce verbose output that lists
19731 # what "hidden" libraries, object files and flags are used when
19732 # linking a shared library.
19734 # There doesn't appear to be a way to prevent this compiler from
19735 # explicitly linking system object files so we need to strip them
19736 # from the output so that they don't get included in the library
19738 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'
19740 xl
* | mpixl
* | bgxl
*)
19741 # IBM XL 8.0 on PPC, with GNU ld
19742 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19743 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19744 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19745 if test "x$supports_anon_versioning" = xyes
; then
19746 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19747 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19748 echo "local: *; };" >> $output_objdir/$libname.ver~
19749 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19753 case `$CC -V 2>&1 | sed 5q` in
19756 no_undefined_flag_CXX
=' -zdefs'
19757 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19758 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'
19759 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19760 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'
19761 compiler_needs_object_CXX
=yes
19763 # Not sure whether something based on
19764 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19766 output_verbose_link_cmd
='func_echo_all'
19768 # Archives containing C++ object files must be created using
19769 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19770 # necessary to make sure instantiated templates are included
19772 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19780 # FIXME: insert proper C++ library support
19785 # FIXME: insert proper C++ library support
19790 case $cc_basename in
19792 # FIXME: insert proper C++ library support
19796 # FIXME: insert proper C++ library support
19803 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19804 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19806 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19807 hardcode_direct_CXX
=yes
19808 hardcode_shlibpath_var_CXX
=no
19810 # Workaround some broken pre-1.5 toolchains
19811 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19819 # C++ shared libraries are fairly broken
19824 if test -f /usr
/libexec
/ld.so
; then
19825 hardcode_direct_CXX
=yes
19826 hardcode_shlibpath_var_CXX
=no
19827 hardcode_direct_absolute_CXX
=yes
19828 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19829 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19831 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19832 export_dynamic_flag_spec_CXX
='${wl}-E'
19833 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19835 output_verbose_link_cmd
=func_echo_all
19841 osf3
* | osf4
* | osf5
*)
19842 case $cc_basename in
19844 # Kuck and Associates, Inc. (KAI) C++ Compiler
19846 # KCC will only create a shared library if the output file
19847 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19848 # to its proper name (with version) after linking.
19849 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'
19851 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19852 hardcode_libdir_separator_CXX
=:
19854 # Archives containing C++ object files must be created using
19855 # the KAI C++ compiler.
19857 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19858 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19862 # Rational C++ 2.4.1
19863 # FIXME: insert proper C++ library support
19869 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19870 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'
19871 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19874 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19875 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'
19876 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19877 echo "-hidden">> $lib.exp~
19878 $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~
19880 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19884 hardcode_libdir_separator_CXX
=:
19886 # Commands to make compiler produce verbose output that lists
19887 # what "hidden" libraries, object files and flags are used when
19888 # linking a shared library.
19890 # There doesn't appear to be a way to prevent this compiler from
19891 # explicitly linking system object files so we need to strip them
19892 # from the output so that they don't get included in the library
19894 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"'
19897 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19898 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19901 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'
19904 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'
19908 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19909 hardcode_libdir_separator_CXX
=:
19911 # Commands to make compiler produce verbose output that lists
19912 # what "hidden" libraries, object files and flags are used when
19913 # linking a shared library.
19914 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19917 # FIXME: insert proper C++ library support
19925 # FIXME: insert proper C++ library support
19930 case $cc_basename in
19933 # FIXME: insert proper C++ library support
19938 # FIXME: insert proper C++ library support
19942 # FIXME: insert proper C++ library support
19949 case $cc_basename in
19951 # Sun C++ 4.2, 5.x and Centerline C++
19952 archive_cmds_need_lc_CXX
=yes
19953 no_undefined_flag_CXX
=' -zdefs'
19954 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19955 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19956 $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'
19958 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19959 hardcode_shlibpath_var_CXX
=no
19961 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19963 # The compiler driver will combine and reorder linker options,
19964 # but understands `-z linker_flag'.
19965 # Supported since Solaris 2.6 (maybe 2.5.1?)
19966 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19969 link_all_deplibs_CXX
=yes
19971 output_verbose_link_cmd
='func_echo_all'
19973 # Archives containing C++ object files must be created using
19974 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19975 # necessary to make sure instantiated templates are included
19977 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19980 # Green Hills C++ Compiler
19981 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19983 # The C++ compiler must be used to create the archive.
19984 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19987 # GNU C++ compiler with Solaris linker
19988 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19989 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19990 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19991 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19992 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19993 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19995 # Commands to make compiler produce verbose output that lists
19996 # what "hidden" libraries, object files and flags are used when
19997 # linking a shared library.
19998 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20000 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20002 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20003 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20004 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20006 # Commands to make compiler produce verbose output that lists
20007 # what "hidden" libraries, object files and flags are used when
20008 # linking a shared library.
20009 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20012 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20014 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20016 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20024 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20025 no_undefined_flag_CXX
='${wl}-z,text'
20026 archive_cmds_need_lc_CXX
=no
20027 hardcode_shlibpath_var_CXX
=no
20028 runpath_var
='LD_RUN_PATH'
20030 case $cc_basename in
20032 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20033 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20036 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20037 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20042 sysv5
* | sco3.2v5
* | sco5v6
*)
20043 # Note: We can NOT use -z defs as we might desire, because we do not
20044 # link with -lc, and that would cause any symbols used from libc to
20045 # always be unresolved, which means just about no library would
20046 # ever link correctly. If we're not using GNU ld we use -z text
20047 # though, which does catch some bad symbols but isn't as heavy-handed
20049 no_undefined_flag_CXX
='${wl}-z,text'
20050 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20051 archive_cmds_need_lc_CXX
=no
20052 hardcode_shlibpath_var_CXX
=no
20053 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20054 hardcode_libdir_separator_CXX
=':'
20055 link_all_deplibs_CXX
=yes
20056 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20057 runpath_var
='LD_RUN_PATH'
20059 case $cc_basename in
20061 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20062 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20063 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20064 '"$old_archive_cmds_CXX"
20065 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20066 '"$reload_cmds_CXX"
20069 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20070 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20076 case $cc_basename in
20078 # NonStop-UX NCC 3.20
20079 # FIXME: insert proper C++ library support
20083 # FIXME: insert proper C++ library support
20090 # FIXME: insert proper C++ library support
20095 # FIXME: insert proper C++ library support
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20101 $as_echo "$ld_shlibs_CXX" >&6; }
20102 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20108 ## There is no encapsulation within the following macros, do not change
20109 ## the running order or otherwise move them around unless you know exactly
20110 ## what you are doing...
20111 # Dependencies to place before and after the object being linked:
20112 predep_objects_CXX
=
20113 postdep_objects_CXX
=
20116 compiler_lib_search_path_CXX
=
20118 cat > conftest.
$ac_ext <<_LT_EOF
20122 Foo (void) { a = 0; }
20128 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20129 (eval $ac_compile) 2>&5
20131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20132 test $ac_status = 0; }; then
20133 # Parse the compiler output and extract the necessary
20134 # objects, libraries and library flags.
20136 # Sentinel used to keep track of whether or not we are before
20137 # the conftest object file.
20138 pre_test_object_deps_done
=no
20140 for p
in `eval "$output_verbose_link_cmd"`; do
20144 # Some compilers place space between "-{L,R}" and the path.
20145 # Remove the space.
20146 if test $p = "-L" ||
20147 test $p = "-R"; then
20154 if test "$pre_test_object_deps_done" = no
; then
20157 # Internal compiler library paths should come after those
20158 # provided the user. The postdeps already come after the
20159 # user supplied libs so there is no need to process them.
20160 if test -z "$compiler_lib_search_path_CXX"; then
20161 compiler_lib_search_path_CXX
="${prev}${p}"
20163 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20166 # The "-l" case would never come before the object being
20167 # linked, so don't bother handling this case.
20170 if test -z "$postdeps_CXX"; then
20171 postdeps_CXX
="${prev}${p}"
20173 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20179 # This assumes that the test object file only shows up
20180 # once in the compiler output.
20181 if test "$p" = "conftest.$objext"; then
20182 pre_test_object_deps_done
=yes
20186 if test "$pre_test_object_deps_done" = no
; then
20187 if test -z "$predep_objects_CXX"; then
20188 predep_objects_CXX
="$p"
20190 predep_objects_CXX
="$predep_objects_CXX $p"
20193 if test -z "$postdep_objects_CXX"; then
20194 postdep_objects_CXX
="$p"
20196 postdep_objects_CXX
="$postdep_objects_CXX $p"
20201 *) ;; # Ignore the rest.
20209 echo "libtool.m4: error: problem compiling CXX test program"
20212 $RM -f confest.
$objext
20214 # PORTME: override above test on systems where it is broken
20217 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20218 # hack all around it, let's just trust "g++" to DTRT.
20219 predep_objects_CXX
=
20220 postdep_objects_CXX
=
20225 case `$CC -V 2>&1 | sed 5q` in
20229 # The more standards-conforming stlport4 library is
20230 # incompatible with the Cstd library. Avoid specifying
20231 # it if it's in CXXFLAGS. Ignore libCrun as
20232 # -library=stlport4 depends on it.
20233 case " $CXX $CXXFLAGS " in
20234 *" -library=stlport4 "*)
20235 solaris_use_stlport4
=yes
20239 if test "$solaris_use_stlport4" != yes; then
20240 postdeps_CXX
='-library=Cstd -library=Crun'
20247 case $cc_basename in
20249 # The more standards-conforming stlport4 library is
20250 # incompatible with the Cstd library. Avoid specifying
20251 # it if it's in CXXFLAGS. Ignore libCrun as
20252 # -library=stlport4 depends on it.
20253 case " $CXX $CXXFLAGS " in
20254 *" -library=stlport4 "*)
20255 solaris_use_stlport4
=yes
20259 # Adding this requires a known-good setup of shared libraries for
20260 # Sun compiler versions before 5.6, else PIC objects from an old
20261 # archive will be linked into the output, leading to subtle bugs.
20262 if test "$solaris_use_stlport4" != yes; then
20263 postdeps_CXX
='-library=Cstd -library=Crun'
20271 case " $postdeps_CXX " in
20272 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20274 compiler_lib_search_dirs_CXX
=
20275 if test -n "${compiler_lib_search_path_CXX}"; then
20276 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20309 lt_prog_compiler_wl_CXX
=
20310 lt_prog_compiler_pic_CXX
=
20311 lt_prog_compiler_static_CXX
=
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20314 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20316 # C++ specific cases for pic, static, wl, etc.
20317 if test "$GXX" = yes; then
20318 lt_prog_compiler_wl_CXX
='-Wl,'
20319 lt_prog_compiler_static_CXX
='-static'
20323 # All AIX code is PIC.
20324 if test "$host_cpu" = ia64
; then
20325 # AIX 5 now supports IA64 processor
20326 lt_prog_compiler_static_CXX
='-Bstatic'
20328 lt_prog_compiler_pic_CXX
='-fPIC'
20334 # see comment about AmigaOS4 .so support
20335 lt_prog_compiler_pic_CXX
='-fPIC'
20338 # FIXME: we need at least 68020 code to build shared libraries, but
20339 # adding the `-m68020' flag to GCC prevents building anything better,
20341 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20346 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20347 # PIC is the default for these OSes.
20349 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20350 # This hack is so that the source file can tell whether it is being
20351 # built for inclusion in a dll (and should export symbols for example).
20352 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20353 # (--disable-auto-import) libraries
20354 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20356 darwin
* | rhapsody
*)
20357 # PIC is the default on this platform
20358 # Common symbols not allowed in MH_DYLIB files
20359 lt_prog_compiler_pic_CXX
='-fno-common'
20362 # DJGPP does not support shared libraries at all
20363 lt_prog_compiler_pic_CXX
=
20366 # PIC is the default for Haiku.
20367 # The "-static" flag exists, but is broken.
20368 lt_prog_compiler_static_CXX
=
20371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20372 # Instead, we relocate shared libraries at runtime.
20375 if test -d /usr
/nec
; then
20376 lt_prog_compiler_pic_CXX
=-Kconform_pic
20380 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20381 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20382 # sets the default TLS model and affects inlining.
20387 lt_prog_compiler_pic_CXX
='-fPIC'
20392 # QNX uses GNU C++, but need to define -shared option too, otherwise
20393 # it will coredump.
20394 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20397 lt_prog_compiler_pic_CXX
='-fPIC'
20403 # All AIX code is PIC.
20404 if test "$host_cpu" = ia64
; then
20405 # AIX 5 now supports IA64 processor
20406 lt_prog_compiler_static_CXX
='-Bstatic'
20408 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20412 case $cc_basename in
20414 # Green Hills C++ Compiler
20415 # _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"
20420 case $cc_basename in
20422 lt_prog_compiler_pic_CXX
='-KPIC'
20425 # Green Hills C++ Compiler
20426 lt_prog_compiler_pic_CXX
='-pic'
20432 freebsd
* | dragonfly
*)
20433 # FreeBSD uses GNU C++
20435 hpux9
* | hpux10
* | hpux11
*)
20436 case $cc_basename in
20438 lt_prog_compiler_wl_CXX
='-Wl,'
20439 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20440 if test "$host_cpu" != ia64
; then
20441 lt_prog_compiler_pic_CXX
='+Z'
20445 lt_prog_compiler_wl_CXX
='-Wl,'
20446 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20452 lt_prog_compiler_pic_CXX
='+Z'
20461 # This is c89, which is MS Visual C++ (no shared libs)
20462 # Anyone wants to do a port?
20464 irix5
* | irix6
* | nonstopux
*)
20465 case $cc_basename in
20467 lt_prog_compiler_wl_CXX
='-Wl,'
20468 lt_prog_compiler_static_CXX
='-non_shared'
20469 # CC pic flag -KPIC is the default.
20475 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20476 case $cc_basename in
20479 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20480 lt_prog_compiler_pic_CXX
='-fPIC'
20483 # old Intel C++ for x86_64 which still supported -KPIC.
20484 lt_prog_compiler_wl_CXX
='-Wl,'
20485 lt_prog_compiler_pic_CXX
='-KPIC'
20486 lt_prog_compiler_static_CXX
='-static'
20489 # Intel C++, used to be incompatible with GCC.
20490 # ICC 10 doesn't accept -KPIC any more.
20491 lt_prog_compiler_wl_CXX
='-Wl,'
20492 lt_prog_compiler_pic_CXX
='-fPIC'
20493 lt_prog_compiler_static_CXX
='-static'
20496 # Portland Group C++ compiler
20497 lt_prog_compiler_wl_CXX
='-Wl,'
20498 lt_prog_compiler_pic_CXX
='-fpic'
20499 lt_prog_compiler_static_CXX
='-Bstatic'
20503 # Make sure the PIC flag is empty. It appears that all Alpha
20504 # Linux and Compaq Tru64 Unix objects are PIC.
20505 lt_prog_compiler_pic_CXX
=
20506 lt_prog_compiler_static_CXX
='-non_shared'
20508 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20509 # IBM XL 8.0, 9.0 on PPC and BlueGene
20510 lt_prog_compiler_wl_CXX
='-Wl,'
20511 lt_prog_compiler_pic_CXX
='-qpic'
20512 lt_prog_compiler_static_CXX
='-qstaticlink'
20515 case `$CC -V 2>&1 | sed 5q` in
20518 lt_prog_compiler_pic_CXX
='-KPIC'
20519 lt_prog_compiler_static_CXX
='-Bstatic'
20520 lt_prog_compiler_wl_CXX
='-Qoption ld '
20531 case $cc_basename in
20533 lt_prog_compiler_pic_CXX
='-W c,exportall'
20542 # QNX uses GNU C++, but need to define -shared option too, otherwise
20543 # it will coredump.
20544 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20546 osf3
* | osf4
* | osf5
*)
20547 case $cc_basename in
20549 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20552 # Rational C++ 2.4.1
20553 lt_prog_compiler_pic_CXX
='-pic'
20556 # Digital/Compaq C++
20557 lt_prog_compiler_wl_CXX
='-Wl,'
20558 # Make sure the PIC flag is empty. It appears that all Alpha
20559 # Linux and Compaq Tru64 Unix objects are PIC.
20560 lt_prog_compiler_pic_CXX
=
20561 lt_prog_compiler_static_CXX
='-non_shared'
20570 case $cc_basename in
20572 # Sun C++ 4.2, 5.x and Centerline C++
20573 lt_prog_compiler_pic_CXX
='-KPIC'
20574 lt_prog_compiler_static_CXX
='-Bstatic'
20575 lt_prog_compiler_wl_CXX
='-Qoption ld '
20578 # Green Hills C++ Compiler
20579 lt_prog_compiler_pic_CXX
='-PIC'
20586 case $cc_basename in
20589 lt_prog_compiler_pic_CXX
='-pic'
20590 lt_prog_compiler_static_CXX
='-Bstatic'
20594 lt_prog_compiler_pic_CXX
='-pic'
20600 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20601 case $cc_basename in
20603 lt_prog_compiler_wl_CXX
='-Wl,'
20604 lt_prog_compiler_pic_CXX
='-KPIC'
20605 lt_prog_compiler_static_CXX
='-Bstatic'
20610 case $cc_basename in
20612 # NonStop-UX NCC 3.20
20613 lt_prog_compiler_pic_CXX
='-KPIC'
20622 lt_prog_compiler_can_build_shared_CXX
=no
20628 # For platforms which do not support PIC, -DPIC is meaningless:
20630 lt_prog_compiler_pic_CXX
=
20633 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20637 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20642 # Check to make sure the PIC flag actually works.
20644 if test -n "$lt_prog_compiler_pic_CXX"; then
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20646 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20647 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20648 $as_echo_n "(cached) " >&6
20650 lt_cv_prog_compiler_pic_works_CXX
=no
20651 ac_outfile
=conftest.
$ac_objext
20652 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20653 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20654 # Insert the option either (1) after the last *FLAGS variable, or
20655 # (2) before a word containing "conftest.", or (3) at the end.
20656 # Note that $ac_compile itself does not contain backslashes and begins
20657 # with a dollar sign (not a hyphen), so the echo should work correctly.
20658 # The option is referenced via a variable to avoid confusing sed.
20659 lt_compile
=`echo "$ac_compile" | $SED \
20660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20662 -e 's:$: $lt_compiler_flag:'`
20663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20664 (eval "$lt_compile" 2>conftest.err
)
20666 cat conftest.err
>&5
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 if (exit $ac_status) && test -s "$ac_outfile"; then
20669 # The compiler can only warn and ignore the option if not recognized
20670 # So say no if there are warnings other than the usual output.
20671 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20672 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20673 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20674 lt_cv_prog_compiler_pic_works_CXX
=yes
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20681 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20683 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20684 case $lt_prog_compiler_pic_CXX in
20686 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20689 lt_prog_compiler_pic_CXX
=
20690 lt_prog_compiler_can_build_shared_CXX
=no
20698 # Check to make sure the static flag actually works.
20700 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20702 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20703 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20704 $as_echo_n "(cached) " >&6
20706 lt_cv_prog_compiler_static_works_CXX
=no
20707 save_LDFLAGS
="$LDFLAGS"
20708 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20709 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20710 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20711 # The linker can only warn and ignore the option if not recognized
20712 # So say no if there are warnings
20713 if test -s conftest.err
; then
20714 # Append any errors to the config.log.
20715 cat conftest.err
1>&5
20716 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20717 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20718 if diff conftest.exp conftest.er2
>/dev
/null
; then
20719 lt_cv_prog_compiler_static_works_CXX
=yes
20722 lt_cv_prog_compiler_static_works_CXX
=yes
20726 LDFLAGS
="$save_LDFLAGS"
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20730 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20732 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20735 lt_prog_compiler_static_CXX
=
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20743 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20744 $as_echo_n "(cached) " >&6
20746 lt_cv_prog_compiler_c_o_CXX
=no
20747 $RM -r conftest
2>/dev
/null
20751 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20753 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20754 # Insert the option either (1) after the last *FLAGS variable, or
20755 # (2) before a word containing "conftest.", or (3) at the end.
20756 # Note that $ac_compile itself does not contain backslashes and begins
20757 # with a dollar sign (not a hyphen), so the echo should work correctly.
20758 lt_compile
=`echo "$ac_compile" | $SED \
20759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20761 -e 's:$: $lt_compiler_flag:'`
20762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20763 (eval "$lt_compile" 2>out
/conftest.err
)
20765 cat out
/conftest.err
>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20769 # The compiler can only warn and ignore the option if not recognized
20770 # So say no if there are warnings
20771 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20772 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20773 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20774 lt_cv_prog_compiler_c_o_CXX
=yes
20779 # SGI C++ compiler will create directory out/ii_files/ for
20780 # template instantiation
20781 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20782 $RM out
/* && rmdir out
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20789 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20794 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20795 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20796 $as_echo_n "(cached) " >&6
20798 lt_cv_prog_compiler_c_o_CXX
=no
20799 $RM -r conftest
2>/dev
/null
20803 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20805 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20806 # Insert the option either (1) after the last *FLAGS variable, or
20807 # (2) before a word containing "conftest.", or (3) at the end.
20808 # Note that $ac_compile itself does not contain backslashes and begins
20809 # with a dollar sign (not a hyphen), so the echo should work correctly.
20810 lt_compile
=`echo "$ac_compile" | $SED \
20811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20813 -e 's:$: $lt_compiler_flag:'`
20814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20815 (eval "$lt_compile" 2>out
/conftest.err
)
20817 cat out
/conftest.err
>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20821 # The compiler can only warn and ignore the option if not recognized
20822 # So say no if there are warnings
20823 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20824 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20825 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20826 lt_cv_prog_compiler_c_o_CXX
=yes
20831 # SGI C++ compiler will create directory out/ii_files/ for
20832 # template instantiation
20833 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20834 $RM out
/* && rmdir out
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20841 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20846 hard_links
="nottested"
20847 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20848 # do not overwrite the value of need_locks provided by the user
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20850 $as_echo_n "checking if we can lock with hard links... " >&6; }
20853 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20855 ln conftest.a conftest.b
2>&5 || hard_links
=no
20856 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20858 $as_echo "$hard_links" >&6; }
20859 if test "$hard_links" = no
; then
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20861 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20871 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20873 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20876 # If we're using GNU nm, then we don't want the "-C" option.
20877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20878 # Also, AIX nm treats weak defined symbols like other global defined
20879 # symbols, whereas GNU nm marks them as "W".
20880 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20881 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'
20883 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'
20887 export_symbols_cmds_CXX
="$ltdll_cmds"
20889 cygwin
* | mingw
* | cegcc
*)
20890 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'
20893 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20896 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20899 $as_echo "$ld_shlibs_CXX" >&6; }
20900 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20902 with_gnu_ld_CXX
=$with_gnu_ld
20910 # Do we need to explicitly link libc?
20912 case "x$archive_cmds_need_lc_CXX" in
20914 # Assume -lc should be added
20915 archive_cmds_need_lc_CXX
=yes
20917 if test "$enable_shared" = yes && test "$GCC" = yes; then
20918 case $archive_cmds_CXX in
20920 # FIXME: we may have to deal with multi-command sequences.
20923 # Test whether the compiler implicitly links with -lc since on some
20924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20925 # to ld, don't add -lc before -lgcc.
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20927 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20928 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20929 $as_echo_n "(cached) " >&6
20932 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20935 (eval $ac_compile) 2>&5
20937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20938 test $ac_status = 0; } 2>conftest.err
; then
20941 libobjs
=conftest.
$ac_objext
20943 wl
=$lt_prog_compiler_wl_CXX
20944 pic_flag
=$lt_prog_compiler_pic_CXX
20950 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20951 allow_undefined_flag_CXX
=
20952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20953 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20956 test $ac_status = 0; }
20958 lt_cv_archive_cmds_need_lc_CXX
=no
20960 lt_cv_archive_cmds_need_lc_CXX
=yes
20962 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20964 cat conftest.err
1>&5
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20970 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20971 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21044 library_names_spec
=
21045 libname_spec
='lib$name'
21049 postuninstall_cmds
=
21053 shlibpath_overrides_runpath
=unknown
21055 dynamic_linker
="$host_os ld.so"
21056 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21057 need_lib_prefix
=unknown
21058 hardcode_into_libs
=no
21060 # when you set need_version to no, make sure it does not cause -set_version
21061 # flags to be left without arguments
21062 need_version
=unknown
21067 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21068 shlibpath_var
=LIBPATH
21070 # AIX 3 has no versioning support, so we append a major version to the name.
21071 soname_spec
='${libname}${release}${shared_ext}$major'
21078 hardcode_into_libs
=yes
21079 if test "$host_cpu" = ia64
; then
21080 # AIX 5 supports IA64
21081 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21082 shlibpath_var
=LD_LIBRARY_PATH
21084 # With GCC up to 2.95.x, collect2 would create an import file
21085 # for dependence libraries. The import file would start with
21086 # the line `#! .'. This would cause the generated library to
21087 # depend on `.', always an invalid library. This was fixed in
21088 # development snapshots of GCC prior to 3.0.
21090 aix4 | aix4.
[01] | aix4.
[01].
*)
21091 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21093 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21096 can_build_shared
=no
21100 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21101 # soname into executable. Probably we can add versioning support to
21102 # collect2, so additional links can be useful in future.
21103 if test "$aix_use_runtimelinking" = yes; then
21104 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21105 # instead of lib<name>.a to let people know that these are not
21106 # typical AIX shared libraries.
21107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21109 # We preserve .a as extension for shared libraries through AIX4.2
21110 # and later when we are not doing run time linking.
21111 library_names_spec
='${libname}${release}.a $libname.a'
21112 soname_spec
='${libname}${release}${shared_ext}$major'
21114 shlibpath_var
=LIBPATH
21121 # Since July 2007 AmigaOS4 officially supports .so libraries.
21122 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 library_names_spec
='$libname.ixlibrary $libname.a'
21127 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21128 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'
21134 library_names_spec
='${libname}${shared_ext}'
21135 dynamic_linker
="$host_os ld.so"
21136 shlibpath_var
=LIBRARY_PATH
21142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21143 soname_spec
='${libname}${release}${shared_ext}$major'
21144 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21145 shlibpath_var
=LD_LIBRARY_PATH
21146 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21147 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21148 # the default ld.so.conf also contains /usr/contrib/lib and
21149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21150 # libtool to hard-code these into programs
21153 cygwin
* | mingw
* | pw32
* | cegcc
*)
21154 version_type
=windows
21159 case $GCC,$host_os in
21160 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21161 library_names_spec
='$libname.dll.a'
21162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21163 postinstall_cmds
='base_file=`basename \${file}`~
21164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21165 dldir=$destdir/`dirname \$dlpath`~
21166 test -d \$dldir || mkdir -p \$dldir~
21167 $install_prog $dir/$dlname \$dldir/$dlname~
21168 chmod a+x \$dldir/$dlname~
21169 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21170 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21172 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21173 dlpath=$dir/\$dldll~
21175 shlibpath_overrides_runpath
=yes
21179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21180 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21184 # MinGW DLLs use traditional 'lib' prefix
21185 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21188 # pw32 DLLs use 'pw' prefix rather than 'lib'
21189 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21195 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21198 dynamic_linker
='Win32 ld.exe'
21199 # FIXME: first we should search . and the directory the executable is in
21203 darwin
* | rhapsody
*)
21204 dynamic_linker
="$host_os dyld"
21205 version_type
=darwin
21208 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21209 soname_spec
='${libname}${release}${major}$shared_ext'
21210 shlibpath_overrides_runpath
=yes
21211 shlibpath_var
=DYLD_LIBRARY_PATH
21212 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21214 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21221 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21222 soname_spec
='${libname}${release}${shared_ext}$major'
21223 shlibpath_var
=LD_LIBRARY_PATH
21226 freebsd
* | dragonfly
*)
21227 # DragonFly does not have aout. When/if they implement a new
21228 # versioning mechanism, adjust this.
21229 if test -x /usr
/bin
/objformat
; then
21230 objformat
=`/usr/bin/objformat`
21233 freebsd
[23].
*) objformat
=aout
;;
21234 *) objformat
=elf
;;
21237 version_type
=freebsd-
$objformat
21238 case $version_type in
21240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21245 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21249 shlibpath_var
=LD_LIBRARY_PATH
21252 shlibpath_overrides_runpath
=yes
21254 freebsd3.
[01]* | freebsdelf3.
[01]*)
21255 shlibpath_overrides_runpath
=yes
21256 hardcode_into_libs
=yes
21258 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21259 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21260 shlibpath_overrides_runpath
=no
21261 hardcode_into_libs
=yes
21263 *) # from 4.6 on, and DragonFly
21264 shlibpath_overrides_runpath
=yes
21265 hardcode_into_libs
=yes
21274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21275 soname_spec
='${libname}${release}${shared_ext}$major'
21276 shlibpath_var
=LD_LIBRARY_PATH
21277 hardcode_into_libs
=yes
21284 dynamic_linker
="$host_os runtime_loader"
21285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21286 soname_spec
='${libname}${release}${shared_ext}$major'
21287 shlibpath_var
=LIBRARY_PATH
21288 shlibpath_overrides_runpath
=yes
21289 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21290 hardcode_into_libs
=yes
21293 hpux9
* | hpux10
* | hpux11
*)
21294 # Give a soname corresponding to the major version so that dld.sl refuses to
21295 # link against other versions.
21302 hardcode_into_libs
=yes
21303 dynamic_linker
="$host_os dld.so"
21304 shlibpath_var
=LD_LIBRARY_PATH
21305 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21307 soname_spec
='${libname}${release}${shared_ext}$major'
21308 if test "X$HPUX_IA64_MODE" = X32
; then
21309 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21311 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21313 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21317 hardcode_into_libs
=yes
21318 dynamic_linker
="$host_os dld.sl"
21319 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21320 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21321 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21322 soname_spec
='${libname}${release}${shared_ext}$major'
21323 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21324 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21328 dynamic_linker
="$host_os dld.sl"
21329 shlibpath_var
=SHLIB_PATH
21330 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21331 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21332 soname_spec
='${libname}${release}${shared_ext}$major'
21335 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21336 postinstall_cmds
='chmod 555 $lib'
21337 # or fails outright, so override atomically:
21338 install_override_mode
=555
21345 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21346 soname_spec
='${libname}${release}${shared_ext}$major'
21347 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21348 shlibpath_var
=LD_LIBRARY_PATH
21349 shlibpath_overrides_runpath
=no
21350 hardcode_into_libs
=yes
21353 irix5
* | irix6
* | nonstopux
*)
21355 nonstopux
*) version_type
=nonstopux
;;
21357 if test "$lt_cv_prog_gnu_ld" = yes; then
21365 soname_spec
='${libname}${release}${shared_ext}$major'
21366 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21368 irix5
* | nonstopux
*)
21369 libsuff
= shlibsuff
=
21372 case $LD in # libtool.m4 will add one of these switches to LD
21373 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21374 libsuff
= shlibsuff
= libmagic
=32-bit;;
21375 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21376 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21377 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21378 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21379 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21383 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21384 shlibpath_overrides_runpath
=no
21385 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21386 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21387 hardcode_into_libs
=yes
21390 # No shared lib support for Linux oldld, aout, or coff.
21391 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21395 # This must be Linux ELF.
21396 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21401 soname_spec
='${libname}${release}${shared_ext}$major'
21402 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21403 shlibpath_var
=LD_LIBRARY_PATH
21404 shlibpath_overrides_runpath
=no
21406 # Some binutils ld are patched to set DT_RUNPATH
21407 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21408 $as_echo_n "(cached) " >&6
21410 lt_cv_shlibpath_overrides_runpath
=no
21411 save_LDFLAGS
=$LDFLAGS
21412 save_libdir
=$libdir
21413 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21414 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21416 /* end confdefs.h. */
21426 if ac_fn_cxx_try_link
"$LINENO"; then :
21427 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21428 lt_cv_shlibpath_overrides_runpath
=yes
21431 rm -f core conftest.err conftest.
$ac_objext \
21432 conftest
$ac_exeext conftest.
$ac_ext
21433 LDFLAGS
=$save_LDFLAGS
21434 libdir
=$save_libdir
21438 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21440 # This implies no fast_install, which is unacceptable.
21441 # Some rework will be needed to allow for fast_install
21442 # before this can be enabled.
21443 hardcode_into_libs
=yes
21445 # Append ld.so.conf contents to the search path
21446 if test -f /etc
/ld.so.conf
; then
21447 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' ' '`
21448 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21451 # We used to test for /lib/ld.so.1 and disable shared libraries on
21452 # powerpc, because MkLinux only supported shared libraries with the
21453 # GNU dynamic linker. Since this was broken with cross compilers,
21454 # most powerpc-linux boxes support dynamic linking these days and
21455 # people can always --disable-shared, the test was removed, and we
21456 # assume the GNU/Linux dynamic linker is in use.
21457 dynamic_linker
='GNU/Linux ld.so'
21464 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21466 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21467 dynamic_linker
='NetBSD (a.out) ld.so'
21469 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21470 soname_spec
='${libname}${release}${shared_ext}$major'
21471 dynamic_linker
='NetBSD ld.elf_so'
21473 shlibpath_var
=LD_LIBRARY_PATH
21474 shlibpath_overrides_runpath
=yes
21475 hardcode_into_libs
=yes
21480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21481 shlibpath_var
=LD_LIBRARY_PATH
21482 shlibpath_overrides_runpath
=yes
21489 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21490 soname_spec
='${libname}${release}${shared_ext}$major'
21491 shlibpath_var
=LD_LIBRARY_PATH
21492 shlibpath_overrides_runpath
=no
21493 hardcode_into_libs
=yes
21494 dynamic_linker
='ldqnx.so'
21499 sys_lib_dlsearch_path_spec
="/usr/lib"
21501 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21503 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21504 *) need_version
=no
;;
21506 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21507 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21508 shlibpath_var
=LD_LIBRARY_PATH
21509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21511 openbsd2.
[89] | openbsd2.
[89].
*)
21512 shlibpath_overrides_runpath
=no
21515 shlibpath_overrides_runpath
=yes
21519 shlibpath_overrides_runpath
=yes
21524 libname_spec
='$name'
21527 library_names_spec
='$libname${shared_ext} $libname.a'
21528 dynamic_linker
='OS/2 ld.exe'
21529 shlibpath_var
=LIBPATH
21532 osf3
* | osf4
* | osf5
*)
21536 soname_spec
='${libname}${release}${shared_ext}$major'
21537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21538 shlibpath_var
=LD_LIBRARY_PATH
21539 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21540 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21551 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21552 soname_spec
='${libname}${release}${shared_ext}$major'
21553 shlibpath_var
=LD_LIBRARY_PATH
21554 shlibpath_overrides_runpath
=yes
21555 hardcode_into_libs
=yes
21556 # ldd complains unless libraries are executable
21557 postinstall_cmds
='chmod +x $lib'
21562 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21563 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21564 shlibpath_var
=LD_LIBRARY_PATH
21565 shlibpath_overrides_runpath
=yes
21566 if test "$with_gnu_ld" = yes; then
21574 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21575 soname_spec
='${libname}${release}${shared_ext}$major'
21576 shlibpath_var
=LD_LIBRARY_PATH
21577 case $host_vendor in
21579 shlibpath_overrides_runpath
=no
21581 runpath_var
=LD_RUN_PATH
21589 shlibpath_overrides_runpath
=no
21590 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21596 if test -d /usr
/nec
;then
21598 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21599 soname_spec
='$libname${shared_ext}.$major'
21600 shlibpath_var
=LD_LIBRARY_PATH
21604 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21605 version_type
=freebsd-elf
21608 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21609 soname_spec
='${libname}${release}${shared_ext}$major'
21610 shlibpath_var
=LD_LIBRARY_PATH
21611 shlibpath_overrides_runpath
=yes
21612 hardcode_into_libs
=yes
21613 if test "$with_gnu_ld" = yes; then
21614 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21616 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21619 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21623 sys_lib_dlsearch_path_spec
='/usr/lib'
21627 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21632 shlibpath_var
=LD_LIBRARY_PATH
21633 shlibpath_overrides_runpath
=no
21634 hardcode_into_libs
=yes
21639 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21640 soname_spec
='${libname}${release}${shared_ext}$major'
21641 shlibpath_var
=LD_LIBRARY_PATH
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21649 $as_echo "$dynamic_linker" >&6; }
21650 test "$dynamic_linker" = no
&& can_build_shared
=no
21652 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21653 if test "$GCC" = yes; then
21654 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21657 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21658 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21660 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21661 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21702 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21703 hardcode_action_CXX
=
21704 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21705 test -n "$runpath_var_CXX" ||
21706 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21708 # We can hardcode non-existent directories.
21709 if test "$hardcode_direct_CXX" != no
&&
21710 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21711 # have to relink, otherwise we might link with an installed library
21712 # when we should be linking with a yet-to-be-installed one
21713 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21714 test "$hardcode_minus_L_CXX" != no
; then
21715 # Linking always hardcodes the temporary library directory.
21716 hardcode_action_CXX
=relink
21718 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21719 hardcode_action_CXX
=immediate
21722 # We cannot hardcode anything, or else we can only hardcode existing
21724 hardcode_action_CXX
=unsupported
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21727 $as_echo "$hardcode_action_CXX" >&6; }
21729 if test "$hardcode_action_CXX" = relink ||
21730 test "$inherit_rpath_CXX" = yes; then
21731 # Fast installation is not supported
21732 enable_fast_install
=no
21733 elif test "$shlibpath_overrides_runpath" = yes ||
21734 test "$enable_shared" = no
; then
21735 # Fast installation is not necessary
21736 enable_fast_install
=needless
21745 fi # test -n "$compiler"
21751 with_gnu_ld
=$lt_save_with_gnu_ld
21752 lt_cv_path_LDCXX
=$lt_cv_path_LD
21753 lt_cv_path_LD
=$lt_save_path_LD
21754 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21755 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21756 fi # test "$_lt_caught_CXX_error" != yes
21759 ac_cpp
='$CXXCPP $CPPFLAGS'
21760 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21761 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21762 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21779 # Only expand once:
21785 # Identify the assembler which will work hand-in-glove with the newly
21786 # built GCC, so that we can examine its features. This is the assembler
21787 # which will be driven by the driver program.
21789 # If build != host, and we aren't building gas in-tree, we identify a
21790 # build->target assembler and hope that it will have the same features
21791 # as the host->target assembler we'll be using.
21792 gcc_cv_gas_major_version
=
21793 gcc_cv_gas_minor_version
=
21794 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21796 if test "${gcc_cv_as+set}" = set; then :
21800 if test -x "$DEFAULT_ASSEMBLER"; then
21801 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21802 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21803 && test -f ..
/gas
/Makefile \
21804 && test x
$build = x
$host; then
21805 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21806 elif test -x as
$build_exeext; then
21807 # Build using assembler in the current directory.
21808 gcc_cv_as
=.
/as
$build_exeext
21809 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21810 gcc_cv_as
="$AS_FOR_TARGET"
21812 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21813 set dummy
$AS_FOR_TARGET; ac_word
=$2
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21815 $as_echo_n "checking for $ac_word... " >&6; }
21816 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21817 $as_echo_n "(cached) " >&6
21821 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21825 for as_dir
in $PATH
21828 test -z "$as_dir" && as_dir
=.
21829 for ac_exec_ext
in '' $ac_executable_extensions; do
21830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21831 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21842 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21843 if test -n "$gcc_cv_as"; then
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21845 $as_echo "$gcc_cv_as" >&6; }
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21848 $as_echo "no" >&6; }
21855 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21857 case "$ORIGINAL_AS_FOR_TARGET" in
21858 .
/as | .
/as
$build_exeext) ;;
21859 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21864 $as_echo_n "checking what assembler to use... " >&6; }
21865 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21866 # Single tree build which includes gas. We want to prefer it
21867 # over whatever linker top-level may have detected, since
21868 # we'll use what we're building after installation anyway.
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21870 $as_echo "newly built gas" >&6; }
21872 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21873 for f
in $gcc_cv_as_bfd_srcdir/configure \
21874 $gcc_cv_as_gas_srcdir/configure \
21875 $gcc_cv_as_gas_srcdir/configure.ac \
21876 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21877 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21878 if test x
$gcc_cv_gas_version != x
; then
21882 case $gcc_cv_gas_version in
21884 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21886 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21887 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21888 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21889 case $gcc_cv_gas_patch_version in
21890 "") gcc_cv_gas_patch_version
="0" ;;
21892 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21893 + $gcc_cv_gas_minor_version \) \* 1000 \
21894 + $gcc_cv_gas_patch_version`
21896 in_tree_gas_is_elf
=no
21897 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21898 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21899 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21901 in_tree_gas_is_elf
=yes
21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21905 $as_echo "$gcc_cv_as" >&6; }
21910 # Check whether --enable-ld was given.
21911 if test "${enable_ld+set}" = set; then :
21912 enableval
=$enable_ld; case "${enableval}" in
21920 install_gold_as_default
=no
21921 # Check whether --enable-gold was given.
21922 if test "${enable_gold+set}" = set; then :
21923 enableval
=$enable_gold; case "${enableval}" in
21925 install_gold_as_default
=yes
21928 if test x
${default_ld} != x
; then
21929 install_gold_as_default
=yes
21935 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21941 # Identify the linker which will work hand-in-glove with the newly
21942 # built GCC, so that we can examine its features. This is the linker
21943 # which will be driven by the driver program.
21945 # If build != host, and we aren't building gas in-tree, we identify a
21946 # build->target linker and hope that it will have the same features
21947 # as the host->target linker we'll be using.
21948 gcc_cv_gld_major_version
=
21949 gcc_cv_gld_minor_version
=
21950 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21951 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21952 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21954 if test "${gcc_cv_ld+set}" = set; then :
21958 if test -x "$DEFAULT_LINKER"; then
21959 gcc_cv_ld
="$DEFAULT_LINKER"
21960 elif test $install_gold_as_default = yes \
21961 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21962 && test -f ..
/gold
/Makefile \
21963 && test x
$build = x
$host; then
21964 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21965 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21966 && test -f ..
/ld
/Makefile \
21967 && test x
$build = x
$host; then
21968 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21969 elif test -x collect-ld
$build_exeext; then
21970 # Build using linker in the current directory.
21971 gcc_cv_ld
=.
/collect-ld
$build_exeext
21972 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21973 gcc_cv_ld
="$LD_FOR_TARGET"
21975 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21976 set dummy
$LD_FOR_TARGET; ac_word
=$2
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21978 $as_echo_n "checking for $ac_word... " >&6; }
21979 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21980 $as_echo_n "(cached) " >&6
21984 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21987 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21988 for as_dir
in $PATH
21991 test -z "$as_dir" && as_dir
=.
21992 for ac_exec_ext
in '' $ac_executable_extensions; do
21993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21994 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22005 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22006 if test -n "$gcc_cv_ld"; then
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22008 $as_echo "$gcc_cv_ld" >&6; }
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22011 $as_echo "no" >&6; }
22018 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22019 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22020 # if the PLUGIN_LD is set ld-new, just have it as ld
22021 # as that is the installed named.
22022 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22023 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22024 PLUGIN_LD_SUFFIX
=ld
22027 # Check whether --with-plugin-ld was given.
22028 if test "${with_plugin_ld+set}" = set; then :
22029 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22030 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22031 PLUGIN_LD_SUFFIX
="$withval"
22037 cat >>confdefs.h
<<_ACEOF
22038 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22042 # Check to see if we are using gold instead of ld
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22044 $as_echo_n "checking whether we are using gold... " >&6; }
22046 if test x
$gcc_cv_ld != x
; then
22047 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22048 |
grep "GNU gold" > /dev
/null
; then
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22053 $as_echo "$ld_is_gold" >&6; }
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22056 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22057 # Check to see if default ld is not gold, but gold is
22058 # available and has support for split stack. If gcc was configured
22059 # with gold then no checking is done.
22061 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22063 # For platforms other than powerpc64*, enable as appropriate.
22065 gold_non_default
=no
22066 ld_gold
=`which ${gcc_cv_ld}.gold`
22067 # Make sure this gold has minimal split stack support
22068 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22069 ld_vers
=`$ld_gold --version | sed 1q`
22070 gold_vers
=`echo $ld_vers | sed -n \
22071 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22073 # check that the gold version contains the complete split stack support
22074 # on powerpc64 big and little endian
22076 case "$gold_vers" in
22077 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22079 *) gold_non_default
=no
22085 if test $gold_non_default = yes; then
22087 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22092 $as_echo "$gold_non_default" >&6; }
22094 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22096 case "$ORIGINAL_LD_FOR_TARGET" in
22097 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22098 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22103 $as_echo_n "checking what linker to use... " >&6; }
22104 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22105 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22106 # Single tree build which includes ld. We want to prefer it
22107 # over whatever linker top-level may have detected, since
22108 # we'll use what we're building after installation anyway.
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22110 $as_echo "newly built ld" >&6; }
22112 in_tree_ld_is_elf
=no
22113 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22114 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22115 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22116 in_tree_ld_is_elf
=yes
22117 elif test "$ld_is_gold" = yes; then
22118 in_tree_ld_is_elf
=yes
22120 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
22122 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22123 if test x
$gcc_cv_gld_version != x
; then
22127 case $gcc_cv_gld_version in
22129 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22131 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22132 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22133 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22134 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22137 $as_echo "$gcc_cv_ld" >&6; }
22139 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22140 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22141 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22147 # Figure out what nm we will be using.
22148 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22149 if test "${gcc_cv_nm+set}" = set; then :
22153 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22154 && test -f ..
/binutils
/Makefile \
22155 && test x
$build = x
$host; then
22156 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22157 elif test -x nm
$build_exeext; then
22158 gcc_cv_nm
=.
/nm
$build_exeext
22159 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22160 gcc_cv_nm
="$NM_FOR_TARGET"
22162 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22163 set dummy
$NM_FOR_TARGET; ac_word
=$2
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22165 $as_echo_n "checking for $ac_word... " >&6; }
22166 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22167 $as_echo_n "(cached) " >&6
22171 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22175 for as_dir
in $PATH
22178 test -z "$as_dir" && as_dir
=.
22179 for ac_exec_ext
in '' $ac_executable_extensions; do
22180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22181 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22192 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22193 if test -n "$gcc_cv_nm"; then
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22195 $as_echo "$gcc_cv_nm" >&6; }
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22198 $as_echo "no" >&6; }
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22206 $as_echo_n "checking what nm to use... " >&6; }
22207 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22208 # Single tree build which includes binutils.
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22210 $as_echo "newly built nm" >&6; }
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22214 $as_echo "$gcc_cv_nm" >&6; }
22218 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22220 case "$ORIGINAL_NM_FOR_TARGET" in
22221 .
/nm | .
/nm
$build_exeext) ;;
22222 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22227 # Figure out what objdump we will be using.
22228 if test "${gcc_cv_objdump+set}" = set; then :
22232 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22233 && test -f ..
/binutils
/Makefile \
22234 && test x
$build = x
$host; then
22235 # Single tree build which includes binutils.
22236 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22237 elif test -x objdump
$build_exeext; then
22238 gcc_cv_objdump
=.
/objdump
$build_exeext
22239 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22240 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22242 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22243 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22245 $as_echo_n "checking for $ac_word... " >&6; }
22246 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22247 $as_echo_n "(cached) " >&6
22249 case $gcc_cv_objdump in
22251 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22255 for as_dir
in $PATH
22258 test -z "$as_dir" && as_dir
=.
22259 for ac_exec_ext
in '' $ac_executable_extensions; do
22260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22261 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22272 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22273 if test -n "$gcc_cv_objdump"; then
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22275 $as_echo "$gcc_cv_objdump" >&6; }
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22278 $as_echo "no" >&6; }
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22286 $as_echo_n "checking what objdump to use... " >&6; }
22287 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22288 # Single tree build which includes binutils.
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22290 $as_echo "newly built objdump" >&6; }
22291 elif test x
$gcc_cv_objdump = x
; then
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22293 $as_echo "not found" >&6; }
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22296 $as_echo "$gcc_cv_objdump" >&6; }
22299 # Figure out what readelf we will be using.
22300 if test "${gcc_cv_readelf+set}" = set; then :
22304 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22305 && test -f ..
/binutils
/Makefile \
22306 && test x
$build = x
$host; then
22307 # Single tree build which includes binutils.
22308 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22309 elif test -x readelf
$build_exeext; then
22310 gcc_cv_readelf
=.
/readelf
$build_exeext
22311 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22312 gcc_cv_readelf
="$READELF_FOR_TARGET"
22314 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22315 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22317 $as_echo_n "checking for $ac_word... " >&6; }
22318 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22319 $as_echo_n "(cached) " >&6
22321 case $gcc_cv_readelf in
22323 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22327 for as_dir
in $PATH
22330 test -z "$as_dir" && as_dir
=.
22331 for ac_exec_ext
in '' $ac_executable_extensions; do
22332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22333 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22344 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22345 if test -n "$gcc_cv_readelf"; then
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22347 $as_echo "$gcc_cv_readelf" >&6; }
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22358 $as_echo_n "checking what readelf to use... " >&6; }
22359 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22360 # Single tree build which includes binutils.
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22362 $as_echo "newly built readelf" >&6; }
22363 elif test x
$gcc_cv_readelf = x
; then
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22365 $as_echo "not found" >&6; }
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22368 $as_echo "$gcc_cv_readelf" >&6; }
22371 # Figure out what assembler alignment features are present.
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22373 $as_echo_n "checking assembler flags... " >&6; }
22374 if test "${gcc_cv_as_flags+set}" = set; then :
22375 $as_echo_n "(cached) " >&6
22378 i
[34567]86-*-linux*)
22379 gcc_cv_as_flags
=--32
22381 x86_64-
*-linux-gnux32)
22382 gcc_cv_as_flags
=--x32
22385 gcc_cv_as_flags
=--64
22387 powerpc
*-*-darwin*)
22388 gcc_cv_as_flags
="-arch ppc"
22391 gcc_cv_as_flags
=" "
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22396 $as_echo "$gcc_cv_as_flags" >&6; }
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22399 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22400 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22401 $as_echo_n "(cached) " >&6
22403 gcc_cv_as_balign_and_p2align
=no
22404 if test $in_tree_gas = yes; then
22405 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22406 then gcc_cv_as_balign_and_p2align
=yes
22408 elif test x
$gcc_cv_as != x
; then
22409 $as_echo '.balign 4
22410 .p2align 2' > conftest.s
22411 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22413 (eval $ac_try) 2>&5
22415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22416 test $ac_status = 0; }; }
22418 gcc_cv_as_balign_and_p2align
=yes
22420 echo "configure: failed program was" >&5
22423 rm -f conftest.o conftest.s
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22427 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22428 if test $gcc_cv_as_balign_and_p2align = yes; then
22430 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22436 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22437 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22438 $as_echo_n "(cached) " >&6
22440 gcc_cv_as_max_skip_p2align
=no
22441 if test $in_tree_gas = yes; then
22442 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22443 then gcc_cv_as_max_skip_p2align
=yes
22445 elif test x
$gcc_cv_as != x
; then
22446 $as_echo '.p2align 4,,7' > conftest.s
22447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22449 (eval $ac_try) 2>&5
22451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22452 test $ac_status = 0; }; }
22454 gcc_cv_as_max_skip_p2align
=yes
22456 echo "configure: failed program was" >&5
22459 rm -f conftest.o conftest.s
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22463 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22464 if test $gcc_cv_as_max_skip_p2align = yes; then
22466 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22472 $as_echo_n "checking assembler for .literal16... " >&6; }
22473 if test "${gcc_cv_as_literal16+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22476 gcc_cv_as_literal16
=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22479 then gcc_cv_as_literal16
=yes
22481 elif test x
$gcc_cv_as != x
; then
22482 $as_echo '.literal16' > conftest.s
22483 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22485 (eval $ac_try) 2>&5
22487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22488 test $ac_status = 0; }; }
22490 gcc_cv_as_literal16
=yes
22492 echo "configure: failed program was" >&5
22495 rm -f conftest.o conftest.s
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22499 $as_echo "$gcc_cv_as_literal16" >&6; }
22500 if test $gcc_cv_as_literal16 = yes; then
22502 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22508 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22509 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22510 $as_echo_n "(cached) " >&6
22512 gcc_cv_as_subsection_m1
=no
22513 if test $in_tree_gas = yes; then
22514 if test $in_tree_gas_is_elf = yes \
22515 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22516 then gcc_cv_as_subsection_m1
=yes
22518 elif test x
$gcc_cv_as != x
; then
22519 $as_echo 'conftest_label1: .word 0
22521 conftest_label2: .word 0
22522 .previous' > conftest.s
22523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22525 (eval $ac_try) 2>&5
22527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22528 test $ac_status = 0; }; }
22530 if test x
$gcc_cv_nm != x
; then
22531 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22532 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22533 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22535 else gcc_cv_as_subsection_m1
=yes
22537 rm -f conftest.nm1 conftest.nm2
22540 echo "configure: failed program was" >&5
22543 rm -f conftest.o conftest.s
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22547 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22548 if test $gcc_cv_as_subsection_m1 = yes; then
22550 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22556 $as_echo_n "checking assembler for .weak... " >&6; }
22557 if test "${gcc_cv_as_weak+set}" = set; then :
22558 $as_echo_n "(cached) " >&6
22561 if test $in_tree_gas = yes; then
22562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22563 then gcc_cv_as_weak
=yes
22565 elif test x
$gcc_cv_as != x
; then
22566 $as_echo ' .weak foobar' > conftest.s
22567 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22569 (eval $ac_try) 2>&5
22571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22572 test $ac_status = 0; }; }
22576 echo "configure: failed program was" >&5
22579 rm -f conftest.o conftest.s
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22583 $as_echo "$gcc_cv_as_weak" >&6; }
22584 if test $gcc_cv_as_weak = yes; then
22586 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22592 $as_echo_n "checking assembler for .weakref... " >&6; }
22593 if test "${gcc_cv_as_weakref+set}" = set; then :
22594 $as_echo_n "(cached) " >&6
22596 gcc_cv_as_weakref
=no
22597 if test $in_tree_gas = yes; then
22598 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22599 then gcc_cv_as_weakref
=yes
22601 elif test x
$gcc_cv_as != x
; then
22602 $as_echo ' .weakref foobar, barfnot' > conftest.s
22603 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22605 (eval $ac_try) 2>&5
22607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22608 test $ac_status = 0; }; }
22610 gcc_cv_as_weakref
=yes
22612 echo "configure: failed program was" >&5
22615 rm -f conftest.o conftest.s
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22619 $as_echo "$gcc_cv_as_weakref" >&6; }
22620 if test $gcc_cv_as_weakref = yes; then
22622 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22628 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22629 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22630 $as_echo_n "(cached) " >&6
22632 gcc_cv_as_nsubspa_comdat
=no
22633 if test $in_tree_gas = yes; then
22634 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22635 then gcc_cv_as_nsubspa_comdat
=yes
22637 elif test x
$gcc_cv_as != x
; then
22638 $as_echo ' .SPACE $TEXT$
22639 .NSUBSPA $CODE$,COMDAT' > conftest.s
22640 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22642 (eval $ac_try) 2>&5
22644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22645 test $ac_status = 0; }; }
22647 gcc_cv_as_nsubspa_comdat
=yes
22649 echo "configure: failed program was" >&5
22652 rm -f conftest.o conftest.s
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22656 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22657 if test $gcc_cv_as_nsubspa_comdat = yes; then
22659 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22664 # .hidden needs to be supported in both the assembler and the linker,
22665 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22666 # This is irritatingly difficult to feature test for; we have to check the
22667 # date string after the version number. If we've got an in-tree
22668 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22670 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22671 case "${target}" in
22673 conftest_s
=' .globl foobar,hidden'
22676 conftest_s
=' .hidden foobar
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22681 $as_echo_n "checking assembler for .hidden... " >&6; }
22682 if test "${gcc_cv_as_hidden+set}" = set; then :
22683 $as_echo_n "(cached) " >&6
22685 gcc_cv_as_hidden
=no
22686 if test $in_tree_gas = yes; then
22687 if test $in_tree_gas_is_elf = yes \
22688 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22689 then gcc_cv_as_hidden
=yes
22691 elif test x
$gcc_cv_as != x
; then
22692 $as_echo "$conftest_s" > conftest.s
22693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22695 (eval $ac_try) 2>&5
22697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22698 test $ac_status = 0; }; }
22700 gcc_cv_as_hidden
=yes
22702 echo "configure: failed program was" >&5
22705 rm -f conftest.o conftest.s
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22709 $as_echo "$gcc_cv_as_hidden" >&6; }
22712 case "${target}" in
22714 # Darwin as has some visibility support, though with a different syntax.
22715 gcc_cv_as_hidden
=yes
22719 # gnu_indirect_function type is an extension proposed at
22720 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22721 # selection of function implementation
22722 # Check whether --enable-gnu-indirect-function was given.
22723 if test "${enable_gnu_indirect_function+set}" = set; then :
22724 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22726 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22727 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22730 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22734 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22736 cat >>confdefs.h
<<_ACEOF
22737 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22742 if test $in_tree_ld != yes ; then
22743 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22744 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22745 if test x
"$ld_is_gold" = xyes
; then
22746 # GNU gold --version looks like this:
22748 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22750 # We extract the binutils version which is more familiar and specific
22751 # than the gold version.
22752 ld_vers
=`echo $ld_ver | sed -n \
22753 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22755 # GNU ld --version looks like this:
22757 # GNU ld (GNU Binutils) 2.21.51.20110225
22758 ld_vers
=`echo $ld_ver | sed -n \
22759 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22761 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'`
22762 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22763 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22764 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22766 case "${target}" in
22768 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22771 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22772 # /usr/ccs/bin/ld has been configured.
22773 ld_ver
=`$gcc_cv_ld -V 2>&1`
22774 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22775 ld_vers
=`echo $ld_ver | sed -n \
22776 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22777 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22778 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22786 $as_echo_n "checking linker for .hidden support... " >&6; }
22787 if test "${gcc_cv_ld_hidden+set}" = set; then :
22788 $as_echo_n "(cached) " >&6
22790 if test $in_tree_ld = yes ; then
22791 gcc_cv_ld_hidden
=no
22792 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 \
22793 && test $in_tree_ld_is_elf = yes; then
22794 gcc_cv_ld_hidden
=yes
22797 gcc_cv_ld_hidden
=yes
22798 if test x
"$ld_is_gold" = xyes
; then
22800 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22801 case "${target}" in
22802 mmix-knuth-mmixware
)
22803 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22804 gcc_cv_ld_hidden
=no
22807 if test 0"$ld_date" -lt 20020404; then
22808 if test -n "$ld_date"; then
22809 # If there was date string, but was earlier than 2002-04-04, fail
22810 gcc_cv_ld_hidden
=no
22811 elif test -z "$ld_vers"; then
22812 # If there was no date string nor ld version number, something is wrong
22813 gcc_cv_ld_hidden
=no
22815 test -z "$ld_vers_patch" && ld_vers_patch
=0
22816 if test "$ld_vers_major" -lt 2; then
22817 gcc_cv_ld_hidden
=no
22818 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22819 gcc_cv_ld_hidden
="no"
22820 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22821 gcc_cv_ld_hidden
=no
22826 case "${target}" in
22828 gcc_cv_ld_hidden
=yes
22831 # Darwin ld has some visibility support.
22832 gcc_cv_ld_hidden
=yes
22834 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22835 gcc_cv_ld_hidden
=yes
22837 *-*-solaris2.1
[0-9]*)
22838 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22839 # .symbolic was only added in Solaris 9 12/02.
22840 gcc_cv_ld_hidden
=yes
22843 gcc_cv_ld_hidden
=no
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22850 $as_echo "$gcc_cv_ld_hidden" >&6; }
22851 libgcc_visibility
=no
22854 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22855 libgcc_visibility
=yes
22857 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22862 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22863 gcc_cv_ld_ro_rw_mix
=unknown
22864 if test $in_tree_ld = yes ; then
22865 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 \
22866 && test $in_tree_ld_is_elf = yes; then
22867 gcc_cv_ld_ro_rw_mix
=read-write
22869 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22870 echo '.section myfoosect, "a"' > conftest1.s
22871 echo '.section myfoosect, "aw"' > conftest2.s
22872 echo '.byte 1' >> conftest2.s
22873 echo '.section myfoosect, "a"' > conftest3.s
22874 echo '.byte 0' >> conftest3.s
22875 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22876 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22877 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22878 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22879 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22880 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22881 | sed -e '/myfoosect/!d' -e N`
22882 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22883 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22884 gcc_cv_ld_ro_rw_mix
=read-only
22886 gcc_cv_ld_ro_rw_mix
=read-write
22890 rm -f conftest.
* conftest
[123].
*
22892 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22894 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22898 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22900 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22901 case "${target}" in
22904 # Solaris 2 ld -V output looks like this for a regular version:
22906 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22908 # but test versions add stuff at the end:
22910 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22912 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22913 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22914 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22915 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22916 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22917 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22923 # Check whether --enable-initfini-array was given.
22924 if test "${enable_initfini_array+set}" = set; then :
22925 enableval
=$enable_initfini_array;
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22929 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22930 if test "${gcc_cv_initfini_array+set}" = set; then :
22931 $as_echo_n "(cached) " >&6
22933 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22934 case "${target}" in
22936 if test "$cross_compiling" = yes; then :
22937 gcc_cv_initfini_array
=no
22939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22940 /* end confdefs.h. */
22943 #error Not an ELF OS
22945 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22946 if it can be used. */
22948 int main (void) { return x; }
22949 int foo (void) { x = 0; }
22950 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22953 if ac_fn_cxx_try_run
"$LINENO"; then :
22954 gcc_cv_initfini_array
=yes
22956 gcc_cv_initfini_array
=no
22958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22959 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22963 gcc_cv_initfini_array
=no
22964 if test $in_tree_ld = yes ; then
22965 if test "$gcc_cv_gld_major_version" -eq 2 \
22966 -a "$gcc_cv_gld_minor_version" -ge 22 \
22967 -o "$gcc_cv_gld_major_version" -gt 2 \
22968 && test $in_tree_ld_is_elf = yes; then
22969 gcc_cv_initfini_array
=yes
22971 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22972 case $target:$gas in
22975 sh_type
='%progbits'
22977 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
22979 sh_type
='@progbits'
22981 sparc
*-*-solaris2*:no
)
22983 sh_type
='#progbits'
22987 case "$target:$gnu_ld" in
22989 cat > conftest.s
<<EOF
22990 .section .dtors,$sh_flags,$sh_type
22992 .byte 'A', 'A', 'A', 'A'
22993 .section .ctors,$sh_flags,$sh_type
22995 .byte 'B', 'B', 'B', 'B'
22996 .section .fini_array.65530,$sh_flags,$sh_type
22998 .byte 'C', 'C', 'C', 'C'
22999 .section .init_array.65530,$sh_flags,$sh_type
23001 .byte 'D', 'D', 'D', 'D'
23002 .section .dtors.64528,$sh_flags,$sh_type
23004 .byte 'E', 'E', 'E', 'E'
23005 .section .ctors.64528,$sh_flags,$sh_type
23007 .byte 'F', 'F', 'F', 'F'
23008 .section .fini_array.01005,$sh_flags,$sh_type
23010 .byte 'G', 'G', 'G', 'G'
23011 .section .init_array.01005,$sh_flags,$sh_type
23013 .byte 'H', 'H', 'H', 'H'
23018 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23019 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23020 && $gcc_cv_objdump -s -j .init_array conftest \
23021 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23022 && $gcc_cv_objdump -s -j .fini_array conftest \
23023 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23024 gcc_cv_initfini_array
=yes
23028 # When Solaris ld added constructor priority support, it was
23029 # decided to only handle .init_array.N/.fini_array.N since
23030 # there was no need for backwards compatibility with
23031 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23032 # sections with correct execution order resp. to
23033 # .init_array/.fini_array, while gld merges them into
23034 # .init_array/.fini_array.
23035 cat > conftest.s
<<EOF
23036 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23038 .byte 'C', 'C', 'C', 'C'
23039 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23041 .byte 'D', 'D', 'D', 'D'
23042 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23044 .byte 'G', 'G', 'G', 'G'
23045 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23047 .byte 'H', 'H', 'H', 'H'
23052 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23053 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23054 && $gcc_cv_objdump -s -j .init_array conftest \
23055 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23056 && $gcc_cv_objdump -s -j .fini_array conftest \
23057 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23058 gcc_cv_initfini_array
=yes
23062 rm -f conftest conftest.
*
23064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23065 /* end confdefs.h. */
23068 # error Not an ELF OS
23070 #include <stdlib.h>
23071 #if defined __GLIBC_PREREQ
23072 # if __GLIBC_PREREQ (2, 4)
23074 # error GLIBC 2.4 required
23077 # if defined __sun__ && defined __svr4__
23078 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23080 # error The C library not known to support .init_array/.fini_array
23085 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23088 gcc_cv_initfini_array
=no
23090 rm -f conftest.err conftest.
$ac_ext;;
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23094 $as_echo_n "checking cross compile... guessing... " >&6; }
23095 gcc_cv_initfini_array
=no
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23099 $as_echo "$gcc_cv_initfini_array" >&6; }
23100 enable_initfini_array
=$gcc_cv_initfini_array
23105 cat >>confdefs.h
<<_ACEOF
23106 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23111 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23113 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23114 if test "${gcc_cv_as_leb128+set}" = set; then :
23115 $as_echo_n "(cached) " >&6
23117 gcc_cv_as_leb128
=no
23118 if test $in_tree_gas = yes; then
23119 if test $in_tree_gas_is_elf = yes \
23120 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23121 then gcc_cv_as_leb128
=yes
23123 elif test x
$gcc_cv_as != x
; then
23130 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23132 (eval $ac_try) 2>&5
23134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23135 test $ac_status = 0; }; }
23137 # GAS versions before 2.11 do not support uleb128,
23138 # despite appearing to.
23139 # ??? There exists an elf-specific test that will crash
23140 # the assembler. Perhaps it's better to figure out whether
23141 # arbitrary sections are supported and try the test.
23142 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23143 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23144 as_vers
=`echo $as_ver | sed -n \
23145 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23146 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23147 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23148 if test $as_major -eq 2 && test $as_minor -lt 11
23150 else gcc_cv_as_leb128
=yes
23154 echo "configure: failed program was" >&5
23157 rm -f conftest.o conftest.s
23160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23161 $as_echo "$gcc_cv_as_leb128" >&6; }
23162 if test $gcc_cv_as_leb128 = yes; then
23164 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23167 if test $gcc_cv_as_leb128 != yes; then
23169 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23173 # Check if we have assembler support for unwind directives.
23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23175 $as_echo_n "checking assembler for cfi directives... " >&6; }
23176 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23177 $as_echo_n "(cached) " >&6
23179 gcc_cv_as_cfi_directive
=no
23180 if test x
$gcc_cv_as != x
; then
23186 .cfi_escape 1, 2, 3, 4, 5
23187 .cfi_endproc' > conftest.s
23188 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23190 (eval $ac_try) 2>&5
23192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23193 test $ac_status = 0; }; }
23197 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23198 # read-only and read-write sections, we need to make sure that the
23199 # assembler used emits read-write .eh_frame sections.
23200 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23201 if test "x$gcc_cv_objdump" != x
; then
23202 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23203 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23204 gcc_cv_as_cfi_directive
=no
23207 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23208 # On Solaris/x86, make sure that GCC and assembler agree on using
23209 # read-only .eh_frame sections for 64-bit.
23210 if test x
$gas = xyes
; then
23211 as_ix86_64_opt
="--64"
23213 as_ix86_64_opt
="-xarch=amd64"
23215 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23216 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23217 sed -e /.eh_frame
/!d
-e N | \
23218 grep READONLY
> /dev
/null
; then
23219 gcc_cv_as_cfi_directive
=yes
23221 gcc_cv_as_cfi_directive
=no
23225 gcc_cv_as_cfi_directive
=yes
23230 # no objdump, err on the side of caution
23231 gcc_cv_as_cfi_directive
=no
23234 gcc_cv_as_cfi_directive
=yes
23238 gcc_cv_as_cfi_directive
=yes
23242 echo "configure: failed program was" >&5
23245 rm -f conftest.o conftest.s
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23249 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23252 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23254 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23255 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23256 $as_echo_n "(cached) " >&6
23258 gcc_cv_as_cfi_advance_working
=no
23259 if test x
$gcc_cv_as != x
; then
23262 .cfi_adjust_cfa_offset 64
23264 .cfi_adjust_cfa_offset 128
23265 .cfi_endproc' > conftest.s
23266 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23268 (eval $ac_try) 2>&5
23270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23271 test $ac_status = 0; }; }
23274 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23275 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23276 gcc_cv_as_cfi_advance_working
=yes
23280 echo "configure: failed program was" >&5
23283 rm -f conftest.o conftest.s
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23287 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23291 # no objdump, err on the side of caution
23292 gcc_cv_as_cfi_advance_working
=no
23296 cat >>confdefs.h
<<_ACEOF
23297 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23298 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23304 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23305 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23306 $as_echo_n "(cached) " >&6
23308 gcc_cv_as_cfi_personality_directive
=no
23309 if test x
$gcc_cv_as != x
; then
23312 .cfi_personality 0, symbol
23313 .cfi_endproc' > conftest.s
23314 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23316 (eval $ac_try) 2>&5
23318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23319 test $ac_status = 0; }; }
23321 gcc_cv_as_cfi_personality_directive
=yes
23323 echo "configure: failed program was" >&5
23326 rm -f conftest.o conftest.s
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23330 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23334 cat >>confdefs.h
<<_ACEOF
23335 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23336 then echo 1; else echo 0; fi`
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23341 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23342 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23343 $as_echo_n "(cached) " >&6
23345 gcc_cv_as_cfi_sections_directive
=no
23346 if test x
$gcc_cv_as != x
; then
23348 .cfi_sections .debug_frame, .eh_frame
23350 .cfi_endproc' > conftest.s
23351 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23353 (eval $ac_try) 2>&5
23355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23356 test $ac_status = 0; }; }
23359 win32 | pe | cygwin
* | mingw32
*)
23360 # Need to check that we generated the correct relocation for the
23361 # .debug_frame section. This was fixed for binutils 2.21.
23362 gcc_cv_as_cfi_sections_directive
=no
23363 if test "x$gcc_cv_objdump" != x
; then
23364 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23365 grep secrel
> /dev
/null
; then
23366 gcc_cv_as_cfi_sections_directive
=yes
23371 gcc_cv_as_cfi_sections_directive
=yes
23375 echo "configure: failed program was" >&5
23378 rm -f conftest.o conftest.s
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23382 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23387 cat >>confdefs.h
<<_ACEOF
23388 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23389 then echo 1; else echo 0; fi`
23393 # GAS versions up to and including 2.11.0 may mis-optimize
23395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23396 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23397 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23398 $as_echo_n "(cached) " >&6
23400 gcc_cv_as_eh_frame
=no
23401 if test $in_tree_gas = yes; then
23402 if test $in_tree_gas_is_elf = yes \
23403 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23404 then gcc_cv_as_eh_frame
=yes
23406 elif test x
$gcc_cv_as != x
; then
23413 .section .eh_frame,"aw",@progbits
23415 .4byte .LECIE1-.LSCIE1
23429 .4byte .LEFDE1-.LASFDE1
23431 .4byte .LASFDE1-__FRAME_BEGIN__
23438 .LEFDE1:' > conftest.s
23439 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23441 (eval $ac_try) 2>&5
23443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23444 test $ac_status = 0; }; }
23446 cat > conftest.lit
<<EOF
23447 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23448 0010 01000000 12000000 18000000 00000000 ................
23449 0020 08000000 04080000 0044 .........D
23451 cat > conftest.big
<<EOF
23452 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23453 0010 00000001 00000012 00000018 00000000 ................
23454 0020 00000008 04000000 0844 .........D
23456 # If the assembler didn't choke, and we can objdump,
23457 # and we got the correct data, then succeed.
23458 # The text in the here-document typically retains its unix-style line
23459 # endings, while the output of objdump will use host line endings.
23460 # Therefore, use diff -b for the comparisons.
23461 if test x
$gcc_cv_objdump != x \
23462 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23463 |
tail -3 > conftest.got \
23464 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23465 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23467 gcc_cv_as_eh_frame
=yes
23468 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23470 (eval $ac_try) 2>&5
23472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23473 test $ac_status = 0; }; }; then
23474 gcc_cv_as_eh_frame
=buggy
23476 # Uh oh, what do we do now?
23477 gcc_cv_as_eh_frame
=no
23480 echo "configure: failed program was" >&5
23483 rm -f conftest.o conftest.s
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23487 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23491 if test $gcc_cv_as_eh_frame = buggy
; then
23493 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23498 $as_echo_n "checking assembler for section merging support... " >&6; }
23499 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23502 gcc_cv_as_shf_merge
=no
23503 if test $in_tree_gas = yes; then
23504 if test $in_tree_gas_is_elf = yes \
23505 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23506 then gcc_cv_as_shf_merge
=yes
23508 elif test x
$gcc_cv_as != x
; then
23509 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23510 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23512 (eval $ac_try) 2>&5
23514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23515 test $ac_status = 0; }; }
23517 gcc_cv_as_shf_merge
=yes
23519 echo "configure: failed program was" >&5
23522 rm -f conftest.o conftest.s
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23526 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23529 if test $gcc_cv_as_shf_merge = no
; then
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23531 $as_echo_n "checking assembler for section merging support... " >&6; }
23532 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23533 $as_echo_n "(cached) " >&6
23535 gcc_cv_as_shf_merge
=no
23536 if test $in_tree_gas = yes; then
23537 if test $in_tree_gas_is_elf = yes \
23538 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23539 then gcc_cv_as_shf_merge
=yes
23541 elif test x
$gcc_cv_as != x
; then
23542 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23543 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23545 (eval $ac_try) 2>&5
23547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23548 test $ac_status = 0; }; }
23550 gcc_cv_as_shf_merge
=yes
23552 echo "configure: failed program was" >&5
23555 rm -f conftest.o conftest.s
23558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23559 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23564 cat >>confdefs.h
<<_ACEOF
23565 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23570 $as_echo_n "checking assembler for stabs directive... " >&6; }
23571 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23572 $as_echo_n "(cached) " >&6
23574 gcc_cv_as_stabs_directive
=no
23575 if test x
$gcc_cv_as != x
; then
23576 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23577 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23579 (eval $ac_try) 2>&5
23581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23582 test $ac_status = 0; }; }
23584 gcc_cv_as_stabs_directive
=yes
23586 echo "configure: failed program was" >&5
23589 rm -f conftest.o conftest.s
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23593 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23594 if test $gcc_cv_as_stabs_directive = yes; then
23596 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23602 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23603 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23604 $as_echo_n "(cached) " >&6
23606 gcc_cv_as_comdat_group
=no
23607 if test $in_tree_gas = yes; then
23608 if test $in_tree_gas_is_elf = yes \
23609 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23610 then gcc_cv_as_comdat_group
=yes
23612 elif test x
$gcc_cv_as != x
; then
23613 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23614 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23616 (eval $ac_try) 2>&5
23618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23619 test $ac_status = 0; }; }
23621 gcc_cv_as_comdat_group
=yes
23623 echo "configure: failed program was" >&5
23626 rm -f conftest.o conftest.s
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23630 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23633 if test $gcc_cv_as_comdat_group = yes; then
23634 gcc_cv_as_comdat_group_percent
=no
23635 gcc_cv_as_comdat_group_group
=no
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23638 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23639 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23640 $as_echo_n "(cached) " >&6
23642 gcc_cv_as_comdat_group_percent
=no
23643 if test $in_tree_gas = yes; then
23644 if test $in_tree_gas_is_elf = yes \
23645 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23646 then gcc_cv_as_comdat_group_percent
=yes
23648 elif test x
$gcc_cv_as != x
; then
23649 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23650 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23652 (eval $ac_try) 2>&5
23654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23655 test $ac_status = 0; }; }
23657 gcc_cv_as_comdat_group_percent
=yes
23659 echo "configure: failed program was" >&5
23662 rm -f conftest.o conftest.s
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23666 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23669 if test $gcc_cv_as_comdat_group_percent = yes; then
23670 gcc_cv_as_comdat_group_group
=no
23672 case "${target}" in
23673 # Sun as uses a completely different syntax.
23675 case "${target}" in
23676 sparc
*-*-solaris2*)
23678 .group foo,".text%foo",#comdat
23679 .section ".text%foo", #alloc,#execinstr,#progbits
23684 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23686 .group foo,.text%foo,#comdat
23687 .section .text%foo, "ax", @progbits
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23694 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23695 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23696 $as_echo_n "(cached) " >&6
23698 gcc_cv_as_comdat_group_group
=no
23699 if test x
$gcc_cv_as != x
; then
23700 $as_echo "$conftest_s" > conftest.s
23701 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23703 (eval $ac_try) 2>&5
23705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23706 test $ac_status = 0; }; }
23708 gcc_cv_as_comdat_group_group
=yes
23710 echo "configure: failed program was" >&5
23713 rm -f conftest.o conftest.s
23716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23717 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23722 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23723 gcc_cv_as_comdat_group_group
=no
23727 if test x
"$ld_is_gold" = xyes
; then
23729 elif test $in_tree_ld = yes ; then
23731 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 \
23732 && test $in_tree_ld_is_elf = yes; then
23735 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23737 if test 0"$ld_date" -lt 20050308; then
23738 if test -n "$ld_date"; then
23739 # If there was date string, but was earlier than 2005-03-08, fail
23741 elif test "$ld_vers_major" -lt 2; then
23743 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23748 case "${target}" in
23749 *-*-solaris2.1
[1-9]*)
23751 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23752 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23755 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23756 # least ld version 1.2267.
23757 if test "$ld_vers_major" -gt 1; then
23759 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23761 elif test "$ld_vers_minor" -ge 2267; then
23766 # Assume linkers other than GNU ld don't support COMDAT group.
23771 # Allow overriding the automatic COMDAT group tests above.
23772 # Check whether --enable-comdat was given.
23773 if test "${enable_comdat+set}" = set; then :
23774 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23777 if test $comdat_group = no
; then
23778 gcc_cv_as_comdat_group
=no
23779 gcc_cv_as_comdat_group_percent
=no
23780 gcc_cv_as_comdat_group_group
=no
23783 cat >>confdefs.h
<<_ACEOF
23784 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23785 || test $gcc_cv_as_comdat_group_percent = yes \
23786 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23791 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23792 if test "${gcc_cv_as_discriminator+set}" = set; then :
23793 $as_echo_n "(cached) " >&6
23795 gcc_cv_as_discriminator
=no
23796 if test $in_tree_gas = yes; then
23797 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23798 then gcc_cv_as_discriminator
=yes
23800 elif test x
$gcc_cv_as != x
; then
23803 .loc 1 1 0 discriminator 1' > conftest.s
23804 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23806 (eval $ac_try) 2>&5
23808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23809 test $ac_status = 0; }; }
23811 gcc_cv_as_discriminator
=yes
23813 echo "configure: failed program was" >&5
23816 rm -f conftest.o conftest.s
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23820 $as_echo "$gcc_cv_as_discriminator" >&6; }
23821 if test $gcc_cv_as_discriminator = yes; then
23823 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23828 # Thread-local storage - the check is heavily parameterized.
23836 .section ".tdata","awT",@progbits
23839 ldq $27,__tls_get_addr($29) !literal!1
23840 lda $16,foo($29) !tlsgd!1
23841 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23842 ldq $27,__tls_get_addr($29) !literal!2
23843 lda $16,foo($29) !tlsldm!2
23844 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23845 ldq $1,foo($29) !gotdtprel
23846 ldah $2,foo($29) !dtprelhi
23847 lda $3,foo($2) !dtprello
23848 lda $4,foo($29) !dtprel
23849 ldq $1,foo($29) !gottprel
23850 ldah $2,foo($29) !tprelhi
23851 lda $3,foo($2) !tprello
23852 lda $4,foo($29) !tprel'
23855 tls_as_opt
=--fatal-warnings
23859 add_s r0,r0, @foo@tpoff'
23863 cris-
*-*|crisv32-
*-*)
23865 .section ".tdata","awT",@progbits
23872 tls_as_opt
=--fatal-warnings
23876 .section ".tdata","awT",@progbits
23879 call #gettlsoff(x)'
23888 .section ".tdata","awT",@progbits
23892 addil LT%foo-$tls_gdidx$,gp
23893 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23896 addil LT%foo-$tls_ldidx$,gp
23898 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23899 addil LR%foo-$tls_dtpoff$,%ret0
23900 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23902 addil LT%foo-$tls_ieoff$,gp
23903 ldw RT%foo-$tls_ieoff$(%r1),%t2
23906 addil LR%foo-$tls_leoff$,%t1
23907 ldo RR%foo-$tls_leoff$(%r1),%t2'
23910 tls_as_opt
=--fatal-warnings
23914 .section ".tdata","awT",%progbits
23917 .word foo(gottpoff)
23925 i
[34567]86-*-* | x86_64-
*-*)
23927 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23934 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23936 .section .tdata,"awt",@progbits'
23941 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23945 .section ".tdata","awT",@progbits'
23949 tls_as_opt
="--fatal-warnings"
23953 conftest_s
="$conftest_s
23957 leal foo@tlsgd(,%ebx,1), %eax
23958 leal foo@tlsldm(%ebx), %eax
23959 leal foo@dtpoff(%eax), %edx
23960 movl foo@gottpoff(%ebx), %eax
23961 subl foo@gottpoff(%ebx), %eax
23962 addl foo@gotntpoff(%ebx), %eax
23963 movl foo@indntpoff, %eax
23964 movl \$foo@tpoff, %eax
23965 subl \$foo@tpoff, %eax
23966 leal foo@ntpoff(%ecx), %eax"
23969 if test x
$on_solaris = xyes
; then
23971 yes) tls_as_opt
="$tls_as_opt --64" ;;
23972 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23975 conftest_s
="$conftest_s
23979 leaq foo@tlsgd(%rip), %rdi
23980 leaq foo@tlsld(%rip), %rdi
23981 leaq foo@dtpoff(%rax), %rdx
23982 movq foo@gottpoff(%rip), %rax
23983 movq \$foo@tpoff, %rax"
23989 .section ".tdata","awT",@progbits
23992 addl r16 = @ltoff(@dtpmod(foo#)), gp
23993 addl r17 = @ltoff(@dtprel(foo#)), gp
23994 addl r18 = @ltoff(@tprel(foo#)), gp
23995 addl r19 = @dtprel(foo#), gp
23996 adds r21 = @dtprel(foo#), r13
23997 movl r23 = @dtprel(foo#)
23998 addl r20 = @tprel(foo#), gp
23999 adds r22 = @tprel(foo#), r13
24000 movl r24 = @tprel(foo#)'
24003 tls_as_opt
=--fatal-warnings
24007 .section .tdata,"awT",@progbits
24011 addik r5,r20,x@TLSGD
24012 addik r5,r20,x@TLSLDM'
24015 tls_as_opt
='--fatal-warnings'
24019 .section .tdata,"awT",@progbits
24023 addiu $4, $28, %tlsgd(x)
24024 addiu $4, $28, %tlsldm(x)
24025 lui $4, %dtprel_hi(x)
24026 addiu $4, $4, %dtprel_lo(x)
24027 lw $4, %gottprel(x)($28)
24028 lui $4, %tprel_hi(x)
24029 addiu $4, $4, %tprel_lo(x)'
24032 tls_as_opt
='-32 --fatal-warnings'
24036 .section .tdata,"awT",@progbits
24041 move.l x@TLSGD(%a5),%a0
24042 move.l x@TLSLDM(%a5),%a0
24043 move.l x@TLSLDO(%a5),%a0
24044 move.l x@TLSIE(%a5),%a0
24045 move.l x@TLSLE(%a5),%a0'
24048 tls_as_opt
='--fatal-warnings'
24052 .section ".tdata","awT",@progbits'
24055 tls_as_opt
="--fatal-warnings"
24059 .section ".tdata","awT",%progbits
24063 add x0, x0, #:tlsgd_lo12:x
24068 tls_as_opt
='--fatal-warnings'
24072 .extern __get_tpointer
24090 .section ".tdata","awT",@progbits
24098 addi 3,2,ld0@got@tlsgd
24104 addi 3,2,x1@got@tlsld
24110 addis 9,3,x2@dtprel@ha
24111 addi 9,9,x2@dtprel@l
24114 ld 9,x3@got@dtprel(2)
24120 tls_as_opt
="-a64 --fatal-warnings"
24124 .section ".tdata","awT",@progbits
24132 addi 3,31,ld0@got@tlsgd
24134 addi 3,31,x1@got@tlsld
24137 addis 9,3,x2@dtprel@ha
24138 addi 9,9,x2@dtprel@l
24139 lwz 9,x3@got@tprel(31)
24142 addis 9,2,x2@tprel@ha
24143 addi 9,9,x2@tprel@l'
24146 tls_as_opt
="-a32 --fatal-warnings"
24150 .section .tdata,"awT",@progbits
24154 call __tls_get_addr'
24157 tls_as_opt
='--fatal-warnings'
24161 .section ".tdata","awT",@progbits
24168 .long foo@GOTNTPOFF
24169 .long foo@INDNTPOFF
24170 l %r1,foo@GOTNTPOFF(%r12)
24171 l %r1,0(%r1):tls_load:foo
24172 bas %r14,0(%r1,%r13):tls_gdcall:foo
24173 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24176 tls_as_opt
="-m31 --fatal-warnings"
24180 .section ".tdata","awT",@progbits
24187 .quad foo@GOTNTPOFF
24188 lg %r1,foo@GOTNTPOFF(%r12)
24189 larl %r1,foo@INDNTPOFF
24190 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24191 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24194 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24196 sh-
*-* | sh
[123456789lbe
]*-*-*)
24198 .section ".tdata","awT",@progbits
24208 tls_as_opt
=--fatal-warnings
24212 sparc
*-sun-solaris2.
*)
24219 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24221 .section ".tdata",#alloc,#write,#tls'
24226 .section ".tdata","awT",@progbits'
24229 tls_as_opt
="-32 --fatal-warnings"
24231 conftest_s
="$conftest_s
24234 sethi %tgd_hi22(foo), %o0
24235 add %o0, %tgd_lo10(foo), %o1
24236 add %l7, %o1, %o0, %tgd_add(foo)
24237 call __tls_get_addr, %tgd_call(foo)
24238 sethi %tldm_hi22(foo), %l1
24239 add %l1, %tldm_lo10(foo), %l2
24240 add %l7, %l2, %o0, %tldm_add(foo)
24241 call __tls_get_addr, %tldm_call(foo)
24242 sethi %tldo_hix22(foo), %l3
24243 xor %l3, %tldo_lox10(foo), %l4
24244 add %o0, %l4, %l5, %tldo_add(foo)
24245 sethi %tie_hi22(foo), %o3
24246 add %o3, %tie_lo10(foo), %o3
24247 ld [%l7 + %o3], %o2, %tie_ld(foo)
24248 add %g7, %o2, %o4, %tie_add(foo)
24249 sethi %tle_hix22(foo), %l1
24250 xor %l1, %tle_lox10(foo), %o5
24251 ld [%g7 + %o5], %o1"
24255 .section ".tdata","awT",@progbits
24258 addli r0, zero, tls_gd(foo)
24259 auli r0, zero, tls_gd_ha16(foo)
24260 addli r0, r0, tls_gd_lo16(foo)
24262 addli r0, zero, tls_ie(foo)
24263 auli r0, r0, tls_ie_ha16(foo)
24264 addli r0, r0, tls_ie_lo16(foo)'
24267 tls_as_opt
="--fatal-warnings"
24271 .section ".tdata","awT",@progbits
24274 shl16insli r0, zero, hw0_last_tls_gd(foo)
24275 shl16insli r0, zero, hw1_last_tls_gd(foo)
24276 shl16insli r0, r0, hw0_tls_gd(foo)
24278 shl16insli r0, zero, hw1_last_tls_ie(foo)
24279 shl16insli r0, r0, hw0_tls_ie(foo)'
24282 tls_as_opt
="--fatal-warnings"
24286 .section ".tdata","awT",@progbits
24289 movi a8, foo@TLSFUNC
24290 movi a10, foo@TLSARG
24291 callx8.tls a8, foo@TLSCALL'
24297 if test "x$enable_tls" = xno
; then
24298 : # TLS explicitly disabled.
24299 elif test "x$enable_tls" = xyes
; then
24300 set_have_as_tls
=yes # TLS explicitly enabled.
24301 elif test -z "$tls_first_major"; then
24302 : # If we don't have a check, assume no support.
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24305 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24306 if test "${gcc_cv_as_tls+set}" = set; then :
24307 $as_echo_n "(cached) " >&6
24310 if test $in_tree_gas = yes; then
24311 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24312 then gcc_cv_as_tls
=yes
24314 elif test x
$gcc_cv_as != x
; then
24315 $as_echo "$conftest_s" > conftest.s
24316 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24318 (eval $ac_try) 2>&5
24320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24321 test $ac_status = 0; }; }
24325 echo "configure: failed program was" >&5
24328 rm -f conftest.o conftest.s
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24332 $as_echo "$gcc_cv_as_tls" >&6; }
24333 if test $gcc_cv_as_tls = yes; then
24334 set_have_as_tls
=yes
24338 if test $set_have_as_tls = yes ; then
24340 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24344 # Target-specific assembler checks.
24346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24347 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24348 gcc_cv_ld_static_dynamic
=no
24349 gcc_cv_ld_static_option
='-Bstatic'
24350 gcc_cv_ld_dynamic_option
='-Bdynamic'
24351 if test $in_tree_ld = yes ; then
24352 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
24353 gcc_cv_ld_static_dynamic
=yes
24355 elif test x
$gcc_cv_ld != x
; then
24356 # Check if linker supports -Bstatic/-Bdynamic option
24357 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24358 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24359 gcc_cv_ld_static_dynamic
=yes
24362 # AIX ld uses -b flags
24363 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24364 gcc_cv_ld_static_dynamic
=yes
24365 gcc_cv_ld_static_option
="-bstatic"
24366 gcc_cv_ld_dynamic_option
="-bdynamic"
24368 # HP-UX ld uses -a flags to select between shared and archive.
24370 if test x
"$gnu_ld" = xno
; then
24371 gcc_cv_ld_static_dynamic
=yes
24372 gcc_cv_ld_static_option
="-aarchive_shared"
24373 gcc_cv_ld_dynamic_option
="-adefault"
24376 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24378 gcc_cv_ld_static_dynamic
=yes
24383 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24385 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24388 cat >>confdefs.h
<<_ACEOF
24389 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24393 cat >>confdefs.h
<<_ACEOF
24394 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24399 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24401 if test x
"$demangler_in_ld" = xyes
; then
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24403 $as_echo_n "checking linker --demangle support... " >&6; }
24404 gcc_cv_ld_demangle
=no
24405 if test $in_tree_ld = yes; then
24406 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 \
24407 gcc_cv_ld_demangle
=yes
24409 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24410 # Check if the GNU linker supports --demangle option
24411 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24412 gcc_cv_ld_demangle
=yes
24415 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24417 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24421 $as_echo "$gcc_cv_ld_demangle" >&6; }
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24425 $as_echo_n "checking linker plugin support... " >&6; }
24426 gcc_cv_lto_plugin
=0
24427 if test -f liblto_plugin.la
; then
24428 save_ld_ver
="$ld_ver"
24429 save_ld_vers_major
="$ld_vers_major"
24430 save_ld_vers_minor
="$ld_vers_minor"
24431 save_ld_is_gold
="$ld_is_gold"
24435 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24437 # FIXME: ld_is_gold?
24438 ld_vers_major
="$gcc_cv_gld_major_version"
24439 ld_vers_minor
="$gcc_cv_gld_minor_version"
24441 # Determine plugin linker version.
24442 # FIXME: Partial duplicate from above, generalize.
24443 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24444 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24445 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24447 ld_vers
=`echo $ld_ver | sed -n \
24448 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24450 ld_vers
=`echo $ld_ver | sed -n \
24451 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24453 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24454 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24458 # Determine plugin support.
24459 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24460 # Require GNU ld or gold 2.21+ for plugin support by default.
24461 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24462 gcc_cv_lto_plugin
=2
24463 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24464 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24465 gcc_cv_lto_plugin
=1
24469 ld_ver
="$save_ld_ver"
24470 ld_vers_major
="$save_ld_vers_major"
24471 ld_vers_minor
="$save_ld_vers_minor"
24472 ld_is_gold
="$save_ld_is_gold"
24475 cat >>confdefs.h
<<_ACEOF
24476 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24480 $as_echo "$gcc_cv_lto_plugin" >&6; }
24482 # Target OS-specific assembler checks.
24484 case "$target_os" in
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24487 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24488 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24491 gcc_cv_as_mmacosx_version_min
=no
24492 if test x
$gcc_cv_as != x
; then
24493 $as_echo '.text' > conftest.s
24494 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24496 (eval $ac_try) 2>&5
24498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; }
24501 gcc_cv_as_mmacosx_version_min
=yes
24503 echo "configure: failed program was" >&5
24506 rm -f conftest.o conftest.s
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24510 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24511 if test $gcc_cv_as_mmacosx_version_min = yes; then
24513 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24520 # Target CPU-specific assembler checks.
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24525 $as_echo_n "checking assembler for -mabi option... " >&6; }
24526 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24527 $as_echo_n "(cached) " >&6
24529 gcc_cv_as_aarch64_mabi
=no
24530 if test x
$gcc_cv_as != x
; then
24531 $as_echo '.text' > conftest.s
24532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }
24539 gcc_cv_as_aarch64_mabi
=yes
24541 echo "configure: failed program was" >&5
24544 rm -f conftest.o conftest.s
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24548 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24551 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24553 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24556 if test x
$with_abi = xilp32
; then
24557 as_fn_error
"Assembler does not support -mabi=ilp32.\
24558 Upgrade the Assembler." "$LINENO" 5
24560 if test x
"$with_multilib_list" = xdefault
; then
24561 TM_MULTILIB_CONFIG
=lp64
24563 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24564 for aarch64_multilib
in ${aarch64_multilibs}; do
24565 case ${aarch64_multilib} in
24567 as_fn_error
"Assembler does not support -mabi=ilp32.\
24568 Upgrade the Assembler." "$LINENO" 5
24576 # Check if we have binutils support for relocations types needed by -fpic
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24578 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24579 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24580 $as_echo_n "(cached) " >&6
24582 gcc_cv_as_aarch64_picreloc
=no
24583 if test x
$gcc_cv_as != x
; then
24586 ldr x0, [x2, #:gotpage_lo15:globalsym]
24588 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24590 (eval $ac_try) 2>&5
24592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24593 test $ac_status = 0; }; }
24595 gcc_cv_as_aarch64_picreloc
=yes
24597 echo "configure: failed program was" >&5
24600 rm -f conftest.o conftest.s
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24604 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24605 if test $gcc_cv_as_aarch64_picreloc = yes; then
24607 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24611 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24612 # Check whether --enable-fix-cortex-a53-835769 was given.
24613 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24614 enableval
=$enable_fix_cortex_a53_835769;
24617 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24622 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24623 Valid choices are 'yes' and 'no'." "$LINENO" 5
24630 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24631 # Check whether --enable-fix-cortex-a53-843419 was given.
24632 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24633 enableval
=$enable_fix_cortex_a53_843419;
24636 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24641 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24642 Valid choices are 'yes' and 'no'." "$LINENO" 5
24651 # All TARGET_ABI_OSF targets.
24652 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24654 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24655 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24656 $as_echo_n "(cached) " >&6
24658 gcc_cv_as_alpha_explicit_relocs
=no
24659 if test $in_tree_gas = yes; then
24660 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24661 then gcc_cv_as_alpha_explicit_relocs
=yes
24663 elif test x
$gcc_cv_as != x
; then
24664 $as_echo ' .set nomacro
24666 extbl $3, $2, $3 !lituse_bytoff!1
24667 ldq $2, a($29) !literal!1
24668 ldq $4, b($29) !literal!2
24669 ldq_u $3, 0($2) !lituse_base!1
24670 ldq $27, f($29) !literal!5
24671 jsr $26, ($27), f !lituse_jsr!5
24672 ldah $29, 0($26) !gpdisp!3
24673 lda $0, c($29) !gprel
24674 ldah $1, d($29) !gprelhigh
24675 lda $1, d($1) !gprellow
24676 lda $29, 0($29) !gpdisp!3' > conftest.s
24677 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24679 (eval $ac_try) 2>&5
24681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24682 test $ac_status = 0; }; }
24684 gcc_cv_as_alpha_explicit_relocs
=yes
24686 echo "configure: failed program was" >&5
24689 rm -f conftest.o conftest.s
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24693 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24694 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24696 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24701 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24702 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24703 $as_echo_n "(cached) " >&6
24705 gcc_cv_as_alpha_jsrdirect_relocs
=no
24706 if test $in_tree_gas = yes; then
24707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24708 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24710 elif test x
$gcc_cv_as != x
; then
24711 $as_echo ' .set nomacro
24713 ldq $27, a($29) !literal!1
24714 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24715 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24717 (eval $ac_try) 2>&5
24719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24720 test $ac_status = 0; }; }
24722 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24724 echo "configure: failed program was" >&5
24727 rm -f conftest.o conftest.s
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24731 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24732 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24734 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24742 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24743 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24744 $as_echo_n "(cached) " >&6
24746 gcc_cv_as_avr_mlink_relax
=no
24747 if test x
$gcc_cv_as != x
; then
24748 $as_echo '.text' > conftest.s
24749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24751 (eval $ac_try) 2>&5
24753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24754 test $ac_status = 0; }; }
24756 gcc_cv_as_avr_mlink_relax
=yes
24758 echo "configure: failed program was" >&5
24761 rm -f conftest.o conftest.s
24764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24765 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24766 if test $gcc_cv_as_avr_mlink_relax = yes; then
24768 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24774 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24775 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24778 gcc_cv_as_avr_mrmw
=no
24779 if test x
$gcc_cv_as != x
; then
24780 $as_echo '.text' > conftest.s
24781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24783 (eval $ac_try) 2>&5
24785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24786 test $ac_status = 0; }; }
24788 gcc_cv_as_avr_mrmw
=yes
24790 echo "configure: failed program was" >&5
24793 rm -f conftest.o conftest.s
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24797 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24798 if test $gcc_cv_as_avr_mrmw = yes; then
24800 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24808 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24809 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24812 gcc_cv_as_cris_no_mul_bug
=no
24813 if test $in_tree_gas = yes; then
24814 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24815 then gcc_cv_as_cris_no_mul_bug
=yes
24817 elif test x
$gcc_cv_as != x
; then
24818 $as_echo '.text' > conftest.s
24819 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24821 (eval $ac_try) 2>&5
24823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24824 test $ac_status = 0; }; }
24826 gcc_cv_as_cris_no_mul_bug
=yes
24828 echo "configure: failed program was" >&5
24831 rm -f conftest.o conftest.s
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24835 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24836 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24838 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24846 $as_echo_n "checking assembler for .register... " >&6; }
24847 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24848 $as_echo_n "(cached) " >&6
24850 gcc_cv_as_sparc_register_op
=no
24851 if test x
$gcc_cv_as != x
; then
24852 $as_echo '.register %g2, #scratch' > conftest.s
24853 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24855 (eval $ac_try) 2>&5
24857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24858 test $ac_status = 0; }; }
24860 gcc_cv_as_sparc_register_op
=yes
24862 echo "configure: failed program was" >&5
24865 rm -f conftest.o conftest.s
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24869 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24870 if test $gcc_cv_as_sparc_register_op = yes; then
24872 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24878 $as_echo_n "checking assembler for -relax option... " >&6; }
24879 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24880 $as_echo_n "(cached) " >&6
24882 gcc_cv_as_sparc_relax
=no
24883 if test x
$gcc_cv_as != x
; then
24884 $as_echo '.text' > conftest.s
24885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24887 (eval $ac_try) 2>&5
24889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24890 test $ac_status = 0; }; }
24892 gcc_cv_as_sparc_relax
=yes
24894 echo "configure: failed program was" >&5
24897 rm -f conftest.o conftest.s
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24901 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24902 if test $gcc_cv_as_sparc_relax = yes; then
24904 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24910 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24911 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24912 $as_echo_n "(cached) " >&6
24914 gcc_cv_as_sparc_gotdata_op
=no
24915 if test x
$gcc_cv_as != x
; then
24921 sethi %gdop_hix22(foo), %g1
24922 xor %g1, %gdop_lox10(foo), %g1
24923 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24924 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24926 (eval $ac_try) 2>&5
24928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24929 test $ac_status = 0; }; }
24931 if test x
$gcc_cv_ld != x \
24932 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24933 if test x
$gcc_cv_objdump != x
; then
24934 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24935 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24936 gcc_cv_as_sparc_gotdata_op
=no
24938 gcc_cv_as_sparc_gotdata_op
=yes
24944 echo "configure: failed program was" >&5
24947 rm -f conftest.o conftest.s
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24951 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24952 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24954 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24960 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24961 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24964 gcc_cv_as_sparc_ua_pcrel
=no
24965 if test x
$gcc_cv_as != x
; then
24972 .uaword %r_disp32(foo)' > conftest.s
24973 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24975 (eval $ac_try) 2>&5
24977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24978 test $ac_status = 0; }; }
24980 if test x
$gcc_cv_ld != x \
24981 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24982 gcc_cv_as_sparc_ua_pcrel
=yes
24986 echo "configure: failed program was" >&5
24989 rm -f conftest.o conftest.s
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24993 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24994 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24996 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25000 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25001 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25002 $as_echo_n "(cached) " >&6
25004 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25005 if test x
$gcc_cv_as != x
; then
25009 .uaword %r_disp32(foo)
25010 .byte 0x32, 0x33, 0x34
25014 .skip 4' > conftest.s
25015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017 (eval $ac_try) 2>&5
25019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020 test $ac_status = 0; }; }
25022 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25023 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25024 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25025 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25026 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25027 |
grep 'DISP32' > /dev
/null
2>&1; then
25030 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25035 echo "configure: failed program was" >&5
25038 rm -f conftest.o conftest.s
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25042 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25043 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25045 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25051 # unaligned pcrel relocs
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25054 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25055 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25056 $as_echo_n "(cached) " >&6
25058 gcc_cv_as_sparc_offsetable_lo10
=no
25059 if test x
$gcc_cv_as != x
; then
25061 or %g1, %lo(ab) + 12, %g1
25062 or %g1, %lo(ab + 12), %g1' > conftest.s
25063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25065 (eval $ac_try) 2>&5
25067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25068 test $ac_status = 0; }; }
25070 if test x
$gcc_cv_objdump != x \
25071 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25072 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25073 gcc_cv_as_sparc_offsetable_lo10
=yes
25076 echo "configure: failed program was" >&5
25079 rm -f conftest.o conftest.s
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25083 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25084 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25086 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25092 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25093 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25094 $as_echo_n "(cached) " >&6
25096 gcc_cv_as_sparc_fmaf
=no
25097 if test x
$gcc_cv_as != x
; then
25099 .register %g2, #scratch
25100 .register %g3, #scratch
25102 fmaddd %f0, %f2, %f4, %f6
25103 addxccc %g1, %g2, %g3
25104 fsrl32 %f2, %f4, %f8
25105 fnaddd %f10, %f12, %f14' > conftest.s
25106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25108 (eval $ac_try) 2>&5
25110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25111 test $ac_status = 0; }; }
25113 gcc_cv_as_sparc_fmaf
=yes
25115 echo "configure: failed program was" >&5
25118 rm -f conftest.o conftest.s
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25122 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25123 if test $gcc_cv_as_sparc_fmaf = yes; then
25125 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25131 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25132 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25133 $as_echo_n "(cached) " >&6
25135 gcc_cv_as_sparc_sparc4
=no
25136 if test x
$gcc_cv_as != x
; then
25138 .register %g2, #scratch
25139 .register %g3, #scratch
25142 1: cwbneg %g2, %g3, 1f
25145 aes_kexpand0 %f4, %f6, %f8
25146 des_round %f38, %f40, %f42, %f44
25147 camellia_f %f54, %f56, %f58, %f60
25148 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25151 (eval $ac_try) 2>&5
25153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25154 test $ac_status = 0; }; }
25156 gcc_cv_as_sparc_sparc4
=yes
25158 echo "configure: failed program was" >&5
25161 rm -f conftest.o conftest.s
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25165 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25166 if test $gcc_cv_as_sparc_sparc4 = yes; then
25168 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25174 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25175 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25176 $as_echo_n "(cached) " >&6
25178 gcc_cv_as_sparc_sparc5
=no
25179 if test x
$gcc_cv_as != x
; then
25181 .register %g2, #scratch
25182 .register %g3, #scratch
25184 subxc %g1, %g2, %g3
25185 fpadd8 %f0, %f2, %f4' > conftest.s
25186 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25188 (eval $ac_try) 2>&5
25190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25191 test $ac_status = 0; }; }
25193 gcc_cv_as_sparc_sparc5
=yes
25195 echo "configure: failed program was" >&5
25198 rm -f conftest.o conftest.s
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25202 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25203 if test $gcc_cv_as_sparc_sparc5 = yes; then
25205 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25211 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25212 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25213 $as_echo_n "(cached) " >&6
25215 gcc_cv_as_sparc_leon
=no
25216 if test x
$gcc_cv_as != x
; then
25218 .register %g2, #scratch
25219 .register %g3, #scratch
25223 casa [%g2] 0xb, %g3, %g1' > conftest.s
25224 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25226 (eval $ac_try) 2>&5
25228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25229 test $ac_status = 0; }; }
25231 gcc_cv_as_sparc_leon
=yes
25233 echo "configure: failed program was" >&5
25236 rm -f conftest.o conftest.s
25239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25240 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25241 if test $gcc_cv_as_sparc_leon = yes; then
25243 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25249 i
[34567]86-*-* | x86_64-
*-*)
25252 # Full C++ conformance when using a shared libstdc++-v3 requires some
25253 # support from the Cygwin DLL, which in more recent versions exports
25254 # wrappers to aid in interposing and redirecting operators new, delete,
25255 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25256 # are configuring for a version of Cygwin that exports the wrappers.
25257 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25258 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25259 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25260 gcc_ac_cygwin_dll_wrappers
=yes
25262 gcc_ac_cygwin_dll_wrappers
=no
25266 # Can't check presence of libc functions during cross-compile, so
25267 # we just have to assume we're building for an up-to-date target.
25268 gcc_ac_cygwin_dll_wrappers
=yes
25271 cat >>confdefs.h
<<_ACEOF
25272 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25277 cygwin
* | pe | mingw32
*)
25278 # Recent binutils allows the three-operand form of ".comm" on PE. This
25279 # definition is used unconditionally to initialise the default state of
25280 # the target option variable that governs usage of the feature.
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25282 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25283 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25284 $as_echo_n "(cached) " >&6
25286 gcc_cv_as_comm_has_align
=no
25287 if test $in_tree_gas = yes; then
25288 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25289 then gcc_cv_as_comm_has_align
=yes
25291 elif test x
$gcc_cv_as != x
; then
25292 $as_echo '.comm foo,1,32' > conftest.s
25293 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25295 (eval $ac_try) 2>&5
25297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25298 test $ac_status = 0; }; }
25300 gcc_cv_as_comm_has_align
=yes
25302 echo "configure: failed program was" >&5
25305 rm -f conftest.o conftest.s
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25309 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25313 cat >>confdefs.h
<<_ACEOF
25314 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25317 # Used for DWARF 2 in PE
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25319 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25320 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25321 $as_echo_n "(cached) " >&6
25323 gcc_cv_as_ix86_pe_secrel32
=no
25324 if test $in_tree_gas = yes; then
25325 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25326 then gcc_cv_as_ix86_pe_secrel32
=yes
25328 elif test x
$gcc_cv_as != x
; then
25332 .secrel32 foo' > conftest.s
25333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25335 (eval $ac_try) 2>&5
25337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25338 test $ac_status = 0; }; }
25340 if test x
$gcc_cv_ld != x \
25341 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25342 gcc_cv_as_ix86_pe_secrel32
=yes
25346 echo "configure: failed program was" >&5
25349 rm -f conftest.o conftest.s
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25353 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25354 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25356 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25360 # Test if the assembler supports the extended form of the .section
25361 # directive that specifies section alignment. LTO support uses this,
25362 # but normally only after installation, so we warn but don't fail the
25363 # configure if LTO is enabled but the assembler does not support it.
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25365 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25366 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25367 $as_echo_n "(cached) " >&6
25369 gcc_cv_as_section_has_align
=no
25370 if test $in_tree_gas = yes; then
25371 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25372 then gcc_cv_as_section_has_align
=yes
25374 elif test x
$gcc_cv_as != x
; then
25375 $as_echo '.section lto_test,"dr0"' > conftest.s
25376 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25378 (eval $ac_try) 2>&5
25380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25381 test $ac_status = 0; }; }
25383 gcc_cv_as_section_has_align
=yes
25385 echo "configure: failed program was" >&5
25388 rm -f conftest.o conftest.s
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25392 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25395 if test x
$gcc_cv_as_section_has_align != xyes
; then
25396 case ",$enable_languages," in
25398 { $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
25399 $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;}
25406 # Test if the assembler supports the section flag 'e' for specifying
25407 # an excluded section.
25408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25409 $as_echo_n "checking assembler for .section with e... " >&6; }
25410 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25411 $as_echo_n "(cached) " >&6
25413 gcc_cv_as_section_has_e
=no
25414 if test $in_tree_gas = yes; then
25415 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25416 then gcc_cv_as_section_has_e
=yes
25418 elif test x
$gcc_cv_as != x
; then
25419 $as_echo '.section foo1,"e"
25420 .byte 0,0,0,0' > conftest.s
25421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25423 (eval $ac_try) 2>&5
25425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25426 test $ac_status = 0; }; }
25428 gcc_cv_as_section_has_e
=yes
25430 echo "configure: failed program was" >&5
25433 rm -f conftest.o conftest.s
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25437 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25441 cat >>confdefs.h
<<_ACEOF
25442 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25447 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25448 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25449 $as_echo_n "(cached) " >&6
25451 gcc_cv_as_ix86_filds
=no
25452 if test x
$gcc_cv_as != x
; then
25453 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25454 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25456 (eval $ac_try) 2>&5
25458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25459 test $ac_status = 0; }; }
25461 gcc_cv_as_ix86_filds
=yes
25463 echo "configure: failed program was" >&5
25466 rm -f conftest.o conftest.s
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25470 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25471 if test $gcc_cv_as_ix86_filds = yes; then
25473 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25479 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25480 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25481 $as_echo_n "(cached) " >&6
25483 gcc_cv_as_ix86_fildq
=no
25484 if test x
$gcc_cv_as != x
; then
25485 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25486 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25488 (eval $ac_try) 2>&5
25490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25491 test $ac_status = 0; }; }
25493 gcc_cv_as_ix86_fildq
=yes
25495 echo "configure: failed program was" >&5
25498 rm -f conftest.o conftest.s
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25502 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25503 if test $gcc_cv_as_ix86_fildq = yes; then
25505 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25511 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25512 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25513 $as_echo_n "(cached) " >&6
25515 gcc_cv_as_ix86_cmov_sun_syntax
=no
25516 if test x
$gcc_cv_as != x
; then
25517 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25518 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25520 (eval $ac_try) 2>&5
25522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25523 test $ac_status = 0; }; }
25525 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25527 echo "configure: failed program was" >&5
25530 rm -f conftest.o conftest.s
25533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25534 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25535 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25537 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25543 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25544 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25545 $as_echo_n "(cached) " >&6
25547 gcc_cv_as_ix86_ffreep
=no
25548 if test x
$gcc_cv_as != x
; then
25549 $as_echo 'ffreep %st(1)' > conftest.s
25550 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25552 (eval $ac_try) 2>&5
25554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25555 test $ac_status = 0; }; }
25557 gcc_cv_as_ix86_ffreep
=yes
25559 echo "configure: failed program was" >&5
25562 rm -f conftest.o conftest.s
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25566 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25567 if test $gcc_cv_as_ix86_ffreep = yes; then
25569 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25575 $as_echo_n "checking assembler for .quad directive... " >&6; }
25576 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25577 $as_echo_n "(cached) " >&6
25579 gcc_cv_as_ix86_quad
=no
25580 if test x
$gcc_cv_as != x
; then
25581 $as_echo '.quad 0' > conftest.s
25582 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25584 (eval $ac_try) 2>&5
25586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25587 test $ac_status = 0; }; }
25589 gcc_cv_as_ix86_quad
=yes
25591 echo "configure: failed program was" >&5
25594 rm -f conftest.o conftest.s
25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25598 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25599 if test $gcc_cv_as_ix86_quad = yes; then
25601 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25607 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25608 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25609 $as_echo_n "(cached) " >&6
25611 gcc_cv_as_ix86_sahf
=no
25612 if test x
$gcc_cv_as != x
; then
25615 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25617 (eval $ac_try) 2>&5
25619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25620 test $ac_status = 0; }; }
25622 gcc_cv_as_ix86_sahf
=yes
25624 echo "configure: failed program was" >&5
25627 rm -f conftest.o conftest.s
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25631 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25632 if test $gcc_cv_as_ix86_sahf = yes; then
25634 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25640 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25641 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25642 $as_echo_n "(cached) " >&6
25644 gcc_cv_as_ix86_interunit_movq
=no
25645 if test x
$gcc_cv_as != x
; then
25648 movq %rax, %xmm0' > conftest.s
25649 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25651 (eval $ac_try) 2>&5
25653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25654 test $ac_status = 0; }; }
25656 gcc_cv_as_ix86_interunit_movq
=yes
25658 echo "configure: failed program was" >&5
25661 rm -f conftest.o conftest.s
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25665 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25669 cat >>confdefs.h
<<_ACEOF
25670 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25675 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25676 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25677 $as_echo_n "(cached) " >&6
25679 gcc_cv_as_ix86_hle
=no
25680 if test x
$gcc_cv_as != x
; then
25681 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25684 (eval $ac_try) 2>&5
25686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25687 test $ac_status = 0; }; }
25689 gcc_cv_as_ix86_hle
=yes
25691 echo "configure: failed program was" >&5
25694 rm -f conftest.o conftest.s
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25698 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25699 if test $gcc_cv_as_ix86_hle = yes; then
25701 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25707 $as_echo_n "checking assembler for swap suffix... " >&6; }
25708 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25709 $as_echo_n "(cached) " >&6
25711 gcc_cv_as_ix86_swap
=no
25712 if test x
$gcc_cv_as != x
; then
25713 $as_echo 'movl.s %esp, %ebp' > conftest.s
25714 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25716 (eval $ac_try) 2>&5
25718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25719 test $ac_status = 0; }; }
25721 gcc_cv_as_ix86_swap
=yes
25723 echo "configure: failed program was" >&5
25726 rm -f conftest.o conftest.s
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25730 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25731 if test $gcc_cv_as_ix86_swap = yes; then
25733 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25739 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25740 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25741 $as_echo_n "(cached) " >&6
25743 gcc_cv_as_ix86_diff_sect_delta
=no
25744 if test x
$gcc_cv_as != x
; then
25745 $as_echo '.section .rodata
25751 .L2: nop' > conftest.s
25752 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754 (eval $ac_try) 2>&5
25756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; }
25759 gcc_cv_as_ix86_diff_sect_delta
=yes
25761 echo "configure: failed program was" >&5
25764 rm -f conftest.o conftest.s
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25768 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25769 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25771 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25777 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25778 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25779 $as_echo_n "(cached) " >&6
25781 gcc_cv_as_ix86_rep_lock_prefix
=no
25782 if test x
$gcc_cv_as != x
; then
25783 $as_echo 'rep movsl
25788 lock addl %edi, (%eax,%esi)
25789 lock orl $0, (%esp)' > conftest.s
25790 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25792 (eval $ac_try) 2>&5
25794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25795 test $ac_status = 0; }; }
25797 gcc_cv_as_ix86_rep_lock_prefix
=yes
25799 echo "configure: failed program was" >&5
25802 rm -f conftest.o conftest.s
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25806 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25807 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25809 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25815 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25816 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25817 $as_echo_n "(cached) " >&6
25819 gcc_cv_as_ix86_ud2
=no
25820 if test x
$gcc_cv_as != x
; then
25821 $as_echo 'ud2' > conftest.s
25822 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25824 (eval $ac_try) 2>&5
25826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25827 test $ac_status = 0; }; }
25829 gcc_cv_as_ix86_ud2
=yes
25831 echo "configure: failed program was" >&5
25834 rm -f conftest.o conftest.s
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25838 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25839 if test $gcc_cv_as_ix86_ud2 = yes; then
25841 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25846 # Enforce 32-bit output with gas and gld.
25847 if test x
$gas = xyes
; then
25848 as_ix86_gas_32_opt
="--32"
25850 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25851 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25852 ld_ix86_gld_32_opt
="-melf_i386_sol2"
25854 ld_ix86_gld_32_opt
="-melf_i386"
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25859 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25860 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25861 $as_echo_n "(cached) " >&6
25863 gcc_cv_as_ix86_tlsgdplt
=no
25864 if test x
$gcc_cv_as != x
; then
25865 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25868 (eval $ac_try) 2>&5
25870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25871 test $ac_status = 0; }; }
25873 if test x
$gcc_cv_ld != x \
25874 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25875 gcc_cv_as_ix86_tlsgdplt
=yes
25879 echo "configure: failed program was" >&5
25882 rm -f conftest.o conftest.s
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25886 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25887 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25889 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25895 .section .tdata,"aw'$tls_section_flag'",@progbits
25897 .section .text,"ax",@progbits
25898 call tls_ld@tlsldmplt'
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25901 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25902 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25903 $as_echo_n "(cached) " >&6
25905 gcc_cv_as_ix86_tlsldmplt
=no
25906 if test x
$gcc_cv_as != x
; then
25907 $as_echo "$conftest_s" > conftest.s
25908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25910 (eval $ac_try) 2>&5
25912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25913 test $ac_status = 0; }; }
25915 if test x
$gcc_cv_ld != x \
25916 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
25917 gcc_cv_as_ix86_tlsldmplt
=yes
25921 echo "configure: failed program was" >&5
25924 rm -f conftest.o conftest.s
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25928 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25932 cat >>confdefs.h
<<_ACEOF
25933 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25938 .section .text,"ax",@progbits
25940 .type _start, @function
25942 leal value@tlsldm(%ebx), %eax
25943 call ___tls_get_addr@plt
25945 .section .tdata,"aw'$tls_section_flag'",@progbits
25946 .type value, @object
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25949 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25950 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25951 $as_echo_n "(cached) " >&6
25953 gcc_cv_as_ix86_tlsldm
=no
25954 if test x
$gcc_cv_as != x
; then
25955 $as_echo "$conftest_s" > conftest.s
25956 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
25957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25958 (eval $ac_try) 2>&5
25960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25961 test $ac_status = 0; }; }
25963 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25964 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25965 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25966 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25967 gcc_cv_as_ix86_tlsldm
=yes
25972 echo "configure: failed program was" >&5
25975 rm -f conftest.o conftest.s
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25979 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25983 cat >>confdefs.h
<<_ACEOF
25984 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
25998 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
25999 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26000 $as_echo_n "(cached) " >&6
26002 gcc_cv_as_ix86_got32x
=no
26003 if test x
$gcc_cv_as != x
; then
26004 $as_echo "$conftest_s" > conftest.s
26005 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26007 (eval $ac_try) 2>&5
26009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26010 test $ac_status = 0; }; }
26012 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26013 && test x
$gcc_cv_readelf != x \
26014 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26015 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26016 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26017 if $gcc_cv_objdump -dw conftest
2>&1 \
26018 |
grep 0xffffff > /dev
/null
2>&1; then
26019 gcc_cv_as_ix86_got32x
=no
26021 gcc_cv_as_ix86_got32x
=yes
26026 echo "configure: failed program was" >&5
26029 rm -f conftest.o conftest.s
26032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26033 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26037 cat >>confdefs.h
<<_ACEOF
26038 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26043 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26044 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26045 $as_echo_n "(cached) " >&6
26047 gcc_cv_as_ix86_gotoff_in_data
=no
26048 if test $in_tree_gas = yes; then
26049 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26050 then gcc_cv_as_ix86_gotoff_in_data
=yes
26052 elif test x
$gcc_cv_as != x
; then
26057 .long .L0@GOTOFF' > conftest.s
26058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26060 (eval $ac_try) 2>&5
26062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26063 test $ac_status = 0; }; }
26065 gcc_cv_as_ix86_gotoff_in_data
=yes
26067 echo "configure: failed program was" >&5
26070 rm -f conftest.o conftest.s
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26074 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26078 cat >>confdefs.h
<<_ACEOF
26079 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26084 .section .text,"ax",@progbits
26086 .type _start, @function
26088 leal ld@tlsldm(%ecx), %eax
26089 call *___tls_get_addr@GOT(%ecx)
26090 leal gd@tlsgd(%ecx), %eax
26091 call *___tls_get_addr@GOT(%ecx)
26093 .section .tdata,"aw'$tls_section_flag'",@progbits
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26102 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26103 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26104 $as_echo_n "(cached) " >&6
26106 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26107 if test x
$gcc_cv_as != x
; then
26108 $as_echo "$conftest_s" > conftest.s
26109 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26111 (eval $ac_try) 2>&5
26113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26114 test $ac_status = 0; }; }
26116 if test x
$gcc_cv_ld != x \
26117 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26118 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26122 echo "configure: failed program was" >&5
26125 rm -f conftest.o conftest.s
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26129 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26133 cat >>confdefs.h
<<_ACEOF
26134 #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`
26140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26141 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26142 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26143 $as_echo_n "(cached) " >&6
26145 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26146 if test $in_tree_gas = yes; then
26147 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26148 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26150 elif test x
$gcc_cv_as != x
; then
26152 addl r15 = @ltoffx(x#), gp
26154 ld8.mov r16 = [r15], x#' > conftest.s
26155 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26157 (eval $ac_try) 2>&5
26159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26160 test $ac_status = 0; }; }
26162 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26164 echo "configure: failed program was" >&5
26167 rm -f conftest.o conftest.s
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26171 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26172 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26174 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26186 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26187 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26188 $as_echo_n "(cached) " >&6
26190 gcc_cv_as_machine_directive
=no
26191 if test x
$gcc_cv_as != x
; then
26192 $as_echo ' .machine ppc7400' > conftest.s
26193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26200 gcc_cv_as_machine_directive
=yes
26202 echo "configure: failed program was" >&5
26205 rm -f conftest.o conftest.s
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26209 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26212 if test x
$gcc_cv_as_machine_directive != xyes
; then
26213 echo "*** This target requires an assembler supporting \".machine\"" >&2
26214 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26215 test x
$build = x
$target && exit 1
26221 *-*-aix*) conftest_s
=' .machine "pwr5"
26224 *-*-darwin*) conftest_s
=' .text
26226 *) conftest_s
=' .machine power4
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26232 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26233 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26234 $as_echo_n "(cached) " >&6
26236 gcc_cv_as_powerpc_mfcrf
=no
26237 if test $in_tree_gas = yes; then
26238 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26239 then gcc_cv_as_powerpc_mfcrf
=yes
26241 elif test x
$gcc_cv_as != x
; then
26242 $as_echo "$conftest_s" > conftest.s
26243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26245 (eval $ac_try) 2>&5
26247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26248 test $ac_status = 0; }; }
26250 gcc_cv_as_powerpc_mfcrf
=yes
26252 echo "configure: failed program was" >&5
26255 rm -f conftest.o conftest.s
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26259 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26260 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26262 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26268 *-*-aix*) conftest_s
=' .machine "pwr5"
26271 *) conftest_s
=' .machine power5
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
26277 $as_echo_n "checking assembler for popcntb support... " >&6; }
26278 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
26279 $as_echo_n "(cached) " >&6
26281 gcc_cv_as_powerpc_popcntb
=no
26282 if test $in_tree_gas = yes; then
26283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26284 then gcc_cv_as_powerpc_popcntb
=yes
26286 elif test x
$gcc_cv_as != x
; then
26287 $as_echo "$conftest_s" > conftest.s
26288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26290 (eval $ac_try) 2>&5
26292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26293 test $ac_status = 0; }; }
26295 gcc_cv_as_powerpc_popcntb
=yes
26297 echo "configure: failed program was" >&5
26300 rm -f conftest.o conftest.s
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
26304 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
26305 if test $gcc_cv_as_powerpc_popcntb = yes; then
26307 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
26313 *-*-aix*) conftest_s
=' .machine "pwr5x"
26316 *) conftest_s
=' .machine power5
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
26322 $as_echo_n "checking assembler for fp round support... " >&6; }
26323 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
26324 $as_echo_n "(cached) " >&6
26326 gcc_cv_as_powerpc_fprnd
=no
26327 if test $in_tree_gas = yes; then
26328 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26329 then gcc_cv_as_powerpc_fprnd
=yes
26331 elif test x
$gcc_cv_as != x
; then
26332 $as_echo "$conftest_s" > conftest.s
26333 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26335 (eval $ac_try) 2>&5
26337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26338 test $ac_status = 0; }; }
26340 gcc_cv_as_powerpc_fprnd
=yes
26342 echo "configure: failed program was" >&5
26345 rm -f conftest.o conftest.s
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
26349 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
26350 if test $gcc_cv_as_powerpc_fprnd = yes; then
26352 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
26358 *-*-aix*) conftest_s
=' .machine "pwr6"
26361 *) conftest_s
=' .machine power6
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
26367 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
26368 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
26369 $as_echo_n "(cached) " >&6
26371 gcc_cv_as_powerpc_mfpgpr
=no
26372 if test $in_tree_gas = yes; then
26373 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26374 then gcc_cv_as_powerpc_mfpgpr
=yes
26376 elif test x
$gcc_cv_as != x
; then
26377 $as_echo "$conftest_s" > conftest.s
26378 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26380 (eval $ac_try) 2>&5
26382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26383 test $ac_status = 0; }; }
26385 gcc_cv_as_powerpc_mfpgpr
=yes
26387 echo "configure: failed program was" >&5
26390 rm -f conftest.o conftest.s
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
26394 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
26395 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
26397 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
26403 *-*-aix*) conftest_s
=' .csect .text[PR]
26405 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26409 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26410 *) conftest_s
=' .text
26412 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26416 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26417 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26418 $as_echo_n "(cached) " >&6
26420 gcc_cv_as_powerpc_rel16
=no
26421 if test $in_tree_gas = yes; then
26422 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26423 then gcc_cv_as_powerpc_rel16
=yes
26425 elif test x
$gcc_cv_as != x
; then
26426 $as_echo "$conftest_s" > conftest.s
26427 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; }
26434 gcc_cv_as_powerpc_rel16
=yes
26436 echo "configure: failed program was" >&5
26439 rm -f conftest.o conftest.s
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26443 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26444 if test $gcc_cv_as_powerpc_rel16 = yes; then
26446 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26452 *-*-aix*) conftest_s
=' .machine "pwr6"
26455 *) conftest_s
=' .machine power6
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26461 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26462 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26463 $as_echo_n "(cached) " >&6
26465 gcc_cv_as_powerpc_cmpb
=no
26466 if test $in_tree_gas = yes; then
26467 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26468 then gcc_cv_as_powerpc_cmpb
=yes
26470 elif test x
$gcc_cv_as != x
; then
26471 $as_echo "$conftest_s" > conftest.s
26472 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26474 (eval $ac_try) 2>&5
26476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26477 test $ac_status = 0; }; }
26479 gcc_cv_as_powerpc_cmpb
=yes
26481 echo "configure: failed program was" >&5
26484 rm -f conftest.o conftest.s
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26488 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26489 if test $gcc_cv_as_powerpc_cmpb = yes; then
26491 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26497 *-*-aix*) conftest_s
=' .machine "pwr6"
26500 *) conftest_s
=' .machine power6
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26506 $as_echo_n "checking assembler for decimal float support... " >&6; }
26507 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26508 $as_echo_n "(cached) " >&6
26510 gcc_cv_as_powerpc_dfp
=no
26511 if test $in_tree_gas = yes; then
26512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26513 then gcc_cv_as_powerpc_dfp
=yes
26515 elif test x
$gcc_cv_as != x
; then
26516 $as_echo "$conftest_s" > conftest.s
26517 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26519 (eval $ac_try) 2>&5
26521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26522 test $ac_status = 0; }; }
26524 gcc_cv_as_powerpc_dfp
=yes
26526 echo "configure: failed program was" >&5
26529 rm -f conftest.o conftest.s
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26533 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26534 if test $gcc_cv_as_powerpc_dfp = yes; then
26536 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26542 *-*-aix*) conftest_s
=' .machine "pwr7"
26545 *) conftest_s
=' .machine power7
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26551 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26552 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26553 $as_echo_n "(cached) " >&6
26555 gcc_cv_as_powerpc_vsx
=no
26556 if test $in_tree_gas = yes; then
26557 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26558 then gcc_cv_as_powerpc_vsx
=yes
26560 elif test x
$gcc_cv_as != x
; then
26561 $as_echo "$conftest_s" > conftest.s
26562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; }
26569 gcc_cv_as_powerpc_vsx
=yes
26571 echo "configure: failed program was" >&5
26574 rm -f conftest.o conftest.s
26577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26578 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26579 if test $gcc_cv_as_powerpc_vsx = yes; then
26581 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26587 *-*-aix*) conftest_s
=' .machine "pwr7"
26590 *) conftest_s
=' .machine power7
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26596 $as_echo_n "checking assembler for popcntd support... " >&6; }
26597 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26598 $as_echo_n "(cached) " >&6
26600 gcc_cv_as_powerpc_popcntd
=no
26601 if test $in_tree_gas = yes; then
26602 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26603 then gcc_cv_as_powerpc_popcntd
=yes
26605 elif test x
$gcc_cv_as != x
; then
26606 $as_echo "$conftest_s" > conftest.s
26607 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26609 (eval $ac_try) 2>&5
26611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26612 test $ac_status = 0; }; }
26614 gcc_cv_as_powerpc_popcntd
=yes
26616 echo "configure: failed program was" >&5
26619 rm -f conftest.o conftest.s
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26623 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26624 if test $gcc_cv_as_powerpc_popcntd = yes; then
26626 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26632 *-*-aix*) conftest_s
=' .machine "pwr8"
26633 .csect .text[PR]';;
26634 *) conftest_s
=' .machine power8
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26639 $as_echo_n "checking assembler for power8 support... " >&6; }
26640 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26641 $as_echo_n "(cached) " >&6
26643 gcc_cv_as_powerpc_power8
=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_power8
=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_power8
=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_power8" >&5
26666 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26667 if test $gcc_cv_as_powerpc_power8 = yes; then
26669 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26675 *-*-aix*) conftest_s
=' .machine "pwr9"
26676 .csect .text[PR]';;
26677 *) conftest_s
=' .machine power9
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power9 support" >&5
26682 $as_echo_n "checking assembler for power9 support... " >&6; }
26683 if test "${gcc_cv_as_powerpc_power9+set}" = set; then :
26684 $as_echo_n "(cached) " >&6
26686 gcc_cv_as_powerpc_power9
=no
26687 if test $in_tree_gas = yes; then
26688 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26689 then gcc_cv_as_powerpc_power9
=yes
26691 elif test x
$gcc_cv_as != x
; then
26692 $as_echo "$conftest_s" > conftest.s
26693 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26695 (eval $ac_try) 2>&5
26697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26698 test $ac_status = 0; }; }
26700 gcc_cv_as_powerpc_power9
=yes
26702 echo "configure: failed program was" >&5
26705 rm -f conftest.o conftest.s
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power9" >&5
26709 $as_echo "$gcc_cv_as_powerpc_power9" >&6; }
26710 if test $gcc_cv_as_powerpc_power9 = yes; then
26712 $as_echo "#define HAVE_AS_POWER9 1" >>confdefs.h
26718 *-*-aix*) conftest_s
=' .csect .text[PR]
26720 *) conftest_s
=' .text
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26725 $as_echo_n "checking assembler for lwsync support... " >&6; }
26726 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26727 $as_echo_n "(cached) " >&6
26729 gcc_cv_as_powerpc_lwsync
=no
26730 if test $in_tree_gas = yes; then
26731 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26732 then gcc_cv_as_powerpc_lwsync
=yes
26734 elif test x
$gcc_cv_as != x
; then
26735 $as_echo "$conftest_s" > conftest.s
26736 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26738 (eval $ac_try) 2>&5
26740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26741 test $ac_status = 0; }; }
26743 gcc_cv_as_powerpc_lwsync
=yes
26745 echo "configure: failed program was" >&5
26748 rm -f conftest.o conftest.s
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26752 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26753 if test $gcc_cv_as_powerpc_lwsync = yes; then
26755 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26761 *-*-aix*) conftest_s
=' .machine "476"
26764 *) conftest_s
=' .machine "476"
26769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26770 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26771 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26772 $as_echo_n "(cached) " >&6
26774 gcc_cv_as_powerpc_dci
=no
26775 if test $in_tree_gas = yes; then
26776 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26777 then gcc_cv_as_powerpc_dci
=yes
26779 elif test x
$gcc_cv_as != x
; then
26780 $as_echo "$conftest_s" > conftest.s
26781 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26783 (eval $ac_try) 2>&5
26785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26786 test $ac_status = 0; }; }
26788 gcc_cv_as_powerpc_dci
=yes
26790 echo "configure: failed program was" >&5
26793 rm -f conftest.o conftest.s
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26797 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26798 if test $gcc_cv_as_powerpc_dci = yes; then
26800 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26806 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26807 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26808 $as_echo_n "(cached) " >&6
26810 gcc_cv_as_powerpc_gnu_attribute
=no
26811 if test $in_tree_gas = yes; then
26812 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26813 then gcc_cv_as_powerpc_gnu_attribute
=yes
26815 elif test x
$gcc_cv_as != x
; then
26816 $as_echo '.gnu_attribute 4,1' > conftest.s
26817 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26819 (eval $ac_try) 2>&5
26821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26822 test $ac_status = 0; }; }
26824 gcc_cv_as_powerpc_gnu_attribute
=yes
26826 echo "configure: failed program was" >&5
26829 rm -f conftest.o conftest.s
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26833 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26834 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26836 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26842 $as_echo_n "checking assembler for tls marker support... " >&6; }
26843 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26844 $as_echo_n "(cached) " >&6
26846 gcc_cv_as_powerpc_tls_markers
=no
26847 if test $in_tree_gas = yes; then
26848 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26849 then gcc_cv_as_powerpc_tls_markers
=yes
26851 elif test x
$gcc_cv_as != x
; then
26852 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26853 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26855 (eval $ac_try) 2>&5
26857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26858 test $ac_status = 0; }; }
26860 gcc_cv_as_powerpc_tls_markers
=yes
26862 echo "configure: failed program was" >&5
26865 rm -f conftest.o conftest.s
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26869 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26870 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26872 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26878 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26879 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26880 $as_echo_n "(cached) " >&6
26882 gcc_cv_as_powerpc_entry_markers
=no
26883 if test $in_tree_gas = yes; then
26884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26885 then gcc_cv_as_powerpc_entry_markers
=yes
26887 elif test x
$gcc_cv_as != x
; then
26888 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26891 (eval $ac_try) 2>&5
26893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26894 test $ac_status = 0; }; }
26896 gcc_cv_as_powerpc_entry_markers
=yes
26898 echo "configure: failed program was" >&5
26901 rm -f conftest.o conftest.s
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26905 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26906 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26908 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26916 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26917 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26918 $as_echo_n "(cached) " >&6
26920 gcc_cv_as_aix_ref
=no
26921 if test $in_tree_gas = yes; then
26922 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26923 then gcc_cv_as_aix_ref
=yes
26925 elif test x
$gcc_cv_as != x
; then
26926 $as_echo ' .csect stuff[rw]
26932 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26934 (eval $ac_try) 2>&5
26936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26937 test $ac_status = 0; }; }
26939 gcc_cv_as_aix_ref
=yes
26941 echo "configure: failed program was" >&5
26944 rm -f conftest.o conftest.s
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26948 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26949 if test $gcc_cv_as_aix_ref = yes; then
26951 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26957 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26958 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26959 $as_echo_n "(cached) " >&6
26961 gcc_cv_as_aix_dwloc
=no
26962 if test $in_tree_gas = yes; then
26963 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26964 then gcc_cv_as_aix_dwloc
=yes
26966 elif test x
$gcc_cv_as != x
; then
26967 $as_echo ' .dwsect 0xA0000
26971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26973 (eval $ac_try) 2>&5
26975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26976 test $ac_status = 0; }; }
26978 gcc_cv_as_aix_dwloc
=yes
26980 echo "configure: failed program was" >&5
26983 rm -f conftest.o conftest.s
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26987 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26988 if test $gcc_cv_as_aix_dwloc = yes; then
26990 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27000 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27001 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27002 $as_echo_n "(cached) " >&6
27004 gcc_cv_as_mips_explicit_relocs
=no
27005 if test $in_tree_gas = yes; then
27006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27007 then gcc_cv_as_mips_explicit_relocs
=yes
27009 elif test x
$gcc_cv_as != x
; then
27010 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27011 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27013 (eval $ac_try) 2>&5
27015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27016 test $ac_status = 0; }; }
27018 gcc_cv_as_mips_explicit_relocs
=yes
27020 echo "configure: failed program was" >&5
27023 rm -f conftest.o conftest.s
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27027 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27028 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27029 if test x
$target_cpu_default = x
27030 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27031 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27037 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27038 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27039 $as_echo_n "(cached) " >&6
27041 gcc_cv_as_mips_no_shared
=no
27042 if test $in_tree_gas = yes; then
27043 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27044 then gcc_cv_as_mips_no_shared
=yes
27046 elif test x
$gcc_cv_as != x
; then
27047 $as_echo 'nop' > conftest.s
27048 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27050 (eval $ac_try) 2>&5
27052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27053 test $ac_status = 0; }; }
27055 gcc_cv_as_mips_no_shared
=yes
27057 echo "configure: failed program was" >&5
27060 rm -f conftest.o conftest.s
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27064 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27065 if test $gcc_cv_as_mips_no_shared = yes; then
27067 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27073 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27074 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27075 $as_echo_n "(cached) " >&6
27077 gcc_cv_as_mips_gnu_attribute
=no
27078 if test $in_tree_gas = yes; then
27079 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27080 then gcc_cv_as_mips_gnu_attribute
=yes
27082 elif test x
$gcc_cv_as != x
; then
27083 $as_echo '.gnu_attribute 4,1' > conftest.s
27084 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27086 (eval $ac_try) 2>&5
27088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27089 test $ac_status = 0; }; }
27091 gcc_cv_as_mips_gnu_attribute
=yes
27093 echo "configure: failed program was" >&5
27096 rm -f conftest.o conftest.s
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27100 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27101 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27103 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27109 $as_echo_n "checking assembler for .module support... " >&6; }
27110 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27111 $as_echo_n "(cached) " >&6
27113 gcc_cv_as_mips_dot_module
=no
27114 if test x
$gcc_cv_as != x
; then
27115 $as_echo '.module mips2
27116 .module fp=xx' > conftest.s
27117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27119 (eval $ac_try) 2>&5
27121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27122 test $ac_status = 0; }; }
27124 gcc_cv_as_mips_dot_module
=yes
27126 echo "configure: failed program was" >&5
27129 rm -f conftest.o conftest.s
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27133 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27134 if test $gcc_cv_as_mips_dot_module = yes; then
27136 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27140 if test x
$gcc_cv_as_mips_dot_module = xno \
27141 && test x
$with_fp_32 != x
; then
27142 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27146 $as_echo_n "checking assembler for .micromips support... " >&6; }
27147 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27148 $as_echo_n "(cached) " >&6
27150 gcc_cv_as_micromips_support
=no
27151 if test x
$gcc_cv_as != x
; then
27152 $as_echo '.set micromips' > conftest.s
27153 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27155 (eval $ac_try) 2>&5
27157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27158 test $ac_status = 0; }; }
27160 gcc_cv_as_micromips_support
=yes
27162 echo "configure: failed program was" >&5
27165 rm -f conftest.o conftest.s
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27169 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27170 if test $gcc_cv_as_micromips_support = yes; then
27172 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27178 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27179 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27180 $as_echo_n "(cached) " >&6
27182 gcc_cv_as_mips_dtprelword
=no
27183 if test $in_tree_gas = yes; then
27184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27185 then gcc_cv_as_mips_dtprelword
=yes
27187 elif test x
$gcc_cv_as != x
; then
27188 $as_echo '.section .tdata,"awT",@progbits
27192 .dtprelword x+0x8000' > conftest.s
27193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27195 (eval $ac_try) 2>&5
27197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27198 test $ac_status = 0; }; }
27200 gcc_cv_as_mips_dtprelword
=yes
27202 echo "configure: failed program was" >&5
27205 rm -f conftest.o conftest.s
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27209 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27210 if test $gcc_cv_as_mips_dtprelword = yes; then
27212 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27218 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27219 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27220 $as_echo_n "(cached) " >&6
27222 gcc_cv_as_mips_dspr1_mult
=no
27223 if test x
$gcc_cv_as != x
; then
27224 $as_echo ' .set mips32r2
27232 multu $ac3,$4,$5' > conftest.s
27233 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27235 (eval $ac_try) 2>&5
27237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27238 test $ac_status = 0; }; }
27240 gcc_cv_as_mips_dspr1_mult
=yes
27242 echo "configure: failed program was" >&5
27245 rm -f conftest.o conftest.s
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27249 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27250 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27252 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27258 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27259 gcc_cv_as_ld_jalr_reloc
=no
27260 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27261 if test $in_tree_ld = yes ; then
27262 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 \
27263 && test $in_tree_ld_is_elf = yes; then
27264 gcc_cv_as_ld_jalr_reloc
=yes
27266 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27267 echo ' .ent x' > conftest.s
27268 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27269 echo ' lw $25,%call16(y)($28)' >> conftest.s
27270 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27271 echo '1: jalr $25' >> conftest.s
27272 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27273 echo '1: jalr $25' >> conftest.s
27274 echo ' .end x' >> conftest.s
27275 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27276 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27277 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27278 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27279 gcc_cv_as_ld_jalr_reloc
=yes
27285 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27286 if test x
$target_cpu_default = x
; then
27287 target_cpu_default
=MASK_RELAX_PIC_CALLS
27289 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27293 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27296 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27297 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27298 $as_echo_n "(cached) " >&6
27300 gcc_cv_ld_mips_personality_relaxation
=no
27301 if test $in_tree_ld = yes ; then
27302 if test "$gcc_cv_gld_major_version" -eq 2 \
27303 -a "$gcc_cv_gld_minor_version" -ge 21 \
27304 -o "$gcc_cv_gld_major_version" -gt 2; then
27305 gcc_cv_ld_mips_personality_relaxation
=yes
27307 elif test x
$gcc_cv_as != x \
27308 -a x
$gcc_cv_ld != x \
27309 -a x
$gcc_cv_readelf != x
; then
27310 cat > conftest.s
<<EOF
27312 .cfi_personality 0x80,indirect_ptr
27319 .section .data,"aw",@progbits
27323 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27324 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27325 if $gcc_cv_readelf -d conftest
2>&1 \
27326 |
grep TEXTREL
> /dev
/null
2>&1; then
27328 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27329 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27332 gcc_cv_ld_mips_personality_relaxation
=yes
27336 rm -f conftest.s conftest.o conftest
27338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27339 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27340 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27342 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27347 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27348 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27349 $as_echo_n "(cached) " >&6
27351 gcc_cv_as_mips_nan
=no
27352 if test x
$gcc_cv_as != x
; then
27353 $as_echo '' > conftest.s
27354 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27356 (eval $ac_try) 2>&5
27358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27359 test $ac_status = 0; }; }
27361 gcc_cv_as_mips_nan
=yes
27363 echo "configure: failed program was" >&5
27366 rm -f conftest.o conftest.s
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27370 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27371 if test $gcc_cv_as_mips_nan = yes; then
27373 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27377 if test x
$gcc_cv_as_mips_nan = xno \
27378 && test x
$with_nan != x
; then
27379 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27384 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27385 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27386 $as_echo_n "(cached) " >&6
27388 gcc_cv_as_s390_gnu_attribute
=no
27389 if test $in_tree_gas = yes; then
27390 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27391 then gcc_cv_as_s390_gnu_attribute
=yes
27393 elif test x
$gcc_cv_as != x
; then
27394 $as_echo '.gnu_attribute 8,1' > conftest.s
27395 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27397 (eval $ac_try) 2>&5
27399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27400 test $ac_status = 0; }; }
27402 gcc_cv_as_s390_gnu_attribute
=yes
27404 echo "configure: failed program was" >&5
27407 rm -f conftest.o conftest.s
27410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27411 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27412 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27414 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27419 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27420 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27421 $as_echo_n "(cached) " >&6
27423 gcc_cv_as_s390_machine_machinemode
=no
27424 if test $in_tree_gas = yes; then
27425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27426 then gcc_cv_as_s390_machine_machinemode
=yes
27428 elif test x
$gcc_cv_as != x
; then
27429 $as_echo ' .machinemode push
27432 .machine pop' > conftest.s
27433 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27435 (eval $ac_try) 2>&5
27437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27438 test $ac_status = 0; }; }
27440 gcc_cv_as_s390_machine_machinemode
=yes
27442 echo "configure: failed program was" >&5
27445 rm -f conftest.o conftest.s
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27449 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27450 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27452 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27457 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27458 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27459 $as_echo_n "(cached) " >&6
27461 gcc_cv_as_s390_architecture_modifiers
=no
27462 if test $in_tree_gas = yes; then
27463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27464 then gcc_cv_as_s390_architecture_modifiers
=yes
27466 elif test x
$gcc_cv_as != x
; then
27467 $as_echo ' .machine z13+vx ' > conftest.s
27468 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27470 (eval $ac_try) 2>&5
27472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27473 test $ac_status = 0; }; }
27475 gcc_cv_as_s390_architecture_modifiers
=yes
27477 echo "configure: failed program was" >&5
27480 rm -f conftest.o conftest.s
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27484 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27485 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27487 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27494 # Mips and HP-UX need the GNU assembler.
27495 # Linux on IA64 might be able to use the Intel assembler.
27498 mips
*-*-* |
*-*-hpux* )
27499 if test x
$gas_flag = xyes \
27500 ||
test x
"$host" != x
"$build" \
27501 ||
test ! -x "$gcc_cv_as" \
27502 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27505 echo "*** This configuration requires the GNU assembler" >&2
27511 # ??? Not all targets support dwarf2 debug_line, even within a version
27512 # of gas. Moreover, we need to emit a valid instruction to trigger any
27513 # info to the output file. So, as supported targets are added to gas 2.11,
27514 # add some instruction here to (also) show we expect this might work.
27515 # ??? Once 2.11 is released, probably need to add first known working
27516 # version to the per-target configury.
27517 case "$cpu_type" in
27518 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
27519 | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu | tilegx \
27520 | tilepro | visium | xstormy16 | xtensa
)
27530 if test x
"$insn" != x
; then
27532 .file 1 \"conftest.s\"
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27536 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27537 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27538 $as_echo_n "(cached) " >&6
27540 gcc_cv_as_dwarf2_debug_line
=no
27541 if test $in_tree_gas = yes; then
27542 if test $in_tree_gas_is_elf = yes \
27543 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27544 then gcc_cv_as_dwarf2_debug_line
=yes
27546 elif test x
$gcc_cv_as != x
; then
27547 $as_echo "$conftest_s" > conftest.s
27548 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27550 (eval $ac_try) 2>&5
27552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27553 test $ac_status = 0; }; }
27555 if test x
$gcc_cv_objdump != x \
27556 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27557 |
grep debug_line
> /dev
/null
2>&1; then
27558 gcc_cv_as_dwarf2_debug_line
=yes
27561 echo "configure: failed program was" >&5
27564 rm -f conftest.o conftest.s
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27568 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27572 # The .debug_line file table must be in the exact order that
27573 # we specified the files, since these indices are also used
27574 # by DW_AT_decl_file. Approximate this test by testing if
27575 # the assembler bitches if the same index is assigned twice.
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27577 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27578 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27579 $as_echo_n "(cached) " >&6
27581 gcc_cv_as_dwarf2_file_buggy
=no
27582 if test x
$gcc_cv_as != x
; then
27583 $as_echo ' .file 1 "foo.s"
27584 .file 1 "bar.s"' > conftest.s
27585 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27587 (eval $ac_try) 2>&5
27589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27590 test $ac_status = 0; }; }
27592 gcc_cv_as_dwarf2_file_buggy
=yes
27594 echo "configure: failed program was" >&5
27597 rm -f conftest.o conftest.s
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27601 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27605 if test $gcc_cv_as_dwarf2_debug_line = yes \
27606 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27608 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27613 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27614 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27615 $as_echo_n "(cached) " >&6
27617 gcc_cv_as_gdwarf2_flag
=no
27618 if test $in_tree_gas = yes; then
27619 if test $in_tree_gas_is_elf = yes \
27620 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27621 then gcc_cv_as_gdwarf2_flag
=yes
27623 elif test x
$gcc_cv_as != x
; then
27624 $as_echo "$insn" > conftest.s
27625 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27627 (eval $ac_try) 2>&5
27629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27630 test $ac_status = 0; }; }
27632 gcc_cv_as_gdwarf2_flag
=yes
27634 echo "configure: failed program was" >&5
27637 rm -f conftest.o conftest.s
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27641 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27642 if test $gcc_cv_as_gdwarf2_flag = yes; then
27644 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27650 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27651 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27652 $as_echo_n "(cached) " >&6
27654 gcc_cv_as_gstabs_flag
=no
27655 if test $in_tree_gas = yes; then
27656 if test $in_tree_gas_is_elf = yes \
27657 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27658 then gcc_cv_as_gstabs_flag
=yes
27660 elif test x
$gcc_cv_as != x
; then
27661 $as_echo "$insn" > conftest.s
27662 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27664 (eval $ac_try) 2>&5
27666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27667 test $ac_status = 0; }; }
27669 gcc_cv_as_gstabs_flag
=yes
27671 echo "configure: failed program was" >&5
27674 rm -f conftest.o conftest.s
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27678 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27679 if test $gcc_cv_as_gstabs_flag = yes; then
27681 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27687 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27688 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27689 $as_echo_n "(cached) " >&6
27691 gcc_cv_as_debug_prefix_map_flag
=no
27692 if test $in_tree_gas = yes; then
27693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27694 then gcc_cv_as_debug_prefix_map_flag
=yes
27696 elif test x
$gcc_cv_as != x
; then
27697 $as_echo "$insn" > conftest.s
27698 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27700 (eval $ac_try) 2>&5
27702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27703 test $ac_status = 0; }; }
27705 gcc_cv_as_debug_prefix_map_flag
=yes
27707 echo "configure: failed program was" >&5
27710 rm -f conftest.o conftest.s
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27714 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27715 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27717 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27724 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27725 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27726 $as_echo_n "(cached) " >&6
27728 gcc_cv_as_compress_debug
=no
27729 if test x
$gcc_cv_as != x
; then
27730 $as_echo '' > conftest.s
27731 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27733 (eval $ac_try) 2>&5
27735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27736 test $ac_status = 0; }; }
27738 # gas compiled without zlib cannot compress debug sections and warns
27739 # about it, but still exits successfully. So check for this, too.
27740 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27742 gcc_cv_as_compress_debug
=0
27743 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27744 # defaulting to the ELF gABI format.
27745 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27747 gcc_cv_as_compress_debug
=2
27748 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27749 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27750 # Before binutils 2.26, gas only supported --compress-debug-options and
27751 # emitted the traditional GNU format.
27752 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27754 gcc_cv_as_compress_debug
=1
27755 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27756 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27758 gcc_cv_as_compress_debug
=0
27761 echo "configure: failed program was" >&5
27764 rm -f conftest.o conftest.s
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27768 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27772 cat >>confdefs.h
<<_ACEOF
27773 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27777 cat >>confdefs.h
<<_ACEOF
27778 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27782 cat >>confdefs.h
<<_ACEOF
27783 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27788 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27789 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27790 $as_echo_n "(cached) " >&6
27792 gcc_cv_as_lcomm_with_alignment
=no
27793 if test x
$gcc_cv_as != x
; then
27794 $as_echo '.lcomm bar,4,16' > conftest.s
27795 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27797 (eval $ac_try) 2>&5
27799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27800 test $ac_status = 0; }; }
27802 gcc_cv_as_lcomm_with_alignment
=yes
27804 echo "configure: failed program was" >&5
27807 rm -f conftest.o conftest.s
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27811 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27812 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27814 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27819 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27820 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27821 && test "$prefix" != "NONE"; then
27823 cat >>confdefs.h
<<_ACEOF
27824 #define PREFIX_INCLUDE_DIR "$prefix/include"
27829 # Determine the version of glibc, if any, used on the target.
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27831 $as_echo_n "checking for target glibc version... " >&6; }
27833 # Check whether --with-glibc-version was given.
27834 if test "${with_glibc_version+set}" = set; then :
27835 withval
=$with_glibc_version;
27836 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27837 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27838 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27840 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27844 glibc_version_major
=0
27845 glibc_version_minor
=0
27846 if test -f $target_header_dir/features.h \
27847 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27848 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27849 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27850 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27855 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27857 cat >>confdefs.h
<<_ACEOF
27858 #define TARGET_GLIBC_MAJOR $glibc_version_major
27862 cat >>confdefs.h
<<_ACEOF
27863 #define TARGET_GLIBC_MINOR $glibc_version_minor
27867 # Check whether --enable-gnu-unique-object was given.
27868 if test "${enable_gnu_unique_object+set}" = set; then :
27869 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27871 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27872 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27876 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27877 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27878 $as_echo_n "(cached) " >&6
27880 gcc_cv_as_gnu_unique_object
=no
27881 if test $in_tree_gas = yes; then
27882 if test $in_tree_gas_is_elf = yes \
27883 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27884 then gcc_cv_as_gnu_unique_object
=yes
27886 elif test x
$gcc_cv_as != x
; then
27887 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27888 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27890 (eval $ac_try) 2>&5
27892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27893 test $ac_status = 0; }; }
27895 gcc_cv_as_gnu_unique_object
=yes
27897 echo "configure: failed program was" >&5
27900 rm -f conftest.o conftest.s
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27904 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27905 if test $gcc_cv_as_gnu_unique_object = yes; then
27906 # We need to unquote above to to use the definition from config.gcc.
27907 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27909 if test $glibc_version_major -gt 2 \
27910 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27911 enable_gnu_unique_object
=yes
27918 if test x
$enable_gnu_unique_object = xyes
; then
27920 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27925 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27926 if test "${gcc_cv_as_line_zero+set}" = set; then :
27927 $as_echo_n "(cached) " >&6
27929 gcc_cv_as_line_zero
=no
27930 if test $in_tree_gas = yes; then
27931 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27932 then gcc_cv_as_line_zero
=yes
27934 elif test "x$gcc_cv_as" != x
; then
27935 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27936 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27938 (eval $ac_try) 2>&5
27940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27941 test $ac_status = 0; }; } &&
27942 test "x`cat conftest.out`" = x
27944 gcc_cv_as_line_zero
=yes
27946 echo "configure: failed program was" >&5
27948 echo "configure: error output was" >&5
27949 cat conftest.out
>&5
27951 rm -f conftest.o conftest.s conftest.out
27954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27955 $as_echo "$gcc_cv_as_line_zero" >&6; }
27956 if test "x$gcc_cv_as_line_zero" = xyes
; then
27958 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
27963 $as_echo_n "checking support for thin archives... " >&6; }
27964 thin_archive_support
=no
27965 echo 'int main (void) { return 0; }' > conftest.c
27966 if ($AR --version |
sed 1q |
grep "GNU ar" \
27967 && $CC $CFLAGS -c conftest.c \
27968 && $AR rcT conftest.a conftest.o \
27969 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
27970 thin_archive_support
=yes
27972 rm -f conftest.c conftest.o conftest.a conftest
27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
27974 $as_echo "$thin_archive_support" >&6; }
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27978 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27979 gcc_cv_ld_eh_frame_hdr
=no
27980 if test $in_tree_ld = yes ; then
27981 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 \
27982 && test $in_tree_ld_is_elf = yes; then
27983 gcc_cv_ld_eh_frame_hdr
=yes
27985 elif test x
$gcc_cv_ld != x
; then
27986 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27987 # Check if linker supports --eh-frame-hdr option
27988 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27989 gcc_cv_ld_eh_frame_hdr
=yes
27994 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27995 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27996 gcc_cv_ld_eh_frame_hdr
=yes
28003 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28005 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28009 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28012 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28013 gcc_cv_ld_eh_frame_ciev3
=no
28014 if test $in_tree_ld = yes ; then
28015 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 \
28016 && test $in_tree_ld_is_elf = yes; then
28017 gcc_cv_ld_eh_frame_ciev3
=yes
28019 elif test x
$gcc_cv_ld != x
; then
28020 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28021 gcc_cv_ld_eh_frame_ciev3
=yes
28022 if test 0"$ld_date" -lt 20040513; then
28023 if test -n "$ld_date"; then
28024 # If there was date string, but was earlier than 2004-05-13, fail
28025 gcc_cv_ld_eh_frame_ciev3
=no
28026 elif test "$ld_vers_major" -lt 2; then
28027 gcc_cv_ld_eh_frame_ciev3
=no
28028 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28029 gcc_cv_ld_eh_frame_ciev3
=no
28035 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28036 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28037 gcc_cv_ld_eh_frame_ciev3
=yes
28044 cat >>confdefs.h
<<_ACEOF
28045 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28049 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28052 $as_echo_n "checking linker position independent executable support... " >&6; }
28054 if test $in_tree_ld = yes ; then
28056 # Full PIE support on Solaris was only introduced in gld 2.26.
28057 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28058 *) gcc_gld_pie_min_version
=15 ;;
28060 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 \
28061 && test $in_tree_ld_is_elf = yes; then
28064 elif test x
$gcc_cv_ld != x
; then
28065 # Check if linker supports -pie option
28066 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
28070 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28071 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28078 *-*-solaris2.1
[1-9]*)
28079 # Solaris 11.x and Solaris 12 added PIE support.
28080 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28087 if test x
"$gcc_cv_ld_pie" = xyes
; then
28089 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28093 $as_echo "$gcc_cv_ld_pie" >&6; }
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28096 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28097 gcc_cv_ld_pie_copyreloc
=no
28098 if test $gcc_cv_ld_pie = yes ; then
28099 if test $in_tree_ld = yes ; then
28100 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
28101 gcc_cv_ld_pie_copyreloc
=yes
28103 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28104 # Check if linker supports -pie option with copy reloc
28106 i?
86-*-linux* | x86_64-
*-linux*)
28107 cat > conftest1.s
<<EOF
28110 .type a_glob, @object
28115 cat > conftest2.s
<<EOF
28118 .type main, @function
28120 movl %eax, a_glob(%rip)
28123 .section .data.rel,"aw",@progbits
28128 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28129 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28130 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28131 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28132 gcc_cv_ld_pie_copyreloc
=yes
28134 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28140 cat >>confdefs.h
<<_ACEOF
28141 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28145 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28148 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28149 gcc_cv_ld_eh_gc_sections
=no
28150 if test $in_tree_ld = yes ; then
28151 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 \
28152 && test $in_tree_ld_is_elf = yes; then
28153 gcc_cv_ld_eh_gc_sections
=yes
28155 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28156 cat > conftest.s
<<EOF
28159 .type _start, @function
28162 .size _start, .-_start
28163 .section .text.foo,"ax",@progbits
28164 .type foo, @function
28168 .section .gcc_except_table.foo,"a",@progbits
28171 .section .eh_frame,"a",@progbits
28174 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28175 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28176 |
grep "gc-sections option ignored" > /dev
/null
; then
28177 gcc_cv_ld_eh_gc_sections
=no
28178 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28179 |
grep gcc_except_table
> /dev
/null
; then
28180 gcc_cv_ld_eh_gc_sections
=yes
28181 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28182 if test x
$gcc_cv_as_comdat_group != xyes
; then
28183 gcc_cv_ld_eh_gc_sections
=no
28184 cat > conftest.s
<<EOF
28187 .type _start, @function
28190 .size _start, .-_start
28191 .section .gnu.linkonce.t.foo,"ax",@progbits
28192 .type foo, @function
28196 .section .gcc_except_table.foo,"a",@progbits
28199 .section .eh_frame,"a",@progbits
28202 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28203 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28204 |
grep "gc-sections option ignored" > /dev
/null
; then
28205 gcc_cv_ld_eh_gc_sections
=no
28206 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28207 |
grep gcc_except_table
> /dev
/null
; then
28208 gcc_cv_ld_eh_gc_sections
=yes
28214 rm -f conftest.s conftest.o conftest
28218 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28219 gcc_cv_ld_eh_gc_sections
=no
28222 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28224 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28228 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28231 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28232 gcc_cv_ld_eh_gc_sections_bug
=no
28233 if test $in_tree_ld = yes ; then
28234 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 \
28235 && test $in_tree_ld_is_elf = yes; then
28236 gcc_cv_ld_eh_gc_sections_bug
=yes
28238 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
28239 gcc_cv_ld_eh_gc_sections_bug
=yes
28240 cat > conftest.s
<<EOF
28243 .type _start, @function
28246 .size _start, .-_start
28247 .section .text.startup.foo,"ax",@progbits
28248 .type foo, @function
28252 .section .gcc_except_table.foo,"a",@progbits
28255 .section .eh_frame,"a",@progbits
28258 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28259 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28260 |
grep "gc-sections option ignored" > /dev
/null
; then
28262 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28263 |
grep gcc_except_table
> /dev
/null
; then
28264 gcc_cv_ld_eh_gc_sections_bug
=no
28267 rm -f conftest.s conftest.o conftest
28269 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28271 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28275 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28278 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28279 # gold/gld support compressed debug sections since binutils 2.19/2.21
28280 # In binutils 2.26, gld gained support for the ELF gABI format.
28281 if test $in_tree_ld = yes ; then
28282 gcc_cv_ld_compress_debug
=0
28283 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 \
28284 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28285 gcc_cv_ld_compress_debug
=2
28286 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28287 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 \
28288 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28289 gcc_cv_ld_compress_debug
=3
28290 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28291 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 \
28292 && test $in_tree_ld_is_elf = yes; then
28293 gcc_cv_ld_compress_debug
=1
28295 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28296 if test "$ld_vers_major" -lt 2 \
28297 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28298 gcc_cv_ld_compress_debug
=0
28299 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28300 gcc_cv_ld_compress_debug
=1
28302 gcc_cv_ld_compress_debug
=3
28303 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28305 if test $ld_is_gold = yes; then
28306 gcc_cv_ld_compress_debug
=2
28307 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28310 case "${target}" in
28312 # Introduced in Solaris 11.2.
28313 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28314 gcc_cv_ld_compress_debug
=3
28315 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28317 gcc_cv_ld_compress_debug
=0
28321 # Assume linkers other than GNU ld don't support compessed debug
28323 gcc_cv_ld_compress_debug
=0
28328 cat >>confdefs.h
<<_ACEOF
28329 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28333 cat >>confdefs.h
<<_ACEOF
28334 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28338 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28340 if test x
"$ld64_flag" = x
"yes"; then
28342 # Set defaults for possibly untestable items.
28343 gcc_cv_ld64_export_dynamic
=0
28345 if test "$build" = "$host"; then
28351 # On Darwin, because of FAT library support, it is often possible to execute
28352 # exes from compatible archs even when the host differs from the build system.
28353 case "$build","$host" in
28354 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28355 darwin_try_test
=1;;
28359 # If the configurer specified a minimum ld64 version to be supported, then use
28360 # that to determine feature support.
28361 if test x
"${gcc_cv_ld64_version}" != x
; then
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28363 $as_echo_n "checking ld64 specified version... " >&6; }
28364 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28366 $as_echo "$gcc_cv_ld64_major" >&6; }
28367 if test "$gcc_cv_ld64_major" -ge 236; then
28368 gcc_cv_ld64_export_dynamic
=1
28370 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28371 # If the version was not specified, try to find it.
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28373 $as_echo_n "checking linker version... " >&6; }
28374 if test x
"${gcc_cv_ld64_version}" = x
; then
28375 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28378 $as_echo "$gcc_cv_ld64_version" >&6; }
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28381 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28382 gcc_cv_ld64_export_dynamic
=1
28383 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28384 gcc_cv_ld64_export_dynamic
=0
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28387 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28390 if test x
"${gcc_cv_ld64_version}" != x
; then
28392 cat >>confdefs.h
<<_ACEOF
28393 #define LD64_VERSION "${gcc_cv_ld64_version}"
28399 cat >>confdefs.h
<<_ACEOF
28400 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28410 $as_echo_n "checking linker --as-needed support... " >&6; }
28411 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28412 $as_echo_n "(cached) " >&6
28414 gcc_cv_ld_as_needed
=no
28415 gcc_cv_ld_as_needed_option
='--as-needed'
28416 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28417 if test $in_tree_ld = yes ; then
28418 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 \
28419 && test $in_tree_ld_is_elf = yes; then
28420 gcc_cv_ld_as_needed
=yes
28422 elif test x
$gcc_cv_ld != x
; then
28423 # Check if linker supports --as-needed and --no-as-needed options
28424 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
28425 gcc_cv_ld_as_needed
=yes
28428 # Solaris 2 ld always supports -z ignore/-z record.
28430 gcc_cv_ld_as_needed
=yes
28431 gcc_cv_ld_as_needed_option
="-z ignore"
28432 gcc_cv_ld_no_as_needed_option
="-z record"
28437 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28438 # dl_iterate_phdr, i.e. since Solaris 11.
28440 *-*-solaris2.1
[1-9]*)
28442 i?
86-*-* | x86_64-
*-*)
28443 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28444 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28445 gcc_cv_ld_as_needed
=no
28451 gcc_cv_ld_as_needed
=no
28456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28457 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28458 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28460 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28463 cat >>confdefs.h
<<_ACEOF
28464 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28468 cat >>confdefs.h
<<_ACEOF
28469 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28475 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28476 saved_LDFLAGS
="$LDFLAGS"
28477 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28478 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28480 /* end confdefs.h. */
28481 int main(void) {return 0;}
28483 if ac_fn_cxx_try_link
"$LINENO"; then :
28484 gcc_cv_ld_clearcap
=yes; break
28486 gcc_cv_ld_clearcap
=no
28488 rm -f core conftest.err conftest.
$ac_objext \
28489 conftest
$ac_exeext conftest.
$ac_ext
28491 LDFLAGS
="$saved_LDFLAGS"
28492 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28494 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28496 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28500 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28506 emul_name
="-melf32lppc"
28509 emul_name
="-melf32ppc"
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28513 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28514 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28515 $as_echo_n "(cached) " >&6
28517 gcc_cv_ld_ppc_attr
=no
28518 if test x
"$ld_is_gold" = xyes
; then
28519 gcc_cv_ld_ppc_attr
=yes
28520 elif test $in_tree_ld = yes ; then
28521 if test "$gcc_cv_gld_major_version" -eq 2 \
28522 -a "$gcc_cv_gld_minor_version" -ge 28 \
28523 -o "$gcc_cv_gld_major_version" -gt 2; then
28524 gcc_cv_ld_ppc_attr
=yes
28526 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28527 # check that merging the long double .gnu_attribute doesn't warn
28528 cat > conftest1.s
<<EOF
28531 cat > conftest2.s
<<EOF
28534 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28535 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28536 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28537 && test ! -s conftest.err
; then
28538 gcc_cv_ld_ppc_attr
=yes
28540 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28545 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28546 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28548 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28554 case "$target:$tm_file" in
28555 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28558 emul_name
="-melf64lppc"
28561 emul_name
="-melf64ppc"
28564 emul_name
="-melf64ppc_fbsd"
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28568 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28569 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28570 $as_echo_n "(cached) " >&6
28572 gcc_cv_ld_no_dot_syms
=no
28573 if test x
"$ld_is_gold" = xyes
; then
28574 gcc_cv_ld_no_dot_syms
=yes
28575 elif test $in_tree_ld = yes ; then
28576 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
28577 gcc_cv_ld_no_dot_syms
=yes
28579 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28580 cat > conftest1.s
<<EOF
28584 cat > conftest2.s
<<EOF
28585 .section ".opd","aw"
28588 .type foo,@function
28590 .quad .LEfoo,.TOC.@tocbase,0
28596 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28597 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28598 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28599 gcc_cv_ld_no_dot_syms
=yes
28601 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28606 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28607 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28609 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28614 $as_echo_n "checking linker large toc support... " >&6; }
28615 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28616 $as_echo_n "(cached) " >&6
28618 gcc_cv_ld_large_toc
=no
28619 if test x
"$ld_is_gold" = xyes
; then
28620 gcc_cv_ld_large_toc
=yes
28621 elif test $in_tree_ld = yes ; then
28622 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
28623 gcc_cv_ld_large_toc
=yes
28625 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28626 cat > conftest.s
<<EOF
28627 .section ".tbss","awT",@nobits
28633 addis 9,13,ie0@got@tprel@ha
28634 ld 9,ie0@got@tprel@l(9)
28636 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28637 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28638 gcc_cv_ld_large_toc
=yes
28640 rm -f conftest conftest.o conftest.s
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28645 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28646 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28648 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28653 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28654 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28655 $as_echo_n "(cached) " >&6
28657 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28658 cat > conftest.s
<<EOF
28663 .section .data.rel.ro,"aw",@progbits
28668 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28669 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28670 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)) }'`
28672 rm -f conftest conftest.o conftest.s
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28677 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28678 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28680 cat >>confdefs.h
<<_ACEOF
28681 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28691 $as_echo_n "checking linker large toc support... " >&6; }
28692 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28693 $as_echo_n "(cached) " >&6
28695 gcc_cv_ld_large_toc
=no
28696 if test x
$gcc_cv_as != x
; then
28697 cat > conftest.s
<<EOF
28707 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28708 gcc_cv_ld_large_toc
=yes
28710 rm -f conftest conftest.o conftest.s
28714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28715 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28716 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28718 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28725 $as_echo_n "checking linker --build-id support... " >&6; }
28726 if test "${gcc_cv_ld_buildid+set}" = set; then :
28727 $as_echo_n "(cached) " >&6
28729 gcc_cv_ld_buildid
=no
28730 if test $in_tree_ld = yes ; then
28731 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28732 "$gcc_cv_gld_minor_version" -ge 18 -o \
28733 "$gcc_cv_gld_major_version" -gt 2 \
28734 && test $in_tree_ld_is_elf = yes; then
28735 gcc_cv_ld_buildid
=yes
28737 elif test x
$gcc_cv_ld != x
; then
28738 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
28739 gcc_cv_ld_buildid
=yes
28743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28744 $as_echo "$gcc_cv_ld_buildid" >&6; }
28745 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28747 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28751 # Check whether --enable-linker-build-id was given.
28752 if test "${enable_linker_build_id+set}" = set; then :
28753 enableval
=$enable_linker_build_id;
28755 enable_linker_build_id
=no
28759 if test x
"$enable_linker_build_id" = xyes
; then
28760 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28762 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28766 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28770 # In binutils 2.21, GNU ld gained support for new emulations fully
28771 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28773 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28774 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28775 $as_echo_n "(cached) " >&6
28777 gcc_cv_ld_sol2_emulation
=no
28778 if test $in_tree_ld = yes ; then
28779 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28780 "$gcc_cv_gld_minor_version" -ge 21 -o \
28781 "$gcc_cv_gld_major_version" -gt 2 \
28782 && test $in_tree_ld_is_elf = yes; then
28783 gcc_cv_ld_sol2_emulation
=yes
28785 elif test x
$gcc_cv_ld != x
; then
28786 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28787 grep _sol2
> /dev
/null
; then
28788 gcc_cv_ld_sol2_emulation
=yes
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28793 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28794 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28796 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28801 $as_echo_n "checking linker --sysroot support... " >&6; }
28802 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28803 $as_echo_n "(cached) " >&6
28805 gcc_cv_ld_sysroot
=no
28806 if test $in_tree_ld = yes ; then
28807 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
28808 gcc_cv_ld_sysroot
=yes
28810 elif test x
$gcc_cv_ld != x
; then
28811 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
28812 gcc_cv_ld_sysroot
=yes
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28817 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28818 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28820 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28826 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28828 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28829 if test "${gcc_cv_solaris_crts+set}" = set; then :
28830 $as_echo_n "(cached) " >&6
28832 gcc_cv_solaris_crts
=no
28833 if test x
$host != x
$target; then
28834 if test "x$with_sysroot" = xyes
; then
28835 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28837 target_sysroot
="${with_sysroot}"
28840 target_libdir
="$target_sysroot/usr/lib"
28841 # At the time they were added, gcrt1.o became a symlink for backwards
28842 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28844 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28845 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28847 sparc
*-*-solaris2*)
28848 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28853 $as_echo "$gcc_cv_solaris_crts" >&6; }
28856 if test x
$gcc_cv_solaris_crts = xyes
; then
28858 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28862 # Test for stack protector support in target C library.
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28864 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28865 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28866 $as_echo_n "(cached) " >&6
28868 gcc_cv_libc_provides_ssp
=no
28871 # All versions of musl provide stack protector
28872 gcc_cv_libc_provides_ssp
=yes;;
28873 *-*-linux* |
*-*-kfreebsd*-gnu)
28874 # glibc 2.4 and later provides __stack_chk_fail and
28875 # either __stack_chk_guard, or TLS access to stack guard canary.
28877 if test $glibc_version_major -gt 2 \
28878 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28879 gcc_cv_libc_provides_ssp
=yes
28882 if test -f $target_header_dir/features.h \
28883 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28884 $target_header_dir/features.h
> /dev
/null
; then
28885 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28886 $target_header_dir/features.h
> /dev
/null
&& \
28887 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28888 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28889 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28890 gcc_cv_libc_provides_ssp
=yes
28892 # all versions of Bionic support stack protector
28893 elif test -f $target_header_dir/sys
/cdefs.h \
28894 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28895 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28896 gcc_cv_libc_provides_ssp
=yes
28901 # Avoid complicated tests (see
28902 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28903 # simply assert that glibc does provide this, which is true for all
28904 # realistically usable GNU/Hurd configurations.
28905 # All supported versions of musl provide it as well
28906 gcc_cv_libc_provides_ssp
=yes;;
28907 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28908 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28909 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28910 gcc_cv_libc_provides_ssp
=yes
28912 echo "no __stack_chk_fail on this target"
28916 *) gcc_cv_libc_provides_ssp
=no
;;
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28920 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28922 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28924 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28928 # Check whether --enable-default-ssp was given.
28929 # Check whether --enable-default-ssp was given.
28930 if test "${enable_default_ssp+set}" = set; then :
28931 enableval
=$enable_default_ssp;
28932 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28934 ia64
*-*-*) enable_default_ssp
=no
;;
28935 *) enable_default_ssp
=$enableval ;;
28938 enable_default_ssp
=no
28941 enable_default_ssp
=no
28944 if test x
$enable_default_ssp = xyes
; then
28946 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28951 # Test for <sys/sdt.h> on the target.
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28954 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28956 if test -f $target_header_dir/sys
/sdt.h
; then
28959 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28963 $as_echo "$have_sys_sdt_h" >&6; }
28965 # Check if TFmode long double should be used by default or not.
28966 # Some glibc targets used DFmode long double, but with glibc 2.4
28967 # and later they can use TFmode.
28969 powerpc
*-*-linux* | \
28970 sparc
*-*-linux* | \
28974 # Check whether --with-long-double-128 was given.
28975 if test "${with_long_double_128+set}" = set; then :
28976 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28979 if test $glibc_version_major -gt 2 \
28980 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28981 gcc_cv_target_ldbl128
=yes
28984 gcc_cv_target_ldbl128
=no
28985 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28986 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28987 && gcc_cv_target_ldbl128
=yes
28994 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28996 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29000 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29001 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29002 gcc_cv_libc_provides_hwcap_in_tcb
=no
29006 if test $glibc_version_major -gt 2 \
29007 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29008 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29012 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29014 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29019 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29020 gcc_cv_target_dl_iterate_phdr
=unknown
29022 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29023 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29024 # libdl there, both complicating its use and breaking compatibility
29025 # between Solaris 10 updates.
29026 *-*-solaris2.1
[1-9]*)
29027 # <link.h> needs both a dl_iterate_phdr declaration and support for
29028 # compilation with largefile support.
29029 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29030 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29031 gcc_cv_target_dl_iterate_phdr
=yes
29033 gcc_cv_target_dl_iterate_phdr
=no
29036 *-*-dragonfly* |
*-*-freebsd*)
29037 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29038 gcc_cv_target_dl_iterate_phdr
=yes
29040 gcc_cv_target_dl_iterate_phdr
=no
29044 gcc_cv_target_dl_iterate_phdr
=yes
29048 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29050 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29054 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29056 # We no longer support different GC mechanisms. Emit an error if
29057 # the user configures with --with-gc.
29059 # Check whether --with-gc was given.
29060 if test "${with_gc+set}" = set; then :
29061 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29065 # Libraries to use on the host. This will normally be set by the top
29066 # level Makefile. Here we simply capture the value for our Makefile.
29067 if test -z "${HOST_LIBS+set}"; then
29072 # Use the system's zlib library.
29074 # Use the system's zlib library.
29075 zlibdir
="-L\$(top_builddir)/../zlib"
29076 zlibinc
="-I\$(top_srcdir)/../zlib"
29078 # Check whether --with-system-zlib was given.
29079 if test "${with_system_zlib+set}" = set; then :
29080 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29093 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29094 # Check whether --enable-maintainer-mode was given.
29095 if test "${enable_maintainer_mode+set}" = set; then :
29096 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29103 $as_echo "$maintainer_mode" >&6; }
29105 if test "$maintainer_mode" = "yes"; then
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29113 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29114 # Check whether --enable-link-mutex was given.
29115 if test "${enable_link_mutex+set}" = set; then :
29116 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29122 $as_echo "$do_link_mutex" >&6; }
29124 if test "$do_link_mutex" = "yes"; then
29127 DO_LINK_MUTEX
=false
29135 # Make empty files to contain the specs and options for each language.
29136 # Then add #include lines to for a compiler that has specs and/or options.
29142 # These (without "all_") are set in each config-lang.in.
29143 # `language' must be a single word so is spelled singularly.
29146 all_outputs
='Makefile'
29147 # List of language makefile fragments.
29148 all_lang_makefrags
=
29149 # Additional files for gengtype
29150 all_gtfiles
="$target_gtfiles"
29152 # These are the languages that are set in --enable-languages,
29153 # and are available in the GCC tree.
29154 all_selected_languages
=
29156 # Add the language fragments.
29157 # Languages are added via two mechanisms. Some information must be
29158 # recorded in makefile variables, these are defined in config-lang.in.
29159 # We accumulate them and plug them into the main Makefile.
29160 # The other mechanism is a set of hooks for each of the main targets
29161 # like `clean', `install', etc.
29163 language_hooks
="Make-hooks"
29165 for lang
in ${srcdir}/*/config-lang.
in
29167 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29169 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29170 if test "x$lang_alias" = x
29172 echo "$lang doesn't set \$language." 1>&2
29175 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29176 subdirs
="$subdirs $subdir"
29178 # $gcc_subdir is where the gcc integration files are to be found
29179 # for a language, both for internal compiler purposes (compiler
29180 # sources implementing front-end to GCC tree converters), and for
29181 # build infrastructure purposes (Make-lang.in, etc.)
29183 # This will be <subdir> (relative to $srcdir) if a line like
29184 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29185 # is found in <langdir>/config-lang.in, and will remain <langdir>
29188 # Except for the language alias (fetched above), the regular
29189 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29190 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29191 # only this and the language alias.
29193 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29194 if [ "$gcc_subdir" = "" ]; then
29195 gcc_subdir
="$subdir"
29198 case ",$enable_languages," in
29200 all_selected_languages
="$all_selected_languages $lang_alias"
29201 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29202 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29213 .
${srcdir}/$gcc_subdir/config-lang.
in
29214 if test "x$language" = x
29216 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29221 case ",$enable_languages," in
29222 *,$lang_alias,*) ;;
29224 for i
in $subdir_requires; do
29225 test -f "${srcdir}/$i/config-lang.in" && continue
29233 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29234 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29235 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29236 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29238 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29239 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29241 all_languages
="$all_languages $language"
29242 all_compilers
="$all_compilers $compilers"
29243 all_outputs
="$all_outputs $outputs"
29244 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29245 case ",$enable_languages," in
29248 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29258 for language
in $all_selected_languages
29260 check_languages
="$check_languages check-$language"
29263 # We link each language in with a set of hooks, reached indirectly via
29264 # lang.${target}. Only do so for selected languages.
29268 target_list
="all.cross start.encap rest.encap tags \
29269 install-common install-man install-info install-pdf install-html dvi \
29270 pdf html uninstall info man srcextra srcman srcinfo \
29271 mostlyclean clean distclean maintainer-clean install-plugin"
29273 for t
in $target_list
29276 for lang
in $all_selected_languages
29280 echo "lang.$t: $x" >> Make-hooks
29284 # Option include files
29287 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29288 option_includes
="option-includes.mk"
29297 echo "dir ." > .gdbinit
29298 echo "dir ${srcdir}" >> .gdbinit
29299 if test x
$gdb_needs_out_file_path = xyes
29301 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29303 if test "x$subdirs" != x
; then
29306 echo "dir ${srcdir}/$s" >> .gdbinit
29309 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29310 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29312 # Put a breakpoint on __asan_report_error to help with debugging buffer
29315 *-fsanitize=address
*)
29316 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29320 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29324 # Find a directory in which to install a shared libgcc.
29326 # Check whether --enable-version-specific-runtime-libs was given.
29327 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29328 enableval
=$enable_version_specific_runtime_libs;
29332 # Substitute configuration variables
29396 if test x
${build} = x
${host} ; then
29397 if test x
${host} = x
${target} ; then
29398 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29400 echo "Links are now set up to build a cross-compiler" 1>&2
29401 echo " from ${host} to ${target}." 1>&2
29404 if test x
${host} = x
${target} ; then
29405 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29406 echo " for ${target}." 1>&2
29408 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29409 echo " from ${host} to ${target}." 1>&2
29418 if test "x${ISLLIBS}" != "x" ; then
29420 $as_echo "#define HAVE_isl 1" >>confdefs.h
29424 # Check for plugin support
29425 # Check whether --enable-plugin was given.
29426 if test "${enable_plugin+set}" = set; then :
29427 enableval
=$enable_plugin; enable_plugin
=$enableval
29429 enable_plugin
=yes; default_plugin
=yes
29437 if test x
$build = x
$host; then
29438 export_sym_check
="nm${exeext} -g"
29439 elif test x
$host = x
$target; then
29440 export_sym_check
="$gcc_cv_nm -g"
29446 if test x
$build = x
$host; then
29447 export_sym_check
="objdump${exeext} -T"
29448 elif test x
$host = x
$target; then
29449 export_sym_check
="$gcc_cv_objdump -T"
29456 if test x
"$enable_plugin" = x
"yes"; then
29458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29459 $as_echo_n "checking for exported symbols... " >&6; }
29460 if test "x$export_sym_check" != x
; then
29461 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29462 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29463 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29464 : # No need to use a flag
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29466 $as_echo "yes" >&6; }
29468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29469 $as_echo "yes" >&6; }
29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29471 $as_echo_n "checking for -rdynamic... " >&6; }
29472 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29473 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
29474 plugin_rdynamic
=yes
29475 pluginlibs
="-rdynamic"
29480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29481 $as_echo "$plugin_rdynamic" >&6; }
29484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29485 $as_echo "unable to check" >&6; }
29490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29491 $as_echo_n "checking for library containing dlopen... " >&6; }
29492 if test "${ac_cv_search_dlopen+set}" = set; then :
29493 $as_echo_n "(cached) " >&6
29495 ac_func_search_save_LIBS
=$LIBS
29496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29497 /* end confdefs.h. */
29499 /* Override any GCC internal prototype to avoid an error.
29500 Use char because int might match the return type of a GCC
29501 builtin and then its argument prototype would still apply. */
29514 for ac_lib
in '' dl
; do
29515 if test -z "$ac_lib"; then
29516 ac_res
="none required"
29519 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29521 if ac_fn_cxx_try_link
"$LINENO"; then :
29522 ac_cv_search_dlopen
=$ac_res
29524 rm -f core conftest.err conftest.
$ac_objext \
29526 if test "${ac_cv_search_dlopen+set}" = set; then :
29530 if test "${ac_cv_search_dlopen+set}" = set; then :
29533 ac_cv_search_dlopen
=no
29535 rm conftest.
$ac_ext
29536 LIBS
=$ac_func_search_save_LIBS
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29539 $as_echo "$ac_cv_search_dlopen" >&6; }
29540 ac_res
=$ac_cv_search_dlopen
29541 if test "$ac_res" != no
; then :
29542 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29546 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29547 pluginlibs
="$pluginlibs -ldl"
29551 # Check that we can build shared objects with -fPIC -shared
29552 saved_LDFLAGS
="$LDFLAGS"
29553 saved_CFLAGS
="$CFLAGS"
29556 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29557 CFLAGS
="$CFLAGS -fPIC"
29558 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29561 CFLAGS
="$CFLAGS -fPIC"
29562 LDFLAGS
="$LDFLAGS -fPIC -shared"
29565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29566 $as_echo_n "checking for -fPIC -shared... " >&6; }
29567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29568 /* end confdefs.h. */
29578 if ac_fn_cxx_try_link
"$LINENO"; then :
29579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29580 $as_echo "yes" >&6; }; have_pic_shared
=yes
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29583 $as_echo "no" >&6; }; have_pic_shared
=no
29585 rm -f core conftest.err conftest.
$ac_objext \
29586 conftest
$ac_exeext conftest.
$ac_ext
29587 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29591 LDFLAGS
="$saved_LDFLAGS"
29592 CFLAGS
="$saved_CFLAGS"
29594 # If plugin support had been requested but not available, fail.
29595 if test x
"$enable_plugin" = x
"no" ; then
29596 if test x
"$default_plugin" != x
"yes"; then
29598 Building GCC with plugin support requires a host that supports
29599 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29606 if test x
"$enable_plugin" = x
"yes"; then
29608 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29613 # Enable --enable-host-shared
29614 # Check whether --enable-host-shared was given.
29615 if test "${enable_host_shared+set}" = set; then :
29616 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29625 # Check whether --enable-libquadmath-support was given.
29626 if test "${enable_libquadmath_support+set}" = set; then :
29627 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29629 ENABLE_LIBQUADMATH_SUPPORT
=yes
29632 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29634 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29639 # Specify what hash style to use by default.
29641 # Check whether --with-linker-hash-style was given.
29642 if test "${with_linker_hash_style+set}" = set; then :
29643 withval
=$with_linker_hash_style; case x
"$withval" in
29645 LINKER_HASH_STYLE
=sysv
29648 LINKER_HASH_STYLE
=gnu
29651 LINKER_HASH_STYLE
=both
29654 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29658 LINKER_HASH_STYLE
=''
29661 if test x
"${LINKER_HASH_STYLE}" != x
; then
29663 cat >>confdefs.h
<<_ACEOF
29664 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29669 # Specify what should be the default of -fdiagnostics-color option.
29671 # Check whether --with-diagnostics-color was given.
29672 if test "${with_diagnostics_color+set}" = set; then :
29673 withval
=$with_diagnostics_color; case x
"$withval" in
29675 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29678 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29681 DIAGNOSTICS_COLOR_DEFAULT
=-1
29684 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29687 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29691 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29695 cat >>confdefs.h
<<_ACEOF
29696 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29700 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29701 # of jit/jit-playback.c.
29702 cat > gcc-driver-name.h
<<EOF
29703 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
29706 # Check whether --enable-default-pie was given.
29707 # Check whether --enable-default-pie was given.
29708 if test "${enable_default_pie+set}" = set; then :
29709 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29711 enable_default_pie
=no
29714 if test x
$enable_default_pie = xyes
; then
29716 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29721 # Check if -fno-PIE works.
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29723 $as_echo_n "checking for -fno-PIE option... " >&6; }
29724 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29725 $as_echo_n "(cached) " >&6
29727 saved_CXXFLAGS
="$CXXFLAGS"
29728 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29730 /* end confdefs.h. */
29731 int main(void) {return 0;}
29733 if ac_fn_cxx_try_compile
"$LINENO"; then :
29734 gcc_cv_c_no_fpie
=yes
29736 gcc_cv_c_no_fpie
=no
29738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29739 CXXFLAGS
="$saved_CXXFLAGS"
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29742 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29743 if test "$gcc_cv_c_no_fpie" = "yes"; then
29744 NO_PIE_CFLAGS
="-fno-PIE"
29748 # Check if -no-pie works.
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29750 $as_echo_n "checking for -no-pie option... " >&6; }
29751 if test "${gcc_cv_no_pie+set}" = set; then :
29752 $as_echo_n "(cached) " >&6
29754 saved_LDFLAGS
="$LDFLAGS"
29755 LDFLAGS
="$LDFLAGS -no-pie"
29756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29757 /* end confdefs.h. */
29758 int main(void) {return 0;}
29760 if ac_fn_cxx_try_link
"$LINENO"; then :
29765 rm -f core conftest.err conftest.
$ac_objext \
29766 conftest
$ac_exeext conftest.
$ac_ext
29767 LDFLAGS
="$saved_LDFLAGS"
29769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29770 $as_echo "$gcc_cv_no_pie" >&6; }
29771 if test "$gcc_cv_no_pie" = "yes"; then
29772 NO_PIE_FLAG
="-no-pie"
29776 # Check linker supports '-z bndplt'
29777 ld_bndplt_support
=no
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29779 $as_echo_n "checking linker -z bndplt option... " >&6; }
29780 if test x
"$ld_is_gold" = xno
; then
29781 if test $in_tree_ld = yes ; then
29782 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
29783 ld_bndplt_support
=yes
29785 elif test x
$gcc_cv_ld != x
; then
29786 # Check if linker supports -a bndplt option
29787 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
29788 ld_bndplt_support
=yes
29792 if test x
"$ld_bndplt_support" = xyes
; then
29794 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29798 $as_echo "$ld_bndplt_support" >&6; }
29800 # Check linker supports '--push-state'/'--pop-state'
29801 ld_pushpopstate_support
=no
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29803 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29804 if test x
"$ld_is_gold" = xno
; then
29805 if test $in_tree_ld = yes ; then
29806 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
29807 ld_pushpopstate_support
=yes
29809 elif test x
$gcc_cv_ld != x
; then
29810 # Check if linker supports --push-state/--pop-state options
29811 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '--push-state' > /dev
/null
; then
29812 ld_pushpopstate_support
=yes
29816 if test x
"$ld_pushpopstate_support" = xyes
; then
29818 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29822 $as_echo "$ld_pushpopstate_support" >&6; }
29824 # Configure the subdirectories
29825 # AC_CONFIG_SUBDIRS($subdirs)
29827 # Create the Makefile
29828 # and configure language subdirectories
29829 ac_config_files
="$ac_config_files $all_outputs"
29832 ac_config_commands
="$ac_config_commands default"
29834 cat >confcache
<<\_ACEOF
29835 # This file is a shell script that caches the results of configure
29836 # tests run on this system so they can be shared between configure
29837 # scripts and configure runs, see configure's option --config-cache.
29838 # It is not useful on other systems. If it contains results you don't
29839 # want to keep, you may remove or edit it.
29841 # config.status only pays attention to the cache file if you give it
29842 # the --recheck option to rerun configure.
29844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29846 # following values.
29850 # The following way of writing the cache mishandles newlines in values,
29851 # but we know of no workaround that is simple, portable, and efficient.
29852 # So, we kill variables containing newlines.
29853 # Ultrix sh set writes to stderr and can't be redirected directly,
29854 # and sets the high bit in the cache file unless we assign to the vars.
29856 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29857 eval ac_val
=\$
$ac_var
29861 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29865 _ | IFS | as_nl
) ;; #(
29866 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29867 *) { eval $ac_var=; unset $ac_var;} ;;
29873 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29874 *${as_nl}ac_space
=\
*)
29875 # `set' does not quote correctly, so add quotes: double-quote
29876 # substitution turns \\\\ into \\, and sed turns \\ into \.
29879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29882 # `set' quotes correctly as required by POSIX, so do not add quotes.
29883 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29892 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29894 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29896 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29897 if test -w "$cache_file"; then
29898 test "x$cache_file" != "x/dev/null" &&
29899 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29900 $as_echo "$as_me: updating cache $cache_file" >&6;}
29901 cat confcache
>$cache_file
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29909 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29910 # Let make expand exec_prefix.
29911 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29913 DEFS
=-DHAVE_CONFIG_H
29917 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29918 # 1. Remove the extension, and $U if already installed.
29919 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29920 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29921 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29922 # will be set to the directory where LIBOBJS objects are built.
29923 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29924 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29926 LIBOBJS
=$ac_libobjs
29928 LTLIBOBJS
=$ac_ltlibobjs
29933 : ${CONFIG_STATUS=./config.status}
29935 ac_clean_files_save
=$ac_clean_files
29936 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29938 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29940 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29942 # Generated by $as_me.
29943 # Run this file to recreate the current configuration.
29944 # Compiler output produced by configure, useful for debugging
29945 # configure, is in config.log if it exists.
29948 ac_cs_recheck=false
29951 SHELL=\${CONFIG_SHELL-$SHELL}
29954 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29955 ## -------------------- ##
29956 ## M4sh Initialization. ##
29957 ## -------------------- ##
29959 # Be more Bourne compatible
29960 DUALCASE
=1; export DUALCASE
# for MKS sh
29961 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29964 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29965 # is contrary to our usage. Disable this feature.
29966 alias -g '${1+"$@"}'='"$@"'
29967 setopt NO_GLOB_SUBST
29969 case `(set -o) 2>/dev/null` in #(
29981 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29982 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29983 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29984 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29985 # Prefer a ksh shell builtin over an external printf program on Solaris,
29986 # but without wasting forks for bash or zsh.
29987 if test -z "$BASH_VERSION$ZSH_VERSION" \
29988 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29989 as_echo='print
-r --'
29990 as_echo_n='print
-rn --'
29991 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29992 as_echo='printf %s
\n'
29993 as_echo_n='printf %s
'
29995 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29996 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29997 as_echo_n='/usr
/ucb
/echo -n'
29999 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30000 as_echo_n_body='eval
30004 expr "X$arg" : "X\\(.*\\)$as_nl";
30005 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30007 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30009 export as_echo_n_body
30010 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30012 export as_echo_body
30013 as_echo='sh
-c $as_echo_body as_echo
'
30016 # The user is always right.
30017 if test "${PATH_SEPARATOR+set}" != set; then
30019 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30020 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30027 # We need space, tab and new line, in precisely that order. Quoting is
30028 # there to prevent editors from complaining about space-tab.
30029 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30030 # splitting by setting IFS to empty value.)
30033 # Find who we are. Look in the path if we contain no directory separator.
30035 *[\\/]* ) as_myself=$0 ;;
30036 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30037 for as_dir in $PATH
30040 test -z "$as_dir" && as_dir=.
30041 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30047 # We did not find ourselves, most probably we were run as `sh COMMAND'
30048 # in which case we are not to be found in the path.
30049 if test "x$as_myself" = x
; then
30052 if test ! -f "$as_myself"; then
30053 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30057 # Unset variables that we do not need and which cause bugs (e.g. in
30058 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30059 # suppresses any "Segmentation fault" message there. '((' could
30060 # trigger a bug in pdksh 5.2.14.
30061 for as_var
in BASH_ENV ENV MAIL MAILPATH
30062 do eval test x\
${$as_var+set} = xset \
30063 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30076 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30079 # as_fn_error ERROR [LINENO LOG_FD]
30080 # ---------------------------------
30081 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30082 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30083 # script with status $?, using 1 if that was 0.
30086 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30088 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30089 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30091 $as_echo "$as_me: error: $1" >&2
30092 as_fn_exit
$as_status
30096 # as_fn_set_status STATUS
30097 # -----------------------
30098 # Set $? to STATUS, without forking.
30099 as_fn_set_status
()
30102 } # as_fn_set_status
30104 # as_fn_exit STATUS
30105 # -----------------
30106 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30110 as_fn_set_status
$1
30116 # Portably unset VAR.
30119 { eval $1=; unset $1;}
30121 as_unset
=as_fn_unset
30122 # as_fn_append VAR VALUE
30123 # ----------------------
30124 # Append the text in VALUE to the end of the definition contained in VAR. Take
30125 # advantage of any shell optimizations that allow amortized linear growth over
30126 # repeated appends, instead of the typical quadratic growth present in naive
30128 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30129 eval 'as_fn_append ()
30140 # as_fn_arith ARG...
30141 # ------------------
30142 # Perform arithmetic evaluation on the ARGs, and store the result in the
30143 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30144 # must be portable across $(()) and expr.
30145 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30146 eval 'as_fn_arith ()
30153 as_val
=`expr "$@" || test $? -eq 1`
30158 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30159 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30165 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30166 as_basename
=basename
30171 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30177 as_me
=`$as_basename -- "$0" ||
30178 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30179 X"$0" : 'X\(//\)$' \| \
30180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30182 sed '/^.*\/\([^/][^/]*\)\/*$/{
30196 # Avoid depending upon Character Ranges.
30197 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30198 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30199 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30200 as_cr_digits
='0123456789'
30201 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30203 ECHO_C
= ECHO_N
= ECHO_T
=
30204 case `echo -n x` in #(((((
30206 case `echo 'xy\c'` in
30207 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30209 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30216 rm -f conf$$ conf$$.exe conf$$.
file
30217 if test -d conf$$.dir
; then
30218 rm -f conf$$.dir
/conf$$.
file
30221 mkdir conf$$.dir
2>/dev
/null
30223 if (echo >conf$$.
file) 2>/dev
/null
; then
30224 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30226 # ... but there are two gotchas:
30227 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30228 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30229 # In both cases, we have to default to `cp -p'.
30230 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30232 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30240 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30241 rmdir conf$$.dir
2>/dev
/null
30246 # Create "$as_dir" as a directory, including parents if necessary.
30251 -*) as_dir
=.
/$as_dir;;
30253 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30257 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30258 *) as_qdir
=$as_dir;;
30260 as_dirs
="'$as_qdir' $as_dirs"
30261 as_dir
=`$as_dirname -- "$as_dir" ||
30262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30263 X"$as_dir" : 'X\(//\)[^/]' \| \
30264 X"$as_dir" : 'X\(//\)$' \| \
30265 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30266 $as_echo X"$as_dir" |
30267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30271 /^X\(\/\/\)[^/].*/{
30284 test -d "$as_dir" && break
30286 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30287 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30291 if mkdir
-p .
2>/dev
/null
; then
30292 as_mkdir_p
='mkdir -p "$as_dir"'
30294 test -d .
/-p && rmdir .
/-p
30298 if test -x / >/dev
/null
2>&1; then
30299 as_test_x
='test -x'
30301 if ls -dL / >/dev
/null
2>&1; then
30308 if test -d "$1"; then
30314 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30315 ???[sx]*):;;*)false;;esac;fi
30319 as_executable_p
=$as_test_x
30321 # Sed expression to map a string onto a valid CPP name.
30322 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30324 # Sed expression to map a string onto a valid variable name.
30325 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30329 ## ----------------------------------- ##
30330 ## Main body of $CONFIG_STATUS script. ##
30331 ## ----------------------------------- ##
30333 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30336 # Save the log message, to keep $0 and so on meaningful, and to
30337 # report actual input values of CONFIG_FILES etc. instead of their
30338 # values after options handling.
30340 This file was extended by $as_me, which was
30341 generated by GNU Autoconf 2.64. Invocation command line was
30343 CONFIG_FILES = $CONFIG_FILES
30344 CONFIG_HEADERS = $CONFIG_HEADERS
30345 CONFIG_LINKS = $CONFIG_LINKS
30346 CONFIG_COMMANDS = $CONFIG_COMMANDS
30349 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30354 case $ac_config_files in *"
30355 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30358 case $ac_config_headers in *"
30359 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30364 # Files that config.status was made for.
30365 config_files="$ac_config_files"
30366 config_headers="$ac_config_headers"
30367 config_links="$ac_config_links"
30368 config_commands="$ac_config_commands"
30372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30374 \`$as_me' instantiates files and other configuration actions
30375 from templates according to the current configuration. Unless the files
30376 and actions are specified as TAGs, all are instantiated by default.
30378 Usage: $0 [OPTION]... [TAG]...
30380 -h, --help print this help, then exit
30381 -V, --version print version number and configuration settings, then exit
30382 -q, --quiet, --silent
30383 do not print progress messages
30384 -d, --debug don't remove temporary files
30385 --recheck update $as_me by reconfiguring in the same conditions
30386 --file=FILE[:TEMPLATE]
30387 instantiate the configuration file FILE
30388 --header=FILE[:TEMPLATE]
30389 instantiate the configuration header FILE
30391 Configuration files:
30394 Configuration headers:
30397 Configuration links:
30400 Configuration commands:
30403 Report bugs to the package provider."
30406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30409 configured by $0, generated by GNU Autoconf 2.64,
30410 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30412 Copyright (C) 2009 Free Software Foundation, Inc.
30413 This config.status script is free software; the Free Software Foundation
30414 gives unlimited permission to copy, distribute and modify it."
30419 test -n "\$AWK" || AWK=awk
30422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30423 # The default lists apply if the user does not specify any file.
30429 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30430 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30441 # Handling of the options.
30442 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30444 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30445 $as_echo "$ac_cs_version"; exit ;;
30446 --debug |
--debu |
--deb |
--de |
--d |
-d )
30448 --file |
--fil |
--fi |
--f )
30451 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30453 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30454 ac_need_defaults
=false
;;
30455 --header |
--heade |
--head |
--hea )
30458 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30460 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30461 ac_need_defaults
=false
;;
30463 # Conflict between --help and --header
30464 as_fn_error
"ambiguous option: \`$1'
30465 Try \`$0 --help' for more information.";;
30466 --help |
--hel |
-h )
30467 $as_echo "$ac_cs_usage"; exit ;;
30468 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30469 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30472 # This is an error.
30473 -*) as_fn_error
"unrecognized option: \`$1'
30474 Try \`$0 --help' for more information." ;;
30476 *) as_fn_append ac_config_targets
" $1"
30477 ac_need_defaults
=false
;;
30483 ac_configure_extra_args
=
30485 if $ac_cs_silent; then
30487 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30492 if \$ac_cs_recheck; then
30493 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30495 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30496 CONFIG_SHELL='$SHELL'
30497 export CONFIG_SHELL
30502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30507 ## Running $as_me. ##
30513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30517 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30518 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30525 # Handling of arguments.
30526 for ac_config_target
in $ac_config_targets
30528 case $ac_config_target in
30529 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30530 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30531 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30532 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30533 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30534 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30535 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30536 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30537 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30539 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30544 # If the user did not use the arguments to specify the items to instantiate,
30545 # then the envvar interface is used. Set only those that are not.
30546 # We use the long form for the default assignment because of an extremely
30547 # bizarre bug on SunOS 4.1.3.
30548 if $ac_need_defaults; then
30549 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30550 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30551 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30552 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30555 # Have a temporary directory for convenience. Make it in the build tree
30556 # simply because there is no reason against having it here, and in addition,
30557 # creating and moving files from /tmp can sometimes cause problems.
30558 # Hook for its removal unless debugging.
30559 # Note that there is a small window in which the directory will not be cleaned:
30560 # after its creation but before its name has been assigned to `$tmp'.
30564 trap 'exit_status=$?
30565 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30567 trap 'as_fn_exit 1' 1 2 13 15
30569 # Create a (secure) tmp directory for tmp files.
30572 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30573 test -n "$tmp" && test -d "$tmp"
30576 tmp
=.
/conf$$
-$RANDOM
30577 (umask 077 && mkdir
"$tmp")
30578 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30580 # Set up the scripts for CONFIG_FILES section.
30581 # No need to generate them if there are no CONFIG_FILES.
30582 # This happens for instance with `./config.status config.h'.
30583 if test -n "$CONFIG_FILES"; then
30585 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30586 ac_cs_awk_getline
=:
30587 ac_cs_awk_pipe_init
=
30588 ac_cs_awk_read_file
='
30589 while ((getline aline < (F[key])) > 0)
30592 ac_cs_awk_pipe_fini
=
30594 ac_cs_awk_getline
=false
30595 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30596 ac_cs_awk_read_file
='
30598 print "cat " F[key] " &&"
30599 '$ac_cs_awk_pipe_init
30600 # The final `:' finishes the AND list.
30601 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30603 ac_cr
=`echo X | tr X '\015'`
30604 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30605 # But we know of no other shell where ac_cr would be empty at this
30606 # point, so we can use a bashism as a fallback.
30607 if test "x$ac_cr" = x
; then
30608 eval ac_cr
=\$
\'\\r
\'
30610 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30611 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30614 ac_cs_awk_cr
=$ac_cr
30617 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30620 # Create commands to substitute file output variables.
30622 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30623 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30624 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30627 } >conf$
$files.sh
&&
30628 . .
/conf$
$files.sh ||
30629 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30630 rm -f conf$
$files.sh
30633 echo "cat >conf$$subs.awk <<_ACEOF" &&
30634 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30636 } >conf$$subs.sh ||
30637 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30638 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30640 for ac_last_try in false false false false false :; do
30641 . ./conf$$subs.sh ||
30642 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30644 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30645 if test $ac_delim_n = $ac_delim_num; then
30647 elif $ac_last_try; then
30648 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30650 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30653 rm -f conf$$subs.sh
30655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30656 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30660 s/^/S["/; s
/!.
*/"]=/
30670 s/\(.\{148\}\).*/\1/
30672 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30677 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30684 s/\(.\{148\}\).*/\1/
30686 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30690 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30695 ' <conf$$subs.awk | sed '
30700 ' >>$CONFIG_STATUS || ac_write_fail=1
30701 rm -f conf$$subs.awk
30702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30704 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30705 for (key in S) S_is_set[key] = 1
30707 \$ac_cs_awk_pipe_init
30711 nfields = split(line, field, "@
")
30713 len = length(field[1])
30714 for (i = 2; i < nfields; i++) {
30716 keylen = length(key)
30717 if (S_is_set[key]) {
30719 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30720 len += length(value) + length(field[++i])
30725 if (nfields == 3 && !substed) {
30727 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30728 \$ac_cs_awk_read_file
30734 \$ac_cs_awk_pipe_fini
30737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30738 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30739 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30742 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30743 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30748 # trailing colons and then remove the whole line if VPATH becomes empty
30749 # (actually we leave an empty line to preserve line numbers).
30750 if test "x
$srcdir" = x.; then
30751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30752 s/:*\$(srcdir):*/:/
30753 s/:*\${srcdir}:*/:/
30755 s/^\([^=]*=[ ]*\):*/\1/
30761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30762 fi # test -n "$CONFIG_FILES"
30764 # Set up the scripts for CONFIG_HEADERS section.
30765 # No need to generate them if there are no CONFIG_HEADERS.
30766 # This happens for instance with `./config.status Makefile'.
30767 if test -n "$CONFIG_HEADERS"; then
30768 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30772 # Transform confdefs.h into an awk script `defines.awk', embedded as
30773 # here-document in config.status, that substitutes the proper values into
30774 # config.h.in to produce config.h.
30776 # Create a delimiter string that does not exist in confdefs.h, to ease
30777 # handling of long lines.
30779 for ac_last_try in false false :; do
30780 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30781 if test -z "$ac_t"; then
30783 elif $ac_last_try; then
30784 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30786 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30790 # For the awk script, D is an array of macro values keyed by name,
30791 # likewise P contains macro parameters if any. Preserve backslash
30792 # newline sequences.
30794 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30796 s/.\{148\}/&'"$ac_delim"'/g
30799 s/^[ ]*#[ ]*define[ ][ ]*/ /
30806 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30808 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30813 D["\
1"]=" \
3\\\\\\n
"\\/p
30815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30820 s/.\{148\}/&'"$ac_delim"'/g
30825 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30828 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30830 ' <confdefs.h | sed '
30831 s/'"$ac_delim"'/"\\\
30832 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30835 for (key in D) D_is_set[key] = 1
30838 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30840 split(line, arg, " ")
30841 if (arg[1] == "#") {
30845 defundef
= substr
(arg
[1], 2)
30848 split(mac1
, mac2
, "(") #)
30850 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30851 if (D_is_set
[macro
]) {
30852 # Preserve the white space surrounding the "#".
30853 print prefix
"define", macro P
[macro
] D
[macro
]
30856 # Replace #undef with comments. This is necessary, for example,
30857 # in the case of _POSIX_SOURCE, which is predefined and required
30858 # on some systems where configure will not decide to define it.
30859 if (defundef
== "undef") {
30860 print
"/*", prefix defundef
, macro
, "*/"
30868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30869 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30870 fi # test -n "$CONFIG_HEADERS"
30873 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30878 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30880 case $ac_mode$ac_tag in
30882 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30883 :[FH
]-) ac_tag
=-:-;;
30884 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30901 -) ac_f
="$tmp/stdin";;
30902 *) # Look for the file first in the build tree, then in the source tree
30903 # (if the path is not absolute). The absolute path cannot be DOS-style,
30904 # because $ac_f cannot contain `:'.
30908 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30910 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30912 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30913 as_fn_append ac_file_inputs
" '$ac_f'"
30916 # Let's still pretend it is `configure' which instantiates (i.e., don't
30917 # use $as_me), people would be surprised to read:
30918 # /* config.h. Generated by config.status. */
30919 configure_input
='Generated from '`
30920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30922 if test x
"$ac_file" != x-
; then
30923 configure_input
="$ac_file. $configure_input"
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30925 $as_echo "$as_me: creating $ac_file" >&6;}
30927 # Neutralize special characters interpreted by sed in replacement strings.
30928 case $configure_input in #(
30929 *\
&* |
*\|
* |
*\\* )
30930 ac_sed_conf_input
=`$as_echo "$configure_input" |
30931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30932 *) ac_sed_conf_input
=$configure_input;;
30936 *:-:* |
*:-) cat >"$tmp/stdin" \
30937 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30942 ac_dir
=`$as_dirname -- "$ac_file" ||
30943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30944 X"$ac_file" : 'X\(//\)[^/]' \| \
30945 X"$ac_file" : 'X\(//\)$' \| \
30946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30947 $as_echo X"$ac_file" |
30948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30952 /^X\(\/\/\)[^/].*/{
30965 as_dir
="$ac_dir"; as_fn_mkdir_p
30969 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30971 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30972 # A ".." for each directory in $ac_dir_suffix.
30973 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30974 case $ac_top_builddir_sub in
30975 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30976 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30979 ac_abs_top_builddir
=$ac_pwd
30980 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30981 # for backward compatibility:
30982 ac_top_builddir
=$ac_top_build_prefix
30985 .
) # We are building in place.
30987 ac_top_srcdir
=$ac_top_builddir_sub
30988 ac_abs_top_srcdir
=$ac_pwd ;;
30989 [\\/]* | ?
:[\\/]* ) # Absolute name.
30990 ac_srcdir
=$srcdir$ac_dir_suffix;
30991 ac_top_srcdir
=$srcdir
30992 ac_abs_top_srcdir
=$srcdir ;;
30993 *) # Relative name.
30994 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30995 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30996 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30998 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31010 # If the template does not know about datarootdir, expand it.
31011 # FIXME: This hack should be removed a few years after 2.60.
31012 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31023 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31024 *datarootdir
*) ac_datarootdir_seen
=yes;;
31025 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31027 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31030 ac_datarootdir_hack='
31031 s&@datadir@&$datadir&g
31032 s&@docdir@&$docdir&g
31033 s&@infodir@&$infodir&g
31034 s&@localedir@&$localedir&g
31035 s&@mandir@&$mandir&g
31036 s&\\\${datarootdir}&$datarootdir&g' ;;
31040 # Neutralize VPATH when `$srcdir' = `.'.
31041 # Shell code in configure.ac might set extrasub.
31042 # FIXME: do we really want to maintain this feature?
31043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31044 ac_sed_extra="$ac_vpsub
31047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31049 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31050 s|@configure_input@|
$ac_sed_conf_input|
;t t
31051 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31052 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31053 s
&@srcdir@
&$ac_srcdir&;t t
31054 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31055 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31056 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31057 s
&@builddir@
&$ac_builddir&;t t
31058 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31059 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31060 $ac_datarootdir_hack
31062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31063 if $ac_cs_awk_getline; then
31064 $AWK -f "$tmp/subs.
awk"
31066 $AWK -f "$tmp/subs.
awk" | $SHELL
31068 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31070 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31071 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31074 which seems to be undefined. Please make sure it is defined." >&5
31075 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31076 which seems to be undefined. Please make sure it is defined." >&2;}
31080 -) cat "$tmp/out" && rm -f "$tmp/out";;
31081 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31083 || as_fn_error "could not create $ac_file" "$LINENO" 5
31089 if test x"$ac_file" != x-; then
31091 $as_echo "/* $configure_input */" \
31092 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31093 } >"$tmp/config.h" \
31094 || as_fn_error "could not create $ac_file" "$LINENO" 5
31095 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31096 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31097 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31100 mv "$tmp/config.h" "$ac_file" \
31101 || as_fn_error "could not create $ac_file" "$LINENO" 5
31104 $as_echo "/* $configure_input */" \
31105 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31106 || as_fn_error "could not create -" "$LINENO" 5
31114 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31117 # Prefer the file from the source tree if names are identical.
31118 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31119 ac_source=$srcdir/$ac_source
31122 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31123 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31125 if test ! -r "$ac_source"; then
31126 as_fn_error "$ac_source: file not found" "$LINENO" 5
31130 # Try a relative symlink, then a hard link, then a copy.
31132 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31133 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31135 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31136 ln "$ac_source" "$ac_file" 2>/dev/null ||
31137 cp -p "$ac_source" "$ac_file" ||
31138 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31141 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31142 $as_echo "$as_me: executing $ac_file commands" >&6;}
31147 case $ac_file$ac_mode in
31148 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31150 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31151 for lang in $subdirs c-family common
31153 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31155 "as":F) chmod +x as ;;
31156 "collect-ld":F) chmod +x collect-ld ;;
31157 "nm":F) chmod +x nm ;;
31159 case ${CONFIG_HEADERS} in
31160 *auto-host.h:config.in*)
31163 # Make sure all the subdirs exist.
31164 for d in $subdirs doc build common c-family
31166 test -d $d || mkdir $d
31176 ac_clean_files=$ac_clean_files_save
31178 test $ac_write_fail = 0 ||
31179 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31182 # configure is writing to config.log, and then calls config.status.
31183 # config.status does its own redirection, appending to config.log.
31184 # Unfortunately, on DOS this fails, as config.log is still kept open
31185 # by configure, so config.status won't be able to
write to it
; its
31186 # output is simply discarded. So we exec the FD to /dev/null,
31187 # effectively closing config.log, so it can be properly (re)opened and
31188 # appended to by config.status. When coming back to configure, we
31189 # need to make the FD available again.
31190 if test "$no_create" != yes; then
31192 ac_config_status_args
=
31193 test "$silent" = yes &&
31194 ac_config_status_args
="$ac_config_status_args --quiet"
31196 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31198 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31199 # would make configure fail if this is the last instruction.
31200 $ac_cs_success || as_fn_exit $?
31202 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31204 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}