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
630 common_out_object_file
646 gcc_gxx_include_dir_add_sysroot
653 user_headers_inc_next_post
654 user_headers_inc_next_pre
656 TM_MULTILIB_EXCEPTIONS_CONFIG
666 build_xm_include_list
668 build_install_headers_dir
670 all_selected_languages
688 ld_version_script_option
692 ORIGINAL_NM_FOR_TARGET
694 ORIGINAL_LD_GOLD_FOR_TARGET
695 ORIGINAL_LD_BFD_FOR_TARGET
696 ORIGINAL_LD_FOR_TARGET
697 ORIGINAL_PLUGIN_LD_FOR_TARGET
699 ORIGINAL_AS_FOR_TARGET
717 NO_PIE_FLAG_FOR_BUILD
718 NO_PIE_CFLAGS_FOR_BUILD
728 BUILD_SYSTEM_HEADER_DIR
747 NATIVE_SYSTEM_HEADER_DIR
780 real_target_noncanonical
781 enable_as_accelerator
796 valgrind_path_defines
826 CROSS_SYSTEM_HEADER_DIR
827 TARGET_SYSTEM_ROOT_DEFINE
829 SYSROOT_CFLAGS_FOR_TARGET
875 program_transform_name
886 ac_subst_files
='option_includes
889 enable_option_checking
892 with_native_system_header_dir
897 enable_generated_files_in_srcdir
904 enable_build_format_warnings
908 enable_gather_detailed_mem_stats
909 enable_valgrind_annotations
913 with_stack_clash_protection_guard_size
931 enable_sjlj_exceptions
932 with_gcc_major_version_only
934 enable_mingw_wildcard
935 enable_large_address_aware
936 enable_leading_mingw64_underscores
939 enable_win32_registry
947 enable_gnu_indirect_function
948 enable_initfini_array
950 enable_fix_cortex_a53_835769
951 enable_fix_cortex_a53_843419
953 enable_gnu_unique_object
954 enable_linker_build_id
958 with_long_double_format
961 enable_maintainer_mode
963 enable_version_specific_runtime_libs
966 enable_libquadmath_support
967 with_linker_hash_style
968 with_diagnostics_color
971 ac_precious_vars
='build_alias
990 # Initialize some variables set by options.
992 ac_init_version
=false
993 ac_unrecognized_opts
=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
1004 program_transform_name
=s
,x
,x
,
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir
='${exec_prefix}/bin'
1019 sbindir
='${exec_prefix}/sbin'
1020 libexecdir
='${exec_prefix}/libexec'
1021 datarootdir
='${prefix}/share'
1022 datadir
='${datarootdir}'
1023 sysconfdir
='${prefix}/etc'
1024 sharedstatedir
='${prefix}/com'
1025 localstatedir
='${prefix}/var'
1026 includedir
='${prefix}/include'
1027 oldincludedir
='/usr/include'
1028 docdir
='${datarootdir}/doc/${PACKAGE}'
1029 infodir
='${datarootdir}/info'
1034 libdir
='${exec_prefix}/lib'
1035 localedir
='${datarootdir}/locale'
1036 mandir
='${datarootdir}/man'
1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
1044 eval $ac_prev=\
$ac_option
1050 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1056 case $ac_dashdash$ac_option in
1060 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1062 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1063 bindir
=$ac_optarg ;;
1065 -build |
--build |
--buil |
--bui |
--bu)
1066 ac_prev
=build_alias
;;
1067 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1068 build_alias
=$ac_optarg ;;
1070 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1071 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1072 ac_prev
=cache_file
;;
1073 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1074 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1075 cache_file
=$ac_optarg ;;
1077 --config-cache |
-C)
1078 cache_file
=config.cache
;;
1080 -datadir |
--datadir |
--datadi |
--datad)
1082 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1083 datadir
=$ac_optarg ;;
1085 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1086 |
--dataroo |
--dataro |
--datar)
1087 ac_prev
=datarootdir
;;
1088 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1089 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1090 datarootdir
=$ac_optarg ;;
1092 -disable-* |
--disable-*)
1093 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1096 as_fn_error
"invalid feature name: $ac_useropt"
1097 ac_useropt_orig
=$ac_useropt
1098 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_
$ac_useropt"
1103 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1104 ac_unrecognized_sep
=', ';;
1106 eval enable_
$ac_useropt=no
;;
1108 -docdir |
--docdir |
--docdi |
--doc |
--do)
1110 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1111 docdir
=$ac_optarg ;;
1113 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1115 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1116 dvidir
=$ac_optarg ;;
1118 -enable-* |
--enable-*)
1119 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1122 as_fn_error
"invalid feature name: $ac_useropt"
1123 ac_useropt_orig
=$ac_useropt
1124 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "enable_
$ac_useropt"
1129 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep
=', ';;
1132 eval enable_
$ac_useropt=\
$ac_optarg ;;
1134 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1135 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1136 |
--exec |
--exe |
--ex)
1137 ac_prev
=exec_prefix
;;
1138 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1139 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1140 |
--exec=* |
--exe=* |
--ex=*)
1141 exec_prefix
=$ac_optarg ;;
1143 -gas |
--gas |
--ga |
--g)
1144 # Obsolete; use --with-gas.
1147 -help |
--help |
--hel |
--he |
-h)
1148 ac_init_help
=long
;;
1149 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1150 ac_init_help
=recursive
;;
1151 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1152 ac_init_help
=short
;;
1154 -host |
--host |
--hos |
--ho)
1155 ac_prev
=host_alias
;;
1156 -host=* |
--host=* |
--hos=* |
--ho=*)
1157 host_alias
=$ac_optarg ;;
1159 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1161 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1163 htmldir
=$ac_optarg ;;
1165 -includedir |
--includedir |
--includedi |
--included |
--include \
1166 |
--includ |
--inclu |
--incl |
--inc)
1167 ac_prev
=includedir
;;
1168 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1169 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1170 includedir
=$ac_optarg ;;
1172 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1174 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1175 infodir
=$ac_optarg ;;
1177 -libdir |
--libdir |
--libdi |
--libd)
1179 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1180 libdir
=$ac_optarg ;;
1182 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1183 |
--libexe |
--libex |
--libe)
1184 ac_prev
=libexecdir
;;
1185 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1186 |
--libexe=* |
--libex=* |
--libe=*)
1187 libexecdir
=$ac_optarg ;;
1189 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1190 ac_prev
=localedir
;;
1191 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1192 localedir
=$ac_optarg ;;
1194 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1195 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1196 ac_prev
=localstatedir
;;
1197 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1198 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1199 localstatedir
=$ac_optarg ;;
1201 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1203 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1204 mandir
=$ac_optarg ;;
1206 -nfp |
--nfp |
--nf)
1207 # Obsolete; use --without-fp.
1210 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1211 |
--no-cr |
--no-c |
-n)
1214 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1215 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1218 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1219 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1220 |
--oldin |
--oldi |
--old |
--ol |
--o)
1221 ac_prev
=oldincludedir
;;
1222 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1223 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1224 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1225 oldincludedir
=$ac_optarg ;;
1227 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1229 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1230 prefix
=$ac_optarg ;;
1232 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1233 |
--program-pre |
--program-pr |
--program-p)
1234 ac_prev
=program_prefix
;;
1235 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1236 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1237 program_prefix
=$ac_optarg ;;
1239 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1240 |
--program-suf |
--program-su |
--program-s)
1241 ac_prev
=program_suffix
;;
1242 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1243 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1244 program_suffix
=$ac_optarg ;;
1246 -program-transform-name |
--program-transform-name \
1247 |
--program-transform-nam |
--program-transform-na \
1248 |
--program-transform-n |
--program-transform- \
1249 |
--program-transform |
--program-transfor \
1250 |
--program-transfo |
--program-transf \
1251 |
--program-trans |
--program-tran \
1252 |
--progr-tra |
--program-tr |
--program-t)
1253 ac_prev
=program_transform_name
;;
1254 -program-transform-name=* |
--program-transform-name=* \
1255 |
--program-transform-nam=* |
--program-transform-na=* \
1256 |
--program-transform-n=* |
--program-transform-=* \
1257 |
--program-transform=* |
--program-transfor=* \
1258 |
--program-transfo=* |
--program-transf=* \
1259 |
--program-trans=* |
--program-tran=* \
1260 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1261 program_transform_name
=$ac_optarg ;;
1263 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1265 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1266 pdfdir
=$ac_optarg ;;
1268 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1270 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1273 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1274 |
-silent |
--silent |
--silen |
--sile |
--sil)
1277 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1279 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1281 sbindir
=$ac_optarg ;;
1283 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1284 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1285 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1287 ac_prev
=sharedstatedir
;;
1288 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1289 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1290 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1292 sharedstatedir
=$ac_optarg ;;
1294 -site |
--site |
--sit)
1296 -site=* |
--site=* |
--sit=*)
1299 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1301 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1302 srcdir
=$ac_optarg ;;
1304 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1305 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1306 ac_prev
=sysconfdir
;;
1307 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1308 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1309 sysconfdir
=$ac_optarg ;;
1311 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1312 ac_prev
=target_alias
;;
1313 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1314 target_alias
=$ac_optarg ;;
1316 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1319 -version |
--version |
--versio |
--versi |
--vers |
-V)
1320 ac_init_version
=: ;;
1323 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1326 as_fn_error
"invalid package name: $ac_useropt"
1327 ac_useropt_orig
=$ac_useropt
1328 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1333 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1334 ac_unrecognized_sep
=', ';;
1336 eval with_
$ac_useropt=\
$ac_optarg ;;
1338 -without-* |
--without-*)
1339 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1342 as_fn_error
"invalid package name: $ac_useropt"
1343 ac_useropt_orig
=$ac_useropt
1344 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1349 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350 ac_unrecognized_sep
=', ';;
1352 eval with_
$ac_useropt=no
;;
1355 # Obsolete; use --with-x.
1358 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1359 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1360 ac_prev
=x_includes
;;
1361 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1362 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1363 x_includes
=$ac_optarg ;;
1365 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1366 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1367 ac_prev
=x_libraries
;;
1368 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1369 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1370 x_libraries
=$ac_optarg ;;
1372 -*) as_fn_error
"unrecognized option: \`$ac_option'
1373 Try \`$0 --help' for more information."
1377 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1378 # Reject names that are not valid shell variable names.
1379 case $ac_envvar in #(
1380 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1381 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1383 eval $ac_envvar=\
$ac_optarg
1384 export $ac_envvar ;;
1387 # FIXME: should be removed in autoconf 3.0.
1388 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1389 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1390 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1391 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1397 if test -n "$ac_prev"; then
1398 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1399 as_fn_error
"missing argument to $ac_option"
1402 if test -n "$ac_unrecognized_opts"; then
1403 case $enable_option_checking in
1405 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1406 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1410 # Check all directory arguments for consistency.
1411 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412 datadir sysconfdir sharedstatedir localstatedir includedir \
1413 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414 libdir localedir mandir
1416 eval ac_val
=\$
$ac_var
1417 # Remove trailing slashes.
1420 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421 eval $ac_var=\
$ac_val;;
1423 # Be sure to have absolute directory names.
1425 [\\/$
]* | ?
:[\\/]* ) continue;;
1426 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1428 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1431 # There might be people who depend on the old broken behavior: `$host'
1432 # used to hold the argument of --host etc.
1433 # FIXME: To remove some day.
1436 target
=$target_alias
1438 # FIXME: To remove some day.
1439 if test "x$host_alias" != x
; then
1440 if test "x$build_alias" = x
; then
1441 cross_compiling
=maybe
1442 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1443 If a cross compiler is detected then cross compile mode will be used." >&2
1444 elif test "x$build_alias" != "x$host_alias"; then
1450 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1452 test "$silent" = yes && exec 6>/dev
/null
1455 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1456 ac_ls_di
=`ls -di .` &&
1457 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1458 as_fn_error
"working directory cannot be determined"
1459 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 as_fn_error
"pwd does not report name of working directory"
1463 # Find the source files, if location was not specified.
1464 if test -z "$srcdir"; then
1465 ac_srcdir_defaulted
=yes
1466 # Try the directory containing this script, then the parent directory.
1467 ac_confdir
=`$as_dirname -- "$as_myself" ||
1468 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 X"$as_myself" : 'X\(//\)[^/]' \| \
1470 X"$as_myself" : 'X\(//\)$' \| \
1471 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472 $as_echo X"$as_myself" |
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1495 ac_srcdir_defaulted
=no
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1499 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1501 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1503 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1513 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1515 for ac_var
in $ac_precious_vars; do
1516 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1518 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1523 # Report the --help message.
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1529 \`configure' configures this package to adapt to many kinds of systems.
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1536 Defaults for the options are specified in brackets.
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1560 For better control, use the options below.
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1592 --build=BUILD configure
for building on BUILD
[guessed
]
1593 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1594 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1598 if test -n "$ac_init_help"; then
1603 --disable-option-checking ignore unrecognized
--enable/--with options
1604 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1605 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1606 --enable-generated-files-in-srcdir
1607 put copies of generated files
in source dir intended
1608 for creating
source tarballs
for users without
1609 texinfo bison or flex
1610 --disable-largefile omit support
for large files
1611 --disable-build-format-warnings
1612 don
't use -Wformat while building GCC
1613 --enable-werror-always enable -Werror despite compiler version
1614 --enable-checking[=LIST]
1615 enable expensive run-time checks. With LIST, enable
1616 only specific categories of checks. Categories are:
1617 yes,no,all,none,release. Flags are:
1618 assert,df,extra,fold,gc,gcac,gimple,misc,
1619 rtlflag,rtl,runtime,tree,valgrind,types
1620 --enable-coverage[=LEVEL]
1621 enable compiler's code coverage collection. Use to
1622 measure compiler performance and
locate unused parts
1623 of the compiler. With LEVEL
, specify optimization.
1624 Values are opt
, noopt
, default is noopt
1625 --enable-gather-detailed-mem-stats
1626 enable detailed memory allocation stats gathering
1627 --enable-valgrind-annotations
1628 enable valgrind runtime interaction
1629 --enable-multilib enable library support
for multiple ABIs
1630 --enable-multiarch enable support
for multiarch paths
1631 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1632 --enable-decimal-float={no
,yes,bid
,dpd
}
1633 enable decimal float extension to C. Selecting
'bid'
1634 or
'dpd' choses
which decimal floating point format
1636 --enable-fixed-point enable fixed-point arithmetic extension to C
1637 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1639 --enable-tls enable or disable generation of tls code overriding
1640 the assembler check
for tls support
1641 --enable-vtable-verify enable vtable verification feature
1642 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1643 GNU Objective-C runtime
1644 --disable-shared don't provide a shared libgcc
1645 --disable-gcov don
't provide libgcov and related host tools
1646 --enable-languages=LIST specify which front-ends to build
1647 --disable-rpath do not hardcode runtime library paths
1648 --enable-sjlj-exceptions
1649 arrange to use setjmp/longjmp exception handling
1650 --enable-secureplt enable -msecure-plt by default for PowerPC
1651 --enable-mingw-wildcard Set whether to expand wildcard on command-line.
1652 Default to platform configuration
1653 --enable-large-address-aware
1654 Link mingw executables with --large-address-aware
1655 --enable-leading-mingw64-underscores
1656 enable leading underscores on 64 bit mingw targets
1657 --enable-cld enable -mcld by default for 32bit x86
1658 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1660 --disable-win32-registry
1661 disable lookup of installation paths in the Registry
1663 --enable-win32-registry enable registry lookup (default)
1664 --enable-win32-registry=KEY
1665 use KEY instead of GCC version as the last portion
1667 --enable-shared[=PKGS] build shared libraries [default=yes]
1668 --enable-static[=PKGS] build static libraries [default=yes]
1669 --enable-fast-install[=PKGS]
1670 optimize for fast installation [default=yes]
1671 --disable-libtool-lock avoid locking (might break parallel builds)
1672 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1673 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1674 --enable-gnu-indirect-function
1675 enable the use of the @gnu_indirect_function to
1677 --enable-initfini-array use .init_array/.fini_array sections
1678 --enable-comdat enable COMDAT group support
1680 --enable-fix-cortex-a53-835769
1681 enable workaround for AArch64 Cortex-A53 erratum
1683 --disable-fix-cortex-a53-835769
1684 disable workaround for AArch64 Cortex-A53 erratum
1688 --enable-fix-cortex-a53-843419
1689 enable workaround for AArch64 Cortex-A53 erratum
1691 --disable-fix-cortex-a53-843419
1692 disable workaround for AArch64 Cortex-A53 erratum
1695 --enable-gnu-unique-object
1696 enable the use of the @gnu_unique_object ELF
1697 extension on glibc systems
1698 --enable-linker-build-id
1699 compiler will always pass --build-id to linker
1700 --enable-libssp enable linking against libssp
1701 --enable-default-ssp enable Stack Smashing Protection as default
1702 --enable-maintainer-mode
1703 enable make rules and dependencies not useful (and
1704 sometimes confusing) to the casual installer
1705 --enable-link-mutex avoid linking multiple front-ends at once to avoid
1706 thrashing on the build machine
1707 --enable-version-specific-runtime-libs
1708 specify that runtime libraries should be installed
1709 in a compiler-specific directory
1710 --enable-plugin enable plugin support
1711 --enable-host-shared build host code as shared libraries
1712 --disable-libquadmath-support
1713 disable libquadmath support for Fortran
1714 --enable-default-pie enable Position Independent Executable as default
1717 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1718 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1719 --with-build-libsubdir=DIR Directory where to find libraries for build system
1720 --with-local-prefix=DIR specifies directory to put local include
1721 --with-native-system-header-dir=dir
1722 use dir as the directory to look for standard
1723 system header files in. Defaults to /usr/include.
1724 --with-build-sysroot=sysroot
1725 use sysroot as the system root during the build
1726 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1727 --with-gxx-include-dir=DIR
1728 specifies directory to put g++ header files
1729 --with-cpp-install-dir=DIR
1730 install the user visible C preprocessor in DIR
1731 (relative to PREFIX) as well as PREFIX/bin
1732 --with-gnu-ld arrange to work with GNU ld
1733 --with-ld arrange to use the specified ld (full pathname)
1734 --with-demangler-in-ld try to use demangler in GNU ld
1735 --with-gnu-as arrange to work with GNU as
1736 --with-as arrange to use the specified as (full pathname)
1737 --with-stabs arrange to use stabs instead of host debug format
1738 --with-stack-clash-protection-guard-size=size
1739 Set the default stack clash protection guard size
1740 for specific targets as a power of two in bytes.
1741 --with-dwarf2 force the default debug format to be DWARF 2
1742 --with-specs=SPECS add SPECS to driver command-line processing
1743 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1744 --with-bugurl=URL Direct users to URL to report a bug
1745 --with-multilib-list select multilibs (AArch64, SH and x86-64 only)
1746 --with-gnu-ld assume the C compiler uses GNU ld default=no
1747 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1748 --without-libiconv-prefix don't search
for libiconv
in includedir and libdir
1749 --with-gcc-major-version-only
1750 use only GCC major number
in filesystem paths
1751 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1753 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1754 --with-plugin-ld=[ARG
] specify the plugin linker
1755 --with-glibc-version=M.N
1756 assume GCC used with glibc version M.N or later
1757 --with-long-double-128 use
128-bit long double by default
1758 --with-long-double-format={ieee
,ibm
}
1759 Specify whether PowerPC long double uses IEEE or IBM format
1761 --with-gc={page
,zone
} this option is not supported anymore. It used to
1762 choose the garbage collection mechanism to use with
1764 --with-system-zlib use installed libz
1765 --with-linker-hash-style={sysv
,gnu
,both
}
1766 specify the linker
hash style
1767 --with-diagnostics-color={never
,auto
,auto-if-env
,always
}
1768 specify the default of
-fdiagnostics-color option
1769 auto-if-env stands
for -fdiagnostics-color=auto
if
1770 GCC_COLOR environment variable is present and
1771 -fdiagnostics-color=never otherwise
1773 Some influential environment variables
:
1774 CC C compiler
command
1775 CFLAGS C compiler flags
1776 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1777 nonstandard directory
<lib dir
>
1778 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1779 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1780 you have headers
in a nonstandard directory
<include dir
>
1781 CXX C
++ compiler
command
1782 CXXFLAGS C
++ compiler flags
1783 CXXCPP C
++ preprocessor
1785 GMPLIBS How to link GMP
1786 GMPINC How to
find GMP include files
1787 ISLLIBS How to link isl
1788 ISLINC How to
find isl include files
1790 Use these variables to override the choices made by
`configure' or to help
1791 it to find libraries and programs with nonstandard names/locations.
1793 Report bugs to the package provider.
1798 if test "$ac_init_help" = "recursive"; then
1799 # If there are subdirs, report their specific --help.
1800 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1801 test -d "$ac_dir" ||
1802 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1809 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1810 # A ".." for each directory in $ac_dir_suffix.
1811 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1812 case $ac_top_builddir_sub in
1813 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1817 ac_abs_top_builddir=$ac_pwd
1818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1819 # for backward compatibility:
1820 ac_top_builddir=$ac_top_build_prefix
1823 .) # We are building in place.
1825 ac_top_srcdir=$ac_top_builddir_sub
1826 ac_abs_top_srcdir=$ac_pwd ;;
1827 [\\/]* | ?:[\\/]* ) # Absolute name.
1828 ac_srcdir=$srcdir$ac_dir_suffix;
1829 ac_top_srcdir=$srcdir
1830 ac_abs_top_srcdir=$srcdir ;;
1832 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1833 ac_top_srcdir=$ac_top_build_prefix$srcdir
1834 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1838 cd "$ac_dir" || { ac_status=$?; continue; }
1839 # Check for guested configure.
1840 if test -f "$ac_srcdir/configure.gnu"; then
1842 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1843 elif test -f "$ac_srcdir/configure"; then
1845 $SHELL "$ac_srcdir/configure" --help=recursive
1847 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1849 cd "$ac_pwd" || { ac_status=$?; break; }
1853 test -n "$ac_init_help" && exit $ac_status
1854 if $ac_init_version; then
1857 generated by GNU Autoconf 2.64
1859 Copyright (C) 2009 Free Software Foundation, Inc.
1860 This configure script is free software; the Free Software Foundation
1861 gives unlimited permission to copy, distribute and modify it.
1866 ## ------------------------ ##
1867 ## Autoconf initialization. ##
1868 ## ------------------------ ##
1870 # ac_fn_c_try_compile LINENO
1871 # --------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_compile ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1880 *) ac_try_echo
=$ac_try;;
1882 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1886 if test -s conftest.err
; then
1887 grep -v '^ *+' conftest.err
>conftest.er1
1888 cat conftest.er1
>&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.
$ac_objext; then :
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.
$ac_ext >&5
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1906 } # ac_fn_c_try_compile
1908 # ac_fn_cxx_try_compile LINENO
1909 # ----------------------------
1910 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_compile
()
1913 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1914 rm -f conftest.
$ac_objext
1915 if { { ac_try
="$ac_compile"
1917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1918 *) ac_try_echo=$ac_try;;
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922 (eval "$ac_compile") 2>conftest.err
1924 if test -s conftest.err; then
1925 grep -v '^ *+' conftest.err >conftest.er1
1926 cat conftest.er1 >&5
1927 mv -f conftest.er1 conftest.err
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } && {
1931 test -z "$ac_cxx_werror_flag" ||
1932 test ! -s conftest.err
1933 } && test -s conftest.$ac_objext; then :
1936 $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1941 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944 } # ac_fn_cxx_try_compile
1946 # ac_fn_cxx_try_cpp LINENO
1947 # ------------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_cxx_try_cpp ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_cpp conftest.$ac_ext"
1954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1955 *) ac_try_echo
=$ac_try;;
1957 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1961 if test -s conftest.err
; then
1962 grep -v '^ *+' conftest.err
>conftest.er1
1963 cat conftest.er1
>&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } >/dev
/null
&& {
1968 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1969 test ! -s conftest.err
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.
$ac_ext >&5
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1981 } # ac_fn_cxx_try_cpp
1983 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1984 # ---------------------------------------------------------
1985 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1986 # the include files in INCLUDES and setting the cache variable VAR
1988 ac_fn_cxx_check_header_mongrel
()
1990 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1991 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2001 # Is the header compilable?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2003 $as_echo_n "checking $2 usability... " >&6; }
2004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2009 if ac_fn_cxx_try_compile
"$LINENO"; then :
2010 ac_header_compiler
=yes
2012 ac_header_compiler
=no
2014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2016 $as_echo "$ac_header_compiler" >&6; }
2018 # Is the header present?
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2020 $as_echo_n "checking $2 presence... " >&6; }
2021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2025 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2026 ac_header_preproc
=yes
2028 ac_header_preproc
=no
2030 rm -f conftest.err conftest.
$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2032 $as_echo "$ac_header_preproc" >&6; }
2034 # So? What about this header?
2035 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2038 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2044 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2046 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2048 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2050 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2052 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058 $as_echo_n "(cached) " >&6
2060 eval "$3=\$ac_header_compiler"
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2068 } # ac_fn_cxx_check_header_mongrel
2070 # ac_fn_cxx_try_run LINENO
2071 # ------------------------
2072 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2073 # that executables *can* be run.
2074 ac_fn_cxx_try_run
()
2076 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2077 if { { ac_try
="$ac_link"
2079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_link") 2>&5
2086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2088 { { case "(($ac_try" in
2089 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2090 *) ac_try_echo
=$ac_try;;
2092 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_try") 2>&5
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; }; }; then :
2100 $as_echo "$as_me: program exited with status $ac_status" >&5
2101 $as_echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.
$ac_ext >&5
2104 ac_retval
=$ac_status
2106 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2107 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2110 } # ac_fn_cxx_try_run
2112 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2113 # ---------------------------------------------------------
2114 # Tests whether HEADER exists and can be compiled using the include files in
2115 # INCLUDES, setting the cache variable VAR accordingly.
2116 ac_fn_cxx_check_header_compile
()
2118 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2122 $as_echo_n "(cached) " >&6
2124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2129 if ac_fn_cxx_try_compile
"$LINENO"; then :
2134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138 $as_echo "$ac_res" >&6; }
2139 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2141 } # ac_fn_cxx_check_header_compile
2143 # ac_fn_c_try_cpp LINENO
2144 # ----------------------
2145 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2148 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2149 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2158 if test -s conftest.err; then
2159 grep -v '^ *+' conftest.err >conftest.er1
2160 cat conftest.er1 >&5
2161 mv -f conftest.er1 conftest.err
2163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2164 test $ac_status = 0; } >/dev/null && {
2165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2166 test ! -s conftest.err
2170 $as_echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2181 # ----------------------------------------------
2182 # Tries to find the compile-time value of EXPR in a program that includes
2183 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2185 ac_fn_cxx_compute_int ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if test "$cross_compiling" = yes; then
2189 # Depending upon the size, compute the lo and hi bounds.
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h. */
2196 static int test_array [1 - 2 * !(($2) >= 0)];
2203 if ac_fn_cxx_try_compile "$LINENO"; then :
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2212 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2219 if ac_fn_cxx_try_compile "$LINENO"; then :
2220 ac_hi=$ac_mid; break
2222 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2223 if test $ac_lo -le $ac_mid; then
2227 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) < 0)];
2245 if ac_fn_cxx_try_compile "$LINENO"; then :
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2254 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2261 if ac_fn_cxx_try_compile "$LINENO"; then :
2262 ac_lo=$ac_mid; break
2264 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2265 if test $ac_mid -le $ac_hi; then
2269 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2279 # Binary search between lo and hi bounds.
2280 while test "x$ac_lo" != "x$ac_hi"; do
2281 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2288 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2295 if ac_fn_cxx_try_compile "$LINENO"; then :
2298 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2310 static long int longval () { return $2; }
2311 static unsigned long int ulongval () { return $2; }
2318 FILE *f = fopen ("conftest.val", "w");
2323 long int i = longval ();
2326 fprintf (f, "%ld", i);
2330 unsigned long int i = ulongval ();
2333 fprintf (f, "%lu", i);
2335 /* Do not output a trailing newline, as this causes \r\n confusion
2336 on some platforms. */
2337 return ferror (f) || fclose (f) != 0;
2343 if ac_fn_cxx_try_run "$LINENO"; then :
2344 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2349 conftest.$ac_objext conftest.beam conftest.$ac_ext
2353 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2356 } # ac_fn_cxx_compute_int
2358 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2359 # ---------------------------------------------
2360 # Tests whether TYPE exists after having included INCLUDES, setting cache
2361 # variable VAR accordingly.
2362 ac_fn_cxx_check_type ()
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2366 $as_echo_n "checking for $2... " >&6; }
2367 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2368 $as_echo_n "(cached) " >&6
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2383 if ac_fn_cxx_try_compile "$LINENO"; then :
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2396 if ac_fn_cxx_try_compile "$LINENO"; then :
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410 } # ac_fn_cxx_check_type
2412 # ac_fn_c_find_intX_t LINENO BITS VAR
2413 # -----------------------------------
2414 # Finds a signed integer type with width BITS, setting cache variable VAR
2416 ac_fn_c_find_intX_t ()
2418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2420 $as_echo_n "checking for int$2_t... " >&6; }
2421 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2422 $as_echo_n "(cached) " >&6
2425 for ac_type in int$2_t 'int' 'long int' \
2426 'long long int' 'short int' 'signed char'; do
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2433 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2440 if ac_fn_cxx_try_compile "$LINENO"; then :
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2443 $ac_includes_default
2447 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2448 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2455 if ac_fn_cxx_try_compile "$LINENO"; then :
2462 eval "$3=\$ac_type" ;;
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 if test "x$as_val" = x""no; then :
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2479 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2481 } # ac_fn_c_find_intX_t
2483 # ac_fn_cxx_try_link LINENO
2484 # -------------------------
2485 # Try to link conftest.$ac_ext, and return whether this succeeded.
2486 ac_fn_cxx_try_link ()
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 rm -f conftest.$ac_objext conftest$ac_exeext
2490 if { { ac_try="$ac_link"
2492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2493 *) ac_try_echo
=$ac_try;;
2495 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2496 $as_echo "$ac_try_echo"; } >&5
2497 (eval "$ac_link") 2>conftest.err
2499 if test -s conftest.err
; then
2500 grep -v '^ *+' conftest.err
>conftest.er1
2501 cat conftest.er1
>&5
2502 mv -f conftest.er1 conftest.err
2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2505 test $ac_status = 0; } && {
2506 test -z "$ac_cxx_werror_flag" ||
2507 test ! -s conftest.err
2508 } && test -s conftest
$ac_exeext && {
2509 test "$cross_compiling" = yes ||
2510 $as_test_x conftest
$ac_exeext
2514 $as_echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.
$ac_ext >&5
2519 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2520 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2521 # interfere with the next link command; also delete a directory that is
2522 # left behind by Apple's compiler. We do this before executing the actions.
2523 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2524 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2527 } # ac_fn_cxx_try_link
2529 # ac_fn_c_find_uintX_t LINENO BITS VAR
2530 # ------------------------------------
2531 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2533 ac_fn_c_find_uintX_t
()
2535 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2537 $as_echo_n "checking for uint$2_t... " >&6; }
2538 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2539 $as_echo_n "(cached) " >&6
2542 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2543 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2546 $ac_includes_default
2550 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2557 if ac_fn_cxx_try_compile
"$LINENO"; then :
2562 eval "$3=\$ac_type" ;;
2565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2567 if test "x$as_val" = x
""no
; then :
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2579 } # ac_fn_c_find_uintX_t
2581 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2582 # ------------------------------------------------
2583 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2584 ac_fn_cxx_check_header_preproc
()
2586 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2588 $as_echo_n "checking for $2... " >&6; }
2589 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2590 $as_echo_n "(cached) " >&6
2592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2593 /* end confdefs.h. */
2596 if ac_fn_cxx_try_cpp
"$LINENO"; then :
2601 rm -f conftest.err conftest.
$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2608 } # ac_fn_cxx_check_header_preproc
2610 # ac_fn_cxx_check_func LINENO FUNC VAR
2611 # ------------------------------------
2612 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2613 ac_fn_cxx_check_func
()
2615 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2617 $as_echo_n "checking for $2... " >&6; }
2618 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2619 $as_echo_n "(cached) " >&6
2621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2622 /* end confdefs.h. */
2623 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2625 #define $2 innocuous_$2
2627 /* System header to define __stub macros and hopefully few prototypes,
2628 which can conflict with char $2 (); below.
2629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2630 <limits.h> exists even on freestanding compilers. */
2633 # include <limits.h>
2635 # include <assert.h>
2640 /* Override any GCC internal prototype to avoid an error.
2641 Use char because int might match the return type of a GCC
2642 builtin and then its argument prototype would still apply. */
2647 /* The GNU C library defines this for functions which it implements
2648 to always fail with ENOSYS. Some functions are actually named
2649 something starting with __ and the normal name is an alias. */
2650 #if defined __stub_$2 || defined __stub___$2
2662 if ac_fn_cxx_try_link
"$LINENO"; then :
2667 rm -f core conftest.err conftest.
$ac_objext \
2668 conftest
$ac_exeext conftest.
$ac_ext
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2672 $as_echo "$ac_res" >&6; }
2673 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2675 } # ac_fn_cxx_check_func
2677 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2678 # --------------------------------------
2679 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2680 ac_fn_cxx_check_decl
()
2682 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2683 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2684 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2686 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2687 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2688 $as_echo_n "(cached) " >&6
2690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2696 #ifndef $as_decl_name
2698 (void) $as_decl_use;
2700 (void) $as_decl_name;
2708 if ac_fn_cxx_try_compile
"$LINENO"; then :
2713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717 $as_echo "$ac_res" >&6; }
2718 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2720 } # ac_fn_cxx_check_decl
2722 # ac_fn_c_try_link LINENO
2723 # -----------------------
2724 # Try to link conftest.$ac_ext, and return whether this succeeded.
2727 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2728 rm -f conftest.
$ac_objext conftest
$ac_exeext
2729 if { { ac_try
="$ac_link"
2731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2735 $as_echo "$ac_try_echo"; } >&5
2736 (eval "$ac_link") 2>conftest.err
2738 if test -s conftest.err; then
2739 grep -v '^ *+' conftest.err >conftest.er1
2740 cat conftest.er1 >&5
2741 mv -f conftest.er1 conftest.err
2743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2744 test $ac_status = 0; } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest$ac_exeext && {
2748 test "$cross_compiling" = yes ||
2749 $as_test_x conftest$ac_exeext
2753 $as_echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2760 # interfere with the next link command; also delete a directory that is
2761 # left behind by Apple's compiler. We do this before executing the actions.
2762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2766 } # ac_fn_c_try_link
2768 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2769 # ----------------------------------------------
2770 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2771 ac_fn_c_check_header_preproc ()
2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2775 $as_echo_n "checking for $2... " >&6; }
2776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2777 $as_echo_n "(cached) " >&6
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2783 if ac_fn_c_try_cpp "$LINENO"; then :
2788 rm -f conftest.err conftest.$ac_ext
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2792 $as_echo "$ac_res" >&6; }
2793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2795 } # ac_fn_c_check_header_preproc
2797 # ac_fn_c_check_func LINENO FUNC VAR
2798 # ----------------------------------
2799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2800 ac_fn_c_check_func ()
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2804 $as_echo_n "checking for $2... " >&6; }
2805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2806 $as_echo_n "(cached) " >&6
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2812 #define $2 innocuous_$2
2814 /* System header to define __stub macros and hopefully few prototypes,
2815 which can conflict with char $2 (); below.
2816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2817 <limits.h> exists even on freestanding compilers. */
2820 # include <limits.h>
2822 # include <assert.h>
2827 /* Override any GCC internal prototype to avoid an error.
2828 Use char because int might match the return type of a GCC
2829 builtin and then its argument prototype would still apply. */
2834 /* The GNU C library defines this for functions which it implements
2835 to always fail with ENOSYS. Some functions are actually named
2836 something starting with __ and the normal name is an alias. */
2837 #if defined __stub_$2 || defined __stub___$2
2849 if ac_fn_c_try_link "$LINENO"; then :
2854 rm -f core conftest.err conftest.$ac_objext \
2855 conftest$ac_exeext conftest.$ac_ext
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2859 $as_echo "$ac_res" >&6; }
2860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2862 } # ac_fn_c_check_func
2863 cat >config.log <<_ACEOF
2864 This file contains any messages produced by compilers while
2865 running configure, to aid debugging if configure makes a mistake.
2867 It was created by $as_me, which was
2868 generated by GNU Autoconf 2.64. Invocation command line was
2880 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2881 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2882 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2883 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2884 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2886 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2887 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2889 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2890 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2891 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2892 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2893 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2894 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2895 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 test -z "$as_dir" && as_dir=.
2904 $as_echo "PATH: $as_dir"
2920 # Keep a trace of the command line.
2921 # Strip out --no-create and --no-recursion so they do not pile up.
2922 # Strip out --silent because we don't want to record it for future runs.
2923 # Also quote any args containing shell meta-characters.
2924 # Make two passes to allow for proper duplicate-argument suppression.
2928 ac_must_keep_next=false
2934 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2936 | -silent | --silent | --silen | --sile | --sil)
2939 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2942 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2944 as_fn_append ac_configure_args1 " '$ac_arg'"
2945 if test $ac_must_keep_next = true; then
2946 ac_must_keep_next=false # Got value, back to normal.
2949 *=* | --config-cache | -C | -disable-* | --disable-* \
2950 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2951 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2952 | -with-* | --with-* | -without-* | --without-* | --x)
2953 case "$ac_configure_args0 " in
2954 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2957 -* ) ac_must_keep_next=true ;;
2960 as_fn_append ac_configure_args " '$ac_arg'"
2965 { ac_configure_args0=; unset ac_configure_args0;}
2966 { ac_configure_args1=; unset ac_configure_args1;}
2968 # When interrupted or exit'd, cleanup temporary files, and complete
2969 # config.log. We remove comments because anyway the quotes in there
2970 # would cause problems or look ugly.
2971 # WARNING: Use '\'' to represent an apostrophe within the trap.
2972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2973 trap 'exit_status=$?
2974 # Save into config.log some information that might help in debugging.
2979 ## ---------------- ##
2980 ## Cache variables. ##
2981 ## ---------------- ##
2984 # The following way of writing the cache mishandles newlines in values,
2986 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2987 eval ac_val=\$$ac_var
2991 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2992 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2995 _ | IFS | as_nl) ;; #(
2996 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2997 *) { eval $ac_var=; unset $ac_var;} ;;
3002 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
3003 *${as_nl}ac_space=\ *)
3005 "s/'\''/'\''\\\\'\'''\''/g;
3006 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3009 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3017 ## ----------------- ##
3018 ## Output variables. ##
3019 ## ----------------- ##
3022 for ac_var in $ac_subst_vars
3024 eval ac_val=\$$ac_var
3026 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3028 $as_echo "$ac_var='\''$ac_val'\''"
3032 if test -n "$ac_subst_files"; then
3034 ## ------------------- ##
3035 ## File substitutions. ##
3036 ## ------------------- ##
3039 for ac_var in $ac_subst_files
3041 eval ac_val=\$$ac_var
3043 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3045 $as_echo "$ac_var='\''$ac_val'\''"
3050 if test -s confdefs.h; then
3060 test "$ac_signal" != 0 &&
3061 $as_echo "$as_me: caught signal $ac_signal"
3062 $as_echo "$as_me: exit $exit_status"
3064 rm -f core *.core core.conftest.* &&
3065 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3068 for ac_signal in 1 2 13 15; do
3069 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3073 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3074 rm -f -r conftest* confdefs.h
3076 $as_echo "/* confdefs.h */" > confdefs.h
3078 # Predefined preprocessor variables.
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_NAME "$PACKAGE_NAME"
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3092 cat >>confdefs.h <<_ACEOF
3093 #define PACKAGE_STRING "$PACKAGE_STRING"
3096 cat >>confdefs.h <<_ACEOF
3097 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3100 cat >>confdefs.h <<_ACEOF
3101 #define PACKAGE_URL "$PACKAGE_URL"
3105 # Let the site file select an alternate cache file if it wants to.
3106 # Prefer an explicitly selected file to automatically selected ones.
3109 if test -n "$CONFIG_SITE"; then
3110 ac_site_file1=$CONFIG_SITE
3111 elif test "x$prefix" != xNONE; then
3112 ac_site_file1=$prefix/share/config.site
3113 ac_site_file2=$prefix/etc/config.site
3115 ac_site_file1=$ac_default_prefix/share/config.site
3116 ac_site_file2=$ac_default_prefix/etc/config.site
3118 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3120 test "x$ac_site_file" = xNONE && continue
3121 if test -r "$ac_site_file"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3123 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3124 sed 's/^/| /' "$ac_site_file" >&5
3129 if test -r "$cache_file"; then
3130 # Some versions of bash will fail to source /dev/null (special
3131 # files actually), so we avoid doing that.
3132 if test -f "$cache_file"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3134 $as_echo "$as_me: loading cache $cache_file" >&6;}
3136 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3137 *) . "./$cache_file";;
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3142 $as_echo "$as_me: creating cache $cache_file" >&6;}
3146 # Check that the precious variables saved in the cache have kept the same
3148 ac_cache_corrupted=false
3149 for ac_var in $ac_precious_vars; do
3150 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3151 eval ac_new_set=\$ac_env_${ac_var}_set
3152 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3153 eval ac_new_val=\$ac_env_${ac_var}_value
3154 case $ac_old_set,$ac_new_set in
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
3157 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3158 ac_cache_corrupted=: ;;
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
3161 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
3162 ac_cache_corrupted=: ;;
3165 if test "x$ac_old_val" != "x$ac_new_val"; then
3166 # differences in whitespace do not lead to failure.
3167 ac_old_val_w=`echo x
$ac_old_val`
3168 ac_new_val_w=`echo x
$ac_new_val`
3169 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3171 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
3172 ac_cache_corrupted=:
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
3175 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3176 eval $ac_var=\$ac_old_val
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3179 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3181 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3184 # Pass precious variables to config.status.
3185 if test "$ac_new_set" = set; then
3187 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
3188 *) ac_arg=$ac_var=$ac_new_val ;;
3190 case " $ac_configure_args " in
3191 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3192 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3196 if $ac_cache_corrupted; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3200 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3201 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
3203 ## -------------------- ##
3204 ## Main body of script. ##
3205 ## -------------------- ##
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3221 gcc_version=`cat $srcdir/BASE-VER
`
3223 # Determine the host, build, and target systems
3225 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3226 for ac_t in install-sh install.sh shtool; do
3227 if test -f "$ac_dir/$ac_t"; then
3229 ac_install_sh="$ac_aux_dir/$ac_t -c"
3234 if test -z "$ac_aux_dir"; then
3235 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3238 # These three variables are undocumented and unsupported,
3239 # and are intended to be withdrawn in a future Autoconf release.
3240 # They can cause serious problems if a builder's source tree is in a directory
3241 # whose full name contains unusual characters.
3242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3247 # Make sure we can run config.sub.
3248 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3249 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3252 $as_echo_n "checking build system type... " >&6; }
3253 if test "${ac_cv_build+set}" = set; then :
3254 $as_echo_n "(cached) " >&6
3256 ac_build_alias=$build_alias
3257 test "x$ac_build_alias" = x &&
3258 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3259 test "x$ac_build_alias" = x &&
3260 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3261 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3262 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3266 $as_echo "$ac_cv_build" >&6; }
3267 case $ac_cv_build in
3269 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3272 ac_save_IFS=$IFS; IFS='-'
3278 # Remember, the first character of IFS is used to create $*,
3279 # except with old shells:
3282 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3286 $as_echo_n "checking host system type... " >&6; }
3287 if test "${ac_cv_host+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3290 if test "x$host_alias" = x; then
3291 ac_cv_host=$ac_cv_build
3293 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3294 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3299 $as_echo "$ac_cv_host" >&6; }
3302 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3305 ac_save_IFS=$IFS; IFS='-'
3311 # Remember, the first character of IFS is used to create $*,
3312 # except with old shells:
3315 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3319 $as_echo_n "checking target system type... " >&6; }
3320 if test "${ac_cv_target+set}" = set; then :
3321 $as_echo_n "(cached) " >&6
3323 if test "x$target_alias" = x; then
3324 ac_cv_target=$ac_cv_host
3326 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3327 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3332 $as_echo "$ac_cv_target" >&6; }
3333 case $ac_cv_target in
3335 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3337 target=$ac_cv_target
3338 ac_save_IFS=$IFS; IFS='-'
3344 # Remember, the first character of IFS is used to create $*,
3345 # except with old shells:
3348 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
3351 # The aliases save the names the user supplied, while $host etc.
3352 # will get canonicalized.
3353 test -n "$target_alias" &&
3354 test "$program_prefix$program_suffix$program_transform_name" = \
3356 program_prefix=${target_alias}-
3358 # Determine the noncanonical host name, for Ada.
3359 case ${build_alias} in
3360 "") build_noncanonical=${build} ;;
3361 *) build_noncanonical=${build_alias} ;;
3364 case ${host_alias} in
3365 "") host_noncanonical=${build_noncanonical} ;;
3366 *) host_noncanonical=${host_alias} ;;
3372 # Determine the noncanonical target name, for directory use.
3373 case ${target_alias} in
3374 "") target_noncanonical=${host_noncanonical} ;;
3375 *) target_noncanonical=${target_alias} ;;
3381 # Used for constructing correct paths for offload compilers.
3382 real_target_noncanonical=${target_noncanonical}
3385 # Determine the target- and build-specific subdirectories
3387 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3388 # have matching libraries, they should use host libraries: Makefile.tpl
3389 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3390 # However, they still use the build modules, because the corresponding
3391 # host modules (e.g. bison) are only built for the host when bootstrap
3393 # - build_subdir is where we find build modules, and never changes.
3394 # - build_libsubdir is where we find build libraries, and can be overridden.
3396 # Prefix 'build-' so this never conflicts with target_subdir.
3397 build_subdir="build-${build_noncanonical}"
3399 # Check whether --with-build-libsubdir was given.
3400 if test "${with_build_libsubdir+set}" = set; then :
3401 withval=$with_build_libsubdir; build_libsubdir="$withval"
3403 build_libsubdir="$build_subdir"
3406 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3407 if ( test $srcdir = . && test -d gcc ) \
3408 || test -d $srcdir/../host-${host_noncanonical}; then
3409 host_subdir="host-${host_noncanonical}"
3414 target_subdir=${target_noncanonical}
3417 # Set program_transform_name
3418 test "$program_prefix" != NONE &&
3419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3420 # Use a double $ so make ignores it.
3421 test "$program_suffix" != NONE &&
3422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3423 # Double any \ or $.
3424 # By default was `s
,x
,x
', remove it if useless.
3425 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
3426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3429 # Check for bogus environment variables.
3430 # Test if LIBRARY_PATH contains the notation for the current directory
3431 # since this would lead to problems installing/building glibc.
3432 # LIBRARY_PATH contains the current directory if one of the following
3434 # - one of the terminals (":" and ";") is the first or last sign
3435 # - two terminals occur directly after each other
3436 # - the path contains an element with a dot in it
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3438 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3439 case ${LIBRARY_PATH} in
3440 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3441 library_path_setting="contains current directory"
3444 library_path_setting="ok"
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3448 $as_echo "$library_path_setting" >&6; }
3449 if test "$library_path_setting" != "ok"; then
3451 *** LIBRARY_PATH shouldn't contain the current directory when
3452 *** building gcc. Please change the environment variable
3453 *** and run configure again.
" "$LINENO" 5
3456 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3457 # since this would lead to problems installing/building glibc.
3458 # GCC_EXEC_PREFIX contains the current directory if one of the following
3460 # - one of the terminals (":" and ";") is the first or last sign
3461 # - two terminals occur directly after each other
3462 # - the path contains an element with a dot in it
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable
" >&5
3464 $as_echo_n "checking GCC_EXEC_PREFIX variable...
" >&6; }
3465 case ${GCC_EXEC_PREFIX} in
3466 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3467 gcc_exec_prefix_setting="contains current directory
"
3470 gcc_exec_prefix_setting="ok
"
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gcc_exec_prefix_setting" >&5
3474 $as_echo "$gcc_exec_prefix_setting" >&6; }
3475 if test "$gcc_exec_prefix_setting" != "ok
"; then
3477 *** GCC_EXEC_PREFIX shouldn
't contain the current directory when
3478 *** building gcc. Please change the environment variable
3479 *** and run configure again." "$LINENO" 5
3486 # Specify the local prefix
3489 # Check whether --with-local-prefix was given.
3490 if test "${with_local_prefix+set}" = set; then :
3491 withval=$with_local_prefix; case "${withval}" in
3492 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3494 *) local_prefix=$with_local_prefix ;;
3499 # Default local prefix if it is empty
3500 if test x$local_prefix = x; then
3501 local_prefix=/usr/local
3505 # Check whether --with-native-system-header-dir was given.
3506 if test "${with_native_system_header_dir+set}" = set; then :
3507 withval=$with_native_system_header_dir;
3508 case ${with_native_system_header_dir} in
3509 yes|no) as_fn_error "bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3510 /* | [A-Za-z]:[\\/]*) ;;
3511 *) as_fn_error "--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3513 configured_native_system_header_dir="${withval}"
3516 configured_native_system_header_dir=
3521 # Check whether --with-build-sysroot was given.
3522 if test "${with_build_sysroot+set}" = set; then :
3523 withval=$with_build_sysroot; if test x"$withval" != x ; then
3524 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
3527 SYSROOT_CFLAGS_FOR_TARGET=
3532 if test "x$prefix" = xNONE; then
3533 test_prefix=/usr/local
3537 if test "x$exec_prefix" = xNONE; then
3538 test_exec_prefix=$test_prefix
3540 test_exec_prefix=$exec_prefix
3544 # Check whether --with-sysroot was given.
3545 if test "${with_sysroot+set}" = set; then :
3546 withval=$with_sysroot;
3547 case ${with_sysroot} in
3549 */) with_sysroot=`echo $with_sysroot | sed 's
,/$
,,'` ;;
3551 case ${with_sysroot} in
3552 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root
' ;;
3553 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
3556 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$
(TARGET_SYSTEM_ROOT
)\"'
3557 CROSS_SYSTEM_HEADER_DIR='$
(TARGET_SYSTEM_ROOT
)$
${sysroot_headers_suffix}$
(NATIVE_SYSTEM_HEADER_DIR
)'
3559 case ${TARGET_SYSTEM_ROOT} in
3560 "${test_prefix}"|"${test_prefix}/"*|\
3561 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
3562 '${prefix}'|'${prefix}/'*|\
3563 '${exec_prefix}'|'${exec_prefix}/'*)
3564 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3565 TARGET_SYSTEM_ROOT_DEFINE="$t"
3572 TARGET_SYSTEM_ROOT_DEFINE=
3573 CROSS_SYSTEM_HEADER_DIR='$
(gcc_tooldir
)/sys-include
'
3581 # Don't
set gcc_gxx_include_dir to gxx_include_dir since that
's only
3582 # passed in by the toplevel make and thus we'd get different behavior
3583 # depending on where we built the sources.
3584 gcc_gxx_include_dir
=
3585 # Specify the g++ header file directory
3587 # Check whether --with-gxx-include-dir was given.
3588 if test "${with_gxx_include_dir+set}" = set; then :
3589 withval
=$with_gxx_include_dir; case "${withval}" in
3590 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3592 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3597 # If both --with-sysroot and --with-gxx-include-dir are passed, we interpolate
3598 # the former in the latter and, upon success, compute gcc_gxx_include_dir as
3599 # relative to the sysroot.
3600 gcc_gxx_include_dir_add_sysroot
=0
3602 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3603 if test x
${gcc_gxx_include_dir} = x
; then
3604 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3605 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3607 libstdcxx_incdir
='include/c++/$(version)'
3608 if test x
$host != x
$target; then
3609 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3611 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3613 elif test "${with_sysroot+set}" = set; then
3614 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3615 if test "${gcc_gxx_without_sysroot}"; then
3616 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3617 gcc_gxx_include_dir_add_sysroot
=1
3622 # Check whether --with-cpp_install_dir was given.
3623 if test "${with_cpp_install_dir+set}" = set; then :
3624 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3625 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3626 elif test x
$withval != xno
; then
3627 cpp_install_dir
=$withval
3632 # We would like to our source tree to be readonly. However when releases or
3633 # pre-releases are generated, the flex/bison generated files as well as the
3634 # various formats of manuals need to be included along with the rest of the
3635 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3639 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3640 # Check whether --enable-generated-files-in-srcdir was given.
3641 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3642 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3644 generated_files_in_srcdir
=no
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3649 $as_echo "$generated_files_in_srcdir" >&6; }
3651 if test "$generated_files_in_srcdir" = "yes"; then
3658 # -------------------
3659 # Find default linker
3660 # -------------------
3664 # Check whether --with-gnu-ld was given.
3665 if test "${with_gnu_ld+set}" = set; then :
3666 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3673 *darwin
*) ld64_flag
=yes;; # Darwin can only use a ld64-compatible linker.
3677 # With pre-defined ld
3679 # Check whether --with-ld was given.
3680 if test "${with_ld+set}" = set; then :
3681 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3684 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3685 if test ! -x "$DEFAULT_LINKER"; then
3686 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3687 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3689 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep ld64-
> /dev
/null
; then
3693 cat >>confdefs.h
<<_ACEOF
3694 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3700 $as_echo_n "checking whether a default linker was specified... " >&6; }
3701 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3702 if test x
"$gnu_ld_flag" = x
"no"; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3704 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3707 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3714 # With demangler in GNU ld
3716 # Check whether --with-demangler-in-ld was given.
3717 if test "${with_demangler_in_ld+set}" = set; then :
3718 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3724 # ----------------------
3725 # Find default assembler
3726 # ----------------------
3730 # Check whether --with-gnu-as was given.
3731 if test "${with_gnu_as+set}" = set; then :
3732 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3739 # Check whether --with-as was given.
3740 if test "${with_as+set}" = set; then :
3741 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3744 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3745 if test ! -x "$DEFAULT_ASSEMBLER"; then
3746 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3747 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3751 cat >>confdefs.h
<<_ACEOF
3752 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3758 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3759 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3760 if test x
"$gas_flag" = x
"no"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3762 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3765 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3776 # If a non-executable a.out is present (e.g. created by GNU as above even if
3777 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3778 # file, even when creating an executable, so an execution test fails.
3779 # Remove possible default executable files to avoid this.
3781 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3782 # Autoconf includes it.
3783 rm -f a.out a.exe b.out
3785 # Find the native compiler
3787 ac_cpp
='$CPP $CPPFLAGS'
3788 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3791 if test -n "$ac_tool_prefix"; then
3792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3793 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if test "${ac_cv_prog_CC+set}" = set; then :
3797 $as_echo_n "(cached) " >&6
3799 if test -n "$CC"; then
3800 ac_cv_prog_CC
="$CC" # Let the user override the test.
3802 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3806 test -z "$as_dir" && as_dir
=.
3807 for ac_exec_ext
in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 if test -n "$CC"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3822 $as_echo "$CC" >&6; }
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3830 if test -z "$ac_cv_prog_CC"; then
3832 # Extract the first word of "gcc", so it can be a program name with args.
3833 set dummy gcc
; ac_word
=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3837 $as_echo_n "(cached) " >&6
3839 if test -n "$ac_ct_CC"; then
3840 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir
=.
3847 for ac_exec_ext
in '' $ac_executable_extensions; do
3848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3849 ac_cv_prog_ac_ct_CC
="gcc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3860 if test -n "$ac_ct_CC"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3862 $as_echo "$ac_ct_CC" >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3868 if test "x$ac_ct_CC" = x
; then
3871 case $cross_compiling:$ac_tool_warned in
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3875 ac_tool_warned
=yes ;;
3883 if test -z "$CC"; then
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3886 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if test "${ac_cv_prog_CC+set}" = set; then :
3890 $as_echo_n "(cached) " >&6
3892 if test -n "$CC"; then
3893 ac_cv_prog_CC
="$CC" # Let the user override the test.
3895 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3899 test -z "$as_dir" && as_dir
=.
3900 for ac_exec_ext
in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 if test -n "$CC"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3915 $as_echo "$CC" >&6; }
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3924 if test -z "$CC"; then
3925 # Extract the first word of "cc", so it can be a program name with args.
3926 set dummy cc
; ac_word
=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if test "${ac_cv_prog_CC+set}" = set; then :
3930 $as_echo_n "(cached) " >&6
3932 if test -n "$CC"; then
3933 ac_cv_prog_CC
="$CC" # Let the user override the test.
3936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir
=.
3941 for ac_exec_ext
in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3944 ac_prog_rejected
=yes
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 if test $ac_prog_rejected = yes; then
3956 # We found a bogon in the path, so make sure we never use it.
3957 set dummy
$ac_cv_prog_CC
3959 if test $# != 0; then
3960 # We chose a different compiler from the bogus one.
3961 # However, it has the same basename, so the bogon will be chosen
3962 # first if we set CC to just the basename; use the full file name.
3964 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3970 if test -n "$CC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3972 $as_echo "$CC" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3980 if test -z "$CC"; then
3981 if test -n "$ac_tool_prefix"; then
3982 for ac_prog
in cl.exe
3984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3985 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if test "${ac_cv_prog_CC+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3991 if test -n "$CC"; then
3992 ac_cv_prog_CC
="$CC" # Let the user override the test.
3994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3998 test -z "$as_dir" && as_dir
=.
3999 for ac_exec_ext
in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014 $as_echo "$CC" >&6; }
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017 $as_echo "no" >&6; }
4021 test -n "$CC" && break
4024 if test -z "$CC"; then
4026 for ac_prog
in cl.exe
4028 # Extract the first word of "$ac_prog", so it can be a program name with args.
4029 set dummy
$ac_prog; ac_word
=$2
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4031 $as_echo_n "checking for $ac_word... " >&6; }
4032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4033 $as_echo_n "(cached) " >&6
4035 if test -n "$ac_ct_CC"; then
4036 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4042 test -z "$as_dir" && as_dir
=.
4043 for ac_exec_ext
in '' $ac_executable_extensions; do
4044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4045 ac_cv_prog_ac_ct_CC
="$ac_prog"
4046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4056 if test -n "$ac_ct_CC"; then
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4058 $as_echo "$ac_ct_CC" >&6; }
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 $as_echo "no" >&6; }
4065 test -n "$ac_ct_CC" && break
4068 if test "x$ac_ct_CC" = x
; then
4071 case $cross_compiling:$ac_tool_warned in
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4075 ac_tool_warned
=yes ;;
4084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4086 as_fn_error
"no acceptable C compiler found in \$PATH
4087 See \`config.log' for more details." "$LINENO" 5; }
4089 # Provide some information about the compiler.
4090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4093 for ac_option
in --version -v -V -qversion; do
4094 { { ac_try
="$ac_compiler $ac_option >&5"
4096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4100 $as_echo "$ac_try_echo"; } >&5
4101 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4103 if test -s conftest.err; then
4105 ... rest of stderr output deleted ...
4106 10q' conftest.err >conftest.er1
4107 cat conftest.er1 >&5
4108 rm -f conftest.er1 conftest.err
4110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4111 test $ac_status = 0; }
4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 ac_clean_files_save=$ac_clean_files
4126 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4127 # Try to create an executable without -o first, disregard a.out.
4128 # It will help us diagnose broken compilers, and finding out an intuition
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4131 $as_echo_n "checking for C compiler default output file name... " >&6; }
4132 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4134 # The possible output files:
4135 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4138 for ac_file in $ac_files
4141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4142 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4147 if { { ac_try="$ac_link_default"
4149 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4150 *) ac_try_echo
=$ac_try;;
4152 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4153 $as_echo "$ac_try_echo"; } >&5
4154 (eval "$ac_link_default") 2>&5
4156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4157 test $ac_status = 0; }; then :
4158 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4159 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4160 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4161 # so that the user can short-circuit this test for compilers unknown to
4163 for ac_file
in $ac_files ''
4165 test -f "$ac_file" ||
continue
4167 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4170 # We found the default executable, but exeext='' is most
4174 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4176 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4178 # We set ac_cv_exeext here because the later test for it is not
4179 # safe: cross compilers may not add the suffix if given an `-o'
4180 # argument, so we may need to know it at that point already.
4181 # Even if this section looks crufty: it has the advantage of
4188 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4194 $as_echo "$ac_file" >&6; }
4195 if test -z "$ac_file"; then :
4196 $as_echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.
$ac_ext >&5
4199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4201 { as_fn_set_status
77
4202 as_fn_error
"C compiler cannot create executables
4203 See \`config.log' for more details." "$LINENO" 5; }; }
4205 ac_exeext
=$ac_cv_exeext
4207 # Check that the compiler produces executables we can run. If not, either
4208 # the compiler is broken, or we cross compile.
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4210 $as_echo_n "checking whether the C compiler works... " >&6; }
4211 # If not cross compiling, check that we can run a simple program.
4212 if test "$cross_compiling" != yes; then
4213 if { ac_try
='./$ac_file'
4214 { { case "(($ac_try" in
4215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_try") 2>&5
4222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4223 test $ac_status = 0; }; }; then
4226 if test "$cross_compiling" = maybe; then
4229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4231 as_fn_error "cannot run C compiled programs.
4232 If you meant to cross compile
, use \
`--host'.
4233 See \`config.log
' for more details." "$LINENO" 5; }
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4238 $as_echo "yes" >&6; }
4240 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4241 ac_clean_files=$ac_clean_files_save
4242 # Check that the compiler produces executables we can run. If not, either
4243 # the compiler is broken, or we cross compile.
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4245 $as_echo_n "checking whether we are cross compiling... " >&6; }
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4247 $as_echo "$cross_compiling" >&6; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4250 $as_echo_n "checking for suffix of executables... " >&6; }
4251 if { { ac_try="$ac_link"
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257 $as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_link") 2>&5
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }; then :
4262 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4263 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4264 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4266 for ac_file
in conftest.exe conftest conftest.
*; do
4267 test -f "$ac_file" ||
continue
4269 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4270 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4279 See \`config.log' for more details." "$LINENO" 5; }
4281 rm -f conftest
$ac_cv_exeext
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4283 $as_echo "$ac_cv_exeext" >&6; }
4285 rm -f conftest.
$ac_ext
4286 EXEEXT
=$ac_cv_exeext
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4289 $as_echo_n "checking for suffix of object files... " >&6; }
4290 if test "${ac_cv_objext+set}" = set; then :
4291 $as_echo_n "(cached) " >&6
4293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4304 rm -f conftest.o conftest.obj
4305 if { { ac_try
="$ac_compile"
4307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_compile") 2>&5
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; then :
4316 for ac_file in conftest.o conftest.obj conftest.*; do
4317 test -f "$ac_file" || continue;
4319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4320 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4325 $as_echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330 as_fn_error "cannot compute suffix of object files
: cannot compile
4331 See \
`config.log' for more details." "$LINENO" 5; }
4333 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4336 $as_echo "$ac_cv_objext" >&6; }
4337 OBJEXT=$ac_cv_objext
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4340 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4341 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4358 if ac_fn_c_try_compile "$LINENO"; then :
4363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4368 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4369 if test $ac_compiler_gnu = yes; then
4374 ac_test_CFLAGS=${CFLAGS+set}
4375 ac_save_CFLAGS=$CFLAGS
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4377 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4378 if test "${ac_cv_prog_cc_g+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4381 ac_save_c_werror_flag=$ac_c_werror_flag
4382 ac_c_werror_flag=yes
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4396 if ac_fn_c_try_compile "$LINENO"; then :
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4411 if ac_fn_c_try_compile "$LINENO"; then :
4414 ac_c_werror_flag=$ac_save_c_werror_flag
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4427 if ac_fn_c_try_compile "$LINENO"; then :
4430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 ac_c_werror_flag=$ac_save_c_werror_flag
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4438 $as_echo "$ac_cv_prog_cc_g" >&6; }
4439 if test "$ac_test_CFLAGS" = set; then
4440 CFLAGS=$ac_save_CFLAGS
4441 elif test $ac_cv_prog_cc_g = yes; then
4442 if test "$GCC" = yes; then
4448 if test "$GCC" = yes; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4455 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4456 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4459 ac_cv_prog_cc_c89=no
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4465 #include <sys/types.h>
4466 #include <sys/stat.h>
4467 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4468 struct buf { int x; };
4469 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4470 static char *e (p, i)
4476 static char *f (char * (*g) (char **, int), char **p, ...)
4481 s = g (p, va_arg (v,int));
4486 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4487 function prototypes and stuff, but not '\xHH' hex character constants.
4488 These don't provoke an error unfortunately, instead are silently treated
4489 as 'x'. The following induces an error, until -std is added to get
4490 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4491 array size at least. It's necessary to write '\x00'==0 to get something
4492 that's true only with -std. */
4493 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4495 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4496 inside strings and character constants. */
4498 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4500 int test (int i, double x);
4501 struct s1 {int (*f) (int a);};
4502 struct s2 {int (*f) (double a);};
4503 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4509 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4514 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4515 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4517 CC="$ac_save_CC $ac_arg"
4518 if ac_fn_c_try_compile "$LINENO"; then :
4519 ac_cv_prog_cc_c89=$ac_arg
4521 rm -f core conftest.err conftest.$ac_objext
4522 test "x$ac_cv_prog_cc_c89" != "xno" && break
4524 rm -f conftest.$ac_ext
4529 case "x$ac_cv_prog_cc_c89" in
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4532 $as_echo "none needed" >&6; } ;;
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4535 $as_echo "unsupported" >&6; } ;;
4537 CC="$CC $ac_cv_prog_cc_c89"
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4539 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4541 if test "x$ac_cv_prog_cc_c89" != xno; then :
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 ac_cpp='$CXXCPP $CPPFLAGS'
4553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4556 if test -z "$CXX"; then
4557 if test -n "$CCC"; then
4560 if test -n "$ac_tool_prefix"; then
4561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4564 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_CXX+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4570 if test -n "$CXX"; then
4571 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 if test -n "$CXX"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4593 $as_echo "$CXX" >&6; }
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4600 test -n "$CXX" && break
4603 if test -z "$CXX"; then
4605 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4607 # Extract the first word of "$ac_prog", so it can be a program name with args.
4608 set dummy $ac_prog; ac_word=$2
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4610 $as_echo_n "checking for $ac_word... " >&6; }
4611 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4614 if test -n "$ac_ct_CXX"; then
4615 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_ac_ct_CXX="$ac_prog"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4635 if test -n "$ac_ct_CXX"; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4637 $as_echo "$ac_ct_CXX" >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4640 $as_echo "no" >&6; }
4644 test -n "$ac_ct_CXX" && break
4647 if test "x$ac_ct_CXX" = x; then
4650 case $cross_compiling:$ac_tool_warned in
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4654 ac_tool_warned=yes ;;
4662 # Provide some information about the compiler.
4663 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4666 for ac_option in --version -v -V -qversion; do
4667 { { ac_try="$ac_compiler $ac_option >&5"
4669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4670 *) ac_try_echo
=$ac_try;;
4672 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4673 $as_echo "$ac_try_echo"; } >&5
4674 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4676 if test -s conftest.err
; then
4678 ... rest of stderr output deleted ...
4679 10q' conftest.err
>conftest.er1
4680 cat conftest.er1
>&5
4681 rm -f conftest.er1 conftest.err
4683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4684 test $ac_status = 0; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4688 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4689 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
4692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4706 if ac_fn_cxx_try_compile
"$LINENO"; then :
4711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4712 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4716 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4717 if test $ac_compiler_gnu = yes; then
4722 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4723 ac_save_CXXFLAGS
=$CXXFLAGS
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4725 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4726 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4729 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4730 ac_cxx_werror_flag
=yes
4733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4744 if ac_fn_cxx_try_compile
"$LINENO"; then :
4745 ac_cv_prog_cxx_g
=yes
4748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4759 if ac_fn_cxx_try_compile
"$LINENO"; then :
4762 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4775 if ac_fn_cxx_try_compile
"$LINENO"; then :
4776 ac_cv_prog_cxx_g
=yes
4778 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4783 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4786 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4787 if test "$ac_test_CXXFLAGS" = set; then
4788 CXXFLAGS
=$ac_save_CXXFLAGS
4789 elif test $ac_cv_prog_cxx_g = yes; then
4790 if test "$GXX" = yes; then
4796 if test "$GXX" = yes; then
4803 ac_cpp
='$CPP $CPPFLAGS'
4804 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4805 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4806 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4811 if test -n "$ac_tool_prefix"; then
4812 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4813 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815 $as_echo_n "checking for $ac_word... " >&6; }
4816 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4819 if test -n "$GNATBIND"; then
4820 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir
=.
4827 for ac_exec_ext
in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 GNATBIND
=$ac_cv_prog_GNATBIND
4840 if test -n "$GNATBIND"; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4842 $as_echo "$GNATBIND" >&6; }
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845 $as_echo "no" >&6; }
4850 if test -z "$ac_cv_prog_GNATBIND"; then
4851 ac_ct_GNATBIND
=$GNATBIND
4852 # Extract the first word of "gnatbind", so it can be a program name with args.
4853 set dummy gnatbind
; ac_word
=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -n "$ac_ct_GNATBIND"; then
4860 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir
=.
4867 for ac_exec_ext
in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4880 if test -n "$ac_ct_GNATBIND"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4882 $as_echo "$ac_ct_GNATBIND" >&6; }
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4888 if test "x$ac_ct_GNATBIND" = x
; then
4891 case $cross_compiling:$ac_tool_warned in
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4895 ac_tool_warned
=yes ;;
4897 GNATBIND
=$ac_ct_GNATBIND
4900 GNATBIND
="$ac_cv_prog_GNATBIND"
4903 if test -n "$ac_tool_prefix"; then
4904 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4905 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4911 if test -n "$GNATMAKE"; then
4912 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir
=.
4919 for ac_exec_ext
in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 GNATMAKE
=$ac_cv_prog_GNATMAKE
4932 if test -n "$GNATMAKE"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4934 $as_echo "$GNATMAKE" >&6; }
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4942 if test -z "$ac_cv_prog_GNATMAKE"; then
4943 ac_ct_GNATMAKE
=$GNATMAKE
4944 # Extract the first word of "gnatmake", so it can be a program name with args.
4945 set dummy gnatmake
; ac_word
=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4951 if test -n "$ac_ct_GNATMAKE"; then
4952 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4958 test -z "$as_dir" && as_dir
=.
4959 for ac_exec_ext
in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4972 if test -n "$ac_ct_GNATMAKE"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4974 $as_echo "$ac_ct_GNATMAKE" >&6; }
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4980 if test "x$ac_ct_GNATMAKE" = x
; then
4983 case $cross_compiling:$ac_tool_warned in
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4987 ac_tool_warned
=yes ;;
4989 GNATMAKE
=$ac_ct_GNATMAKE
4992 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4996 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4997 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
5000 cat >conftest.adb
<<EOF
5001 procedure conftest is begin null; end conftest;
5003 acx_cv_cc_gcc_supports_ada
=no
5004 # There is a bug in old released versions of GCC which causes the
5005 # driver to exit successfully when the appropriate language module
5006 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5007 # Therefore we must check for the error message as well as an
5008 # unsuccessful exit.
5009 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5010 # given a .adb file, but produce no object file. So we must check
5011 # if an object file was really produced to guard against this.
5012 errors
=`(${CC} -I"$srcdir"/ada/libgnat -c conftest.adb) 2>&1 || echo failure`
5013 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5014 acx_cv_cc_gcc_supports_ada
=yes
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5019 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5021 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5028 # Do configure tests with the C++ compiler, since that's what we build with.
5030 ac_cpp
='$CXXCPP $CPPFLAGS'
5031 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5036 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
5037 # optimizations to be activated explicitly by the toplevel.
5039 */prev-gcc
/xgcc
*) ;;
5040 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
5041 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
5046 # Determine PICFLAG for target gnatlib.
5052 # PIC is the default on some targets or must not be used.
5054 # For darwin, common symbols are not allowed in MH_DYLIB files
5056 # If we are using a compiler supporting mdynamic-no-pic
5057 # and the option has been tested as safe to add, then cancel
5058 # it here, since the code generated is incompatible with shared
5060 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5061 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5065 # PIC is the default.
5068 # PIC is the default for 64-bit PA HP-UX.
5070 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5072 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5074 i
[34567]86-*-interix[3-9]*)
5075 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5076 # Instead, we relocate shared libraries at runtime.
5078 i
[34567]86-*-nto-qnx*)
5079 # QNX uses GNU C++, but need to define -shared option too, otherwise
5081 PICFLAG_FOR_TARGET
='-fPIC -shared'
5083 i
[34567]86-pc-msdosdjgpp*)
5084 # DJGPP does not support shared libraries at all.
5087 # On IA64 HP-UX, PIC is the default but the pic flag
5088 # sets the default TLS model and affects inlining.
5089 PICFLAG_FOR_TARGET
=-fPIC
5092 # PIC is the default.
5094 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5095 # All AIX code is PIC.
5098 # Some targets support both -fPIC and -fpic, but prefer the latter.
5100 i
[34567]86-*-* | x86_64-
*-*)
5101 PICFLAG_FOR_TARGET
=-fpic
5103 # FIXME: Override -fPIC default in libgcc only?
5104 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5105 PICFLAG_FOR_TARGET
=-fpic
5107 # FIXME: Simplify to sh*-*-netbsd*?
5108 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5109 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5110 PICFLAG_FOR_TARGET
=-fpic
5112 # Default to -fPIC unless specified otherwise.
5114 PICFLAG_FOR_TARGET
=-fPIC
5118 # If the user explicitly uses -fpic/-fPIC, keep that.
5119 case "${CFLAGS_FOR_TARGET}" in
5121 PICFLAG_FOR_TARGET
=-fpic
5124 PICFLAG_FOR_TARGET
=-fPIC
5130 # -------------------------
5131 # Check C compiler features
5132 # -------------------------
5136 ac_cpp
='$CXXCPP $CPPFLAGS'
5137 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5141 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5142 if test -z "$CXXCPP"; then
5143 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5144 $as_echo_n "(cached) " >&6
5146 # Double quotes because CXXCPP needs to be expanded
5147 for CXXCPP
in "$CXX -E" "/lib/cpp"
5150 for ac_cxx_preproc_warn_flag
in '' yes
5152 # Use a header file that comes with gcc, so configuring glibc
5153 # with a fresh cross-compiler works.
5154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5155 # <limits.h> exists even on freestanding compilers.
5156 # On the NeXT, cc -E runs the code through the compiler's parser,
5157 # not just through cpp. "Syntax error" is here to catch this case.
5158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5161 # include <limits.h>
5163 # include <assert.h>
5167 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5170 # Broken: fails on valid input.
5173 rm -f conftest.err conftest.
$ac_ext
5175 # OK, works on sane cases. Now check whether nonexistent headers
5176 # can be detected and how.
5177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <ac_nonexistent.h>
5181 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5182 # Broken: success on invalid input.
5185 # Passes both tests.
5189 rm -f conftest.err conftest.
$ac_ext
5192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5193 rm -f conftest.err conftest.
$ac_ext
5194 if $ac_preproc_ok; then :
5199 ac_cv_prog_CXXCPP
=$CXXCPP
5202 CXXCPP
=$ac_cv_prog_CXXCPP
5204 ac_cv_prog_CXXCPP
=$CXXCPP
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5207 $as_echo "$CXXCPP" >&6; }
5209 for ac_cxx_preproc_warn_flag
in '' yes
5211 # Use a header file that comes with gcc, so configuring glibc
5212 # with a fresh cross-compiler works.
5213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 # <limits.h> exists even on freestanding compilers.
5215 # On the NeXT, cc -E runs the code through the compiler's parser,
5216 # not just through cpp. "Syntax error" is here to catch this case.
5217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5220 # include <limits.h>
5222 # include <assert.h>
5226 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5229 # Broken: fails on valid input.
5232 rm -f conftest.err conftest.
$ac_ext
5234 # OK, works on sane cases. Now check whether nonexistent headers
5235 # can be detected and how.
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5238 #include <ac_nonexistent.h>
5240 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5241 # Broken: success on invalid input.
5244 # Passes both tests.
5248 rm -f conftest.err conftest.
$ac_ext
5251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5252 rm -f conftest.err conftest.
$ac_ext
5253 if $ac_preproc_ok; then :
5256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5258 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5259 See \`config.log' for more details." "$LINENO" 5; }
5263 ac_cpp
='$CXXCPP $CPPFLAGS'
5264 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5270 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5271 if test "${ac_cv_path_GREP+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
5274 if test -z "$GREP"; then
5275 ac_path_GREP_found
=false
5276 # Loop through the user's path and test for each of PROGNAME-LIST
5277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5278 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5281 test -z "$as_dir" && as_dir
=.
5282 for ac_prog
in grep ggrep
; do
5283 for ac_exec_ext
in '' $ac_executable_extensions; do
5284 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5285 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5286 # Check for GNU ac_path_GREP and select it if it is found.
5287 # Check for GNU $ac_path_GREP
5288 case `"$ac_path_GREP" --version 2>&1` in
5290 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5293 $as_echo_n 0123456789 >"conftest.in"
5296 cat "conftest.in" "conftest.in" >"conftest.tmp"
5297 mv "conftest.tmp" "conftest.in"
5298 cp "conftest.in" "conftest.nl"
5299 $as_echo 'GREP' >> "conftest.nl"
5300 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5301 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5302 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5303 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5304 # Best one so far, save it but keep looking for a better one
5305 ac_cv_path_GREP
="$ac_path_GREP"
5306 ac_path_GREP_max
=$ac_count
5308 # 10*(2^10) chars as input seems more than enough
5309 test $ac_count -gt 10 && break
5311 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5314 $ac_path_GREP_found && break 3
5319 if test -z "$ac_cv_path_GREP"; then
5320 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5323 ac_cv_path_GREP
=$GREP
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5328 $as_echo "$ac_cv_path_GREP" >&6; }
5329 GREP
="$ac_cv_path_GREP"
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5333 $as_echo_n "checking for egrep... " >&6; }
5334 if test "${ac_cv_path_EGREP+set}" = set; then :
5335 $as_echo_n "(cached) " >&6
5337 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5338 then ac_cv_path_EGREP
="$GREP -E"
5340 if test -z "$EGREP"; then
5341 ac_path_EGREP_found
=false
5342 # Loop through the user's path and test for each of PROGNAME-LIST
5343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5344 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5347 test -z "$as_dir" && as_dir
=.
5348 for ac_prog
in egrep; do
5349 for ac_exec_ext
in '' $ac_executable_extensions; do
5350 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5351 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5352 # Check for GNU ac_path_EGREP and select it if it is found.
5353 # Check for GNU $ac_path_EGREP
5354 case `"$ac_path_EGREP" --version 2>&1` in
5356 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5359 $as_echo_n 0123456789 >"conftest.in"
5362 cat "conftest.in" "conftest.in" >"conftest.tmp"
5363 mv "conftest.tmp" "conftest.in"
5364 cp "conftest.in" "conftest.nl"
5365 $as_echo 'EGREP' >> "conftest.nl"
5366 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5367 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5368 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5369 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5370 # Best one so far, save it but keep looking for a better one
5371 ac_cv_path_EGREP
="$ac_path_EGREP"
5372 ac_path_EGREP_max
=$ac_count
5374 # 10*(2^10) chars as input seems more than enough
5375 test $ac_count -gt 10 && break
5377 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5380 $ac_path_EGREP_found && break 3
5385 if test -z "$ac_cv_path_EGREP"; then
5386 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5389 ac_cv_path_EGREP
=$EGREP
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5395 $as_echo "$ac_cv_path_EGREP" >&6; }
5396 EGREP
="$ac_cv_path_EGREP"
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5400 $as_echo_n "checking for ANSI C header files... " >&6; }
5401 if test "${ac_cv_header_stdc+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5405 /* end confdefs.h. */
5419 if ac_fn_cxx_try_compile
"$LINENO"; then :
5420 ac_cv_header_stdc
=yes
5422 ac_cv_header_stdc
=no
5424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5426 if test $ac_cv_header_stdc = yes; then
5427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5428 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 $EGREP "memchr" >/dev
/null
2>&1; then :
5437 ac_cv_header_stdc
=no
5443 if test $ac_cv_header_stdc = yes; then
5444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5451 $EGREP "free" >/dev
/null
2>&1; then :
5454 ac_cv_header_stdc
=no
5460 if test $ac_cv_header_stdc = yes; then
5461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5462 if test "$cross_compiling" = yes; then :
5465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5469 #if ((' ' & 0x0FF) == 0x020)
5470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5473 # define ISLOWER(c) \
5474 (('a' <= (c) && (c) <= 'i') \
5475 || ('j' <= (c) && (c) <= 'r') \
5476 || ('s' <= (c) && (c) <= 'z'))
5477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5485 for (i = 0; i < 256; i++)
5486 if (XOR (islower (i), ISLOWER (i))
5487 || toupper (i) != TOUPPER (i))
5492 if ac_fn_cxx_try_run
"$LINENO"; then :
5495 ac_cv_header_stdc
=no
5497 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5498 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5504 $as_echo "$ac_cv_header_stdc" >&6; }
5505 if test $ac_cv_header_stdc = yes; then
5507 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5511 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5512 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5513 inttypes.h stdint.h unistd.h
5515 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5516 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5518 eval as_val
=\$
$as_ac_Header
5519 if test "x$as_val" = x
""yes; then :
5520 cat >>confdefs.h
<<_ACEOF
5521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5530 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5531 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5538 if test "$MINIX" = yes; then
5540 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5543 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5546 $as_echo "#define _MINIX 1" >>confdefs.h
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5552 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5553 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5559 # define __EXTENSIONS__ 1
5560 $ac_includes_default
5569 if ac_fn_cxx_try_compile
"$LINENO"; then :
5570 ac_cv_safe_to_define___extensions__
=yes
5572 ac_cv_safe_to_define___extensions__
=no
5574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5577 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5578 test $ac_cv_safe_to_define___extensions__ = yes &&
5579 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5581 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5583 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5585 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5587 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5591 ac_cpp
='$CPP $CPPFLAGS'
5592 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5596 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5597 # On Suns, sometimes $CPP names a directory.
5598 if test -n "$CPP" && test -d "$CPP"; then
5601 if test -z "$CPP"; then
5602 if test "${ac_cv_prog_CPP+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5605 # Double quotes because CPP needs to be expanded
5606 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5609 for ac_c_preproc_warn_flag
in '' yes
5611 # Use a header file that comes with gcc, so configuring glibc
5612 # with a fresh cross-compiler works.
5613 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5614 # <limits.h> exists even on freestanding compilers.
5615 # On the NeXT, cc -E runs the code through the compiler's parser,
5616 # not just through cpp. "Syntax error" is here to catch this case.
5617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5620 # include <limits.h>
5622 # include <assert.h>
5626 if ac_fn_c_try_cpp
"$LINENO"; then :
5629 # Broken: fails on valid input.
5632 rm -f conftest.err conftest.
$ac_ext
5634 # OK, works on sane cases. Now check whether nonexistent headers
5635 # can be detected and how.
5636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 #include <ac_nonexistent.h>
5640 if ac_fn_c_try_cpp
"$LINENO"; then :
5641 # Broken: success on invalid input.
5644 # Passes both tests.
5648 rm -f conftest.err conftest.
$ac_ext
5651 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5652 rm -f conftest.err conftest.
$ac_ext
5653 if $ac_preproc_ok; then :
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5666 $as_echo "$CPP" >&6; }
5668 for ac_c_preproc_warn_flag
in '' yes
5670 # Use a header file that comes with gcc, so configuring glibc
5671 # with a fresh cross-compiler works.
5672 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5673 # <limits.h> exists even on freestanding compilers.
5674 # On the NeXT, cc -E runs the code through the compiler's parser,
5675 # not just through cpp. "Syntax error" is here to catch this case.
5676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5677 /* end confdefs.h. */
5679 # include <limits.h>
5681 # include <assert.h>
5685 if ac_fn_c_try_cpp
"$LINENO"; then :
5688 # Broken: fails on valid input.
5691 rm -f conftest.err conftest.
$ac_ext
5693 # OK, works on sane cases. Now check whether nonexistent headers
5694 # can be detected and how.
5695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <ac_nonexistent.h>
5699 if ac_fn_c_try_cpp
"$LINENO"; then :
5700 # Broken: success on invalid input.
5703 # Passes both tests.
5707 rm -f conftest.err conftest.
$ac_ext
5710 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5711 rm -f conftest.err conftest.
$ac_ext
5712 if $ac_preproc_ok; then :
5715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5717 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5718 See \`config.log' for more details." "$LINENO" 5; }
5722 ac_cpp
='$CXXCPP $CPPFLAGS'
5723 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5724 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5725 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5728 $as_echo_n "checking for inline... " >&6; }
5729 if test "${ac_cv_c_inline+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5733 for ac_kw
in inline __inline__ __inline
; do
5734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5738 static $ac_kw foo_t static_foo () {return 0; }
5739 $ac_kw foo_t foo () {return 0; }
5743 if ac_fn_cxx_try_compile
"$LINENO"; then :
5744 ac_cv_c_inline
=$ac_kw
5746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5747 test "$ac_cv_c_inline" != no
&& break
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5752 $as_echo "$ac_cv_c_inline" >&6; }
5754 case $ac_cv_c_inline in
5757 case $ac_cv_c_inline in
5759 *) ac_val
=$ac_cv_c_inline;;
5761 cat >>confdefs.h
<<_ACEOF
5763 #define inline $ac_val
5770 # Check whether --enable-largefile was given.
5771 if test "${enable_largefile+set}" = set; then :
5772 enableval
=$enable_largefile;
5775 if test "$enable_largefile" != no
; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5778 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5779 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
5782 ac_cv_sys_largefile_CC
=no
5783 if test "$GCC" != yes; then
5786 # IRIX 6.2 and later do not support large files by default,
5787 # so use the C compiler's -n32 option if that helps.
5788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5790 #include <sys/types.h>
5791 /* Check that off_t can represent 2**63 - 1 correctly.
5792 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5793 since some C++ compilers masquerading as C compilers
5794 incorrectly reject 9223372036854775807. */
5795 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5796 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5797 && LARGE_OFF_T % 2147483647 == 1)
5807 if ac_fn_cxx_try_compile
"$LINENO"; then :
5810 rm -f core conftest.err conftest.
$ac_objext
5812 if ac_fn_cxx_try_compile
"$LINENO"; then :
5813 ac_cv_sys_largefile_CC
=' -n32'; break
5815 rm -f core conftest.err conftest.
$ac_objext
5819 rm -f conftest.
$ac_ext
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5823 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5824 if test "$ac_cv_sys_largefile_CC" != no
; then
5825 CC
=$CC$ac_cv_sys_largefile_CC
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5829 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5830 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5831 $as_echo_n "(cached) " >&6
5834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include <sys/types.h>
5837 /* Check that off_t can represent 2**63 - 1 correctly.
5838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5839 since some C++ compilers masquerading as C compilers
5840 incorrectly reject 9223372036854775807. */
5841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5843 && LARGE_OFF_T % 2147483647 == 1)
5853 if ac_fn_cxx_try_compile
"$LINENO"; then :
5854 ac_cv_sys_file_offset_bits
=no
; break
5856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #define _FILE_OFFSET_BITS 64
5860 #include <sys/types.h>
5861 /* Check that off_t can represent 2**63 - 1 correctly.
5862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5863 since some C++ compilers masquerading as C compilers
5864 incorrectly reject 9223372036854775807. */
5865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5867 && LARGE_OFF_T % 2147483647 == 1)
5877 if ac_fn_cxx_try_compile
"$LINENO"; then :
5878 ac_cv_sys_file_offset_bits
=64; break
5880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5881 ac_cv_sys_file_offset_bits
=unknown
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5886 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5887 case $ac_cv_sys_file_offset_bits in #(
5890 cat >>confdefs.h
<<_ACEOF
5891 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5896 if test $ac_cv_sys_file_offset_bits = unknown
; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5898 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5899 if test "${ac_cv_sys_large_files+set}" = set; then :
5900 $as_echo_n "(cached) " >&6
5903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 #include <sys/types.h>
5906 /* Check that off_t can represent 2**63 - 1 correctly.
5907 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5908 since some C++ compilers masquerading as C compilers
5909 incorrectly reject 9223372036854775807. */
5910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5911 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5912 && LARGE_OFF_T % 2147483647 == 1)
5922 if ac_fn_cxx_try_compile
"$LINENO"; then :
5923 ac_cv_sys_large_files
=no
; break
5925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 #define _LARGE_FILES 1
5929 #include <sys/types.h>
5930 /* Check that off_t can represent 2**63 - 1 correctly.
5931 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5932 since some C++ compilers masquerading as C compilers
5933 incorrectly reject 9223372036854775807. */
5934 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5935 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5936 && LARGE_OFF_T % 2147483647 == 1)
5946 if ac_fn_cxx_try_compile
"$LINENO"; then :
5947 ac_cv_sys_large_files
=1; break
5949 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5950 ac_cv_sys_large_files
=unknown
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5955 $as_echo "$ac_cv_sys_large_files" >&6; }
5956 case $ac_cv_sys_large_files in #(
5959 cat >>confdefs.h
<<_ACEOF
5960 #define _LARGE_FILES $ac_cv_sys_large_files
5969 # sizeof(char) is 1 by definition.
5970 # The cast to long int works around a bug in the HP C Compiler
5971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5973 # This bug is HP SR number 8606223364.
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5975 $as_echo_n "checking size of void *... " >&6; }
5976 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5979 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5982 if test "$ac_cv_type_void_p" = yes; then
5983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5985 { as_fn_set_status
77
5986 as_fn_error
"cannot compute sizeof (void *)
5987 See \`config.log' for more details." "$LINENO" 5; }; }
5989 ac_cv_sizeof_void_p
=0
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5995 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5999 cat >>confdefs.h
<<_ACEOF
6000 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6004 # The cast to long int works around a bug in the HP C Compiler
6005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6007 # This bug is HP SR number 8606223364.
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
6009 $as_echo_n "checking size of short... " >&6; }
6010 if test "${ac_cv_sizeof_short+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6013 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
6016 if test "$ac_cv_type_short" = yes; then
6017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6019 { as_fn_set_status
77
6020 as_fn_error
"cannot compute sizeof (short)
6021 See \`config.log' for more details." "$LINENO" 5; }; }
6023 ac_cv_sizeof_short
=0
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
6029 $as_echo "$ac_cv_sizeof_short" >&6; }
6033 cat >>confdefs.h
<<_ACEOF
6034 #define SIZEOF_SHORT $ac_cv_sizeof_short
6038 # The cast to long int works around a bug in the HP C Compiler
6039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6041 # This bug is HP SR number 8606223364.
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
6043 $as_echo_n "checking size of int... " >&6; }
6044 if test "${ac_cv_sizeof_int+set}" = set; then :
6045 $as_echo_n "(cached) " >&6
6047 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6050 if test "$ac_cv_type_int" = yes; then
6051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6053 { as_fn_set_status
77
6054 as_fn_error
"cannot compute sizeof (int)
6055 See \`config.log' for more details." "$LINENO" 5; }; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6063 $as_echo "$ac_cv_sizeof_int" >&6; }
6067 cat >>confdefs.h
<<_ACEOF
6068 #define SIZEOF_INT $ac_cv_sizeof_int
6072 # The cast to long int works around a bug in the HP C Compiler
6073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6075 # This bug is HP SR number 8606223364.
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6077 $as_echo_n "checking size of long... " >&6; }
6078 if test "${ac_cv_sizeof_long+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6081 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6084 if test "$ac_cv_type_long" = yes; then
6085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6087 { as_fn_set_status
77
6088 as_fn_error
"cannot compute sizeof (long)
6089 See \`config.log' for more details." "$LINENO" 5; }; }
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6097 $as_echo "$ac_cv_sizeof_long" >&6; }
6101 cat >>confdefs.h
<<_ACEOF
6102 #define SIZEOF_LONG $ac_cv_sizeof_long
6106 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6107 if test "x$ac_cv_type_long_long" = x
""yes; then :
6109 cat >>confdefs.h
<<_ACEOF
6110 #define HAVE_LONG_LONG 1
6113 # The cast to long int works around a bug in the HP C Compiler
6114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6116 # This bug is HP SR number 8606223364.
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6118 $as_echo_n "checking size of long long... " >&6; }
6119 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6122 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6125 if test "$ac_cv_type_long_long" = yes; then
6126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6128 { as_fn_set_status
77
6129 as_fn_error
"cannot compute sizeof (long long)
6130 See \`config.log' for more details." "$LINENO" 5; }; }
6132 ac_cv_sizeof_long_long
=0
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6138 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6142 cat >>confdefs.h
<<_ACEOF
6143 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6149 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6150 case $ac_cv_c_int8_t in #(
6154 cat >>confdefs.h
<<_ACEOF
6155 #define int8_t $ac_cv_c_int8_t
6160 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6161 case $ac_cv_c_int16_t in #(
6165 cat >>confdefs.h
<<_ACEOF
6166 #define int16_t $ac_cv_c_int16_t
6171 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6172 case $ac_cv_c_int32_t in #(
6176 cat >>confdefs.h
<<_ACEOF
6177 #define int32_t $ac_cv_c_int32_t
6182 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6183 case $ac_cv_c_int64_t in #(
6187 cat >>confdefs.h
<<_ACEOF
6188 #define int64_t $ac_cv_c_int64_t
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6195 $as_echo_n "checking for long long int... " >&6; }
6196 if test "${ac_cv_type_long_long_int+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6202 /* For now, do not test the preprocessor; as of 2007 there are too many
6203 implementations with broken preprocessors. Perhaps this can
6204 be revisited in 2012. In the meantime, code should not expect
6205 #if to work with literals wider than 32 bits. */
6206 /* Test literals. */
6207 long long int ll = 9223372036854775807ll;
6208 long long int nll = -9223372036854775807LL;
6209 unsigned long long int ull = 18446744073709551615ULL;
6210 /* Test constant expressions. */
6211 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6213 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6219 /* Test availability of runtime routines for shift and division. */
6220 long long int llmax = 9223372036854775807ll;
6221 unsigned long long int ullmax = 18446744073709551615ull;
6222 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6223 | (llmax / ll) | (llmax % ll)
6224 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6225 | (ullmax / ull) | (ullmax % ull));
6231 if ac_fn_cxx_try_link
"$LINENO"; then :
6232 if test "$cross_compiling" = yes; then :
6233 ac_cv_type_long_long_int
=yes
6235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6240 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6241 # define LLONG_MAX (HALF - 1 + HALF)
6246 long long int n = 1;
6250 long long int m = n << i;
6253 if (LLONG_MAX / 2 < m)
6261 if ac_fn_cxx_try_run
"$LINENO"; then :
6262 ac_cv_type_long_long_int
=yes
6264 ac_cv_type_long_long_int
=no
6266 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6267 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6271 ac_cv_type_long_long_int
=no
6273 rm -f core conftest.err conftest.
$ac_objext \
6274 conftest
$ac_exeext conftest.
$ac_ext
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6277 $as_echo "$ac_cv_type_long_long_int" >&6; }
6278 if test $ac_cv_type_long_long_int = yes; then
6280 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6286 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6287 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6289 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6292 test $ac_cv_type_long_long_int = yes \
6293 && ac_type
='long long int' \
6294 || ac_type
='long int'
6296 cat >>confdefs.h
<<_ACEOF
6297 #define intmax_t $ac_type
6304 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6305 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6307 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6310 for ac_type
in 'int' 'long int' 'long long int'; do
6311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6313 $ac_includes_default
6317 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6324 if ac_fn_cxx_try_compile
"$LINENO"; then :
6326 cat >>confdefs.h
<<_ACEOF
6327 #define intptr_t $ac_type
6332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6333 test -z "$ac_type" && break
6338 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6339 case $ac_cv_c_uint8_t in #(
6343 $as_echo "#define _UINT8_T 1" >>confdefs.h
6346 cat >>confdefs.h
<<_ACEOF
6347 #define uint8_t $ac_cv_c_uint8_t
6352 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6353 case $ac_cv_c_uint16_t in #(
6358 cat >>confdefs.h
<<_ACEOF
6359 #define uint16_t $ac_cv_c_uint16_t
6364 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6365 case $ac_cv_c_uint32_t in #(
6369 $as_echo "#define _UINT32_T 1" >>confdefs.h
6372 cat >>confdefs.h
<<_ACEOF
6373 #define uint32_t $ac_cv_c_uint32_t
6378 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6379 case $ac_cv_c_uint64_t in #(
6383 $as_echo "#define _UINT64_T 1" >>confdefs.h
6386 cat >>confdefs.h
<<_ACEOF
6387 #define uint64_t $ac_cv_c_uint64_t
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6394 $as_echo_n "checking for unsigned long long int... " >&6; }
6395 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6396 $as_echo_n "(cached) " >&6
6398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6401 /* For now, do not test the preprocessor; as of 2007 there are too many
6402 implementations with broken preprocessors. Perhaps this can
6403 be revisited in 2012. In the meantime, code should not expect
6404 #if to work with literals wider than 32 bits. */
6405 /* Test literals. */
6406 long long int ll = 9223372036854775807ll;
6407 long long int nll = -9223372036854775807LL;
6408 unsigned long long int ull = 18446744073709551615ULL;
6409 /* Test constant expressions. */
6410 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6412 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6418 /* Test availability of runtime routines for shift and division. */
6419 long long int llmax = 9223372036854775807ll;
6420 unsigned long long int ullmax = 18446744073709551615ull;
6421 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6422 | (llmax / ll) | (llmax % ll)
6423 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6424 | (ullmax / ull) | (ullmax % ull));
6430 if ac_fn_cxx_try_link
"$LINENO"; then :
6431 ac_cv_type_unsigned_long_long_int
=yes
6433 ac_cv_type_unsigned_long_long_int
=no
6435 rm -f core conftest.err conftest.
$ac_objext \
6436 conftest
$ac_exeext conftest.
$ac_ext
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6439 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6440 if test $ac_cv_type_unsigned_long_long_int = yes; then
6442 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6448 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6449 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6451 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6454 test $ac_cv_type_unsigned_long_long_int = yes \
6455 && ac_type
='unsigned long long int' \
6456 || ac_type
='unsigned long int'
6458 cat >>confdefs.h
<<_ACEOF
6459 #define uintmax_t $ac_type
6466 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6467 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6469 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6472 for ac_type
in 'unsigned int' 'unsigned long int' \
6473 'unsigned long long int'; do
6474 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 $ac_includes_default
6480 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6487 if ac_fn_cxx_try_compile
"$LINENO"; then :
6489 cat >>confdefs.h
<<_ACEOF
6490 #define uintptr_t $ac_type
6495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6496 test -z "$ac_type" && break
6513 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6514 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6517 # check what underlying integer type int64_t uses
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6519 $as_echo_n "checking for int64_t underlying type... " >&6; }
6520 if test "${ac_cv_int64_t_type+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6527 #ifdef HAVE_STDINT_H
6530 template <typename T> struct X { };
6532 struct X<long> { typedef long t; };
6542 if ac_fn_cxx_try_compile
"$LINENO"; then :
6543 ac_cv_int64_t_type
=long
6545 ac_cv_int64_t_type
="long long"
6547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6550 $as_echo "$ac_cv_int64_t_type" >&6; }
6551 if test "$ac_cv_int64_t_type" = "long"; then
6553 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6559 #ifdef HAVE_STDINT_H
6562 template <typename T> struct X { };
6564 struct X<long long> { typedef long long t; };
6574 if ac_fn_cxx_try_compile
"$LINENO"; then :
6577 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::swap in <utility>" >&5
6583 $as_echo_n "checking for std::swap in <utility>... " >&6; }
6584 if test "${ac_cv_std_swap_in_utility+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6589 /* end confdefs.h. */
6596 int a, b; std::swap(a,b);
6601 if ac_fn_cxx_try_compile
"$LINENO"; then :
6602 ac_cv_std_swap_in_utility
=yes
6604 ac_cv_std_swap_in_utility
=no
6606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_std_swap_in_utility" >&5
6609 $as_echo "$ac_cv_std_swap_in_utility" >&6; }
6610 if test $ac_cv_std_swap_in_utility = yes; then
6612 $as_echo "#define HAVE_SWAP_IN_UTILITY 1" >>confdefs.h
6616 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6617 # If the host compiler is affected by the bug, and we build with optimization
6618 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6619 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6620 # Since there is no reliable feature check for the presence of this bug,
6621 # we simply use a GCC version number check. (This should never trigger for
6622 # stages 2 or 3 of a native bootstrap.)
6624 if test "$GCC" = yes; then
6625 saved_CXXFLAGS
="$CXXFLAGS"
6627 # The following test compilation will succeed if and only if $CXX accepts
6628 # -fno-strict-aliasing *and* is older than GCC 4.3.
6629 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6631 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6635 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6636 #error compiler not affected by placement new aliasing bug
6640 if ac_fn_cxx_try_compile
"$LINENO"; then :
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6642 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6649 CXXFLAGS
="$saved_CXXFLAGS"
6655 # ---------------------
6656 # Warnings and checking
6657 # ---------------------
6659 # Check $CC warning features (if it's GCC).
6660 # We want to use -pedantic, but we don't want warnings about
6663 # * overlong strings
6664 # * C++11 narrowing conversions in { }
6665 # So, we only use -pedantic if we can disable those warnings.
6667 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6668 # Check whether --enable-build-format-warnings was given.
6669 if test "${enable_build_format_warnings+set}" = set; then :
6670 enableval
=$enable_build_format_warnings;
6672 enable_build_format_warnings
=yes
6675 if test $enable_build_format_warnings = no
; then :
6681 ac_cpp
='$CXXCPP $CPPFLAGS'
6682 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6683 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6684 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6687 save_CXXFLAGS
="$CXXFLAGS"
6688 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6689 # Do the check with the no- prefix removed since gcc silently
6690 # accepts any -Wno-* option on purpose
6691 case $real_option in
6692 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6693 *) option
=$real_option ;;
6695 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6698 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6699 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6700 $as_echo_n "(cached) " >&6
6703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6714 if ac_fn_cxx_try_compile
"$LINENO"; then :
6715 eval "$as_acx_Woption=yes"
6717 eval "$as_acx_Woption=no"
6719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6722 eval ac_res
=\$
$as_acx_Woption
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6724 $as_echo "$ac_res" >&6; }
6725 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6726 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6729 CXXFLAGS
="$save_CXXFLAGS"
6731 ac_cpp
='$CXXCPP $CPPFLAGS'
6732 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6733 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6734 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6739 ac_cpp
='$CPP $CPPFLAGS'
6740 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6745 save_CFLAGS
="$CFLAGS"
6746 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6747 # Do the check with the no- prefix removed since gcc silently
6748 # accepts any -Wno-* option on purpose
6749 case $real_option in
6750 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6751 *) option
=$real_option ;;
6753 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6756 $as_echo_n "checking whether $CC supports $option... " >&6; }
6757 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6758 $as_echo_n "(cached) " >&6
6761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6772 if ac_fn_c_try_compile
"$LINENO"; then :
6773 eval "$as_acx_Woption=yes"
6775 eval "$as_acx_Woption=no"
6777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6780 eval ac_res
=\$
$as_acx_Woption
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6782 $as_echo "$ac_res" >&6; }
6783 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6784 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6787 CFLAGS
="$save_CFLAGS"
6789 ac_cpp
='$CXXCPP $CPPFLAGS'
6790 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6796 ac_cpp
='$CXXCPP $CPPFLAGS'
6797 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6798 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6799 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6802 save_CXXFLAGS
="$CXXFLAGS"
6803 for real_option
in -Wmissing-format-attribute -Woverloaded-virtual; do
6804 # Do the check with the no- prefix removed since gcc silently
6805 # accepts any -Wno-* option on purpose
6806 case $real_option in
6807 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6808 *) option
=$real_option ;;
6810 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6813 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6814 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6815 $as_echo_n "(cached) " >&6
6818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6829 if ac_fn_cxx_try_compile
"$LINENO"; then :
6830 eval "$as_acx_Woption=yes"
6832 eval "$as_acx_Woption=no"
6834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6837 eval ac_res
=\$
$as_acx_Woption
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6839 $as_echo "$ac_res" >&6; }
6840 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6841 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6844 CXXFLAGS
="$save_CXXFLAGS"
6846 ac_cpp
='$CXXCPP $CPPFLAGS'
6847 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6848 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6849 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6853 ac_cpp
='$CPP $CPPFLAGS'
6854 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6855 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6856 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6859 save_CFLAGS
="$CFLAGS"
6860 for real_option
in -Wold-style-definition -Wc++-compat; do
6861 # Do the check with the no- prefix removed since gcc silently
6862 # accepts any -Wno-* option on purpose
6863 case $real_option in
6864 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6865 *) option
=$real_option ;;
6867 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6870 $as_echo_n "checking whether $CC supports $option... " >&6; }
6871 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6872 $as_echo_n "(cached) " >&6
6875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6886 if ac_fn_c_try_compile
"$LINENO"; then :
6887 eval "$as_acx_Woption=yes"
6889 eval "$as_acx_Woption=no"
6891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6894 eval ac_res
=\$
$as_acx_Woption
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6896 $as_echo "$ac_res" >&6; }
6897 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6898 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6901 CFLAGS
="$save_CFLAGS"
6903 ac_cpp
='$CXXCPP $CPPFLAGS'
6904 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6910 ac_cpp
='$CXXCPP $CPPFLAGS'
6911 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6912 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6913 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6915 # Do the check with the no- prefix removed from the warning options
6916 # since gcc silently accepts any -Wno-* option on purpose
6917 if test "$GXX" = yes; then :
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6919 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6920 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6923 save_CXXFLAGS
="$CXXFLAGS"
6924 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6936 if ac_fn_cxx_try_compile
"$LINENO"; then :
6937 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6939 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6941 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6942 CXXFLAGS
="$save_CXXFLAGS"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6945 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6946 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6947 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6952 ac_cpp
='$CXXCPP $CPPFLAGS'
6953 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6959 ac_cpp
='$CXXCPP $CPPFLAGS'
6960 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6964 # Check whether --enable-werror-always was given.
6965 if test "${enable_werror_always+set}" = set; then :
6966 enableval
=$enable_werror_always;
6968 enable_werror_always
=no
6971 if test $enable_werror_always = yes; then :
6972 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6976 ac_cpp
='$CXXCPP $CPPFLAGS'
6977 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6983 # The above macros do nothing if the compiler is not GCC. However, the
6984 # Makefile has more goo to add other flags, so these variables are used
6985 # to enable warnings only for GCC.
6988 if test "x$GCC" = "xyes"; then
6989 warn_cflags
='$(GCC_WARN_CFLAGS)'
6990 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6995 # Disable exceptions and RTTI if building with g++
6997 ac_cpp
='$CPP $CPPFLAGS'
6998 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7003 save_CFLAGS
="$CFLAGS"
7004 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
7005 # Do the check with the no- prefix removed since gcc silently
7006 # accepts any -Wno-* option on purpose
7007 case $real_option in
7008 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
7009 *) option
=$real_option ;;
7011 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
7014 $as_echo_n "checking whether $CC supports $option... " >&6; }
7015 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
7016 $as_echo_n "(cached) " >&6
7019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7030 if ac_fn_c_try_compile
"$LINENO"; then :
7031 eval "$as_acx_Woption=yes"
7033 eval "$as_acx_Woption=no"
7035 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7038 eval ac_res
=\$
$as_acx_Woption
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7040 $as_echo "$ac_res" >&6; }
7041 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7042 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7045 CFLAGS
="$save_CFLAGS"
7047 ac_cpp
='$CXXCPP $CPPFLAGS'
7048 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7054 # Enable expensive internal checks
7056 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7060 # Check whether --enable-checking was given.
7061 if test "${enable_checking+set}" = set; then :
7062 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7065 # Determine the default checks.
7066 if test x
$is_release = x
; then
7067 ac_checking_flags
=yes,extra
7069 ac_checking_flags
=release
7073 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7074 for check
in release
$ac_checking_flags
7077 # these set all the flags to specific states
7078 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7079 ac_fold_checking
= ; ac_gc_checking
=1 ; ac_extra_checking
= ;
7080 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7081 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7082 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7083 ac_types_checking
=1 ;;
7084 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7085 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7086 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7087 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7088 ac_tree_checking
= ; ac_valgrind_checking
= ;
7089 ac_types_checking
= ;;
7090 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7091 ac_fold_checking
=1 ; ac_gc_checking
=1 ; ac_extra_checking
=1 ;
7092 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7093 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7094 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7095 ac_types_checking
=1 ;;
7096 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7097 ac_fold_checking
= ; ac_gc_checking
= ; ac_extra_checking
= ;
7098 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7099 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7100 ac_tree_checking
= ; ac_valgrind_checking
= ;
7101 ac_types_checking
= ;;
7102 # these enable particular checks
7103 assert
) ac_assert_checking
=1 ;;
7104 df
) ac_df_checking
=1 ;;
7105 extra
) ac_extra_checking
=1 ;;
7106 fold) ac_fold_checking
=1 ;;
7107 gc
) ac_gc_checking
=1 ;;
7108 gcac
) ac_gc_always_collect
=1 ;;
7109 gimple
) ac_gimple_checking
=1 ;;
7110 misc
) ac_checking
=1 ;;
7111 rtl
) ac_rtl_checking
=1 ;;
7112 rtlflag
) ac_rtlflag_checking
=1 ;;
7113 runtime
) ac_runtime_checking
=1 ;;
7114 tree
) ac_tree_checking
=1 ;;
7115 types
) ac_types_checking
=1 ;;
7116 valgrind
) ac_valgrind_checking
=1 ;;
7117 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7123 if test x
$ac_checking != x
; then
7125 $as_echo "#define CHECKING_P 1" >>confdefs.h
7127 nocommon_flag
=-fno-common
7129 $as_echo "#define CHECKING_P 0" >>confdefs.h
7133 if test x
$ac_extra_checking != x
; then
7135 $as_echo "#define ENABLE_EXTRA_CHECKING 1" >>confdefs.h
7138 $as_echo "#define ENABLE_EXTRA_CHECKING 0" >>confdefs.h
7141 if test x
$ac_df_checking != x
; then
7143 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7146 if test x
$ac_assert_checking != x
; then
7148 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7151 if test x
$ac_gimple_checking != x
; then
7153 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7157 if test x
$ac_runtime_checking != x
; then
7159 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7162 if test x
$ac_tree_checking != x
; then
7164 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7168 if test x
$ac_types_checking != x
; then
7170 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7174 if test x
$ac_rtl_checking != x
; then
7176 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7179 if test x
$ac_rtlflag_checking != x
; then
7181 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7184 if test x
$ac_gc_checking != x
; then
7186 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7189 if test x
$ac_gc_always_collect != x
; then
7191 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7194 if test x
$ac_fold_checking != x
; then
7196 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7199 valgrind_path_defines
=
7202 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7203 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7211 # It is certainly possible that there's valgrind but no valgrind.h.
7212 # GCC relies on making annotations so we must have both.
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7214 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 #include <valgrind/memcheck.h>
7218 #ifndef VALGRIND_DISCARD
7219 #error VALGRIND_DISCARD not defined
7222 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7223 gcc_cv_header_valgrind_memcheck_h
=yes
7225 gcc_cv_header_valgrind_memcheck_h
=no
7227 rm -f conftest.err conftest.
$ac_ext
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7229 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7231 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 #include <memcheck.h>
7235 #ifndef VALGRIND_DISCARD
7236 #error VALGRIND_DISCARD not defined
7239 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7240 gcc_cv_header_memcheck_h
=yes
7242 gcc_cv_header_memcheck_h
=no
7244 rm -f conftest.err conftest.
$ac_ext
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7246 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7247 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7249 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7252 if test $gcc_cv_header_memcheck_h = yes; then
7254 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7258 if test x
$ac_valgrind_checking != x
; then
7260 # Prepare PATH_SEPARATOR.
7261 # The user is always right.
7262 if test "${PATH_SEPARATOR+set}" != set; then
7263 echo "#! /bin/sh" >conf$$.sh
7264 echo "exit 0" >>conf$$.sh
7266 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7274 # Find out how to test for executable files. Don't use a zero-byte file,
7275 # as systems may use methods other than mode bits to determine executability.
7276 cat >conf$$.
file <<_ASEOF
7280 chmod +x conf$$.
file
7281 if test -x conf$$.
file >/dev
/null
2>&1; then
7282 ac_executable_p
="test -x"
7284 ac_executable_p
="test -f"
7288 # Extract the first word of "valgrind", so it can be a program name with args.
7289 set dummy valgrind
; ac_word
=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7295 case "$valgrind_path" in
7297 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7300 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7301 for ac_dir
in $PATH; do
7303 test -z "$ac_dir" && ac_dir
=.
7304 for ac_exec_ext
in '' $ac_executable_extensions; do
7305 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7306 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7307 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7317 valgrind_path
="$ac_cv_path_valgrind_path"
7318 if test -n "$valgrind_path"; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7320 $as_echo "$valgrind_path" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7326 if test "x$valgrind_path" = "x" \
7327 ||
(test $have_valgrind_h = no \
7328 && test $gcc_cv_header_memcheck_h = no \
7329 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7330 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7332 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7333 valgrind_command
="$valgrind_path -q"
7335 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7341 # Enable code coverage collection
7342 # Check whether --enable-coverage was given.
7343 if test "${enable_coverage+set}" = set; then :
7344 enableval
=$enable_coverage; case "${enableval}" in
7346 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0 -fkeep-static-functions"
7349 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2 -fkeep-static-functions"
7352 # a.k.a. --disable-coverage
7356 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7365 # Check whether --enable-gather-detailed-mem-stats was given.
7366 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7367 enableval
=$enable_gather_detailed_mem_stats;
7369 enable_gather_detailed_mem_stats
=no
7372 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7374 cat >>confdefs.h
<<_ACEOF
7375 #define GATHER_STATISTICS $gather_stats
7379 # Check whether --enable-valgrind-annotations was given.
7380 if test "${enable_valgrind_annotations+set}" = set; then :
7381 enableval
=$enable_valgrind_annotations;
7383 enable_valgrind_annotations
=no
7386 if test x
$enable_valgrind_annotations != xno \
7387 ||
test x
$ac_valgrind_checking != x
; then
7388 if (test $have_valgrind_h = no \
7389 && test $gcc_cv_header_memcheck_h = no \
7390 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7391 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7394 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7398 # -------------------------------
7399 # Miscenalleous configure options
7400 # -------------------------------
7404 # Check whether --with-stabs was given.
7405 if test "${with_stabs+set}" = set; then :
7406 withval
=$with_stabs; stabs
="$with_stabs"
7412 # Determine whether or not multilibs are enabled.
7413 # Check whether --enable-multilib was given.
7414 if test "${enable_multilib+set}" = set; then :
7415 enableval
=$enable_multilib;
7422 # Determine whether or not multiarch is enabled.
7423 # Check whether --enable-multiarch was given.
7424 if test "${enable_multiarch+set}" = set; then :
7425 enableval
=$enable_multiarch; case "${enableval}" in
7426 yes|no|auto
) enable_multiarch
=$enableval;;
7427 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7430 enable_multiarch
=auto
7433 if test x
${enable_multiarch} = xauto
; then
7434 if test x
${with_native_system_header_dir} != x
; then
7435 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7438 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7439 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7444 $as_echo_n "checking for multiarch configuration... " >&6; }
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7447 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7449 # needed for setting the multiarch name for soft-float/hard-float ABIs
7453 # default stack clash protection guard size as power of twos in bytes.
7454 # Please keep these in sync with params.def.
7458 # Keep the default value when the option is not used to 0, this allows us to
7459 # distinguish between the cases where the user specifially set a value via
7460 # configure and when the normal default value is used.
7462 # Check whether --with-stack-clash-protection-guard-size was given.
7463 if test "${with_stack_clash_protection_guard_size+set}" = set; then :
7464 withval
=$with_stack_clash_protection_guard_size; DEFAULT_STK_CLASH_GUARD_SIZE
="$with_stack_clash_protection_guard_size"
7466 DEFAULT_STK_CLASH_GUARD_SIZE
=0
7469 if test $DEFAULT_STK_CLASH_GUARD_SIZE -ne 0 \
7470 && (test $DEFAULT_STK_CLASH_GUARD_SIZE -lt $stk_clash_min \
7471 ||
test $DEFAULT_STK_CLASH_GUARD_SIZE -gt $stk_clash_max); then
7472 as_fn_error
"Invalid value $DEFAULT_STK_CLASH_GUARD_SIZE for --with-stack-clash-protection-guard-size. Must be between $stk_clash_min and $stk_clash_max." "$LINENO" 5
7476 cat >>confdefs.h
<<_ACEOF
7477 #define DEFAULT_STK_CLASH_GUARD_SIZE $DEFAULT_STK_CLASH_GUARD_SIZE
7481 # Enable __cxa_atexit for C++.
7482 # Check whether --enable-__cxa_atexit was given.
7483 if test "${enable___cxa_atexit+set}" = set; then :
7484 enableval
=$enable___cxa_atexit;
7488 # Enable C extension for decimal float if target supports it.
7490 # Check whether --enable-decimal-float was given.
7491 if test "${enable_decimal_float+set}" = set; then :
7492 enableval
=$enable_decimal_float;
7493 case $enable_decimal_float in
7494 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7495 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7496 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7502 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7503 i?
86*-*-elfiamcu | i?
86*-*-gnu* | x86_64
*-*-gnu* | \
7504 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7505 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7506 enable_decimal_float
=yes
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7510 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7511 enable_decimal_float
=no
7518 # x86's use BID format instead of DPD
7519 case x
$enable_decimal_float in
7522 i?
86*-*-* | x86_64
*-*-*)
7523 enable_decimal_float
=bid
7526 enable_decimal_float
=dpd
7529 default_decimal_float
=$enable_decimal_float
7532 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7533 # dependency on libdecnumber.
7534 default_decimal_float
=dpd
7541 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7543 cat >>confdefs.h
<<_ACEOF
7544 #define ENABLE_DECIMAL_FLOAT $dfp
7548 # Use default_decimal_float for dependency.
7549 enable_decimal_float
=$default_decimal_float
7551 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7553 cat >>confdefs.h
<<_ACEOF
7554 #define ENABLE_DECIMAL_BID_FORMAT $bid
7558 # Enable C extension for fixed-point arithmetic.
7559 # Check whether --enable-fixed-point was given.
7560 if test "${enable_fixed_point+set}" = set; then :
7561 enableval
=$enable_fixed_point;
7566 enable_fixed_point
=yes
7570 enable_fixed_point
=yes
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7574 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7575 enable_fixed_point
=no
7583 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7585 cat >>confdefs.h
<<_ACEOF
7586 #define ENABLE_FIXED_POINT $fixedpoint
7591 # Pass with no value to take the default
7592 # Pass with a value to specify a thread package
7593 # Check whether --enable-threads was given.
7594 if test "${enable_threads+set}" = set; then :
7595 enableval
=$enable_threads;
7601 # Check whether --enable-tls was given.
7602 if test "${enable_tls+set}" = set; then :
7603 enableval
=$enable_tls;
7606 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7607 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7615 # Check whether --enable-vtable-verify was given.
7616 if test "${enable_vtable_verify+set}" = set; then :
7617 enableval
=$enable_vtable_verify;
7619 enable_vtable_verify
=no
7622 vtable_verify
=`if test x$enable_vtable_verify = xyes; then echo 1; else echo 0; fi`
7624 cat >>confdefs.h
<<_ACEOF
7625 #define ENABLE_VTABLE_VERIFY $vtable_verify
7629 # Check whether --enable-objc-gc was given.
7630 if test "${enable_objc_gc+set}" = set; then :
7631 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7642 # Check whether --with-dwarf2 was given.
7643 if test "${with_dwarf2+set}" = set; then :
7644 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7650 # Check whether --enable-shared was given.
7651 if test "${enable_shared+set}" = set; then :
7652 enableval
=$enable_shared;
7653 case $enable_shared in
7657 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7658 for pkg
in $enableval; do
7659 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7673 # Check whether --enable-gcov was given.
7674 if test "${enable_gcov+set}" = set; then :
7675 enableval
=$enable_gcov;
7683 # Check whether --with-specs was given.
7684 if test "${with_specs+set}" = set; then :
7685 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7695 # Check whether --with-pkgversion was given.
7696 if test "${with_pkgversion+set}" = set; then :
7697 withval
=$with_pkgversion; case "$withval" in
7698 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7700 *) PKGVERSION
="($withval) " ;;
7711 # Check whether --with-bugurl was given.
7712 if test "${with_bugurl+set}" = set; then :
7713 withval
=$with_bugurl; case "$withval" in
7714 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7717 *) BUGURL
="$withval"
7721 BUGURL
="https://gcc.gnu.org/bugs/"
7731 REPORT_BUGS_TO
="<$BUGURL>"
7732 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7739 # Sanity check enable_languages in case someone does not run the toplevel
7740 # configure # script.
7741 # Check whether --enable-languages was given.
7742 if test "${enable_languages+set}" = set; then :
7743 enableval
=$enable_languages; case ,${enable_languages}, in
7745 # go safe -- we cannot be much sure without the toplevel
7747 # analysis of which target libs are present and usable
7751 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7756 enable_languages
=c
,${enable_languages}
7764 if test x
"$enable_as_accelerator_for" != x
; then
7766 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7768 enable_as_accelerator
=yes
7771 # In this case we expect offload compiler to be built as native, so we
7772 # need to rename the driver to avoid clashes with host's drivers.
7773 program_transform_name
="s&^&${target}-&" ;;
7775 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7776 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7777 accel_dir_suffix
=/accel
/${target_noncanonical}
7778 real_target_noncanonical
=${enable_as_accelerator_for}
7784 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7785 tgt
=`echo $tgt | sed 's/=.*//'`
7787 if echo "$tgt" |
grep "^hsa" > /dev
/null
; then
7793 if test x
"$offload_targets" = x
; then
7794 offload_targets
=$tgt
7796 offload_targets
="$offload_targets,$tgt"
7800 cat >>confdefs.h
<<_ACEOF
7801 #define OFFLOAD_TARGETS "$offload_targets"
7804 if test x
"$enable_offloading" != x
; then
7806 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7810 $as_echo "#define ENABLE_OFFLOADING 0" >>confdefs.h
7814 if test x
"$enable_hsa" = x1
; then
7816 $as_echo "#define ENABLE_HSA 1" >>confdefs.h
7821 # Check whether --with-multilib-list was given.
7822 if test "${with_multilib_list+set}" = set; then :
7823 withval
=$with_multilib_list; :
7825 with_multilib_list
=default
7829 # -------------------------
7830 # Checks for other programs
7831 # -------------------------
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7834 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7836 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7837 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7838 $as_echo_n "(cached) " >&6
7840 cat >conftest.
make <<\_ACEOF
7843 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7845 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7846 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7848 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7850 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7854 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7856 $as_echo "yes" >&6; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 SET_MAKE
="MAKE=${MAKE-make}"
7865 # Find some useful tools
7866 for ac_prog
in gawk mawk nawk
awk
7868 # Extract the first word of "$ac_prog", so it can be a program name with args.
7869 set dummy
$ac_prog; ac_word
=$2
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871 $as_echo_n "checking for $ac_word... " >&6; }
7872 if test "${ac_cv_prog_AWK+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7875 if test -n "$AWK"; then
7876 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7878 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7882 test -z "$as_dir" && as_dir
=.
7883 for ac_exec_ext
in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7885 ac_cv_prog_AWK
="$ac_prog"
7886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 if test -n "$AWK"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7898 $as_echo "$AWK" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901 $as_echo "no" >&6; }
7905 test -n "$AWK" && break
7908 # We need awk to create options.c and options.h.
7909 # Bail out if it's missing.
7911 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7915 $as_echo_n "checking whether ln -s works... " >&6; }
7916 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7919 rm -f conftestdata_t
7920 echo >conftestdata_f
7921 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7923 gcc_cv_prog_LN_S
="ln -s"
7925 if ln conftestdata_f conftestdata_t
2>/dev
/null
7929 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7931 gcc_cv_prog_LN_S
="cp -p"
7937 rm -f conftestdata_f conftestdata_t
7940 LN_S
="$gcc_cv_prog_LN_S"
7941 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943 $as_echo "yes" >&6; }
7945 if test "$gcc_cv_prog_LN_S" = "ln"; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7947 $as_echo "no, using ln" >&6; }
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7950 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7955 $as_echo_n "checking whether ln works... " >&6; }
7956 if test "${acx_cv_prog_LN+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
7959 rm -f conftestdata_t
7960 echo >conftestdata_f
7961 if ln conftestdata_f conftestdata_t
2>/dev
/null
7967 rm -f conftestdata_f conftestdata_t
7970 if test $acx_cv_prog_LN = no
; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7973 $as_echo "no, using $LN" >&6; }
7975 LN
="$acx_cv_prog_LN"
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7977 $as_echo "yes" >&6; }
7980 if test -n "$ac_tool_prefix"; then
7981 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7982 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7988 if test -n "$RANLIB"; then
7989 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7995 test -z "$as_dir" && as_dir
=.
7996 for ac_exec_ext
in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7998 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 RANLIB
=$ac_cv_prog_RANLIB
8009 if test -n "$RANLIB"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8011 $as_echo "$RANLIB" >&6; }
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8019 if test -z "$ac_cv_prog_RANLIB"; then
8020 ac_ct_RANLIB
=$RANLIB
8021 # Extract the first word of "ranlib", so it can be a program name with args.
8022 set dummy ranlib
; ac_word
=$2
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024 $as_echo_n "checking for $ac_word... " >&6; }
8025 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8028 if test -n "$ac_ct_RANLIB"; then
8029 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
8031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8035 test -z "$as_dir" && as_dir
=.
8036 for ac_exec_ext
in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8038 ac_cv_prog_ac_ct_RANLIB
="ranlib"
8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
8049 if test -n "$ac_ct_RANLIB"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8051 $as_echo "$ac_ct_RANLIB" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8057 if test "x$ac_ct_RANLIB" = x
; then
8060 case $cross_compiling:$ac_tool_warned in
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8064 ac_tool_warned
=yes ;;
8066 RANLIB
=$ac_ct_RANLIB
8069 RANLIB
="$ac_cv_prog_RANLIB"
8075 # Find a good install program. We prefer a C program (faster),
8076 # so one script is as good as another. But avoid the broken or
8077 # incompatible versions:
8078 # SysV /etc/install, /usr/sbin/install
8079 # SunOS /usr/etc/install
8080 # IRIX /sbin/install
8082 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8083 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8084 # ./install, which can be erroneously created by make from ./install.sh.
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
8086 $as_echo_n "checking for a BSD compatible install... " >&6; }
8087 if test -z "$INSTALL"; then
8088 if test "${ac_cv_path_install+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
8091 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
8092 for ac_dir
in $PATH; do
8093 # Account for people who put trailing slashes in PATH elements.
8095 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
8097 # OSF1 and SCO ODT 3.0 have their own names for install.
8098 for ac_prog
in ginstall scoinst
install; do
8099 if test -f $ac_dir/$ac_prog; then
8100 if test $ac_prog = install &&
8101 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
8102 # AIX install. It has an incompatible calling convention.
8103 # OSF/1 installbsd also uses dspmsg, but is usable.
8106 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8117 if test "${ac_cv_path_install+set}" = set; then
8118 INSTALL
="$ac_cv_path_install"
8120 # As a last resort, use the slow shell script. We don't cache a
8121 # path for INSTALL within a source directory, because that will
8122 # break other packages using the cache if that directory is
8123 # removed, or if the path is relative.
8124 INSTALL
="$ac_install_sh"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8128 $as_echo "$INSTALL" >&6; }
8130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8131 # It thinks the first close brace ends the variable substitution.
8132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8134 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8137 # See if cmp has --ignore-initial.
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8139 $as_echo_n "checking for cmp's capabilities... " >&6; }
8140 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8145 gcc_cv_prog_cmp_skip
=slowcompare
8146 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8147 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8150 gcc_cv_prog_cmp_skip
=gnucompare
8153 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8154 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8155 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8158 gcc_cv_prog_cmp_skip
=fastcompare
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8166 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8167 make_compare_target
=$gcc_cv_prog_cmp_skip
8171 # See if we have the mktemp command.
8172 # Extract the first word of "mktemp", so it can be a program name with args.
8173 set dummy mktemp
; ac_word
=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
8179 if test -n "$have_mktemp_command"; then
8180 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir
=.
8187 for ac_exec_ext
in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_prog_have_mktemp_command
="yes"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8200 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8201 if test -n "$have_mktemp_command"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8203 $as_echo "$have_mktemp_command" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8211 # See if makeinfo has been installed and is modern enough
8212 # that we can use it.
8214 # Extract the first word of "makeinfo", so it can be a program name with args.
8215 set dummy makeinfo
; ac_word
=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8219 $as_echo_n "(cached) " >&6
8221 if test -n "$MAKEINFO"; then
8222 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir
=.
8229 for ac_exec_ext
in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_prog_MAKEINFO
="makeinfo"
8232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 MAKEINFO
=$ac_cv_prog_MAKEINFO
8242 if test -n "$MAKEINFO"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8244 $as_echo "$MAKEINFO" >&6; }
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8251 if test -n "$MAKEINFO"; then
8252 # Found it, now check the version.
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8254 $as_echo_n "checking for modern makeinfo... " >&6; }
8255 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8258 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8259 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8261 case $ac_prog_version in
8262 '') gcc_cv_prog_makeinfo_modern
=no
;;
8263 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8264 *) gcc_cv_prog_makeinfo_modern
=no
;;
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8269 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8271 gcc_cv_prog_makeinfo_modern
=no
8273 if test $gcc_cv_prog_makeinfo_modern = no
; then
8274 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8277 if test $gcc_cv_prog_makeinfo_modern = no
; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8279 *** Makeinfo is missing or too old.
8280 *** Info documentation will not be built." >&5
8281 $as_echo "$as_me: WARNING:
8282 *** Makeinfo is missing or too old.
8283 *** Info documentation will not be built." >&2;}
8290 # Is pod2man recent enough to regenerate manpages?
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8292 $as_echo_n "checking for recent Pod::Man... " >&6; }
8293 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8295 $as_echo "yes" >&6; }
8296 GENERATED_MANPAGES
=generated-manpages
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8304 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8309 # Extract the first word of "$ac_prog", so it can be a program name with args.
8310 set dummy
$ac_prog; ac_word
=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_FLEX+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8316 if test -n "$FLEX"; then
8317 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8323 test -z "$as_dir" && as_dir
=.
8324 for ac_exec_ext
in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_FLEX
="$ac_prog"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 FLEX
=$ac_cv_prog_FLEX
8337 if test -n "$FLEX"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8339 $as_echo "$FLEX" >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8346 test -n "$FLEX" && break
8348 test -n "$FLEX" || FLEX
="$MISSING flex"
8352 for ac_prog
in bison
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy
$ac_prog; ac_word
=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if test "${ac_cv_prog_BISON+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8361 if test -n "$BISON"; then
8362 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir
=.
8369 for ac_exec_ext
in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_BISON
="$ac_prog"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 BISON
=$ac_cv_prog_BISON
8382 if test -n "$BISON"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8384 $as_echo "$BISON" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 test -n "$BISON" && break
8393 test -n "$BISON" || BISON
="$MISSING bison"
8396 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8397 # check for build == host before using them.
8400 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8401 && test -d ..
/binutils
; then
8402 NM
='${objdir}/../binutils/nm-new'
8404 # Extract the first word of "nm", so it can be a program name with args.
8405 set dummy nm
; ac_word
=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_NM+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
8411 if test -n "$NM"; then
8412 ac_cv_prog_NM
="$NM" # Let the user override the test.
8414 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir
=.
8419 for ac_exec_ext
in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8429 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8433 if test -n "$NM"; then
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8435 $as_echo "$NM" >&6; }
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438 $as_echo "no" >&6; }
8445 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8446 && test -d ..
/binutils
; then
8447 AR
='${objdir}/../binutils/ar'
8449 # Extract the first word of "ar", so it can be a program name with args.
8450 set dummy
ar; ac_word
=$2
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8452 $as_echo_n "checking for $ac_word... " >&6; }
8453 if test "${ac_cv_prog_AR+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8456 if test -n "$AR"; then
8457 ac_cv_prog_AR
="$AR" # Let the user override the test.
8459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8463 test -z "$as_dir" && as_dir
=.
8464 for ac_exec_ext
in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8478 if test -n "$AR"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8480 $as_echo "$AR" >&6; }
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8489 # The jit documentation looks better if built with sphinx, but can be
8490 # built with texinfo if sphinx is not available.
8491 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8492 # Extract the first word of "sphinx-build", so it can be a program name with args.
8493 set dummy sphinx-build
; ac_word
=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8499 if test -n "$doc_build_sys"; then
8500 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8506 test -z "$as_dir" && as_dir
=.
8507 for ac_exec_ext
in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_prog_doc_build_sys
="sphinx"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8520 doc_build_sys
=$ac_cv_prog_doc_build_sys
8521 if test -n "$doc_build_sys"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8523 $as_echo "$doc_build_sys" >&6; }
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8531 # --------------------
8532 # Checks for C headers
8533 # --------------------
8535 # Need to reject headers which give warnings, so that the -Werror bootstrap
8536 # works later. *sigh* This needs to come before all header checks.
8538 ac_c_preproc_warn_flag
=yes
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8541 $as_echo_n "checking for ANSI C header files... " >&6; }
8542 if test "${ac_cv_header_stdc+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8560 if ac_fn_cxx_try_compile
"$LINENO"; then :
8561 ac_cv_header_stdc
=yes
8563 ac_cv_header_stdc
=no
8565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8567 if test $ac_cv_header_stdc = yes; then
8568 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8575 $EGREP "memchr" >/dev
/null
2>&1; then :
8578 ac_cv_header_stdc
=no
8584 if test $ac_cv_header_stdc = yes; then
8585 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8592 $EGREP "free" >/dev
/null
2>&1; then :
8595 ac_cv_header_stdc
=no
8601 if test $ac_cv_header_stdc = yes; then
8602 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8603 if test "$cross_compiling" = yes; then :
8606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8610 #if ((' ' & 0x0FF) == 0x020)
8611 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8612 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8614 # define ISLOWER(c) \
8615 (('a' <= (c) && (c) <= 'i') \
8616 || ('j' <= (c) && (c) <= 'r') \
8617 || ('s' <= (c) && (c) <= 'z'))
8618 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8621 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8626 for (i = 0; i < 256; i++)
8627 if (XOR (islower (i), ISLOWER (i))
8628 || toupper (i) != TOUPPER (i))
8633 if ac_fn_cxx_try_run
"$LINENO"; then :
8636 ac_cv_header_stdc
=no
8638 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8639 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8645 $as_echo "$ac_cv_header_stdc" >&6; }
8646 if test $ac_cv_header_stdc = yes; then
8648 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8653 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8654 if test "${ac_cv_header_time+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 #include <sys/types.h>
8660 #include <sys/time.h>
8666 if ((struct tm *) 0)
8672 if ac_fn_cxx_try_compile
"$LINENO"; then :
8673 ac_cv_header_time
=yes
8675 ac_cv_header_time
=no
8677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8680 $as_echo "$ac_cv_header_time" >&6; }
8681 if test $ac_cv_header_time = yes; then
8683 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8688 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8689 if test "${gcc_cv_header_string+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8695 #include <strings.h>
8704 if ac_fn_cxx_try_compile
"$LINENO"; then :
8705 gcc_cv_header_string
=yes
8707 gcc_cv_header_string
=no
8709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8712 $as_echo "$gcc_cv_header_string" >&6; }
8713 if test $gcc_cv_header_string = yes; then
8715 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8720 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8721 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8726 #include <sys/types.h>
8727 #include <sys/wait.h>
8729 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8732 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8740 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8745 if ac_fn_cxx_try_compile
"$LINENO"; then :
8746 ac_cv_header_sys_wait_h
=yes
8748 ac_cv_header_sys_wait_h
=no
8750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8753 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8754 if test $ac_cv_header_sys_wait_h = yes; then
8756 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8761 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8762 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
8765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 #include <sys/types.h>
8768 #include <termios.h>
8774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8775 $EGREP "yes" >/dev
/null
2>&1; then :
8776 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8778 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8784 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8786 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8788 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8789 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8790 $as_echo_n "(cached) " >&6
8792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 #include <sys/types.h>
8795 #include <sys/ioctl.h>
8801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8802 $EGREP "yes" >/dev
/null
2>&1; then :
8803 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8805 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8811 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8813 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8815 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8820 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8821 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8822 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8823 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8825 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8826 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8827 eval as_val
=\$
$as_ac_Header
8828 if test "x$as_val" = x
""yes; then :
8829 cat >>confdefs.h
<<_ACEOF
8830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8837 # Check for thread headers.
8838 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8839 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8845 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8846 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8853 # These tests can't be done till we know if we have limits.h.
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8855 $as_echo_n "checking for CHAR_BIT... " >&6; }
8856 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8857 $as_echo_n "(cached) " >&6
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #ifdef HAVE_LIMITS_H
8868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8869 $EGREP "found" >/dev
/null
2>&1; then :
8870 gcc_cv_decl_char_bit
=yes
8872 gcc_cv_decl_char_bit
=no
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8879 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8880 if test $gcc_cv_decl_char_bit = no
; then
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8882 $as_echo_n "checking number of bits in a byte... " >&6; }
8883 if test "${gcc_cv_c_nbby+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
8888 while test $i -lt 65; do
8889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8896 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8897 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8903 if ac_fn_cxx_try_compile
"$LINENO"; then :
8904 gcc_cv_c_nbby
=$i; break
8906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8909 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8913 $as_echo "$gcc_cv_c_nbby" >&6; }
8914 if test $gcc_cv_c_nbby = failed
; then
8915 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8918 cat >>confdefs.h
<<_ACEOF
8919 #define CHAR_BIT $gcc_cv_c_nbby
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8925 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8926 if test "${ac_cv_c_bigendian+set}" = set; then :
8927 $as_echo_n "(cached) " >&6
8929 ac_cv_c_bigendian
=unknown
8930 # See if we're dealing with a universal compiler.
8931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933 #ifndef __APPLE_CC__
8934 not a universal capable compiler
8939 if ac_fn_cxx_try_compile
"$LINENO"; then :
8941 # Check for potential -arch flags. It is not universal unless
8942 # there are at least two -arch flags with different values.
8945 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8946 if test -n "$ac_prev"; then
8948 i?
86 | x86_64 | ppc | ppc64
)
8949 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8952 ac_cv_c_bigendian
=universal
8958 elif test "x$ac_word" = "x-arch"; then
8963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8964 if test $ac_cv_c_bigendian = unknown
; then
8965 # See if sys/param.h defines the BYTE_ORDER macro.
8966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968 #include <sys/types.h>
8969 #include <sys/param.h>
8974 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8975 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8984 if ac_fn_cxx_try_compile
"$LINENO"; then :
8985 # It does; now see whether it defined to BIG_ENDIAN or not.
8986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #include <sys/types.h>
8989 #include <sys/param.h>
8994 #if BYTE_ORDER != BIG_ENDIAN
9002 if ac_fn_cxx_try_compile
"$LINENO"; then :
9003 ac_cv_c_bigendian
=yes
9005 ac_cv_c_bigendian
=no
9007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9011 if test $ac_cv_c_bigendian = unknown
; then
9012 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9020 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9028 if ac_fn_cxx_try_compile
"$LINENO"; then :
9029 # It does; now see whether it defined to _BIG_ENDIAN or not.
9030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9045 if ac_fn_cxx_try_compile
"$LINENO"; then :
9046 ac_cv_c_bigendian
=yes
9048 ac_cv_c_bigendian
=no
9050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9054 if test $ac_cv_c_bigendian = unknown
; then
9055 # Compile a test program.
9056 if test "$cross_compiling" = yes; then :
9057 # Try to guess by grepping values from an object file.
9058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060 short int ascii_mm[] =
9061 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9062 short int ascii_ii[] =
9063 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9064 int use_ascii (int i) {
9065 return ascii_mm[i] + ascii_ii[i];
9067 short int ebcdic_ii[] =
9068 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9069 short int ebcdic_mm[] =
9070 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9071 int use_ebcdic (int i) {
9072 return ebcdic_mm[i] + ebcdic_ii[i];
9079 return use_ascii (foo) == use_ebcdic (foo);
9084 if ac_fn_cxx_try_compile
"$LINENO"; then :
9085 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
9086 ac_cv_c_bigendian
=yes
9088 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
9089 if test "$ac_cv_c_bigendian" = unknown
; then
9090 ac_cv_c_bigendian
=no
9092 # finding both strings is unlikely to happen, but who knows?
9093 ac_cv_c_bigendian
=unknown
9097 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101 $ac_includes_default
9106 /* Are we little or big endian? From Harbison&Steele. */
9110 char c[sizeof (long int)];
9113 return u.c[sizeof (long int) - 1] == 1;
9119 if ac_fn_cxx_try_run
"$LINENO"; then :
9120 ac_cv_c_bigendian
=no
9122 ac_cv_c_bigendian
=yes
9124 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9125 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9131 $as_echo "$ac_cv_c_bigendian" >&6; }
9132 case $ac_cv_c_bigendian in #(
9134 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9140 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9144 as_fn_error
"unknown endianness
9145 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9149 # ----------------------
9150 # Checks for C++ headers
9151 # ----------------------
9154 ac_cpp
='$CXXCPP $CPPFLAGS'
9155 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9156 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9157 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9159 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9160 if test -z "$CXXCPP"; then
9161 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9162 $as_echo_n "(cached) " >&6
9164 # Double quotes because CXXCPP needs to be expanded
9165 for CXXCPP
in "$CXX -E" "/lib/cpp"
9168 for ac_cxx_preproc_warn_flag
in '' yes
9170 # Use a header file that comes with gcc, so configuring glibc
9171 # with a fresh cross-compiler works.
9172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9173 # <limits.h> exists even on freestanding compilers.
9174 # On the NeXT, cc -E runs the code through the compiler's parser,
9175 # not just through cpp. "Syntax error" is here to catch this case.
9176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9179 # include <limits.h>
9181 # include <assert.h>
9185 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9188 # Broken: fails on valid input.
9191 rm -f conftest.err conftest.
$ac_ext
9193 # OK, works on sane cases. Now check whether nonexistent headers
9194 # can be detected and how.
9195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197 #include <ac_nonexistent.h>
9199 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9200 # Broken: success on invalid input.
9203 # Passes both tests.
9207 rm -f conftest.err conftest.
$ac_ext
9210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9211 rm -f conftest.err conftest.
$ac_ext
9212 if $ac_preproc_ok; then :
9217 ac_cv_prog_CXXCPP
=$CXXCPP
9220 CXXCPP
=$ac_cv_prog_CXXCPP
9222 ac_cv_prog_CXXCPP
=$CXXCPP
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9225 $as_echo "$CXXCPP" >&6; }
9227 for ac_cxx_preproc_warn_flag
in '' yes
9229 # Use a header file that comes with gcc, so configuring glibc
9230 # with a fresh cross-compiler works.
9231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9232 # <limits.h> exists even on freestanding compilers.
9233 # On the NeXT, cc -E runs the code through the compiler's parser,
9234 # not just through cpp. "Syntax error" is here to catch this case.
9235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9238 # include <limits.h>
9240 # include <assert.h>
9244 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9247 # Broken: fails on valid input.
9250 rm -f conftest.err conftest.
$ac_ext
9252 # OK, works on sane cases. Now check whether nonexistent headers
9253 # can be detected and how.
9254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256 #include <ac_nonexistent.h>
9258 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9259 # Broken: success on invalid input.
9262 # Passes both tests.
9266 rm -f conftest.err conftest.
$ac_ext
9269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9270 rm -f conftest.err conftest.
$ac_ext
9271 if $ac_preproc_ok; then :
9274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9277 See \`config.log' for more details." >&5
9278 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9279 See \`config.log' for more details." >&2;}; }
9283 ac_cpp
='$CXXCPP $CPPFLAGS'
9284 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9285 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9286 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9289 for ac_header
in unordered_map
9291 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9292 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9293 cat >>confdefs.h
<<_ACEOF
9294 #define HAVE_UNORDERED_MAP 1
9300 for ac_header
in tr1/unordered_map
9302 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9303 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9304 cat >>confdefs.h
<<_ACEOF
9305 #define HAVE_TR1_UNORDERED_MAP 1
9311 for ac_header
in ext
/hash_map
9313 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9314 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9315 cat >>confdefs.h
<<_ACEOF
9316 #define HAVE_EXT_HASH_MAP 1
9324 # Dependency checking.
9327 rm -rf .tst
2>/dev
/null
9328 mkdir .tst
2>/dev
/null
9329 if test -d .tst
; then
9334 rmdir .tst
2>/dev
/null
9336 DEPDIR
="${am__leading_dot}deps"
9338 ac_config_commands
="$ac_config_commands depdir"
9341 ac_config_commands
="$ac_config_commands gccdepdir"
9344 depcc
="$CXX" am_compiler_list
=
9346 am_depcomp
=$ac_aux_dir/depcomp
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9348 $as_echo_n "checking dependency style of $depcc... " >&6; }
9349 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9352 if test -f "$am_depcomp"; then
9353 # We make a subdir and do the tests there. Otherwise we can end up
9354 # making bogus files that we don't know about and never remove. For
9355 # instance it was reported that on HP-UX the gcc test will end up
9356 # making a dummy file named `D' -- because `-MD' means `put the output
9359 # Copy depcomp to subdir because otherwise we won't find it if we're
9360 # using a relative directory.
9361 cp "$am_depcomp" conftest.dir
9363 # We will build objects and dependencies in a subdirectory because
9364 # it helps to detect inapplicable dependency modes. For instance
9365 # both Tru64's cc and ICC support -MD to output dependencies as a
9366 # side effect of compilation, but ICC will put the dependencies in
9367 # the current directory while Tru64 will put them in the object
9371 am_cv_CXX_dependencies_compiler_type
=none
9372 if test "$am_compiler_list" = ""; then
9373 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9375 for depmode
in $am_compiler_list; do
9376 if test $depmode = none
; then break; fi
9378 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9379 # Setup a source with many dependencies, because some compilers
9380 # like to wrap large dependency lists on column 80 (with \), and
9381 # we should not choose a depcomp mode which is confused by this.
9383 # We need to recreate these files for each test, as the compiler may
9384 # overwrite some of them when testing with obscure command lines.
9385 # This happens at least with the AIX C compiler.
9387 for i
in 1 2 3 4 5 6; do
9388 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9389 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9390 # Solaris 8's {/usr,}/bin/sh.
9391 touch sub
/conftst
$i.h
9393 echo "include sub/conftest.Po" > confmf
9395 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9396 # mode. It turns out that the SunPro C++ compiler does not properly
9397 # handle `-M -o', and we need to detect this.
9398 depcmd
="depmode=$depmode \
9399 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9400 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9401 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9402 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9403 if env
$depcmd > conftest.err
2>&1 &&
9404 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9405 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9406 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9407 # icc doesn't choke on unknown options, it will just issue warnings
9408 # or remarks (even with -Werror). So we grep stderr for any message
9409 # that says an option was ignored or not supported.
9410 # When given -MP, icc 7.0 and 7.1 complain thusly:
9411 # icc: Command line warning: ignoring option '-M'; no argument required
9412 # The diagnosis changed in icc 8.0:
9413 # icc: Command line remark: option '-MP' not supported
9414 if (grep 'ignoring option' conftest.err ||
9415 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9416 am_cv_CXX_dependencies_compiler_type
=$depmode
9417 $as_echo "$as_me:$LINENO: success" >&5
9421 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9422 sed -e 's/^/| /' < conftest.err
>&5
9428 am_cv_CXX_dependencies_compiler_type
=none
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9433 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9434 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9435 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9436 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9446 # These libraries may be used by collect2.
9447 # We may need a special search path to get them linked.
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9449 $as_echo_n "checking for collect2 libraries... " >&6; }
9450 if test "${gcc_cv_collect2_libs+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
9454 for libs
in '' -lld -lmld \
9455 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9456 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9460 /* end confdefs.h. */
9462 /* Override any GCC internal prototype to avoid an error.
9463 Use char because int might match the return type of a GCC
9464 builtin and then its argument prototype would still apply. */
9477 if ac_fn_cxx_try_link
"$LINENO"; then :
9478 gcc_cv_collect2_libs
="$libs"; break
9480 rm -f core conftest.err conftest.
$ac_objext \
9481 conftest
$ac_exeext conftest.
$ac_ext
9484 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9487 $as_echo "$gcc_cv_collect2_libs" >&6; }
9488 case $gcc_cv_collect2_libs in
9490 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9494 # When building Ada code on Alpha, we need exc_resume which is usually in
9495 # -lexc. So test for it.
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9499 $as_echo_n "checking for library containing exc_resume... " >&6; }
9500 if test "${ac_cv_search_exc_resume+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
9503 ac_func_search_save_LIBS
=$LIBS
9504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9505 /* end confdefs.h. */
9507 /* Override any GCC internal prototype to avoid an error.
9508 Use char because int might match the return type of a GCC
9509 builtin and then its argument prototype would still apply. */
9517 return exc_resume ();
9522 for ac_lib
in '' exc
; do
9523 if test -z "$ac_lib"; then
9524 ac_res
="none required"
9527 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9529 if ac_fn_cxx_try_link
"$LINENO"; then :
9530 ac_cv_search_exc_resume
=$ac_res
9532 rm -f core conftest.err conftest.
$ac_objext \
9534 if test "${ac_cv_search_exc_resume+set}" = set; then :
9538 if test "${ac_cv_search_exc_resume+set}" = set; then :
9541 ac_cv_search_exc_resume
=no
9544 LIBS
=$ac_func_search_save_LIBS
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9547 $as_echo "$ac_cv_search_exc_resume" >&6; }
9548 ac_res
=$ac_cv_search_exc_resume
9549 if test "$ac_res" != no
; then :
9550 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9558 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9562 $as_echo_n "checking for library containing kstat_open... " >&6; }
9563 if test "${ac_cv_search_kstat_open+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
9566 ac_func_search_save_LIBS
=$LIBS
9567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9570 /* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
9580 return kstat_open ();
9585 for ac_lib
in '' kstat
; do
9586 if test -z "$ac_lib"; then
9587 ac_res
="none required"
9590 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9592 if ac_fn_cxx_try_link
"$LINENO"; then :
9593 ac_cv_search_kstat_open
=$ac_res
9595 rm -f core conftest.err conftest.
$ac_objext \
9597 if test "${ac_cv_search_kstat_open+set}" = set; then :
9601 if test "${ac_cv_search_kstat_open+set}" = set; then :
9604 ac_cv_search_kstat_open
=no
9607 LIBS
=$ac_func_search_save_LIBS
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9610 $as_echo "$ac_cv_search_kstat_open" >&6; }
9611 ac_res
=$ac_cv_search_kstat_open
9612 if test "$ac_res" != no
; then :
9613 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9617 EXTRA_GCC_LIBS
="$LIBS"
9621 # Some systems put ldexp and frexp in libm instead of libc; assume
9622 # they're both in the same place. jcf-dump needs them.
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9626 $as_echo_n "checking for library containing ldexp... " >&6; }
9627 if test "${ac_cv_search_ldexp+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9630 ac_func_search_save_LIBS
=$LIBS
9631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9634 /* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9649 for ac_lib
in '' m
; do
9650 if test -z "$ac_lib"; then
9651 ac_res
="none required"
9654 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9656 if ac_fn_cxx_try_link
"$LINENO"; then :
9657 ac_cv_search_ldexp
=$ac_res
9659 rm -f core conftest.err conftest.
$ac_objext \
9661 if test "${ac_cv_search_ldexp+set}" = set; then :
9665 if test "${ac_cv_search_ldexp+set}" = set; then :
9668 ac_cv_search_ldexp
=no
9671 LIBS
=$ac_func_search_save_LIBS
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9674 $as_echo "$ac_cv_search_ldexp" >&6; }
9675 ac_res
=$ac_cv_search_ldexp
9676 if test "$ac_res" != no
; then :
9677 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9685 # Use <inttypes.h> only if it exists,
9686 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9689 $as_echo_n "checking for inttypes.h... " >&6; }
9690 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 #define __STDC_FORMAT_MACROS
9696 #include <sys/types.h>
9697 #include <inttypes.h>
9709 if ac_fn_cxx_try_compile
"$LINENO"; then :
9710 gcc_cv_header_inttypes_h
=yes
9712 gcc_cv_header_inttypes_h
=no
9714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9718 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9719 if test $gcc_cv_header_inttypes_h = yes; then
9721 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9727 for ac_func
in times clock kill getrlimit setrlimit atoq \
9728 popen sysconf strsignal getrusage nl_langinfo \
9729 gettimeofday mbstowcs wcswidth mmap setlocale \
9730 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
9732 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9733 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9734 eval as_val
=\$
$as_ac_var
9735 if test "x$as_val" = x
""yes; then :
9736 cat >>confdefs.h
<<_ACEOF
9737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9744 if test x
$ac_cv_func_mbstowcs = xyes
; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9746 $as_echo_n "checking whether mbstowcs works... " >&6; }
9747 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9748 $as_echo_n "(cached) " >&6
9750 if test "$cross_compiling" = yes; then :
9751 gcc_cv_func_mbstowcs_works
=yes
9753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9762 if ac_fn_cxx_try_run
"$LINENO"; then :
9763 gcc_cv_func_mbstowcs_works
=yes
9765 gcc_cv_func_mbstowcs_works
=no
9767 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9768 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9773 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9774 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9776 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9781 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9782 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9786 cat >>confdefs.h
<<_ACEOF
9792 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9793 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9797 cat >>confdefs.h
<<_ACEOF
9798 #define caddr_t char *
9805 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9806 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9807 gcc_header_sys_mman_h
=yes
9809 gcc_header_sys_mman_h
=no
9812 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9813 if test "x$ac_cv_func_mmap" = x
""yes; then :
9819 if test "$gcc_header_sys_mman_h" != yes \
9820 ||
test "$gcc_func_mmap" != yes; then
9821 gcc_cv_func_mmap_file
=no
9822 gcc_cv_func_mmap_dev_zero
=no
9823 gcc_cv_func_mmap_anon
=no
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9826 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9827 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9828 $as_echo_n "(cached) " >&6
9830 # Add a system to this blacklist if
9831 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9832 # memory area containing the same data that you'd get if you applied
9833 # read() to the same fd. The only system known to have a problem here
9834 # is VMS, where text files have record structure.
9837 gcc_cv_func_mmap_file
=no
;;
9839 gcc_cv_func_mmap_file
=yes;;
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9843 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9845 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9846 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9849 # Add a system to this blacklist if it has mmap() but /dev/zero
9850 # does not exist, or if mmapping /dev/zero does not give anonymous
9851 # zeroed pages with both the following properties:
9852 # 1. If you map N consecutive pages in with one call, and then
9853 # unmap any subset of those pages, the pages that were not
9854 # explicitly unmapped remain accessible.
9855 # 2. If you map two adjacent blocks of memory and then unmap them
9856 # both at once, they must both go away.
9857 # Systems known to be in this category are Windows (all variants),
9860 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9861 gcc_cv_func_mmap_dev_zero
=no
;;
9863 gcc_cv_func_mmap_dev_zero
=yes;;
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9867 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9869 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9871 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9872 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9873 $as_echo_n "(cached) " >&6
9875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877 #include <sys/types.h>
9878 #include <sys/mman.h>
9881 #ifndef MAP_ANONYMOUS
9882 #define MAP_ANONYMOUS MAP_ANON
9888 int n = MAP_ANONYMOUS;
9893 if ac_fn_cxx_try_compile
"$LINENO"; then :
9894 gcc_cv_decl_map_anon
=yes
9896 gcc_cv_decl_map_anon
=no
9898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9901 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9903 if test $gcc_cv_decl_map_anon = no
; then
9904 gcc_cv_func_mmap_anon
=no
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9907 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9908 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9911 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9912 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9913 # doesn't give anonymous zeroed pages with the same properties listed
9914 # above for use of /dev/zero.
9915 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9917 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9918 gcc_cv_func_mmap_anon
=no
;;
9920 gcc_cv_func_mmap_anon
=yes;;
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9924 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9928 if test $gcc_cv_func_mmap_file = yes; then
9930 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9933 if test $gcc_cv_func_mmap_dev_zero = yes; then
9935 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9938 if test $gcc_cv_func_mmap_anon = yes; then
9940 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9947 # Under VMS, vfork works very differently than on Unix. The standard test
9948 # won't work, and it isn't easily adaptable. It makes more sense to
9950 ac_cv_func_vfork_works
=yes
9953 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9954 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9958 cat >>confdefs.h
<<_ACEOF
9964 for ac_header
in vfork.h
9966 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9967 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9968 cat >>confdefs.h
<<_ACEOF
9969 #define HAVE_VFORK_H 1
9975 for ac_func
in fork vfork
9977 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9978 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9979 eval as_val
=\$
$as_ac_var
9980 if test "x$as_val" = x
""yes; then :
9981 cat >>confdefs.h
<<_ACEOF
9982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9988 if test "x$ac_cv_func_fork" = xyes
; then
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9990 $as_echo_n "checking for working fork... " >&6; }
9991 if test "${ac_cv_func_fork_works+set}" = set; then :
9992 $as_echo_n "(cached) " >&6
9994 if test "$cross_compiling" = yes; then :
9995 ac_cv_func_fork_works
=cross
9997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999 $ac_includes_default
10004 /* By Ruediger Kuhlmann. */
10005 return fork () < 0;
10011 if ac_fn_cxx_try_run
"$LINENO"; then :
10012 ac_cv_func_fork_works
=yes
10014 ac_cv_func_fork_works
=no
10016 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10017 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10022 $as_echo "$ac_cv_func_fork_works" >&6; }
10025 ac_cv_func_fork_works
=$ac_cv_func_fork
10027 if test "x$ac_cv_func_fork_works" = xcross
; then
10029 *-*-amigaos* |
*-*-msdosdjgpp*)
10030 # Override, as these systems have only a dummy fork() stub
10031 ac_cv_func_fork_works
=no
10034 ac_cv_func_fork_works
=yes
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10038 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10040 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10041 if test "x$ac_cv_func_vfork" = xyes
; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10043 $as_echo_n "checking for working vfork... " >&6; }
10044 if test "${ac_cv_func_vfork_works+set}" = set; then :
10045 $as_echo_n "(cached) " >&6
10047 if test "$cross_compiling" = yes; then :
10048 ac_cv_func_vfork_works
=cross
10050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 /* Thanks to Paul Eggert for this test. */
10053 $ac_includes_default
10054 #include <sys/wait.h>
10055 #ifdef HAVE_VFORK_H
10056 # include <vfork.h>
10058 /* On some sparc systems, changes by the child to local and incoming
10059 argument registers are propagated back to the parent. The compiler
10060 is told about this with #include <vfork.h>, but some compilers
10061 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10062 static variable whose address is put into a register that is
10063 clobbered by the vfork. */
10066 sparc_address_test (int arg)
10068 sparc_address_test (arg) int arg;
10071 static pid_t child;
10089 pid_t parent = getpid ();
10092 sparc_address_test (0);
10097 /* Here is another test for sparc vfork register problems. This
10098 test uses lots of local variables, at least as many local
10099 variables as main has allocated so far including compiler
10100 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10101 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10102 reuse the register of parent for one of the local variables,
10103 since it will think that parent can't possibly be used any more
10104 in this routine. Assigning to the local variable will thus
10105 munge parent in the parent process. */
10107 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10108 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10109 /* Convince the compiler that p..p7 are live; otherwise, it might
10110 use the same hardware register for all 8 local variables. */
10111 if (p != p1 || p != p2 || p != p3 || p != p4
10112 || p != p5 || p != p6 || p != p7)
10115 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10116 from child file descriptors. If the child closes a descriptor
10117 before it execs or exits, this munges the parent's descriptor
10118 as well. Test for this by closing stdout in the child. */
10119 _exit(close(fileno(stdout)) != 0);
10124 while (wait(&status) != child)
10127 /* Was there some problem with vforking? */
10130 /* Did the child fail? (This shouldn't happen.) */
10133 /* Did the vfork/compiler bug occur? */
10134 || parent != getpid()
10136 /* Did the file descriptor bug occur? */
10137 || fstat(fileno(stdout), &st) != 0
10142 if ac_fn_cxx_try_run
"$LINENO"; then :
10143 ac_cv_func_vfork_works
=yes
10145 ac_cv_func_vfork_works
=no
10147 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10148 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10153 $as_echo "$ac_cv_func_vfork_works" >&6; }
10156 if test "x$ac_cv_func_fork_works" = xcross
; then
10157 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10159 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10162 if test "x$ac_cv_func_vfork_works" = xyes
; then
10164 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10168 $as_echo "#define vfork fork" >>confdefs.h
10171 if test "x$ac_cv_func_fork_works" = xyes
; then
10173 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10179 if test "X$prefix" = "XNONE"; then
10180 acl_final_prefix
="$ac_default_prefix"
10182 acl_final_prefix
="$prefix"
10184 if test "X$exec_prefix" = "XNONE"; then
10185 acl_final_exec_prefix
='${prefix}'
10187 acl_final_exec_prefix
="$exec_prefix"
10189 acl_save_prefix
="$prefix"
10190 prefix
="$acl_final_prefix"
10191 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10192 prefix
="$acl_save_prefix"
10195 # Check whether --with-gnu-ld was given.
10196 if test "${with_gnu_ld+set}" = set; then :
10197 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10202 # Prepare PATH_SEPARATOR.
10203 # The user is always right.
10204 if test "${PATH_SEPARATOR+set}" != set; then
10205 echo "#! /bin/sh" >conf$$.sh
10206 echo "exit 0" >>conf$$.sh
10208 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10216 if test "$GCC" = yes; then
10217 # Check if gcc -print-prog-name=ld gives a path.
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10219 $as_echo_n "checking for ld used by GCC... " >&6; }
10222 # gcc leaves a trailing carriage return which upsets mingw
10223 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10225 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10228 # Accept absolute paths.
10229 [\\/]* |
[A-Za-z
]:[\\/]*)
10230 re_direlt
='/[^/][^/]*/\.\./'
10231 # Canonicalize the path of ld
10232 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10233 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10234 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10236 test -z "$LD" && LD
="$ac_prog"
10239 # If it fails, then pretend we aren't using GCC.
10243 # If it is relative, then search for the first ld in PATH.
10244 with_gnu_ld
=unknown
10247 elif test "$with_gnu_ld" = yes; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10249 $as_echo_n "checking for GNU ld... " >&6; }
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10252 $as_echo_n "checking for non-GNU ld... " >&6; }
10254 if test "${acl_cv_path_LD+set}" = set; then :
10255 $as_echo_n "(cached) " >&6
10257 if test -z "$LD"; then
10258 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10259 for ac_dir
in $PATH; do
10260 test -z "$ac_dir" && ac_dir
=.
10261 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10262 acl_cv_path_LD
="$ac_dir/$ac_prog"
10263 # Check to see if the program is GNU ld. I'd rather use --version,
10264 # but apparently some GNU ld's only accept -v.
10265 # Break only if it was the GNU/non-GNU ld that we prefer.
10266 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10267 test "$with_gnu_ld" != no
&& break
10269 test "$with_gnu_ld" != yes && break
10275 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10279 LD
="$acl_cv_path_LD"
10280 if test -n "$LD"; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10282 $as_echo "$LD" >&6; }
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285 $as_echo "no" >&6; }
10287 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10289 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10290 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10291 $as_echo_n "(cached) " >&6
10293 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10294 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10295 acl_cv_prog_gnu_ld
=yes
10297 acl_cv_prog_gnu_ld
=no
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10301 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10302 with_gnu_ld
=$acl_cv_prog_gnu_ld
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10307 $as_echo_n "checking for shared library run path origin... " >&6; }
10308 if test "${acl_cv_rpath+set}" = set; then :
10309 $as_echo_n "(cached) " >&6
10312 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10313 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10315 rm -f .
/conftest.sh
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10320 $as_echo "$acl_cv_rpath" >&6; }
10322 libext
="$acl_cv_libext"
10323 shlibext
="$acl_cv_shlibext"
10324 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10325 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10326 hardcode_direct
="$acl_cv_hardcode_direct"
10327 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10328 # Check whether --enable-rpath was given.
10329 if test "${enable_rpath+set}" = set; then :
10330 enableval
=$enable_rpath; :
10344 acl_save_prefix
="$prefix"
10345 prefix
="$acl_final_prefix"
10346 acl_save_exec_prefix
="$exec_prefix"
10347 exec_prefix
="$acl_final_exec_prefix"
10349 eval additional_includedir
=\"$includedir\"
10350 eval additional_libdir
=\"$libdir\"
10352 exec_prefix
="$acl_save_exec_prefix"
10353 prefix
="$acl_save_prefix"
10356 # Check whether --with-libiconv-prefix was given.
10357 if test "${with_libiconv_prefix+set}" = set; then :
10358 withval
=$with_libiconv_prefix;
10359 if test "X$withval" = "Xno"; then
10362 if test "X$withval" = "X"; then
10364 acl_save_prefix
="$prefix"
10365 prefix
="$acl_final_prefix"
10366 acl_save_exec_prefix
="$exec_prefix"
10367 exec_prefix
="$acl_final_exec_prefix"
10369 eval additional_includedir
=\"$includedir\"
10370 eval additional_libdir
=\"$libdir\"
10372 exec_prefix
="$acl_save_exec_prefix"
10373 prefix
="$acl_save_prefix"
10376 additional_includedir
="$withval/include"
10377 additional_libdir
="$withval/lib"
10388 names_already_handled
=
10389 names_next_round
='iconv '
10390 while test -n "$names_next_round"; do
10391 names_this_round
="$names_next_round"
10393 for name
in $names_this_round; do
10395 for n
in $names_already_handled; do
10396 if test "$n" = "$name"; then
10397 already_handled
=yes
10401 if test -z "$already_handled"; then
10402 names_already_handled
="$names_already_handled $name"
10403 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10404 eval value
=\"\
$HAVE_LIB$uppername\"
10405 if test -n "$value"; then
10406 if test "$value" = yes; then
10407 eval value
=\"\
$LIB$uppername\"
10408 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10409 eval value
=\"\
$LTLIB$uppername\"
10410 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10419 if test $use_additional = yes; then
10420 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10421 found_dir
="$additional_libdir"
10422 found_so
="$additional_libdir/lib$name.$shlibext"
10423 if test -f "$additional_libdir/lib$name.la"; then
10424 found_la
="$additional_libdir/lib$name.la"
10427 if test -f "$additional_libdir/lib$name.$libext"; then
10428 found_dir
="$additional_libdir"
10429 found_a
="$additional_libdir/lib$name.$libext"
10430 if test -f "$additional_libdir/lib$name.la"; then
10431 found_la
="$additional_libdir/lib$name.la"
10436 if test "X$found_dir" = "X"; then
10437 for x
in $LDFLAGS $LTLIBICONV; do
10439 acl_save_prefix
="$prefix"
10440 prefix
="$acl_final_prefix"
10441 acl_save_exec_prefix
="$exec_prefix"
10442 exec_prefix
="$acl_final_exec_prefix"
10444 exec_prefix
="$acl_save_exec_prefix"
10445 prefix
="$acl_save_prefix"
10449 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10450 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10452 found_so
="$dir/lib$name.$shlibext"
10453 if test -f "$dir/lib$name.la"; then
10454 found_la
="$dir/lib$name.la"
10457 if test -f "$dir/lib$name.$libext"; then
10459 found_a
="$dir/lib$name.$libext"
10460 if test -f "$dir/lib$name.la"; then
10461 found_la
="$dir/lib$name.la"
10467 if test "X$found_dir" != "X"; then
10472 if test "X$found_dir" != "X"; then
10473 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10474 if test "X$found_so" != "X"; then
10475 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10476 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10479 for x
in $ltrpathdirs; do
10480 if test "X$x" = "X$found_dir"; then
10485 if test -z "$haveit"; then
10486 ltrpathdirs
="$ltrpathdirs $found_dir"
10488 if test "$hardcode_direct" = yes; then
10489 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10491 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10492 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10494 for x
in $rpathdirs; do
10495 if test "X$x" = "X$found_dir"; then
10500 if test -z "$haveit"; then
10501 rpathdirs
="$rpathdirs $found_dir"
10505 for x
in $LDFLAGS $LIBICONV; do
10507 acl_save_prefix
="$prefix"
10508 prefix
="$acl_final_prefix"
10509 acl_save_exec_prefix
="$exec_prefix"
10510 exec_prefix
="$acl_final_exec_prefix"
10512 exec_prefix
="$acl_save_exec_prefix"
10513 prefix
="$acl_save_prefix"
10515 if test "X$x" = "X-L$found_dir"; then
10520 if test -z "$haveit"; then
10521 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10523 if test "$hardcode_minus_L" != no
; then
10524 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10526 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10532 if test "X$found_a" != "X"; then
10533 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10535 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10538 additional_includedir
=
10539 case "$found_dir" in
10541 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10542 additional_includedir
="$basedir/include"
10545 if test "X$additional_includedir" != "X"; then
10546 if test "X$additional_includedir" != "X/usr/include"; then
10548 if test "X$additional_includedir" = "X/usr/local/include"; then
10549 if test -n "$GCC"; then
10551 linux
*) haveit
=yes;;
10555 if test -z "$haveit"; then
10556 for x
in $CPPFLAGS $INCICONV; do
10558 acl_save_prefix
="$prefix"
10559 prefix
="$acl_final_prefix"
10560 acl_save_exec_prefix
="$exec_prefix"
10561 exec_prefix
="$acl_final_exec_prefix"
10563 exec_prefix
="$acl_save_exec_prefix"
10564 prefix
="$acl_save_prefix"
10566 if test "X$x" = "X-I$additional_includedir"; then
10571 if test -z "$haveit"; then
10572 if test -d "$additional_includedir"; then
10573 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10579 if test -n "$found_la"; then
10580 save_libdir
="$libdir"
10581 case "$found_la" in
10582 */* |
*\\*) .
"$found_la" ;;
10583 *) .
"./$found_la" ;;
10585 libdir
="$save_libdir"
10586 for dep
in $dependency_libs; do
10589 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10590 if test "X$additional_libdir" != "X/usr/lib"; then
10592 if test "X$additional_libdir" = "X/usr/local/lib"; then
10593 if test -n "$GCC"; then
10595 linux
*) haveit
=yes;;
10599 if test -z "$haveit"; then
10601 for x
in $LDFLAGS $LIBICONV; do
10603 acl_save_prefix
="$prefix"
10604 prefix
="$acl_final_prefix"
10605 acl_save_exec_prefix
="$exec_prefix"
10606 exec_prefix
="$acl_final_exec_prefix"
10608 exec_prefix
="$acl_save_exec_prefix"
10609 prefix
="$acl_save_prefix"
10611 if test "X$x" = "X-L$additional_libdir"; then
10616 if test -z "$haveit"; then
10617 if test -d "$additional_libdir"; then
10618 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10622 for x
in $LDFLAGS $LTLIBICONV; do
10624 acl_save_prefix
="$prefix"
10625 prefix
="$acl_final_prefix"
10626 acl_save_exec_prefix
="$exec_prefix"
10627 exec_prefix
="$acl_final_exec_prefix"
10629 exec_prefix
="$acl_save_exec_prefix"
10630 prefix
="$acl_save_prefix"
10632 if test "X$x" = "X-L$additional_libdir"; then
10637 if test -z "$haveit"; then
10638 if test -d "$additional_libdir"; then
10639 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10646 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10647 if test "$enable_rpath" != no
; then
10649 for x
in $rpathdirs; do
10650 if test "X$x" = "X$dir"; then
10655 if test -z "$haveit"; then
10656 rpathdirs
="$rpathdirs $dir"
10659 for x
in $ltrpathdirs; do
10660 if test "X$x" = "X$dir"; then
10665 if test -z "$haveit"; then
10666 ltrpathdirs
="$ltrpathdirs $dir"
10671 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10674 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10677 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10678 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10684 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10685 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10691 if test "X$rpathdirs" != "X"; then
10692 if test -n "$hardcode_libdir_separator"; then
10694 for found_dir
in $rpathdirs; do
10695 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10697 acl_save_libdir
="$libdir"
10699 eval flag
=\"$hardcode_libdir_flag_spec\"
10700 libdir
="$acl_save_libdir"
10701 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10703 for found_dir
in $rpathdirs; do
10704 acl_save_libdir
="$libdir"
10705 libdir
="$found_dir"
10706 eval flag
=\"$hardcode_libdir_flag_spec\"
10707 libdir
="$acl_save_libdir"
10708 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10712 if test "X$ltrpathdirs" != "X"; then
10713 for found_dir
in $ltrpathdirs; do
10714 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10725 $as_echo_n "checking for iconv... " >&6; }
10726 if test "${am_cv_func_iconv+set}" = set; then :
10727 $as_echo_n "(cached) " >&6
10730 am_cv_func_iconv
="no, consider installing GNU libiconv"
10732 am_save_CPPFLAGS
="$CPPFLAGS"
10733 CPPFLAGS
="$CPPFLAGS $INCICONV"
10734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10735 /* end confdefs.h. */
10736 #include <stdlib.h>
10741 iconv_t cd = iconv_open("","");
10742 iconv(cd,NULL,NULL,NULL,NULL);
10748 if ac_fn_cxx_try_link
"$LINENO"; then :
10749 am_cv_func_iconv
=yes
10751 rm -f core conftest.err conftest.
$ac_objext \
10752 conftest
$ac_exeext conftest.
$ac_ext
10753 CPPFLAGS
="$am_save_CPPFLAGS"
10755 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
10756 for _libs
in .libs _libs
; do
10757 am_save_CPPFLAGS
="$CPPFLAGS"
10758 am_save_LIBS
="$LIBS"
10759 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
10760 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
10761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10763 #include <stdlib.h>
10768 iconv_t cd = iconv_open("","");
10769 iconv(cd,NULL,NULL,NULL,NULL);
10775 if ac_fn_cxx_try_link
"$LINENO"; then :
10776 INCICONV
="-I../libiconv/include"
10777 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
10778 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
10779 am_cv_lib_iconv
=yes
10780 am_cv_func_iconv
=yes
10782 rm -f core conftest.err conftest.
$ac_objext \
10783 conftest
$ac_exeext conftest.
$ac_ext
10784 CPPFLAGS
="$am_save_CPPFLAGS"
10785 LIBS
="$am_save_LIBS"
10786 if test "$am_cv_func_iconv" = "yes"; then
10792 if test "$am_cv_func_iconv" != yes; then
10793 am_save_CPPFLAGS
="$CPPFLAGS"
10794 am_save_LIBS
="$LIBS"
10795 CPPFLAGS
="$LIBS $INCICONV"
10796 LIBS
="$LIBS $LIBICONV"
10797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 #include <stdlib.h>
10804 iconv_t cd = iconv_open("","");
10805 iconv(cd,NULL,NULL,NULL,NULL);
10811 if ac_fn_cxx_try_link
"$LINENO"; then :
10812 am_cv_lib_iconv
=yes
10813 am_cv_func_iconv
=yes
10815 rm -f core conftest.err conftest.
$ac_objext \
10816 conftest
$ac_exeext conftest.
$ac_ext
10817 CPPFLAGS
="$am_save_CPPFLAGS"
10818 LIBS
="$am_save_LIBS"
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10823 $as_echo "$am_cv_func_iconv" >&6; }
10824 if test "$am_cv_func_iconv" = yes; then
10826 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10829 if test "$am_cv_lib_iconv" = yes; then
10831 for element
in $INCICONV; do
10833 for x
in $CPPFLAGS; do
10835 acl_save_prefix
="$prefix"
10836 prefix
="$acl_final_prefix"
10837 acl_save_exec_prefix
="$exec_prefix"
10838 exec_prefix
="$acl_final_exec_prefix"
10840 exec_prefix
="$acl_save_exec_prefix"
10841 prefix
="$acl_save_prefix"
10843 if test "X$x" = "X$element"; then
10848 if test -z "$haveit"; then
10849 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10854 $as_echo_n "checking how to link with libiconv... " >&6; }
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10856 $as_echo "$LIBICONV" >&6; }
10864 if test "$am_cv_func_iconv" = yes; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10866 $as_echo_n "checking for iconv declaration... " >&6; }
10867 if test "${am_cv_proto_iconv+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10874 #include <stdlib.h>
10880 #if defined(__STDC__) || defined(__cplusplus)
10881 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10894 if ac_fn_cxx_try_compile
"$LINENO"; then :
10895 am_cv_proto_iconv_arg1
=""
10897 am_cv_proto_iconv_arg1
="const"
10899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10900 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);"
10903 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10905 }$am_cv_proto_iconv" >&5
10907 }$am_cv_proto_iconv" >&6; }
10909 cat >>confdefs.h
<<_ACEOF
10910 #define ICONV_CONST $am_cv_proto_iconv_arg1
10916 # Until we have in-tree GNU iconv:
10918 if test -f "$LTLIBICONV"; then
10919 LIBICONV_DEP
=$LTLIBICONV
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10925 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10926 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10927 $as_echo_n "(cached) " >&6
10929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931 #include <locale.h>
10940 if ac_fn_cxx_try_link
"$LINENO"; then :
10941 am_cv_val_LC_MESSAGES
=yes
10943 am_cv_val_LC_MESSAGES
=no
10945 rm -f core conftest.err conftest.
$ac_objext \
10946 conftest
$ac_exeext conftest.
$ac_ext
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10949 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10950 if test $am_cv_val_LC_MESSAGES = yes; then
10952 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10959 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10960 if test "${am_cv_langinfo_codeset+set}" = set; then :
10961 $as_echo_n "(cached) " >&6
10963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 #include <langinfo.h>
10969 char* cs = nl_langinfo(CODESET);
10974 if ac_fn_cxx_try_link
"$LINENO"; then :
10975 am_cv_langinfo_codeset
=yes
10977 am_cv_langinfo_codeset
=no
10979 rm -f core conftest.err conftest.
$ac_objext \
10980 conftest
$ac_exeext conftest.
$ac_ext
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10984 $as_echo "$am_cv_langinfo_codeset" >&6; }
10985 if test $am_cv_langinfo_codeset = yes; then
10987 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10992 # We will need to find libiberty.h and ansidecl.h
10993 saved_CFLAGS
="$CFLAGS"
10994 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10995 saved_CXXFLAGS
="$CXXFLAGS"
10996 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10998 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10999 # normal autoconf function for these. But force definition of
11000 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
11001 # basename handling in libiberty.h.
11002 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
11003 #undef HAVE_DECL_BASENAME
11004 #define HAVE_DECL_BASENAME 1
11005 #include \"ansidecl.h\"
11006 #include \"system.h\"
11008 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
11014 cat >>confdefs.h
<<_ACEOF
11015 #define HAVE_DECL_BASENAME $ac_have_decl
11017 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
11018 #undef HAVE_DECL_BASENAME
11019 #define HAVE_DECL_BASENAME 1
11020 #include \"ansidecl.h\"
11021 #include \"system.h\"
11023 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
11029 cat >>confdefs.h
<<_ACEOF
11030 #define HAVE_DECL_STRSTR $ac_have_decl
11034 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
11035 madvise stpcpy strnlen strsignal strverscmp \
11036 strtol strtoul strtoll strtoull setenv unsetenv \
11037 errno snprintf vsnprintf vasprintf malloc realloc calloc \
11038 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
11040 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11042 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11043 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11044 $as_echo_n "(cached) " >&6
11046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11047 /* end confdefs.h. */
11049 #define $ac_tr_decl 1
11051 #include "ansidecl.h"
11052 #include "system.h"
11058 char *(*pfn) = (char *(*)) $ac_func ;
11064 if ac_fn_cxx_try_compile
"$LINENO"; then :
11065 eval "gcc_cv_have_decl_$ac_func=yes"
11067 eval "gcc_cv_have_decl_$ac_func=no"
11069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11072 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11074 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11075 #define $ac_tr_decl 1
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11081 #define $ac_tr_decl 0
11089 for ac_func
in getrlimit setrlimit getrusage
11091 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11093 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11094 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11095 $as_echo_n "(cached) " >&6
11097 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11098 /* end confdefs.h. */
11100 #define $ac_tr_decl 1
11102 #include "ansidecl.h"
11103 #include "system.h"
11104 #ifdef HAVE_SYS_RESOURCE_H
11105 #include <sys/resource.h>
11113 char *(*pfn) = (char *(*)) $ac_func ;
11119 if ac_fn_cxx_try_compile
"$LINENO"; then :
11120 eval "gcc_cv_have_decl_$ac_func=yes"
11122 eval "gcc_cv_have_decl_$ac_func=no"
11124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11127 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11129 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11130 #define $ac_tr_decl 1
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11136 #define $ac_tr_decl 0
11144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11147 #include "ansidecl.h"
11148 #include "system.h"
11149 #ifdef HAVE_SYS_RESOURCE_H
11150 #include <sys/resource.h>
11161 if ac_fn_cxx_try_compile
"$LINENO"; then :
11165 $as_echo "#define rlim_t long" >>confdefs.h
11168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11170 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11171 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11172 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11173 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11174 for ac_func
in ldgetname
11176 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11178 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11179 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11180 $as_echo_n "(cached) " >&6
11182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11185 #define $ac_tr_decl 1
11187 #include "ansidecl.h"
11188 #include "system.h"
11189 #ifdef HAVE_LDFCN_H
11200 char *(*pfn) = (char *(*)) $ac_func ;
11206 if ac_fn_cxx_try_compile
"$LINENO"; then :
11207 eval "gcc_cv_have_decl_$ac_func=yes"
11209 eval "gcc_cv_have_decl_$ac_func=no"
11211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11214 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11216 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11217 #define $ac_tr_decl 1
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11223 #define $ac_tr_decl 0
11231 for ac_func
in times
11233 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11235 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11236 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11237 $as_echo_n "(cached) " >&6
11239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11242 #define $ac_tr_decl 1
11244 #include "ansidecl.h"
11245 #include "system.h"
11246 #ifdef HAVE_SYS_TIMES_H
11247 #include <sys/times.h>
11255 char *(*pfn) = (char *(*)) $ac_func ;
11261 if ac_fn_cxx_try_compile
"$LINENO"; then :
11262 eval "gcc_cv_have_decl_$ac_func=yes"
11264 eval "gcc_cv_have_decl_$ac_func=no"
11266 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11269 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11271 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11272 #define $ac_tr_decl 1
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11278 #define $ac_tr_decl 0
11286 for ac_func
in sigaltstack
11288 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11290 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11291 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11292 $as_echo_n "(cached) " >&6
11294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11297 #define $ac_tr_decl 1
11299 #include "ansidecl.h"
11300 #include "system.h"
11301 #include <signal.h>
11308 char *(*pfn) = (char *(*)) $ac_func ;
11314 if ac_fn_cxx_try_compile
"$LINENO"; then :
11315 eval "gcc_cv_have_decl_$ac_func=yes"
11317 eval "gcc_cv_have_decl_$ac_func=no"
11319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11322 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11324 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11325 #define $ac_tr_decl 1
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11330 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11331 #define $ac_tr_decl 0
11339 # More time-related stuff.
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11341 $as_echo_n "checking for struct tms... " >&6; }
11342 if test "${ac_cv_struct_tms+set}" = set; then :
11343 $as_echo_n "(cached) " >&6
11346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11347 /* end confdefs.h. */
11349 #include "ansidecl.h"
11350 #include "system.h"
11351 #ifdef HAVE_SYS_TIMES_H
11352 #include <sys/times.h>
11363 if ac_fn_cxx_try_compile
"$LINENO"; then :
11364 ac_cv_struct_tms
=yes
11366 ac_cv_struct_tms
=no
11368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11371 $as_echo "$ac_cv_struct_tms" >&6; }
11372 if test $ac_cv_struct_tms = yes; then
11374 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11378 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11379 # revisit after autoconf 2.50.
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11381 $as_echo_n "checking for clock_t... " >&6; }
11382 if test "${gcc_cv_type_clock_t+set}" = set; then :
11383 $as_echo_n "(cached) " >&6
11386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11387 /* end confdefs.h. */
11389 #include "ansidecl.h"
11390 #include "system.h"
11400 if ac_fn_cxx_try_compile
"$LINENO"; then :
11401 gcc_cv_type_clock_t
=yes
11403 gcc_cv_type_clock_t
=no
11405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11408 $as_echo "$gcc_cv_type_clock_t" >&6; }
11409 if test $gcc_cv_type_clock_t = yes; then
11411 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11415 # Check if F_SETLKW is supported by fcntl.
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11417 $as_echo_n "checking for F_SETLKW... " >&6; }
11418 if test "${ac_cv_f_setlkw+set}" = set; then :
11419 $as_echo_n "(cached) " >&6
11422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11435 return fcntl (1, F_SETLKW, &fl);
11440 if ac_fn_cxx_try_compile
"$LINENO"; then :
11445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11448 $as_echo "$ac_cv_f_setlkw" >&6; }
11449 if test $ac_cv_f_setlkw = yes; then
11451 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11455 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11456 CFLAGS
="$saved_CFLAGS"
11457 CXXFLAGS
="$saved_CXXFLAGS"
11459 # mkdir takes a single argument on some systems.
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11461 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11462 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11468 #include <sys/types.h>
11469 #ifdef HAVE_SYS_STAT_H
11470 # include <sys/stat.h>
11472 #ifdef HAVE_UNISTD_H
11473 # include <unistd.h>
11475 #ifdef HAVE_DIRECT_H
11476 # include <direct.h>
11486 if ac_fn_cxx_try_compile
"$LINENO"; then :
11487 gcc_cv_mkdir_takes_one_arg
=no
11489 gcc_cv_mkdir_takes_one_arg
=yes
11491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11494 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11495 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11497 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11508 # With Setjmp/Longjmp based exception handling.
11509 # Check whether --enable-sjlj-exceptions was given.
11510 if test "${enable_sjlj_exceptions+set}" = set; then :
11511 enableval
=$enable_sjlj_exceptions; case $target in
11513 if test $enableval != yes; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11515 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11520 force_sjlj_exceptions
=yes
11524 force_sjlj_exceptions
=yes
11528 force_sjlj_exceptions
=yes
11532 force_sjlj_exceptions
=no
11537 if test $force_sjlj_exceptions = yes; then
11538 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11540 cat >>confdefs.h
<<_ACEOF
11541 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11546 # --------------------------------------------------------
11547 # Build, host, and target specific configuration fragments
11548 # --------------------------------------------------------
11550 # Collect build-machine-specific information.
11551 .
${srcdir}/config.build ||
exit 1
11553 # Collect host-machine-specific information.
11554 .
${srcdir}/config.
host ||
exit 1
11558 # Collect target-machine-specific information.
11559 .
${srcdir}/config.gcc ||
exit 1
11561 extra_objs
="${host_extra_objs} ${extra_objs}"
11562 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11564 # Default the target-machine variables that were not explicitly set.
11565 if test x
"$tm_file" = x
11566 then tm_file
=$cpu_type/$cpu_type.h
; fi
11568 if test x
"$extra_headers" = x
11569 then extra_headers
=; fi
11571 if test x
$md_file = x
11572 then md_file
=$cpu_type/$cpu_type.md
; fi
11574 if test x
$out_file = x
11575 then out_file
=$cpu_type/$cpu_type.c
; fi
11577 if test x
"$tmake_file" = x
11578 then tmake_file
=$cpu_type/t-
$cpu_type
11581 # Support --enable-initfini-array.
11582 if test x
$enable_initfini_array != xno
; then
11583 tm_file
="${tm_file} initfini-array.h"
11586 if test x
"$dwarf2" = xyes
11587 then tm_file
="$tm_file tm-dwarf2.h"
11590 # Say what files are being used for the output code and MD file.
11591 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11592 echo "Using \`$srcdir/config/$md_file' as machine description file."
11594 # If any of the xm_file variables contain nonexistent files, warn
11595 # about them and drop them.
11598 for x
in $build_xm_file; do
11599 if test -f $srcdir/config
/$x
11601 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11602 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11605 build_xm_file
="$bx"
11608 for x
in $host_xm_file; do
11609 if test -f $srcdir/config
/$x
11611 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11612 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11618 for x
in $xm_file; do
11619 if test -f $srcdir/config
/$x
11621 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11622 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11628 for f
in $tm_file; do
11631 if test $count = ax
; then
11632 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11634 echo "Using the following target machine macro files:"
11635 for f
in $tm_file; do
11636 echo " $srcdir/config/$f"
11640 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11642 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11646 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11648 cat >>confdefs.h
<<_ACEOF
11649 #define HAVE_GNU_LD $gnu_ld_bool
11653 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11655 cat >>confdefs.h
<<_ACEOF
11656 #define HAVE_GNU_AS $gnu_as_bool
11661 for f
in $host_xm_file; do
11664 if test $count = a
; then
11666 elif test $count = ax
; then
11667 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11669 echo "Using the following host machine macro files:"
11670 for f
in $host_xm_file; do
11671 echo " $srcdir/config/$f"
11674 echo "Using ${out_host_hook_obj} for host machine hooks."
11676 if test "$host_xm_file" != "$build_xm_file"; then
11678 for f
in $build_xm_file; do
11681 if test $count = a
; then
11683 elif test $count = ax
; then
11684 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11686 echo "Using the following build machine macro files:"
11687 for f
in $build_xm_file; do
11688 echo " $srcdir/config/$f"
11693 if test -n "$configured_native_system_header_dir"; then
11694 native_system_header_dir
=$configured_native_system_header_dir
11696 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11700 powerpc
*-*-darwin*)
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11702 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11703 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11704 $as_echo_n "(cached) " >&6
11706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11709 #include <sys/cdefs.h>
11710 #include <sys/signal.h>
11711 #include <ucontext.h>
11712 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11715 if ac_fn_cxx_try_compile
"$LINENO"; then :
11716 gcc_cv_mcontext_underscores
=no
11718 gcc_cv_mcontext_underscores
=yes
11720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11723 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11724 if test $gcc_cv_mcontext_underscores = yes; then
11726 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11736 # Check if a valid thread package
11737 case ${enable_threads} in
11740 target_thread_file
='single'
11744 target_thread_file
='single'
11746 aix | dce | lynx | mipssde | posix | rtems | \
11747 single | tpf | vxworks | win32
)
11748 target_thread_file
=${enable_threads}
11751 echo "${enable_threads} is an unknown thread package" 1>&2
11756 if test x
${thread_file} = x
; then
11757 # No thread file set by target-specific clauses in config.gcc,
11758 # so use file chosen by default logic above
11759 thread_file
=${target_thread_file}
11767 if test x
$enable___cxa_atexit = xyes || \
11768 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11769 if test x
$host = x
$target; then
11771 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11772 # keyed to flag_use_cxa_atexit
11780 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11781 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11784 echo "__cxa_atexit can't be enabled on this target"
11790 # We can't check for __cxa_atexit when building a cross, so assume
11794 if test x
$use_cxa_atexit = xyes
; then
11796 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11801 # Look for a file containing extra machine modes.
11802 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11803 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11806 cat >>confdefs.h
<<_ACEOF
11807 #define EXTRA_MODES_FILE "config/$extra_modes"
11812 # Convert extra_options into a form suitable for Makefile use.
11815 for f
in $extra_options; do
11816 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11817 all_opt_files
="$all_opt_files $srcdir/config/$f"
11821 # auto-host.h is the file containing items generated by autoconf and is
11822 # the first file included by config.h.
11823 # If host=build, it is correct to have bconfig include auto-host.h
11824 # as well. If host!=build, we are in error and need to do more
11825 # work to find out the build config parameters.
11826 if test x
$host = x
$build
11828 build_auto
=auto-host.h
11830 # We create a subdir, then run autoconf in the subdir.
11831 # To prevent recursion we set host and build for the new
11832 # invocation of configure to the build for this invocation
11839 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11840 *) realsrcdir
=..
/${srcdir};;
11842 # Clearing GMPINC is necessary to prevent host headers being
11843 # used by the build compiler. Defining GENERATOR_FILE stops
11844 # system.h from including gmp.h.
11845 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11846 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11847 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11848 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11849 ${realsrcdir}/configure \
11850 --enable-languages=${enable_languages-all} \
11851 --target=$target_alias --host=$build_alias --build=$build_alias
11853 # We just finished tests for the build machine, so rename
11854 # the file auto-build.h in the gcc directory.
11855 mv auto-host.h ..
/auto-build.h
11858 build_auto
=auto-build.h
11862 tm_file
="${tm_file} defaults.h"
11863 tm_p_file
="${tm_p_file} tm-preds.h"
11864 tm_d_file
="${tm_d_file} defaults.h"
11865 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11866 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11867 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11868 # put this back in temporarily.
11869 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11875 # Compile in configure arguments.
11876 if test -f configargs.h
; then
11877 # Being re-configured.
11878 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11879 gcc_reconf_arguments
=`echo "$gcc_config_arguments" | sed -e 's/^.*\( : (reconfigured) .*$\)/\1/'`
11880 if [ "$gcc_reconf_arguments" != " : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS" ]; then
11881 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11884 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11887 # Double all backslashes and backslash all quotes to turn
11888 # gcc_config_arguments into a C string.
11889 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11890 $gcc_config_arguments
11892 gcc_config_arguments_str
=`cat conftest.out`
11895 cat > configargs.h
<<EOF
11896 /* Generated automatically. */
11897 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11898 static const char thread_model[] = "$thread_file";
11900 static const struct {
11901 const char *name, *value;
11902 } configure_default_options[] = $configure_default_options;
11905 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11906 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11907 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11908 if test -f $srcdir/REVISION
; then
11909 gcc_REVISION
=`cat $srcdir/REVISION`
11913 cat > plugin-version.h
<<EOF
11914 #include "configargs.h"
11916 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11917 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11918 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11919 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11921 static char basever[] = "$gcc_BASEVER";
11922 static char datestamp[] = "$gcc_DATESTAMP";
11923 static char devphase[] = "$gcc_DEVPHASE";
11924 static char revision[] = "$gcc_REVISION";
11926 /* FIXME plugins: We should make the version information more precise.
11927 One way to do is to add a checksum. */
11929 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11930 devphase, revision,
11931 configuration_arguments};
11934 # Determine what GCC version number to use in filesystem paths.
11936 get_gcc_base_ver
="cat"
11938 # Check whether --with-gcc-major-version-only was given.
11939 if test "${with_gcc_major_version_only+set}" = set; then :
11940 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
11941 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
11949 # Internationalization
11950 # If we haven't got the data from the intl directory,
11951 # assume NLS is disabled.
11960 if test -f ..
/intl
/config.intl
; then
11961 . ..
/intl
/config.intl
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11964 $as_echo_n "checking whether NLS is requested... " >&6; }
11965 if test x
"$USE_NLS" != xyes
; then
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967 $as_echo "no" >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11970 $as_echo "yes" >&6; }
11972 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11976 $as_echo_n "checking for catalogs to be installed... " >&6; }
11977 # Look for .po and .gmo files in the source directory.
11980 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11981 # If there aren't any .gmo files the shell will give us the
11982 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11984 case "$cat" in *\
**)
11987 # The quadruple backslash is collapsed to a double backslash
11988 # by the backticks, then collapsed again by the double quotes,
11989 # leaving us with one backslash in the sed expression (right
11990 # before the dot that mustn't act as a wildcard).
11991 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11992 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11993 # The user is allowed to set LINGUAS to a list of languages to
11994 # install catalogs for. If it's empty that means "all of them."
11995 if test "x$LINGUAS" = x
; then
11996 CATALOGS
="$CATALOGS $cat"
11997 XLINGUAS
="$XLINGUAS $lang"
11999 case "$LINGUAS" in *$lang*)
12000 CATALOGS
="$CATALOGS $cat"
12001 XLINGUAS
="$XLINGUAS $lang"
12006 LINGUAS
="$XLINGUAS"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12008 $as_echo "$LINGUAS" >&6; }
12021 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
12022 # -liconv on the link line twice.
12023 case "$LIBINTL" in *$LIBICONV*)
12027 # Check whether --enable-secureplt was given.
12028 if test "${enable_secureplt+set}" = set; then :
12029 enableval
=$enable_secureplt;
12033 # Check whether --enable-mingw-wildcard was given.
12034 if test "${enable_mingw_wildcard+set}" = set; then :
12035 enableval
=$enable_mingw_wildcard;
12037 enable_mingw_wildcard
=platform
12040 if test x
"$enable_mingw_wildcard" != xplatform
; then :
12042 cat >>confdefs.h
<<_ACEOF
12043 #define MINGW_DOWILDCARD $(test x"$enable_mingw_wildcard" = xno; echo $?)
12048 # Check whether --enable-large-address-aware was given.
12049 if test "${enable_large_address_aware+set}" = set; then :
12050 enableval
=$enable_large_address_aware;
12053 if test x
"$enable_large_address_aware" = xyes
; then :
12055 $as_echo "#define MINGW_DEFAULT_LARGE_ADDR_AWARE 1" >>confdefs.h
12059 # Check whether --enable-leading-mingw64-underscores was given.
12060 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12061 enableval
=$enable_leading_mingw64_underscores;
12064 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
12066 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12070 # Check whether --enable-cld was given.
12071 if test "${enable_cld+set}" = set; then :
12072 enableval
=$enable_cld;
12078 # Check whether --enable-frame-pointer was given.
12079 if test "${enable_frame_pointer+set}" = set; then :
12080 enableval
=$enable_frame_pointer;
12084 linux
* | darwin
[8912]*)
12085 # Enable -fomit-frame-pointer by default for Linux and Darwin with
12087 enable_frame_pointer
=no
12090 enable_frame_pointer
=yes
12097 # Windows32 Registry support for specifying GCC installation paths.
12098 # Check whether --enable-win32-registry was given.
12099 if test "${enable_win32_registry+set}" = set; then :
12100 enableval
=$enable_win32_registry;
12105 win32 | pe | cygwin
* | mingw32
*)
12106 if test "x$enable_win32_registry" != xno
; then
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
12108 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
12109 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12112 ac_func_search_save_LIBS
=$LIBS
12113 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12116 /* Override any GCC internal prototype to avoid an error.
12117 Use char because int might match the return type of a GCC
12118 builtin and then its argument prototype would still apply. */
12122 char RegOpenKeyExA ();
12126 return RegOpenKeyExA ();
12131 for ac_lib
in '' advapi32
; do
12132 if test -z "$ac_lib"; then
12133 ac_res
="none required"
12136 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12138 if ac_fn_cxx_try_link
"$LINENO"; then :
12139 ac_cv_search_RegOpenKeyExA
=$ac_res
12141 rm -f core conftest.err conftest.
$ac_objext \
12143 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12147 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
12150 ac_cv_search_RegOpenKeyExA
=no
12152 rm conftest.
$ac_ext
12153 LIBS
=$ac_func_search_save_LIBS
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
12156 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
12157 ac_res
=$ac_cv_search_RegOpenKeyExA
12158 if test "$ac_res" != no
; then :
12159 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12162 enable_win32_registry
=no
12167 if test "x$enable_win32_registry" != xno
; then
12169 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
12172 if test "x$enable_win32_registry" != xyes \
12173 && test "x$enable_win32_registry" != x
; then
12175 cat >>confdefs.h
<<_ACEOF
12176 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
12184 # Get an absolute path to the GCC top-level source directory
12185 holddir
=`${PWDCMD-pwd}`
12187 topdir
=`${PWDCMD-pwd}`
12190 # Conditionalize the makefile for this host machine.
12192 for f
in ${host_xmake_file}
12194 if test -f ${srcdir}/config
/$f
12196 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12200 # Conditionalize the makefile for this target machine.
12202 for f
in ${tmake_file}
12204 if test -f ${srcdir}/config
/$f
12206 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12209 tmake_file
="${tmake_file_}"
12211 out_object_file
=`basename $out_file .c`.o
12212 common_out_object_file
=`basename $common_out_file .c`.o
12214 tm_file_list
="options.h"
12215 tm_include_list
="options.h insn-constants.h"
12216 for f
in $tm_file; do
12219 f
=`echo $f | sed 's/^..//'`
12220 tm_file_list
="${tm_file_list} $f"
12221 tm_include_list
="${tm_include_list} $f"
12224 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12225 tm_include_list
="${tm_include_list} $f"
12228 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12229 tm_include_list
="${tm_include_list} config/$f"
12236 for f
in $tm_p_file; do
12239 tm_p_file_list
="${tm_p_file_list} $f"
12240 tm_p_include_list
="${tm_p_include_list} $f"
12243 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12244 tm_p_include_list
="${tm_p_include_list} config/$f"
12249 tm_d_include_list
="options.h insn-constants.h"
12250 for f
in $tm_d_file; do
12253 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/$f"
12254 tm_d_include_list
="${tm_d_include_list} $f"
12257 tm_d_file_list
="${tm_d_file_list} \$(srcdir)/config/$f"
12258 tm_d_include_list
="${tm_d_include_list} config/$f"
12265 for f
in $xm_file; do
12268 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12269 xm_include_list
="${xm_include_list} $f"
12272 xm_file_list
="${xm_file_list} $f"
12273 xm_include_list
="${xm_include_list} $f"
12276 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12277 xm_include_list
="${xm_include_list} config/$f"
12283 host_xm_include_list
=
12284 for f
in $host_xm_file; do
12287 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12288 host_xm_include_list
="${host_xm_include_list} $f"
12291 host_xm_file_list
="${host_xm_file_list} $f"
12292 host_xm_include_list
="${host_xm_include_list} $f"
12295 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12296 host_xm_include_list
="${host_xm_include_list} config/$f"
12301 build_xm_file_list
=
12302 for f
in $build_xm_file; do
12305 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12306 build_xm_include_list
="${build_xm_include_list} $f"
12308 auto-build.h | auto-host.h
)
12309 build_xm_file_list
="${build_xm_file_list} $f"
12310 build_xm_include_list
="${build_xm_include_list} $f"
12313 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12314 build_xm_include_list
="${build_xm_include_list} config/$f"
12319 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12320 # cross-compiler which does not use the native headers and libraries.
12321 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12324 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12325 BUILD_SYSTEM_HEADER_DIR
=$SYSTEM_HEADER_DIR
12327 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x ||
12328 test x
$build != x
$host ||
test "x$with_build_sysroot" != x
; then
12329 if test "x$with_build_sysroot" != x
; then
12330 BUILD_SYSTEM_HEADER_DIR
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12332 BUILD_SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12335 if test x
$host != x
$target
12337 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12339 SYSTEM_HEADER_DIR
=$BUILD_SYSTEM_HEADER_DIR
12340 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12341 SYSTEM_HEADER_DIR
='$(CROSS_SYSTEM_HEADER_DIR)'
12344 if test "x$with_build_sysroot" != "x"; then
12345 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12346 elif test "x$with_sysroot" = x
; then
12347 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12348 elif test "x$with_sysroot" = xyes
; then
12349 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12351 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12354 target_header_dir
=${native_system_header_dir}
12357 # If this is a cross-compiler that does not
12358 # have its own set of headers then define
12361 # If this is using newlib, without having the headers available now,
12362 # then define inhibit_libc in LIBGCC2_CFLAGS.
12363 # This prevents libgcc2 from containing any code which requires libc
12365 : ${inhibit_libc=false}
12366 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12367 test x
$with_newlib = xyes
; } &&
12368 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12373 # When building gcc with a cross-compiler, we need to adjust things so
12374 # that the generator programs are still built with the native compiler.
12375 # Also, we cannot run fixincludes.
12377 # These are the normal (build=host) settings:
12378 CC_FOR_BUILD
='$(CC)'
12379 CXX_FOR_BUILD
='$(CXX)'
12380 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12381 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12382 BUILD_LDFLAGS
='$(LDFLAGS)'
12383 STMP_FIXINC
=stmp-fixinc
12385 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS)'
12386 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG)'
12388 # And these apply if build != host, or we are generating coverage data
12389 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12391 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12392 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12393 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12395 NO_PIE_CFLAGS_FOR_BUILD
=${NO_PIE_CFLAGS_FOR_BUILD-${NO_PIE_CFLAGS}}
12396 NO_PIE_FLAG_FOR_BUILD
=${NO_PIE_FLAG_FOR_BUILD-${NO_PIE_FLAG}}
12397 BUILD_NO_PIE_CFLAGS
='$(NO_PIE_CFLAGS_FOR_BUILD)'
12398 BUILD_NO_PIE_FLAG
='$(NO_PIE_FLAG_FOR_BUILD)'
12403 # Expand extra_headers to include complete path.
12404 # This substitutes for lots of t-* files.
12405 extra_headers_list
=
12406 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12407 for file in ${extra_headers} ; do
12408 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12411 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12412 if test x
"$use_gcc_tgmath" = xyes
12413 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12416 # Define collect2 in Makefile.
12417 case $host_can_use_collect2 in
12419 *) collect2
='collect2$(exeext)' ;;
12423 # Add a definition of USE_COLLECT2 if system wants one.
12424 case $use_collect2 in
12425 no
) use_collect2
= ;;
12428 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12429 xm_defines
="${xm_defines} USE_COLLECT2"
12430 case $host_can_use_collect2 in
12432 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12439 cat >>confdefs.h
<<_ACEOF
12440 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12444 # ---------------------------
12445 # Assembler & linker features
12446 # ---------------------------
12448 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12449 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12450 # However when ld-new is first executed from the build tree, libtool will
12451 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12452 # to the build tree. While doing this we need to use the previous-stage
12453 # linker, or we have an infinite loop. The presence of a shell script as
12454 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12455 # the gcc/collect-ld script. So we need to know how libtool works, or
12456 # exec-tool will fail.
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12462 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12467 macro_version
='2.2.7a'
12468 macro_revision
='1.3134'
12482 ltmain
="$ac_aux_dir/ltmain.sh"
12484 # Backslashify metacharacters that are still active within
12485 # double-quoted strings.
12486 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12488 # Same as above, but do not quote variable references.
12489 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12491 # Sed substitution to delay expansion of an escaped shell variable in a
12492 # double_quote_subst'ed string.
12493 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12495 # Sed substitution to delay expansion of an escaped single quote.
12496 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12498 # Sed substitution to avoid accidental globbing in evaled expressions
12499 no_glob_subst
='s/\*/\\\*/g'
12501 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12502 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12503 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12506 $as_echo_n "checking how to print strings... " >&6; }
12507 # Test print first, because it will be a builtin if present.
12508 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12509 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12511 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12514 # Use this function as a fallback that always works.
12515 func_fallback_echo ()
12517 eval 'cat <<_LTECHO_EOF
12521 ECHO='func_fallback_echo
'
12524 # func_echo_all arg...
12525 # Invoke $ECHO with all args, space-separated.
12532 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12533 $as_echo "printf" >&6; } ;;
12534 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12535 $as_echo "print -r" >&6; } ;;
12536 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12537 $as_echo "cat" >&6; } ;;
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12554 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12555 if test "${ac_cv_path_SED+set}" = set; then :
12556 $as_echo_n "(cached) " >&6
12558 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12559 for ac_i in 1 2 3 4 5 6 7; do
12560 ac_script="$ac_script$as_nl$ac_script"
12562 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12563 { ac_script=; unset ac_script;}
12564 if test -z "$SED"; then
12565 ac_path_SED_found=false
12566 # Loop through the user's path and
test for each of PROGNAME-LIST
12567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12568 for as_dir
in $PATH
12571 test -z "$as_dir" && as_dir
=.
12572 for ac_prog
in sed gsed
; do
12573 for ac_exec_ext
in '' $ac_executable_extensions; do
12574 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12575 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12576 # Check for GNU ac_path_SED and select it if it is found.
12577 # Check for GNU $ac_path_SED
12578 case `"$ac_path_SED" --version 2>&1` in
12580 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12583 $as_echo_n 0123456789 >"conftest.in"
12586 cat "conftest.in" "conftest.in" >"conftest.tmp"
12587 mv "conftest.tmp" "conftest.in"
12588 cp "conftest.in" "conftest.nl"
12589 $as_echo '' >> "conftest.nl"
12590 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12591 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12592 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12593 if test $ac_count -gt ${ac_path_SED_max-0}; then
12594 # Best one so far, save it but keep looking for a better one
12595 ac_cv_path_SED
="$ac_path_SED"
12596 ac_path_SED_max
=$ac_count
12598 # 10*(2^10) chars as input seems more than enough
12599 test $ac_count -gt 10 && break
12601 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12604 $ac_path_SED_found && break 3
12609 if test -z "$ac_cv_path_SED"; then
12610 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12613 ac_cv_path_SED
=$SED
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12618 $as_echo "$ac_cv_path_SED" >&6; }
12619 SED
="$ac_cv_path_SED"
12622 test -z "$SED" && SED
=sed
12623 Xsed
="$SED -e 1s/^X//"
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12636 $as_echo_n "checking for fgrep... " >&6; }
12637 if test "${ac_cv_path_FGREP+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12640 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12641 then ac_cv_path_FGREP
="$GREP -F"
12643 if test -z "$FGREP"; then
12644 ac_path_FGREP_found
=false
12645 # Loop through the user's path and test for each of PROGNAME-LIST
12646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12647 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12650 test -z "$as_dir" && as_dir
=.
12651 for ac_prog
in fgrep
; do
12652 for ac_exec_ext
in '' $ac_executable_extensions; do
12653 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12654 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12655 # Check for GNU ac_path_FGREP and select it if it is found.
12656 # Check for GNU $ac_path_FGREP
12657 case `"$ac_path_FGREP" --version 2>&1` in
12659 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12662 $as_echo_n 0123456789 >"conftest.in"
12665 cat "conftest.in" "conftest.in" >"conftest.tmp"
12666 mv "conftest.tmp" "conftest.in"
12667 cp "conftest.in" "conftest.nl"
12668 $as_echo 'FGREP' >> "conftest.nl"
12669 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12670 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12671 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12672 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12673 # Best one so far, save it but keep looking for a better one
12674 ac_cv_path_FGREP
="$ac_path_FGREP"
12675 ac_path_FGREP_max
=$ac_count
12677 # 10*(2^10) chars as input seems more than enough
12678 test $ac_count -gt 10 && break
12680 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12683 $ac_path_FGREP_found && break 3
12688 if test -z "$ac_cv_path_FGREP"; then
12689 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12692 ac_cv_path_FGREP
=$FGREP
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12698 $as_echo "$ac_cv_path_FGREP" >&6; }
12699 FGREP
="$ac_cv_path_FGREP"
12702 test -z "$GREP" && GREP
=grep
12722 # Check whether --with-gnu-ld was given.
12723 if test "${with_gnu_ld+set}" = set; then :
12724 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12730 if test "$GCC" = yes; then
12731 # Check if gcc -print-prog-name=ld gives a path.
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12733 $as_echo_n "checking for ld used by $CC... " >&6; }
12736 # gcc leaves a trailing carriage return which upsets mingw
12737 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12739 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12742 # Accept absolute paths.
12744 re_direlt
='/[^/][^/]*/\.\./'
12745 # Canonicalize the pathname of ld
12746 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12747 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12748 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12750 test -z "$LD" && LD
="$ac_prog"
12753 # If it fails, then pretend we aren't using GCC.
12757 # If it is relative, then search for the first ld in PATH.
12758 with_gnu_ld
=unknown
12761 elif test "$with_gnu_ld" = yes; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12763 $as_echo_n "checking for GNU ld... " >&6; }
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12766 $as_echo_n "checking for non-GNU ld... " >&6; }
12768 if test "${lt_cv_path_LD+set}" = set; then :
12769 $as_echo_n "(cached) " >&6
12771 if test -z "$LD"; then
12772 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12773 for ac_dir
in $PATH; do
12775 test -z "$ac_dir" && ac_dir
=.
12776 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12777 lt_cv_path_LD
="$ac_dir/$ac_prog"
12778 # Check to see if the program is GNU ld. I'd rather use --version,
12779 # but apparently some variants of GNU ld only accept -v.
12780 # Break only if it was the GNU/non-GNU ld that we prefer.
12781 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12782 *GNU
* |
*'with BFD'*)
12783 test "$with_gnu_ld" != no
&& break
12786 test "$with_gnu_ld" != yes && break
12793 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12797 LD
="$lt_cv_path_LD"
12798 if test -n "$LD"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12800 $as_echo "$LD" >&6; }
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803 $as_echo "no" >&6; }
12805 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12807 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12808 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
12811 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12812 case `$LD -v 2>&1 </dev/null` in
12813 *GNU
* |
*'with BFD'*)
12814 lt_cv_prog_gnu_ld
=yes
12817 lt_cv_prog_gnu_ld
=no
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12822 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12823 with_gnu_ld
=$lt_cv_prog_gnu_ld
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12834 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12835 if test "${lt_cv_path_NM+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
12838 if test -n "$NM"; then
12839 # Let the user override the test.
12840 lt_cv_path_NM
="$NM"
12842 lt_nm_to_check
="${ac_tool_prefix}nm"
12843 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12844 lt_nm_to_check
="$lt_nm_to_check nm"
12846 for lt_tmp_nm
in $lt_nm_to_check; do
12847 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12848 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12850 test -z "$ac_dir" && ac_dir
=.
12851 tmp_nm
="$ac_dir/$lt_tmp_nm"
12852 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12853 # Check to see if the nm accepts a BSD-compat flag.
12854 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12855 # nm: unknown option "B" ignored
12856 # Tru64's nm complains that /dev/null is an invalid object file
12857 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12858 */dev
/null
* |
*'Invalid file or object type'*)
12859 lt_cv_path_NM
="$tmp_nm -B"
12863 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12865 lt_cv_path_NM
="$tmp_nm -p"
12869 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12870 continue # so that we can try to find one that supports BSD flags
12879 : ${lt_cv_path_NM=no}
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12883 $as_echo "$lt_cv_path_NM" >&6; }
12884 if test "$lt_cv_path_NM" != "no"; then
12885 NM
="$lt_cv_path_NM"
12887 # Didn't find any BSD compatible name lister, look for dumpbin.
12888 if test -n "$DUMPBIN"; then :
12889 # Let the user override the test.
12891 if test -n "$ac_tool_prefix"; then
12892 for ac_prog
in dumpbin
"link -dump"
12894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12895 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897 $as_echo_n "checking for $ac_word... " >&6; }
12898 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12901 if test -n "$DUMPBIN"; then
12902 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12905 for as_dir
in $PATH
12908 test -z "$as_dir" && as_dir
=.
12909 for ac_exec_ext
in '' $ac_executable_extensions; do
12910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12911 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 DUMPBIN
=$ac_cv_prog_DUMPBIN
12922 if test -n "$DUMPBIN"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12924 $as_echo "$DUMPBIN" >&6; }
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12931 test -n "$DUMPBIN" && break
12934 if test -z "$DUMPBIN"; then
12935 ac_ct_DUMPBIN
=$DUMPBIN
12936 for ac_prog
in dumpbin
"link -dump"
12938 # Extract the first word of "$ac_prog", so it can be a program name with args.
12939 set dummy
$ac_prog; ac_word
=$2
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12941 $as_echo_n "checking for $ac_word... " >&6; }
12942 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12943 $as_echo_n "(cached) " >&6
12945 if test -n "$ac_ct_DUMPBIN"; then
12946 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12949 for as_dir
in $PATH
12952 test -z "$as_dir" && as_dir
=.
12953 for ac_exec_ext
in '' $ac_executable_extensions; do
12954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12955 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12965 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12966 if test -n "$ac_ct_DUMPBIN"; then
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12968 $as_echo "$ac_ct_DUMPBIN" >&6; }
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12971 $as_echo "no" >&6; }
12975 test -n "$ac_ct_DUMPBIN" && break
12978 if test "x$ac_ct_DUMPBIN" = x
; then
12981 case $cross_compiling:$ac_tool_warned in
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12985 ac_tool_warned
=yes ;;
12987 DUMPBIN
=$ac_ct_DUMPBIN
12991 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12993 DUMPBIN
="$DUMPBIN -symbols"
13001 if test "$DUMPBIN" != ":"; then
13005 test -z "$NM" && NM
=nm
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13013 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
13014 if test "${lt_cv_nm_interface+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
13017 lt_cv_nm_interface
="BSD nm"
13018 echo "int some_variable = 0;" > conftest.
$ac_ext
13019 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13020 (eval "$ac_compile" 2>conftest.err
)
13021 cat conftest.err
>&5
13022 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13023 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
13024 cat conftest.err
>&5
13025 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13026 cat conftest.out
>&5
13027 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
13028 lt_cv_nm_interface
="MS dumpbin"
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13033 $as_echo "$lt_cv_nm_interface" >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13036 $as_echo_n "checking whether ln -s works... " >&6; }
13038 if test "$LN_S" = "ln -s"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13040 $as_echo "yes" >&6; }
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13043 $as_echo "no, using $LN_S" >&6; }
13046 # find the maximum length of command line arguments
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13048 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
13049 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
13050 $as_echo_n "(cached) " >&6
13057 # On DJGPP, this test can blow up pretty badly due to problems in libc
13058 # (any single argument exceeding 2000 bytes causes a buffer overrun
13059 # during glob expansion). Even if it were fixed, the result of this
13060 # check would be larger than it should be.
13061 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
13065 # Under GNU Hurd, this test is not required because there is
13066 # no limit to the length of command line arguments.
13067 # Libtool will interpret -1 as no limit whatsoever
13068 lt_cv_sys_max_cmd_len
=-1;
13071 cygwin
* | mingw
* | cegcc
*)
13072 # On Win9x/ME, this test blows up -- it succeeds, but takes
13073 # about 5 minutes as the teststring grows exponentially.
13074 # Worse, since 9x/ME are not pre-emptively multitasking,
13075 # you end up with a "frozen" computer, even though with patience
13076 # the test eventually succeeds (with a max line length of 256k).
13077 # Instead, let's just punt: use the minimum linelength reported by
13078 # all of the supported platforms: 8192 (on NT/2K/XP).
13079 lt_cv_sys_max_cmd_len
=8192;
13083 # On MiNT this can take a long time and run out of memory.
13084 lt_cv_sys_max_cmd_len
=8192;
13088 # On AmigaOS with pdksh, this test takes hours, literally.
13089 # So we just punt and use a minimum line length of 8192.
13090 lt_cv_sys_max_cmd_len
=8192;
13093 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
13094 # This has been around since 386BSD, at least. Likely further.
13095 if test -x /sbin
/sysctl
; then
13096 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
13097 elif test -x /usr
/sbin
/sysctl
; then
13098 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
13100 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
13102 # And add a safety zone
13103 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13104 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13108 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13109 lt_cv_sys_max_cmd_len
=196608
13113 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13114 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13115 # nice to cause kernel panics so lets avoid the loop below.
13116 # First set a reasonable default.
13117 lt_cv_sys_max_cmd_len
=16384
13119 if test -x /sbin
/sysconfig
; then
13120 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13121 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
13126 lt_cv_sys_max_cmd_len
=102400
13128 sysv5
* | sco5v6
* | sysv4.2uw2
*)
13129 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13130 if test -n "$kargmax"; then
13131 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
13133 lt_cv_sys_max_cmd_len
=32768
13137 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
13138 if test -n "$lt_cv_sys_max_cmd_len"; then
13139 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
13140 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
13142 # Make teststring a little bigger before we do anything with it.
13143 # a 1K string should be a reasonable start.
13144 for i
in 1 2 3 4 5 6 7 8 ; do
13145 teststring
=$teststring$teststring
13147 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
13148 # If test is not a shell built-in, we'll probably end up computing a
13149 # maximum length that is only half of the actual maximum length, but
13151 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
13152 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
13153 test $i != 17 # 1/2 MB should be enough
13156 teststring
=$teststring$teststring
13158 # Only check the string length outside the loop.
13159 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
13161 # Add a significant safety factor because C++ compilers can tack on
13162 # massive amounts of additional arguments before passing them to the
13163 # linker. It appears as though 1/2 is a usable value.
13164 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
13171 if test -n $lt_cv_sys_max_cmd_len ; then
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13173 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13176 $as_echo "none" >&6; }
13178 max_cmd_len
=$lt_cv_sys_max_cmd_len
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13190 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13191 # Try some XSI features
13193 ( _lt_dummy
="a/b/c"
13194 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13196 && eval 'test $(( 1 + 1 )) -eq 2 \
13197 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13200 $as_echo "$xsi_shell" >&6; }
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13204 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13206 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13208 && lt_shell_append=yes
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13210 $as_echo "$lt_shell_append" >&6; }
13213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13223 # test EBCDIC or ASCII
13224 case `echo X|tr X '\101'` in
13225 A) # ASCII based system
13226 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13227 lt_SP2NL='tr \040 \012'
13228 lt_NL2SP='tr \015\012 \040\040'
13230 *) # EBCDIC based system
13231 lt_SP2NL='tr \100 \n'
13232 lt_NL2SP='tr \r\n \100\100'
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13245 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13246 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13247 $as_echo_n "(cached
) " >&6
13249 lt_cv_ld_reload_flag='-r'
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13252 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13253 reload_flag=$lt_cv_ld_reload_flag
13254 case $reload_flag in
13256 *) reload_flag=" $reload_flag" ;;
13258 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13261 if test "$GCC" = yes; then
13262 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13264 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13277 if test -n "$ac_tool_prefix"; then
13278 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13279 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13281 $as_echo_n "checking
for $ac_word...
" >&6; }
13282 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13283 $as_echo_n "(cached
) " >&6
13285 if test -n "$OBJDUMP"; then
13286 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $PATH
13292 test -z "$as_dir" && as_dir=.
13293 for ac_exec_ext in '' $ac_executable_extensions; do
13294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13295 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13296 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13305 OBJDUMP=$ac_cv_prog_OBJDUMP
13306 if test -n "$OBJDUMP"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13308 $as_echo "$OBJDUMP" >&6; }
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13311 $as_echo "no
" >&6; }
13316 if test -z "$ac_cv_prog_OBJDUMP"; then
13317 ac_ct_OBJDUMP=$OBJDUMP
13318 # Extract the first word of "objdump
", so it can be a program name with args.
13319 set dummy objdump; ac_word=$2
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13321 $as_echo_n "checking
for $ac_word...
" >&6; }
13322 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13323 $as_echo_n "(cached
) " >&6
13325 if test -n "$ac_ct_OBJDUMP"; then
13326 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13335 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13336 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13345 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13346 if test -n "$ac_ct_OBJDUMP"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13348 $as_echo "$ac_ct_OBJDUMP" >&6; }
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13351 $as_echo "no
" >&6; }
13354 if test "x
$ac_ct_OBJDUMP" = x; then
13357 case $cross_compiling:$ac_tool_warned in
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13360 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13361 ac_tool_warned=yes ;;
13363 OBJDUMP=$ac_ct_OBJDUMP
13366 OBJDUMP="$ac_cv_prog_OBJDUMP"
13369 test -z "$OBJDUMP" && OBJDUMP=objdump
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13380 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13381 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13382 $as_echo_n "(cached
) " >&6
13384 lt_cv_file_magic_cmd='$MAGIC_CMD'
13385 lt_cv_file_magic_test_file=
13386 lt_cv_deplibs_check_method='unknown'
13387 # Need to set the preceding variable on all platforms that support
13388 # interlibrary dependencies.
13389 # 'none' -- dependencies not supported.
13390 # `unknown' -- same as none, but documents that we really don't know.
13391 # 'pass_all' -- all dependencies passed with no checks.
13392 # 'test_compile' -- check by making test program.
13393 # 'file_magic [[regex]]' -- check by looking for files in library path
13394 # which responds to the $file_magic_cmd with a given extended regex.
13395 # If you have `file' or equivalent on your system and you're not sure
13396 # whether `pass_all' will *always* work, you probably want this one.
13400 lt_cv_deplibs_check_method=pass_all
13404 lt_cv_deplibs_check_method=pass_all
13408 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13409 lt_cv_file_magic_cmd='/usr/bin/file -L'
13410 lt_cv_file_magic_test_file=/shlib/libc.so
13414 # func_win32_libid is a shell function defined in ltmain.sh
13415 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13416 lt_cv_file_magic_cmd='func_win32_libid'
13420 # Base MSYS/MinGW do not provide the 'file' command needed by
13421 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13422 # unless we find 'file', for example because we are cross-compiling.
13423 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13424 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13425 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13426 lt_cv_file_magic_cmd='func_win32_libid'
13428 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13429 lt_cv_file_magic_cmd='$OBJDUMP -f'
13434 # use the weaker test based on 'objdump'. See mingw*.
13435 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13436 lt_cv_file_magic_cmd='$OBJDUMP -f'
13439 darwin* | rhapsody*)
13440 lt_cv_deplibs_check_method=pass_all
13443 freebsd* | dragonfly*)
13444 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13447 # Not sure whether the presence of OpenBSD here was a mistake.
13448 # Let's accept both of them until this is cleared up.
13449 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13450 lt_cv_file_magic_cmd=/usr/bin/file
13451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13455 lt_cv_deplibs_check_method=pass_all
13460 lt_cv_deplibs_check_method=pass_all
13464 lt_cv_deplibs_check_method=pass_all
13467 hpux10.20* | hpux11*)
13468 lt_cv_file_magic_cmd=/usr/bin/file
13471 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13472 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13475 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]'
13476 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13479 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13480 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13486 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13490 irix5* | irix6* | nonstopux*)
13492 *-32|*"-32 ") libmagic=32-bit;;
13493 *-n32|*"-n32 ") libmagic=N32;;
13494 *-64|*"-64 ") libmagic=64-bit;;
13495 *) libmagic=never-match;;
13497 lt_cv_deplibs_check_method=pass_all
13500 # This must be Linux ELF.
13501 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13502 lt_cv_deplibs_check_method=pass_all
13506 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13515 lt_cv_file_magic_cmd=/usr/bin/file
13516 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13520 lt_cv_deplibs_check_method=pass_all
13524 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13525 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13531 osf3* | osf4* | osf5*)
13532 lt_cv_deplibs_check_method=pass_all
13536 lt_cv_deplibs_check_method=pass_all
13540 lt_cv_deplibs_check_method=pass_all
13543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13544 lt_cv_deplibs_check_method=pass_all
13548 case $host_vendor in
13550 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]'
13551 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13554 lt_cv_deplibs_check_method=pass_all
13557 lt_cv_file_magic_cmd='/bin/file'
13558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13561 lt_cv_file_magic_cmd='/bin/file'
13562 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13563 lt_cv_file_magic_test_file=/lib/libc.so
13566 lt_cv_deplibs_check_method=pass_all
13569 lt_cv_deplibs_check_method=pass_all
13575 lt_cv_deplibs_check_method=pass_all
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13581 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13582 file_magic_cmd=$lt_cv_file_magic_cmd
13583 deplibs_check_method=$lt_cv_deplibs_check_method
13584 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13597 if test -n "$ac_tool_prefix"; then
13598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13599 set dummy ${ac_tool_prefix}ar; ac_word=$2
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13601 $as_echo_n "checking
for $ac_word...
" >&6; }
13602 if test "${ac_cv_prog_AR+set}" = set; then :
13603 $as_echo_n "(cached
) " >&6
13605 if test -n "$AR"; then
13606 ac_cv_prog_AR="$AR" # Let the user override the test.
13608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH
13612 test -z "$as_dir" && as_dir=.
13613 for ac_exec_ext in '' $ac_executable_extensions; do
13614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13615 ac_cv_prog_AR="${ac_tool_prefix}ar"
13616 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13626 if test -n "$AR"; then
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13628 $as_echo "$AR" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13631 $as_echo "no
" >&6; }
13636 if test -z "$ac_cv_prog_AR"; then
13638 # Extract the first word of "ar", so it can be a program name with args.
13639 set dummy ar; ac_word=$2
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13641 $as_echo_n "checking
for $ac_word...
" >&6; }
13642 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13643 $as_echo_n "(cached
) " >&6
13645 if test -n "$ac_ct_AR"; then
13646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
13654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13655 ac_cv_prog_ac_ct_AR="ar"
13656 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13665 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13666 if test -n "$ac_ct_AR"; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13668 $as_echo "$ac_ct_AR" >&6; }
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13671 $as_echo "no
" >&6; }
13674 if test "x
$ac_ct_AR" = x; then
13677 case $cross_compiling:$ac_tool_warned in
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13680 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13681 ac_tool_warned=yes ;;
13686 AR="$ac_cv_prog_AR"
13689 test -z "$AR" && AR=ar
13690 test -z "$AR_FLAGS" && AR_FLAGS=cru
13702 if test -n "$ac_tool_prefix"; then
13703 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13704 set dummy ${ac_tool_prefix}strip; ac_word=$2
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13706 $as_echo_n "checking
for $ac_word...
" >&6; }
13707 if test "${ac_cv_prog_STRIP+set}" = set; then :
13708 $as_echo_n "(cached
) " >&6
13710 if test -n "$STRIP"; then
13711 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13714 for as_dir in $PATH
13717 test -z "$as_dir" && as_dir=.
13718 for ac_exec_ext in '' $ac_executable_extensions; do
13719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13720 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13730 STRIP=$ac_cv_prog_STRIP
13731 if test -n "$STRIP"; then
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13733 $as_echo "$STRIP" >&6; }
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13736 $as_echo "no
" >&6; }
13741 if test -z "$ac_cv_prog_STRIP"; then
13743 # Extract the first word of "strip
", so it can be a program name with args.
13744 set dummy strip; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13746 $as_echo_n "checking
for $ac_word...
" >&6; }
13747 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13748 $as_echo_n "(cached
) " >&6
13750 if test -n "$ac_ct_STRIP"; then
13751 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13760 ac_cv_prog_ac_ct_STRIP="strip
"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13770 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13771 if test -n "$ac_ct_STRIP"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13773 $as_echo "$ac_ct_STRIP" >&6; }
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13776 $as_echo "no
" >&6; }
13779 if test "x
$ac_ct_STRIP" = x; then
13782 case $cross_compiling:$ac_tool_warned in
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13785 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13786 ac_tool_warned=yes ;;
13791 STRIP="$ac_cv_prog_STRIP"
13794 test -z "$STRIP" && STRIP=:
13801 if test -n "$ac_tool_prefix"; then
13802 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13803 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13805 $as_echo_n "checking
for $ac_word...
" >&6; }
13806 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13807 $as_echo_n "(cached
) " >&6
13809 if test -n "$RANLIB"; then
13810 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13819 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13829 RANLIB=$ac_cv_prog_RANLIB
13830 if test -n "$RANLIB"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13832 $as_echo "$RANLIB" >&6; }
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13835 $as_echo "no
" >&6; }
13840 if test -z "$ac_cv_prog_RANLIB"; then
13841 ac_ct_RANLIB=$RANLIB
13842 # Extract the first word of "ranlib
", so it can be a program name with args.
13843 set dummy ranlib; ac_word=$2
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13845 $as_echo_n "checking
for $ac_word...
" >&6; }
13846 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13847 $as_echo_n "(cached
) " >&6
13849 if test -n "$ac_ct_RANLIB"; then
13850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13853 for as_dir in $PATH
13856 test -z "$as_dir" && as_dir=.
13857 for ac_exec_ext in '' $ac_executable_extensions; do
13858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13859 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13860 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13869 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13870 if test -n "$ac_ct_RANLIB"; then
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13872 $as_echo "$ac_ct_RANLIB" >&6; }
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13875 $as_echo "no
" >&6; }
13878 if test "x
$ac_ct_RANLIB" = x; then
13881 case $cross_compiling:$ac_tool_warned in
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13884 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13885 ac_tool_warned=yes ;;
13887 RANLIB=$ac_ct_RANLIB
13890 RANLIB="$ac_cv_prog_RANLIB"
13893 test -z "$RANLIB" && RANLIB=:
13900 # Determine commands to create old-style static archives.
13901 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13902 old_postinstall_cmds='chmod 644 $oldlib'
13903 old_postuninstall_cmds=
13905 if test -n "$RANLIB"; then
13908 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13911 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13914 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13919 lock_old_archive_extraction=yes ;;
13921 lock_old_archive_extraction=no ;;
13962 # If no C compiler was specified, use CC.
13965 # If no C compiler flags were specified, use CFLAGS.
13966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13968 # Allow CC to be a program name with arguments.
13972 # Check for command to grab the raw symbol name followed by C symbol from nm.
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13974 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13975 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13976 $as_echo_n "(cached
) " >&6
13979 # These are sane defaults that work on at least a few old systems.
13980 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13982 # Character class describing NM global symbol codes.
13983 symcode='[BCDEGRST]'
13985 # Regexp to match symbols that can be accessed directly from C.
13986 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13988 # Define system-specific variables.
13993 cygwin* | mingw* | pw32* | cegcc*)
13994 symcode='[ABCDGISTW]'
13997 if test "$host_cpu" = ia64; then
13998 symcode='[ABCDEGRST]'
14001 irix* | nonstopux*)
14002 symcode='[BCDEGRST]'
14005 symcode='[BCDEGQRST]'
14016 sysv5* | sco5v6* | unixware* | OpenUNIX*)
14024 # If we're using GNU nm, then use its standard symbol codes.
14025 case `$NM -V 2>&1` in
14026 *GNU* | *'with BFD'*)
14027 symcode='[ABCDGIRSTW]' ;;
14030 # Transform an extracted symbol line into a proper C declaration.
14031 # Some systems (esp. on ia64) link data and code symbols differently,
14032 # so use this general approach.
14033 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14035 # Transform an extracted symbol line into symbol name and symbol address
14036 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
14037 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'"
14039 # Handle CRLF in mingw tool chain
14043 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14047 # Try without a prefix underscore, then with it.
14048 for ac_symprfx in "" "_
"; do
14050 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14051 symxfrm="\\1 $ac_symprfx\\2 \\2"
14053 # Write the raw and C identifiers.
14054 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
14055 # Fake it for dumpbin and say T for any non-static function
14056 # and D for any global variable.
14057 # Also find C++ and __fastcall symbols from MSVC++,
14058 # which start with @ or ?.
14059 lt_cv_sys_global_symbol_pipe="$AWK '"\
14060 " {last_section=section; section=\$ 3};"\
14061 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14062 " \$ 0!~/External *\|/{next};"\
14063 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14064 " {if(hide[section]) next};"\
14065 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
14066 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
14067 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
14068 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
14069 " ' prfx
=^
$ac_symprfx"
14071 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14074 # Check to see that the pipe works correctly.
14078 cat > conftest.$ac_ext <<_LT_EOF
14083 void nm_test_func(void);
14084 void nm_test_func(void){}
14088 int main(){nm_test_var='a';nm_test_func();return(0);}
14091 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14092 (eval $ac_compile) 2>&5
14094 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14095 test $ac_status = 0; }; then
14096 # Now try to grab the symbols.
14098 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
14099 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14101 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14102 test $ac_status = 0; } && test -s "$nlist"; then
14103 # Try sorting and uniquifying the output.
14104 if sort "$nlist" | uniq > "$nlist"T; then
14105 mv -f "$nlist"T "$nlist"
14110 # Make sure that we snagged all the symbols we need.
14111 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14112 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14113 cat <<_LT_EOF > conftest.$ac_ext
14119 # Now generate the symbol file.
14120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14122 cat <<_LT_EOF >> conftest.$ac_ext
14124 /* The mapping between symbol names and symbols. */
14129 lt__PROGRAM__LTX_preloaded_symbols[] =
14131 { "@PROGRAM@
", (void *) 0 },
14133 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14134 cat <<\_LT_EOF >> conftest.$ac_ext
14138 /* This works around a problem in FreeBSD linker */
14139 #ifdef FREEBSD_WORKAROUND
14140 static const void *lt_preloaded_setup() {
14141 return lt__PROGRAM__LTX_preloaded_symbols;
14149 # Now try linking the two files.
14150 mv conftest.$ac_objext conftstm.$ac_objext
14151 lt_save_LIBS="$LIBS"
14152 lt_save_CFLAGS="$CFLAGS"
14153 LIBS="conftstm.
$ac_objext"
14154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14155 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14156 (eval $ac_link) 2>&5
14158 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14159 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
14162 LIBS="$lt_save_LIBS"
14163 CFLAGS="$lt_save_CFLAGS"
14165 echo "cannot
find nm_test_func
in $nlist" >&5
14168 echo "cannot
find nm_test_var
in $nlist" >&5
14171 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
14174 echo "$progname: failed program was
:" >&5
14175 cat conftest.$ac_ext >&5
14177 rm -rf conftest* conftst*
14179 # Do not use the global_symbol_pipe unless it works.
14180 if test "$pipe_works" = yes; then
14183 lt_cv_sys_global_symbol_pipe=
14189 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14190 lt_cv_sys_global_symbol_to_cdecl=
14192 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14194 $as_echo "failed
" >&6; }
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14197 $as_echo "ok
" >&6; }
14221 # Check whether --enable-libtool-lock was given.
14222 if test "${enable_libtool_lock+set}" = set; then :
14223 enableval=$enable_libtool_lock;
14226 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14228 # Some flags need to be propagated to the compiler or linker for good
14232 # Find out which ABI we are using.
14233 echo 'int i;' > conftest.$ac_ext
14234 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14235 (eval $ac_compile) 2>&5
14237 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14238 test $ac_status = 0; }; then
14239 case `/usr/bin/file conftest.$ac_objext` in
14241 HPUX_IA64_MODE="32"
14244 HPUX_IA64_MODE="64"
14251 # Find out which ABI we are using.
14252 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14253 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14254 (eval $ac_compile) 2>&5
14256 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14257 test $ac_status = 0; }; then
14258 if test "$lt_cv_prog_gnu_ld" = yes; then
14259 case `/usr/bin/file conftest.$ac_objext` in
14261 LD="${LD-ld} -melf32bsmip"
14264 LD="${LD-ld} -melf32bmipn32"
14267 LD="${LD-ld} -melf64bmip"
14271 case `/usr/bin/file conftest.$ac_objext` in
14287 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14288 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14289 # Find out which ABI we are using.
14290 echo 'int i;' > conftest.$ac_ext
14291 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14292 (eval $ac_compile) 2>&5
14294 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14295 test $ac_status = 0; }; then
14296 case `/usr/bin/file conftest.o` in
14299 x86_64-*kfreebsd*-gnu)
14300 LD="${LD-ld} -m elf_i386_fbsd
"
14303 case `/usr/bin/file conftest.o` in
14305 LD="${LD-ld} -m elf32_x86_64
"
14308 LD="${LD-ld} -m elf_i386
"
14312 powerpc64le-*linux*)
14313 LD="${LD-ld} -m elf32lppclinux
"
14316 LD="${LD-ld} -m elf32ppclinux
"
14319 LD="${LD-ld} -m elf_s390
"
14322 LD="${LD-ld} -m elf32_sparc
"
14328 x86_64-*kfreebsd*-gnu)
14329 LD="${LD-ld} -m elf_x86_64_fbsd
"
14332 LD="${LD-ld} -m elf_x86_64
"
14335 LD="${LD-ld} -m elf64lppc
"
14338 LD="${LD-ld} -m elf64ppc
"
14340 s390*-*linux*|s390*-*tpf*)
14341 LD="${LD-ld} -m elf64_s390
"
14344 LD="${LD-ld} -m elf64_sparc
"
14354 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14355 SAVE_CFLAGS="$CFLAGS"
14356 CFLAGS="$CFLAGS -belf"
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14358 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14359 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14360 $as_echo_n "(cached
) " >&6
14363 ac_cpp='$CPP $CPPFLAGS'
14364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14379 if ac_fn_c_try_link "$LINENO"; then :
14380 lt_cv_cc_needs_belf=yes
14382 lt_cv_cc_needs_belf=no
14384 rm -f core conftest.err conftest.$ac_objext \
14385 conftest$ac_exeext conftest.$ac_ext
14387 ac_cpp='$CPP $CPPFLAGS'
14388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14394 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14395 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14396 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14397 CFLAGS="$SAVE_CFLAGS"
14401 # Find out which ABI we are using.
14402 echo 'int i;' > conftest.$ac_ext
14403 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14404 (eval $ac_compile) 2>&5
14406 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14407 test $ac_status = 0; }; then
14408 case `/usr/bin/file conftest.o` in
14410 case $lt_cv_prog_gnu_ld in
14411 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14413 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14425 need_locks="$enable_libtool_lock"
14429 rhapsody* | darwin*)
14430 if test -n "$ac_tool_prefix"; then
14431 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14432 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14434 $as_echo_n "checking
for $ac_word...
" >&6; }
14435 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14436 $as_echo_n "(cached
) " >&6
14438 if test -n "$DSYMUTIL"; then
14439 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14448 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14458 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14459 if test -n "$DSYMUTIL"; then
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14461 $as_echo "$DSYMUTIL" >&6; }
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14464 $as_echo "no
" >&6; }
14469 if test -z "$ac_cv_prog_DSYMUTIL"; then
14470 ac_ct_DSYMUTIL=$DSYMUTIL
14471 # Extract the first word of "dsymutil
", so it can be a program name with args.
14472 set dummy dsymutil; ac_word=$2
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14474 $as_echo_n "checking
for $ac_word...
" >&6; }
14475 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14476 $as_echo_n "(cached
) " >&6
14478 if test -n "$ac_ct_DSYMUTIL"; then
14479 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14485 test -z "$as_dir" && as_dir=.
14486 for ac_exec_ext in '' $ac_executable_extensions; do
14487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14488 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14489 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14498 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14499 if test -n "$ac_ct_DSYMUTIL"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14501 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14504 $as_echo "no
" >&6; }
14507 if test "x
$ac_ct_DSYMUTIL" = x; then
14510 case $cross_compiling:$ac_tool_warned in
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14513 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14514 ac_tool_warned=yes ;;
14516 DSYMUTIL=$ac_ct_DSYMUTIL
14519 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14522 if test -n "$ac_tool_prefix"; then
14523 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14524 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14526 $as_echo_n "checking
for $ac_word...
" >&6; }
14527 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14528 $as_echo_n "(cached
) " >&6
14530 if test -n "$NMEDIT"; then
14531 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in $PATH
14537 test -z "$as_dir" && as_dir=.
14538 for ac_exec_ext in '' $ac_executable_extensions; do
14539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14540 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14541 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14550 NMEDIT=$ac_cv_prog_NMEDIT
14551 if test -n "$NMEDIT"; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14553 $as_echo "$NMEDIT" >&6; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14556 $as_echo "no
" >&6; }
14561 if test -z "$ac_cv_prog_NMEDIT"; then
14562 ac_ct_NMEDIT=$NMEDIT
14563 # Extract the first word of "nmedit
", so it can be a program name with args.
14564 set dummy nmedit; ac_word=$2
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14566 $as_echo_n "checking
for $ac_word...
" >&6; }
14567 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14568 $as_echo_n "(cached
) " >&6
14570 if test -n "$ac_ct_NMEDIT"; then
14571 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574 for as_dir in $PATH
14577 test -z "$as_dir" && as_dir=.
14578 for ac_exec_ext in '' $ac_executable_extensions; do
14579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14580 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14581 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14590 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14591 if test -n "$ac_ct_NMEDIT"; then
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14593 $as_echo "$ac_ct_NMEDIT" >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14596 $as_echo "no
" >&6; }
14599 if test "x
$ac_ct_NMEDIT" = x; then
14602 case $cross_compiling:$ac_tool_warned in
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14605 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14606 ac_tool_warned=yes ;;
14608 NMEDIT=$ac_ct_NMEDIT
14611 NMEDIT="$ac_cv_prog_NMEDIT"
14614 if test -n "$ac_tool_prefix"; then
14615 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14616 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14618 $as_echo_n "checking
for $ac_word...
" >&6; }
14619 if test "${ac_cv_prog_LIPO+set}" = set; then :
14620 $as_echo_n "(cached
) " >&6
14622 if test -n "$LIPO"; then
14623 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14626 for as_dir in $PATH
14629 test -z "$as_dir" && as_dir=.
14630 for ac_exec_ext in '' $ac_executable_extensions; do
14631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14632 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14642 LIPO=$ac_cv_prog_LIPO
14643 if test -n "$LIPO"; then
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14645 $as_echo "$LIPO" >&6; }
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14648 $as_echo "no
" >&6; }
14653 if test -z "$ac_cv_prog_LIPO"; then
14655 # Extract the first word of "lipo
", so it can be a program name with args.
14656 set dummy lipo; ac_word=$2
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14658 $as_echo_n "checking
for $ac_word...
" >&6; }
14659 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14660 $as_echo_n "(cached
) " >&6
14662 if test -n "$ac_ct_LIPO"; then
14663 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14666 for as_dir in $PATH
14669 test -z "$as_dir" && as_dir=.
14670 for ac_exec_ext in '' $ac_executable_extensions; do
14671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14672 ac_cv_prog_ac_ct_LIPO="lipo
"
14673 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14682 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14683 if test -n "$ac_ct_LIPO"; then
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14685 $as_echo "$ac_ct_LIPO" >&6; }
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14688 $as_echo "no
" >&6; }
14691 if test "x
$ac_ct_LIPO" = x; then
14694 case $cross_compiling:$ac_tool_warned in
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14697 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14698 ac_tool_warned=yes ;;
14703 LIPO="$ac_cv_prog_LIPO"
14706 if test -n "$ac_tool_prefix"; then
14707 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14708 set dummy ${ac_tool_prefix}otool; ac_word=$2
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14710 $as_echo_n "checking
for $ac_word...
" >&6; }
14711 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14712 $as_echo_n "(cached
) " >&6
14714 if test -n "$OTOOL"; then
14715 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14718 for as_dir in $PATH
14721 test -z "$as_dir" && as_dir=.
14722 for ac_exec_ext in '' $ac_executable_extensions; do
14723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14724 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14725 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14734 OTOOL=$ac_cv_prog_OTOOL
14735 if test -n "$OTOOL"; then
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14737 $as_echo "$OTOOL" >&6; }
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14740 $as_echo "no
" >&6; }
14745 if test -z "$ac_cv_prog_OTOOL"; then
14747 # Extract the first word of "otool
", so it can be a program name with args.
14748 set dummy otool; ac_word=$2
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14750 $as_echo_n "checking
for $ac_word...
" >&6; }
14751 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14752 $as_echo_n "(cached
) " >&6
14754 if test -n "$ac_ct_OTOOL"; then
14755 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14758 for as_dir in $PATH
14761 test -z "$as_dir" && as_dir=.
14762 for ac_exec_ext in '' $ac_executable_extensions; do
14763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14764 ac_cv_prog_ac_ct_OTOOL="otool
"
14765 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14774 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14775 if test -n "$ac_ct_OTOOL"; then
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14777 $as_echo "$ac_ct_OTOOL" >&6; }
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14780 $as_echo "no
" >&6; }
14783 if test "x
$ac_ct_OTOOL" = x; then
14786 case $cross_compiling:$ac_tool_warned in
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14789 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14790 ac_tool_warned=yes ;;
14795 OTOOL="$ac_cv_prog_OTOOL"
14798 if test -n "$ac_tool_prefix"; then
14799 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14800 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14802 $as_echo_n "checking
for $ac_word...
" >&6; }
14803 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14804 $as_echo_n "(cached
) " >&6
14806 if test -n "$OTOOL64"; then
14807 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14810 for as_dir in $PATH
14813 test -z "$as_dir" && as_dir=.
14814 for ac_exec_ext in '' $ac_executable_extensions; do
14815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14816 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14817 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14826 OTOOL64=$ac_cv_prog_OTOOL64
14827 if test -n "$OTOOL64"; then
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14829 $as_echo "$OTOOL64" >&6; }
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14832 $as_echo "no
" >&6; }
14837 if test -z "$ac_cv_prog_OTOOL64"; then
14838 ac_ct_OTOOL64=$OTOOL64
14839 # Extract the first word of "otool64
", so it can be a program name with args.
14840 set dummy otool64; ac_word=$2
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14842 $as_echo_n "checking
for $ac_word...
" >&6; }
14843 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14844 $as_echo_n "(cached
) " >&6
14846 if test -n "$ac_ct_OTOOL64"; then
14847 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14850 for as_dir in $PATH
14853 test -z "$as_dir" && as_dir=.
14854 for ac_exec_ext in '' $ac_executable_extensions; do
14855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14856 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14866 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14867 if test -n "$ac_ct_OTOOL64"; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14869 $as_echo "$ac_ct_OTOOL64" >&6; }
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14872 $as_echo "no
" >&6; }
14875 if test "x
$ac_ct_OTOOL64" = x; then
14878 case $cross_compiling:$ac_tool_warned in
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14881 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14882 ac_tool_warned=yes ;;
14884 OTOOL64=$ac_ct_OTOOL64
14887 OTOOL64="$ac_cv_prog_OTOOL64"
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14917 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14918 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14919 $as_echo_n "(cached
) " >&6
14921 lt_cv_apple_cc_single_mod=no
14922 if test -z "${LT_MULTI_MODULE}"; then
14923 # By default we will add the -single_module flag. You can override
14924 # by either setting the environment variable LT_MULTI_MODULE
14925 # non-empty at configure time, or by adding -multi_module to the
14927 rm -rf libconftest.dylib*
14928 echo "int foo
(void
){return 1;}" > conftest.c
14929 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14930 -dynamiclib -Wl,-single_module conftest.c
" >&5
14931 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14932 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14934 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14935 lt_cv_apple_cc_single_mod=yes
14937 cat conftest.err >&5
14939 rm -rf libconftest.dylib*
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14944 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14946 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14947 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14948 $as_echo_n "(cached
) " >&6
14950 lt_cv_ld_exported_symbols_list=no
14951 save_LDFLAGS=$LDFLAGS
14952 echo "_main
" > conftest.sym
14953 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14965 if ac_fn_c_try_link "$LINENO"; then :
14966 lt_cv_ld_exported_symbols_list=yes
14968 lt_cv_ld_exported_symbols_list=no
14970 rm -f core conftest.err conftest.$ac_objext \
14971 conftest$ac_exeext conftest.$ac_ext
14972 LDFLAGS="$save_LDFLAGS"
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14976 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14978 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14979 if test "${lt_cv_ld_force_load+set}" = set; then :
14980 $as_echo_n "(cached
) " >&6
14982 lt_cv_ld_force_load=no
14983 cat > conftest.c << _LT_EOF
14984 int forced_loaded() { return 2;}
14986 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14987 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14988 echo "$AR cru libconftest.a conftest.o
" >&5
14989 $AR cru libconftest.a conftest.o 2>&5
14990 cat > conftest.c << _LT_EOF
14991 int main() { return 0;}
14993 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14994 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14996 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14997 lt_cv_ld_force_load=yes
14999 cat conftest.err >&5
15001 rm -f conftest.err libconftest.a conftest conftest.c
15002 rm -rf conftest.dSYM
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
15006 $as_echo "$lt_cv_ld_force_load" >&6; }
15008 rhapsody* | darwin1.[012])
15009 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
15011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15012 darwin*) # darwin 5.x on
15013 # if running on 10.5 or later, the deployment target defaults
15014 # to the OS version, if on x86, and 10.4, the deployment
15015 # target defaults to 10.4. Don't you love it?
15016 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15017 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
15022 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
15026 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
15027 _lt_dar_single_mod='$single_module'
15029 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
15030 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
15032 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
15034 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
15035 _lt_dsymutil='~$DSYMUTIL $lib || :'
15043 for ac_header in dlfcn.h
15045 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
15046 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
15047 cat >>confdefs.h <<_ACEOF
15048 #define HAVE_DLFCN_H 1
15065 enable_win32_dll=no
15068 # Check whether --enable-shared was given.
15069 if test "${enable_shared+set}" = set; then :
15070 enableval=$enable_shared; p=${PACKAGE-default}
15072 yes) enable_shared=yes ;;
15073 no) enable_shared=no ;;
15076 # Look at the argument we got. We use all the common list separators.
15077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15078 for pkg in $enableval; do
15080 if test "X
$pkg" = "X
$p"; then
15099 # Check whether --enable-static was given.
15100 if test "${enable_static+set}" = set; then :
15101 enableval=$enable_static; p=${PACKAGE-default}
15103 yes) enable_static=yes ;;
15104 no) enable_static=no ;;
15107 # Look at the argument we got. We use all the common list separators.
15108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15109 for pkg in $enableval; do
15111 if test "X
$pkg" = "X
$p"; then
15131 # Check whether --with-pic was given.
15132 if test "${with_pic+set}" = set; then :
15133 withval=$with_pic; pic_mode="$withval"
15139 test -z "$pic_mode" && pic_mode=default
15147 # Check whether --enable-fast-install was given.
15148 if test "${enable_fast_install+set}" = set; then :
15149 enableval=$enable_fast_install; p=${PACKAGE-default}
15151 yes) enable_fast_install=yes ;;
15152 no) enable_fast_install=no ;;
15154 enable_fast_install=no
15155 # Look at the argument we got. We use all the common list separators.
15156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15157 for pkg in $enableval; do
15159 if test "X
$pkg" = "X
$p"; then
15160 enable_fast_install=yes
15167 enable_fast_install=yes
15180 # This can be used to rebuild libtool when needed
15181 LIBTOOL_DEPS="$ltmain"
15183 # Always use our own libtool.
15184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15211 test -z "$LN_S" && LN_S="ln -s"
15226 if test -n "${ZSH_VERSION+set}" ; then
15227 setopt NO_GLOB_SUBST
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15231 $as_echo_n "checking
for objdir...
" >&6; }
15232 if test "${lt_cv_objdir+set}" = set; then :
15233 $as_echo_n "(cached
) " >&6
15235 rm -f .libs 2>/dev/null
15236 mkdir .libs 2>/dev/null
15237 if test -d .libs; then
15240 # MS-DOS does not allow filenames that begin with a dot.
15243 rmdir .libs 2>/dev/null
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15246 $as_echo "$lt_cv_objdir" >&6; }
15247 objdir=$lt_cv_objdir
15253 cat >>confdefs.h <<_ACEOF
15254 #define LT_OBJDIR "$lt_cv_objdir/"
15262 # AIX sometimes has problems with the GCC collect2 program. For some
15263 # reason, if we set the COLLECT_NAMES environment variable, the problems
15264 # vanish in a puff of smoke.
15265 if test "X
${COLLECT_NAMES+set}" != Xset; then
15267 export COLLECT_NAMES
15272 # Global variables:
15274 can_build_shared=yes
15276 # All known linkers require a `.a' archive for static linking (except MSVC,
15277 # which needs '.lib').
15280 with_gnu_ld="$lt_cv_prog_gnu_ld"
15283 old_CFLAGS="$CFLAGS"
15285 # Set sane defaults for various variables
15286 test -z "$CC" && CC=cc
15287 test -z "$LTCC" && LTCC=$CC
15288 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15289 test -z "$LD" && LD=ld
15290 test -z "$ac_objext" && ac_objext=o
15292 for cc_temp in $compiler""; do
15294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15300 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15303 # Only perform the check for file, if the check method requires it
15304 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15305 case $deplibs_check_method in
15307 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15309 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15311 $as_echo_n "(cached
) " >&6
15315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15318 lt_save_MAGIC_CMD="$MAGIC_CMD"
15319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15320 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15321 for ac_dir in $ac_dummy; do
15323 test -z "$ac_dir" && ac_dir=.
15324 if test -f $ac_dir/${ac_tool_prefix}file; then
15325 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15326 if test -n "$file_magic_test_file"; then
15327 case $deplibs_check_method in
15329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15332 $EGREP "$file_magic_regex" > /dev/null; then
15337 *** Warning: the command libtool uses to detect shared libraries,
15338 *** $file_magic_cmd, produces output that libtool cannot recognize.
15339 *** The result is that libtool may fail to recognize shared libraries
15340 *** as such. This will affect the creation of libtool libraries that
15341 *** depend on shared libraries, but programs linked with such libtool
15342 *** libraries will work regardless of this problem. Nevertheless, you
15343 *** may want to report the problem to your system manager and/or to
15344 *** bug-libtool@gnu.org
15354 MAGIC_CMD="$lt_save_MAGIC_CMD"
15359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15360 if test -n "$MAGIC_CMD"; then
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15362 $as_echo "$MAGIC_CMD" >&6; }
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15365 $as_echo "no
" >&6; }
15372 if test -z "$lt_cv_path_MAGIC_CMD"; then
15373 if test -n "$ac_tool_prefix"; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15375 $as_echo_n "checking
for file...
" >&6; }
15376 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15377 $as_echo_n "(cached
) " >&6
15381 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15384 lt_save_MAGIC_CMD="$MAGIC_CMD"
15385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15386 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15387 for ac_dir in $ac_dummy; do
15389 test -z "$ac_dir" && ac_dir=.
15390 if test -f $ac_dir/file; then
15391 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15392 if test -n "$file_magic_test_file"; then
15393 case $deplibs_check_method in
15395 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15397 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15398 $EGREP "$file_magic_regex" > /dev/null; then
15403 *** Warning: the command libtool uses to detect shared libraries,
15404 *** $file_magic_cmd, produces output that libtool cannot recognize.
15405 *** The result is that libtool may fail to recognize shared libraries
15406 *** as such. This will affect the creation of libtool libraries that
15407 *** depend on shared libraries, but programs linked with such libtool
15408 *** libraries will work regardless of this problem. Nevertheless, you
15409 *** may want to report the problem to your system manager and/or to
15410 *** bug-libtool@gnu.org
15420 MAGIC_CMD="$lt_save_MAGIC_CMD"
15425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15426 if test -n "$MAGIC_CMD"; then
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15428 $as_echo "$MAGIC_CMD" >&6; }
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15431 $as_echo "no
" >&6; }
15444 # Use C for the default configuration in the libtool script
15448 ac_cpp='$CPP $CPPFLAGS'
15449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15454 # Source file extension for C test sources.
15457 # Object file extension for compiled C test sources.
15461 # Code to be used in simple compile tests
15462 lt_simple_compile_test_code="int some_variable
= 0;"
15464 # Code to be used in simple link tests
15465 lt_simple_link_test_code='int main(){return(0);}'
15473 # If no C compiler was specified, use CC.
15476 # If no C compiler flags were specified, use CFLAGS.
15477 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15479 # Allow CC to be a program name with arguments.
15482 # Save the default compiler, since it gets overwritten when the other
15483 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15484 compiler_DEFAULT=$CC
15486 # save warnings/boilerplate of simple test code
15487 ac_outfile=conftest.$ac_objext
15488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15490 _lt_compiler_boilerplate=`cat conftest.err`
15493 ac_outfile=conftest.$ac_objext
15494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15496 _lt_linker_boilerplate=`cat conftest.err`
15501 ## There is no encapsulation within the following macros, do not change
15502 ## the running order or otherwise move them around unless you know exactly
15503 ## what you are doing...
15504 if test -n "$compiler"; then
15506 lt_prog_compiler_no_builtin_flag=
15508 if test "$GCC" = yes; then
15509 case $cc_basename in
15511 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15513 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15517 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15518 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15519 $as_echo_n "(cached
) " >&6
15521 lt_cv_prog_compiler_rtti_exceptions=no
15522 ac_outfile=conftest.$ac_objext
15523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15524 lt_compiler_flag="-fno-rtti -fno-exceptions"
15525 # Insert the option either (1) after the last *FLAGS variable, or
15526 # (2) before a word containing "conftest.
", or (3) at the end.
15527 # Note that $ac_compile itself does not contain backslashes and begins
15528 # with a dollar sign (not a hyphen), so the echo should work correctly.
15529 # The option is referenced via a variable to avoid confusing sed.
15530 lt_compile=`echo "$ac_compile" | $SED \
15531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15533 -e 's:$: $lt_compiler_flag:'`
15534 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15535 (eval "$lt_compile" 2>conftest.err)
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15539 if (exit $ac_status) && test -s "$ac_outfile"; then
15540 # The compiler can only warn and ignore the option if not recognized
15541 # So say no if there are warnings other than the usual output.
15542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15543 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15544 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15545 lt_cv_prog_compiler_rtti_exceptions=yes
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15552 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15554 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15555 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15567 lt_prog_compiler_wl=
15568 lt_prog_compiler_pic=
15569 lt_prog_compiler_static=
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15572 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15574 if test "$GCC" = yes; then
15575 lt_prog_compiler_wl='-Wl,'
15576 lt_prog_compiler_static='-static'
15580 # All AIX code is PIC.
15581 if test "$host_cpu" = ia64; then
15582 # AIX 5 now supports IA64 processor
15583 lt_prog_compiler_static='-Bstatic'
15585 lt_prog_compiler_pic='-fPIC'
15591 # see comment about AmigaOS4 .so support
15592 lt_prog_compiler_pic='-fPIC'
15595 # FIXME: we need at least 68020 code to build shared libraries, but
15596 # adding the `-m68020' flag to GCC prevents building anything better,
15598 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15603 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15604 # PIC is the default for these OSes.
15607 mingw* | cygwin* | pw32* | os2* | cegcc*)
15608 # This hack is so that the source file can tell whether it is being
15609 # built for inclusion in a dll (and should export symbols for example).
15610 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15611 # (--disable-auto-import) libraries
15612 lt_prog_compiler_pic='-DDLL_EXPORT'
15615 darwin* | rhapsody*)
15616 # PIC is the default on this platform
15617 # Common symbols not allowed in MH_DYLIB files
15618 lt_prog_compiler_pic='-fno-common'
15622 # PIC is the default for Haiku.
15623 # The "-static" flag exists, but is broken.
15624 lt_prog_compiler_static=
15628 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15629 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15630 # sets the default TLS model and affects inlining.
15636 lt_prog_compiler_pic='-fPIC'
15642 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15643 # Instead, we relocate shared libraries at runtime.
15647 # Just because we use GCC doesn't mean we suddenly get shared libraries
15648 # on systems that don't support them.
15649 lt_prog_compiler_can_build_shared=no
15654 # QNX uses GNU C++, but need to define -shared option too, otherwise
15655 # it will coredump.
15656 lt_prog_compiler_pic='-fPIC -shared'
15660 if test -d /usr/nec; then
15661 lt_prog_compiler_pic=-Kconform_pic
15666 lt_prog_compiler_pic='-fPIC'
15670 case $cc_basename in
15671 nvcc*) # Cuda Compiler Driver 2.2
15672 lt_prog_compiler_wl='-Xlinker '
15673 lt_prog_compiler_pic='-Xcompiler -fPIC'
15677 # PORTME Check for flag to pass linker flags through the system compiler.
15680 lt_prog_compiler_wl='-Wl,'
15681 if test "$host_cpu" = ia64; then
15682 # AIX 5 now supports IA64 processor
15683 lt_prog_compiler_static='-Bstatic'
15685 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15689 mingw* | cygwin* | pw32* | os2* | cegcc*)
15690 # This hack is so that the source file can tell whether it is being
15691 # built for inclusion in a dll (and should export symbols for example).
15692 lt_prog_compiler_pic='-DDLL_EXPORT'
15695 hpux9* | hpux10* | hpux11*)
15696 lt_prog_compiler_wl='-Wl,'
15697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15698 # not for PA HP-UX.
15704 lt_prog_compiler_pic='+Z'
15707 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15708 lt_prog_compiler_static='${wl}-a ${wl}archive'
15711 irix5* | irix6* | nonstopux*)
15712 lt_prog_compiler_wl='-Wl,'
15713 # PIC (with -KPIC) is the default.
15714 lt_prog_compiler_static='-non_shared'
15717 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15718 case $cc_basename in
15719 # old Intel for x86_64 which still supported -KPIC.
15721 lt_prog_compiler_wl='-Wl,'
15722 lt_prog_compiler_pic='-KPIC'
15723 lt_prog_compiler_static='-static'
15725 # icc used to be incompatible with GCC.
15726 # ICC 10 doesn't accept -KPIC any more.
15728 lt_prog_compiler_wl='-Wl,'
15729 lt_prog_compiler_pic='-fPIC'
15730 lt_prog_compiler_static='-static'
15732 # Lahey Fortran 8.1.
15734 lt_prog_compiler_wl='-Wl,'
15735 lt_prog_compiler_pic='--shared'
15736 lt_prog_compiler_static='--static'
15738 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15739 # Portland Group compilers (*not* the Pentium gcc compiler,
15740 # which looks to be a dead project)
15741 lt_prog_compiler_wl='-Wl,'
15742 lt_prog_compiler_pic='-fpic'
15743 lt_prog_compiler_static='-Bstatic'
15746 lt_prog_compiler_wl='-Wl,'
15747 # All Alpha code is PIC.
15748 lt_prog_compiler_static='-non_shared'
15750 xl* | bgxl* | bgf* | mpixl*)
15751 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15752 lt_prog_compiler_wl='-Wl,'
15753 lt_prog_compiler_pic='-qpic'
15754 lt_prog_compiler_static='-qstaticlink'
15757 case `$CC -V 2>&1 | sed 5q` in
15758 *Sun\ F* | *Sun*Fortran*)
15759 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15760 lt_prog_compiler_pic='-KPIC'
15761 lt_prog_compiler_static='-Bstatic'
15762 lt_prog_compiler_wl=''
15766 lt_prog_compiler_pic='-KPIC'
15767 lt_prog_compiler_static='-Bstatic'
15768 lt_prog_compiler_wl='-Wl,'
15776 lt_prog_compiler_pic='-KPIC'
15777 lt_prog_compiler_static='-Bstatic'
15781 # QNX uses GNU C++, but need to define -shared option too, otherwise
15782 # it will coredump.
15783 lt_prog_compiler_pic='-fPIC -shared'
15786 osf3* | osf4* | osf5*)
15787 lt_prog_compiler_wl='-Wl,'
15788 # All OSF/1 code is PIC.
15789 lt_prog_compiler_static='-non_shared'
15793 lt_prog_compiler_static='-non_shared'
15797 lt_prog_compiler_pic='-KPIC'
15798 lt_prog_compiler_static='-Bstatic'
15799 case $cc_basename in
15800 f77* | f90* | f95*)
15801 lt_prog_compiler_wl='-Qoption ld ';;
15803 lt_prog_compiler_wl='-Wl,';;
15808 lt_prog_compiler_wl='-Qoption ld '
15809 lt_prog_compiler_pic='-PIC'
15810 lt_prog_compiler_static='-Bstatic'
15813 sysv4 | sysv4.2uw2* | sysv4.3*)
15814 lt_prog_compiler_wl='-Wl,'
15815 lt_prog_compiler_pic='-KPIC'
15816 lt_prog_compiler_static='-Bstatic'
15820 if test -d /usr/nec ;then
15821 lt_prog_compiler_pic='-Kconform_pic'
15822 lt_prog_compiler_static='-Bstatic'
15826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15827 lt_prog_compiler_wl='-Wl,'
15828 lt_prog_compiler_pic='-KPIC'
15829 lt_prog_compiler_static='-Bstatic'
15833 lt_prog_compiler_wl='-Wl,'
15834 lt_prog_compiler_can_build_shared=no
15838 lt_prog_compiler_pic='-pic'
15839 lt_prog_compiler_static='-Bstatic'
15843 lt_prog_compiler_can_build_shared=no
15849 # For platforms which do not support PIC, -DPIC is meaningless:
15851 lt_prog_compiler_pic=
15854 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15858 $as_echo "$lt_prog_compiler_pic" >&6; }
15866 # Check to make sure the PIC flag actually works.
15868 if test -n "$lt_prog_compiler_pic"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15870 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15871 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15872 $as_echo_n "(cached
) " >&6
15874 lt_cv_prog_compiler_pic_works=no
15875 ac_outfile=conftest.$ac_objext
15876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15877 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15878 # Insert the option either (1) after the last *FLAGS variable, or
15879 # (2) before a word containing "conftest.
", or (3) at the end.
15880 # Note that $ac_compile itself does not contain backslashes and begins
15881 # with a dollar sign (not a hyphen), so the echo should work correctly.
15882 # The option is referenced via a variable to avoid confusing sed.
15883 lt_compile=`echo "$ac_compile" | $SED \
15884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15886 -e 's:$: $lt_compiler_flag:'`
15887 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15888 (eval "$lt_compile" 2>conftest.err)
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15892 if (exit $ac_status) && test -s "$ac_outfile"; then
15893 # The compiler can only warn and ignore the option if not recognized
15894 # So say no if there are warnings other than the usual output.
15895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15898 lt_cv_prog_compiler_pic_works=yes
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15905 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15907 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15908 case $lt_prog_compiler_pic in
15910 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15913 lt_prog_compiler_pic=
15914 lt_prog_compiler_can_build_shared=no
15925 # Check to make sure the static flag actually works.
15927 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15929 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15930 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15931 $as_echo_n "(cached
) " >&6
15933 lt_cv_prog_compiler_static_works=no
15934 save_LDFLAGS="$LDFLAGS"
15935 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15936 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15937 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15938 # The linker can only warn and ignore the option if not recognized
15939 # So say no if there are warnings
15940 if test -s conftest.err; then
15941 # Append any errors to the config.log.
15942 cat conftest.err 1>&5
15943 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15944 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15945 if diff conftest.exp conftest.er2 >/dev/null; then
15946 lt_cv_prog_compiler_static_works=yes
15949 lt_cv_prog_compiler_static_works=yes
15953 LDFLAGS="$save_LDFLAGS"
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15957 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15959 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15962 lt_prog_compiler_static=
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15972 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15973 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15974 $as_echo_n "(cached
) " >&6
15976 lt_cv_prog_compiler_c_o=no
15977 $RM -r conftest 2>/dev/null
15981 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15983 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15984 # Insert the option either (1) after the last *FLAGS variable, or
15985 # (2) before a word containing "conftest.
", or (3) at the end.
15986 # Note that $ac_compile itself does not contain backslashes and begins
15987 # with a dollar sign (not a hyphen), so the echo should work correctly.
15988 lt_compile=`echo "$ac_compile" | $SED \
15989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15991 -e 's:$: $lt_compiler_flag:'`
15992 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15993 (eval "$lt_compile" 2>out/conftest.err)
15995 cat out/conftest.err >&5
15996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15999 # The compiler can only warn and ignore the option if not recognized
16000 # So say no if there are warnings
16001 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16004 lt_cv_prog_compiler_c_o=yes
16009 # SGI C++ compiler will create directory out/ii_files/ for
16010 # template instantiation
16011 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16012 $RM out/* && rmdir out
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16019 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
16027 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
16028 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
16029 $as_echo_n "(cached
) " >&6
16031 lt_cv_prog_compiler_c_o=no
16032 $RM -r conftest 2>/dev/null
16036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16038 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
16039 # Insert the option either (1) after the last *FLAGS variable, or
16040 # (2) before a word containing "conftest.
", or (3) at the end.
16041 # Note that $ac_compile itself does not contain backslashes and begins
16042 # with a dollar sign (not a hyphen), so the echo should work correctly.
16043 lt_compile=`echo "$ac_compile" | $SED \
16044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16046 -e 's:$: $lt_compiler_flag:'`
16047 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
16048 (eval "$lt_compile" 2>out/conftest.err)
16050 cat out/conftest.err >&5
16051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16054 # The compiler can only warn and ignore the option if not recognized
16055 # So say no if there are warnings
16056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16059 lt_cv_prog_compiler_c_o=yes
16064 # SGI C++ compiler will create directory out/ii_files/ for
16065 # template instantiation
16066 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16067 $RM out/* && rmdir out
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
16074 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16079 hard_links="nottested
"
16080 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
16081 # do not overwrite the value of need_locks provided by the user
16082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
16083 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
16086 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16088 ln conftest.a conftest.b 2>&5 || hard_links=no
16089 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
16091 $as_echo "$hard_links" >&6; }
16092 if test "$hard_links" = no; then
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
16094 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
16107 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
16110 allow_undefined_flag=
16111 always_export_symbols=no
16113 archive_expsym_cmds=
16114 compiler_needs_object=no
16115 enable_shared_with_static_runtimes=no
16116 export_dynamic_flag_spec=
16117 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16118 hardcode_automatic=no
16120 hardcode_direct_absolute=no
16121 hardcode_libdir_flag_spec=
16122 hardcode_libdir_flag_spec_ld=
16123 hardcode_libdir_separator=
16124 hardcode_minus_L=no
16125 hardcode_shlibpath_var=unsupported
16127 link_all_deplibs=unknown
16129 module_expsym_cmds=
16130 old_archive_from_new_cmds=
16131 old_archive_from_expsyms_cmds=
16132 thread_safe_flag_spec=
16133 whole_archive_flag_spec=
16134 # include_expsyms should be a list of space-separated symbols to be *always*
16135 # included in the symbol list
16137 # exclude_expsyms can be an extended regexp of symbols to exclude
16138 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16140 # as well as any symbol that contains `d'.
16141 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16143 # platforms (ab)use it in PIC code, but their linkers get confused if
16144 # the symbol is explicitly referenced. Since portable code cannot
16145 # rely on this symbol name, it's probably fine to never include it in
16146 # preloaded symbol tables.
16147 # Exclude shared library initialization/finalization symbols.
16148 extract_expsyms_cmds=
16151 cygwin* | mingw* | pw32* | cegcc*)
16152 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16153 # When not using gcc, we currently assume that we are using
16154 # Microsoft Visual C++.
16155 if test "$GCC" != yes; then
16160 # we just hope/assume this is gcc and not c89 (= MSVC++)
16170 # On some targets, GNU ld is compatible enough with the native linker
16171 # that we're better off using the native interface for both.
16172 lt_use_gnu_ld_interface=no
16173 if test "$with_gnu_ld" = yes; then
16176 # The AIX port of GNU ld has always aspired to compatibility
16177 # with the native linker. However, as the warning in the GNU ld
16178 # block says, versions before 2.19.5* couldn't really create working
16179 # shared libraries, regardless of the interface used.
16180 case `$LD -v 2>&1` in
16181 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16182 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16183 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16185 lt_use_gnu_ld_interface=yes
16190 lt_use_gnu_ld_interface=yes
16195 if test "$lt_use_gnu_ld_interface" = yes; then
16196 # If archive_cmds runs LD, not CC, wlarc should be empty
16199 # Set some defaults for GNU ld with shared library support. These
16200 # are reset later if shared libraries are not supported. Putting them
16201 # here allows them to be overridden if necessary.
16202 runpath_var=LD_RUN_PATH
16203 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16204 export_dynamic_flag_spec='${wl}--export-dynamic'
16205 # ancient GNU ld didn't support --whole-archive et. al.
16206 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16207 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16209 whole_archive_flag_spec=
16211 supports_anon_versioning=no
16212 case `$LD -v 2>&1` in
16213 *GNU\ gold*) supports_anon_versioning=yes ;;
16214 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16215 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16216 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16217 *\ 2.11.*) ;; # other 2.11 versions
16218 *) supports_anon_versioning=yes ;;
16221 # See if GNU ld supports shared libraries.
16224 # On AIX/PPC, the GNU linker is very broken
16225 if test "$host_cpu" != ia64; then
16229 *** Warning: the GNU linker, at least up to release 2.19, is reported
16230 *** to be unable to reliably create shared libraries on AIX.
16231 *** Therefore, libtool is disabling shared libraries support. If you
16232 *** really care for shared libraries, you may want to install binutils
16233 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16234 *** You will then need to restart the configuration process.
16243 # see comment about AmigaOS4 .so support
16244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16245 archive_expsym_cmds=''
16248 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)'
16249 hardcode_libdir_flag_spec
='-L$libdir'
16250 hardcode_minus_L
=yes
16256 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16257 allow_undefined_flag
=unsupported
16258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16259 # support --undefined. This deserves some investigation. FIXME
16260 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16266 cygwin
* | mingw
* | pw32
* | cegcc
*)
16267 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16268 # as there is no search path for DLLs.
16269 hardcode_libdir_flag_spec
='-L$libdir'
16270 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16271 allow_undefined_flag
=unsupported
16272 always_export_symbols
=no
16273 enable_shared_with_static_runtimes
=yes
16274 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16276 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16277 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16278 # If the export-symbols file already is a .def file (1st line
16279 # is EXPORTS), use it as is; otherwise, prepend...
16280 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16281 cp $export_symbols $output_objdir/$soname.def;
16283 echo EXPORTS > $output_objdir/$soname.def;
16284 cat $export_symbols >> $output_objdir/$soname.def;
16286 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16293 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16294 link_all_deplibs
=yes
16299 hardcode_shlibpath_var
=no
16300 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16301 export_dynamic_flag_spec
='${wl}-E'
16302 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16303 # Instead, shared libraries are loaded at an image base (0x10000000 by
16304 # default) and relocated if they conflict, which is a slow very memory
16305 # consuming and fragmenting process. To avoid this, we pick a random,
16306 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16307 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16308 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16309 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'
16312 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16314 if test "$host_os" = linux-dietlibc
; then
16315 case $cc_basename in
16316 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16319 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16320 && test "$tmp_diet" = no
16322 tmp_addflag
=' $pic_flag'
16323 tmp_sharedflag
='-shared'
16324 case $cc_basename,$host_cpu in
16325 pgcc
*) # Portland Group C compiler
16326 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'
16327 tmp_addflag
=' $pic_flag'
16329 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16330 # Portland Group f77 and f90 compilers
16331 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'
16332 tmp_addflag
=' $pic_flag -Mnomain' ;;
16333 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16334 tmp_addflag
=' -i_dynamic' ;;
16335 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16336 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16337 ifc
* | ifort
*) # Intel Fortran compiler
16338 tmp_addflag
=' -nofor_main' ;;
16339 lf95
*) # Lahey Fortran 8.1
16340 whole_archive_flag_spec
=
16341 tmp_sharedflag
='--shared' ;;
16342 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16343 tmp_sharedflag
='-qmkshrobj'
16345 nvcc
*) # Cuda Compiler Driver 2.2
16346 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'
16347 compiler_needs_object
=yes
16350 case `$CC -V 2>&1 | sed 5q` in
16351 *Sun\ C
*) # Sun C 5.9
16352 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'
16353 compiler_needs_object
=yes
16354 tmp_sharedflag
='-G' ;;
16355 *Sun\ F
*) # Sun Fortran 8.3
16356 tmp_sharedflag
='-G' ;;
16358 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16360 if test "x$supports_anon_versioning" = xyes
; then
16361 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16363 echo "local: *; };" >> $output_objdir/$libname.ver~
16364 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16367 case $cc_basename in
16368 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16369 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16370 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16371 hardcode_libdir_flag_spec
=
16372 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16373 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16374 if test "x$supports_anon_versioning" = xyes
; then
16375 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16376 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16377 echo "local: *; };" >> $output_objdir/$libname.ver~
16378 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16388 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16389 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16392 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16393 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16398 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16402 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16403 *** create shared libraries on Solaris systems. Therefore, libtool
16404 *** is disabling shared libraries support. We urge you to upgrade GNU
16405 *** binutils to release 2.9.1 or newer. Another option is to modify
16406 *** your PATH or compiler configuration so that the native linker is
16407 *** used, and then restart.
16410 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16411 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16412 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16418 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16419 case `$LD -v 2>&1` in
16420 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16424 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16425 *** reliably create shared libraries on SCO systems. Therefore, libtool
16426 *** is disabling shared libraries support. We urge you to upgrade GNU
16427 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16428 *** your PATH or compiler configuration so that the native linker is
16429 *** used, and then restart.
16434 # For security reasons, it is highly recommended that you always
16435 # use absolute paths for naming shared libraries, and exclude the
16436 # DT_RUNPATH tag from executables and libraries. But doing so
16437 # requires that you compile everything twice, which is a pain.
16438 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16439 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16440 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16441 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16450 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16452 hardcode_direct
=yes
16453 hardcode_shlibpath_var
=no
16457 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16458 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16459 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16466 if test "$ld_shlibs" = no
; then
16468 hardcode_libdir_flag_spec
=
16469 export_dynamic_flag_spec
=
16470 whole_archive_flag_spec
=
16473 # PORTME fill in a description of your system's linker (not GNU ld)
16476 allow_undefined_flag
=unsupported
16477 always_export_symbols
=yes
16478 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'
16479 # Note: this linker hardcodes the directories in LIBPATH if there
16480 # are no directories specified by -L.
16481 hardcode_minus_L
=yes
16482 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16483 # Neither direct hardcoding nor static linking is supported with a
16485 hardcode_direct
=unsupported
16490 if test "$host_cpu" = ia64
; then
16491 # On IA64, the linker does run time linking by default, so we don't
16492 # have to do anything special.
16493 aix_use_runtimelinking
=no
16494 exp_sym_flag
='-Bexport'
16497 # If we're using GNU nm, then we don't want the "-C" option.
16498 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16499 # Also, AIX nm treats weak defined symbols like other global
16500 # defined symbols, whereas GNU nm marks them as "W".
16501 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16502 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'
16504 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'
16506 aix_use_runtimelinking
=no
16508 # Test if we are trying to use run time linking or normal
16509 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16510 # need to do runtime linking.
16511 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16512 for ld_flag
in $LDFLAGS; do
16513 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16514 aix_use_runtimelinking
=yes
16521 exp_sym_flag
='-bexport'
16522 no_entry_flag
='-bnoentry'
16525 # When large executables or shared objects are built, AIX ld can
16526 # have problems creating the table of contents. If linking a library
16527 # or program results in "error TOC overflow" add -mminimal-toc to
16528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16532 hardcode_direct
=yes
16533 hardcode_direct_absolute
=yes
16534 hardcode_libdir_separator
=':'
16535 link_all_deplibs
=yes
16536 file_list_spec
='${wl}-f,'
16538 if test "$GCC" = yes; then
16539 case $host_os in aix4.
[012]|aix4.
[012].
*)
16540 # We only want to do this on AIX 4.2 and lower, the check
16541 # below for broken collect2 doesn't work under 4.3+
16542 collect2name
=`${CC} -print-prog-name=collect2`
16543 if test -f "$collect2name" &&
16544 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16546 # We have reworked collect2
16549 # We have old collect2
16550 hardcode_direct
=unsupported
16551 # It fails to find uninstalled libraries when the uninstalled
16552 # path is not listed in the libpath. Setting hardcode_minus_L
16553 # to unsupported forces relinking
16554 hardcode_minus_L
=yes
16555 hardcode_libdir_flag_spec
='-L$libdir'
16556 hardcode_libdir_separator
=
16560 shared_flag
='-shared'
16561 if test "$aix_use_runtimelinking" = yes; then
16562 shared_flag
="$shared_flag "'${wl}-G'
16566 if test "$host_cpu" = ia64
; then
16567 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16568 # chokes on -Wl,-G. The following line is correct:
16571 if test "$aix_use_runtimelinking" = yes; then
16572 shared_flag
='${wl}-G'
16574 shared_flag
='${wl}-bM:SRE'
16579 export_dynamic_flag_spec
='${wl}-bexpall'
16580 # It seems that -bexpall does not export symbols beginning with
16581 # underscore (_), so it is better to generate a list of symbols to export.
16582 always_export_symbols
=yes
16583 if test "$aix_use_runtimelinking" = yes; then
16584 # Warning - without using the other runtime loading flags (-brtl),
16585 # -berok will link without error, but may produce a broken library.
16586 allow_undefined_flag
='-berok'
16587 # Determine the default libpath from the value encoded in an
16588 # empty executable.
16589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16590 /* end confdefs.h. */
16600 if ac_fn_c_try_link
"$LINENO"; then :
16602 lt_aix_libpath_sed
='
16603 /Import File Strings/,/^$/ {
16609 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16610 # Check for a 64-bit object if we didn't find anything.
16611 if test -z "$aix_libpath"; then
16612 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16615 rm -f core conftest.err conftest.
$ac_objext \
16616 conftest
$ac_exeext conftest.
$ac_ext
16617 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16619 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16620 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"
16622 if test "$host_cpu" = ia64
; then
16623 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16624 allow_undefined_flag
="-z nodefs"
16625 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"
16627 # Determine the default libpath from the value encoded in an
16628 # empty executable.
16629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16640 if ac_fn_c_try_link
"$LINENO"; then :
16642 lt_aix_libpath_sed
='
16643 /Import File Strings/,/^$/ {
16649 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16650 # Check for a 64-bit object if we didn't find anything.
16651 if test -z "$aix_libpath"; then
16652 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16655 rm -f core conftest.err conftest.
$ac_objext \
16656 conftest
$ac_exeext conftest.
$ac_ext
16657 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16659 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16660 # Warning - without using the other run time loading flags,
16661 # -berok will link without error, but may produce a broken library.
16662 no_undefined_flag
=' ${wl}-bernotok'
16663 allow_undefined_flag
=' ${wl}-berok'
16664 if test "$with_gnu_ld" = yes; then
16665 # We only use this code for GNU lds that support --whole-archive.
16666 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16668 # Exported symbols can be pulled into shared objects from archives
16669 whole_archive_flag_spec
='$convenience'
16671 archive_cmds_need_lc
=yes
16672 # This is similar to how AIX traditionally builds its shared libraries.
16673 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'
16681 # see comment about AmigaOS4 .so support
16682 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16683 archive_expsym_cmds
=''
16686 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)'
16687 hardcode_libdir_flag_spec
='-L$libdir'
16688 hardcode_minus_L
=yes
16694 export_dynamic_flag_spec
=-rdynamic
16697 cygwin
* | mingw
* | pw32
* | cegcc
*)
16698 # When not using gcc, we currently assume that we are using
16699 # Microsoft Visual C++.
16700 # hardcode_libdir_flag_spec is actually meaningless, as there is
16701 # no search path for DLLs.
16702 hardcode_libdir_flag_spec
=' '
16703 allow_undefined_flag
=unsupported
16704 # Tell ltmain to make .lib files, not .a files.
16706 # Tell ltmain to make .dll files, not .so files.
16708 # FIXME: Setting linknames here is a bad hack.
16709 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16710 # The linker will automatically build a .lib file if we build a DLL.
16711 old_archive_from_new_cmds
='true'
16712 # FIXME: Should let the user specify the lib program.
16713 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16714 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16715 enable_shared_with_static_runtimes
=yes
16718 darwin
* | rhapsody
*)
16721 archive_cmds_need_lc
=no
16723 hardcode_automatic
=yes
16724 hardcode_shlibpath_var
=unsupported
16725 if test "$lt_cv_ld_force_load" = "yes"; then
16726 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\"`'
16728 whole_archive_flag_spec
=''
16730 link_all_deplibs
=yes
16731 allow_undefined_flag
="$_lt_dar_allow_undefined"
16732 case $cc_basename in
16733 ifort
*) _lt_dar_can_shared
=yes ;;
16734 *) _lt_dar_can_shared
=$GCC ;;
16736 if test "$_lt_dar_can_shared" = "yes"; then
16737 output_verbose_link_cmd
=func_echo_all
16738 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16739 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16740 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}"
16741 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}"
16750 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16751 hardcode_libdir_flag_spec
='-L$libdir'
16752 hardcode_shlibpath_var
=no
16755 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16756 # support. Future versions do this automatically, but an explicit c++rt0.o
16757 # does not break anything, and helps significantly (at the cost of a little
16760 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16761 hardcode_libdir_flag_spec
='-R$libdir'
16762 hardcode_direct
=yes
16763 hardcode_shlibpath_var
=no
16766 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16768 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16769 hardcode_direct
=yes
16770 hardcode_minus_L
=yes
16771 hardcode_shlibpath_var
=no
16774 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16775 freebsd
* | dragonfly
*)
16776 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16777 hardcode_libdir_flag_spec
='-R$libdir'
16778 hardcode_direct
=yes
16779 hardcode_shlibpath_var
=no
16783 if test "$GCC" = yes; then
16784 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'
16786 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'
16788 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16789 hardcode_libdir_separator
=:
16790 hardcode_direct
=yes
16792 # hardcode_minus_L: Not really in the search PATH,
16793 # but as the default location of the library.
16794 hardcode_minus_L
=yes
16795 export_dynamic_flag_spec
='${wl}-E'
16799 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16800 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16802 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16804 if test "$with_gnu_ld" = no
; then
16805 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16806 hardcode_libdir_flag_spec_ld
='+b $libdir'
16807 hardcode_libdir_separator
=:
16808 hardcode_direct
=yes
16809 hardcode_direct_absolute
=yes
16810 export_dynamic_flag_spec
='${wl}-E'
16811 # hardcode_minus_L: Not really in the search PATH,
16812 # but as the default location of the library.
16813 hardcode_minus_L
=yes
16818 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16821 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16824 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16827 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16833 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16836 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16840 # Older versions of the 11.00 compiler do not understand -b yet
16841 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16843 $as_echo_n "checking if $CC understands -b... " >&6; }
16844 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16845 $as_echo_n "(cached) " >&6
16847 lt_cv_prog_compiler__b
=no
16848 save_LDFLAGS
="$LDFLAGS"
16849 LDFLAGS
="$LDFLAGS -b"
16850 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16851 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16852 # The linker can only warn and ignore the option if not recognized
16853 # So say no if there are warnings
16854 if test -s conftest.err
; then
16855 # Append any errors to the config.log.
16856 cat conftest.err
1>&5
16857 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16858 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16859 if diff conftest.exp conftest.er2
>/dev
/null
; then
16860 lt_cv_prog_compiler__b
=yes
16863 lt_cv_prog_compiler__b
=yes
16867 LDFLAGS
="$save_LDFLAGS"
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16871 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16873 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16874 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16876 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16882 if test "$with_gnu_ld" = no
; then
16883 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16884 hardcode_libdir_separator
=:
16889 hardcode_shlibpath_var
=no
16892 hardcode_direct
=yes
16893 hardcode_direct_absolute
=yes
16894 export_dynamic_flag_spec
='${wl}-E'
16896 # hardcode_minus_L: Not really in the search PATH,
16897 # but as the default location of the library.
16898 hardcode_minus_L
=yes
16904 irix5
* | irix6
* | nonstopux
*)
16905 if test "$GCC" = yes; then
16906 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'
16907 # Try to use the -exported_symbol ld option, if it does not
16908 # work, assume that -exports_file does not work either and
16909 # implicitly export all symbols.
16910 save_LDFLAGS
="$LDFLAGS"
16911 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16916 if ac_fn_c_try_link
"$LINENO"; then :
16917 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'
16920 rm -f core conftest.err conftest.
$ac_objext \
16921 conftest
$ac_exeext conftest.
$ac_ext
16922 LDFLAGS
="$save_LDFLAGS"
16924 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'
16925 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'
16927 archive_cmds_need_lc
='no'
16928 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16929 hardcode_libdir_separator
=:
16931 link_all_deplibs
=yes
16935 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16936 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16938 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16940 hardcode_libdir_flag_spec
='-R$libdir'
16941 hardcode_direct
=yes
16942 hardcode_shlibpath_var
=no
16946 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16947 hardcode_direct
=yes
16948 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16949 hardcode_libdir_separator
=:
16950 hardcode_shlibpath_var
=no
16957 if test -f /usr
/libexec
/ld.so
; then
16958 hardcode_direct
=yes
16959 hardcode_shlibpath_var
=no
16960 hardcode_direct_absolute
=yes
16961 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16962 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16963 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16964 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16965 export_dynamic_flag_spec
='${wl}-E'
16968 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16969 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16970 hardcode_libdir_flag_spec
='-R$libdir'
16973 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16974 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16984 hardcode_libdir_flag_spec
='-L$libdir'
16985 hardcode_minus_L
=yes
16986 allow_undefined_flag
=unsupported
16987 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'
16988 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16992 if test "$GCC" = yes; then
16993 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16994 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'
16996 allow_undefined_flag
=' -expect_unresolved \*'
16997 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'
16999 archive_cmds_need_lc
='no'
17000 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17001 hardcode_libdir_separator
=:
17004 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17005 if test "$GCC" = yes; then
17006 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
17007 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'
17008 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
17010 allow_undefined_flag
=' -expect_unresolved \*'
17011 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'
17012 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~
17013 $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'
17015 # Both c and cxx compiler support -rpath directly
17016 hardcode_libdir_flag_spec
='-rpath $libdir'
17018 archive_cmds_need_lc
='no'
17019 hardcode_libdir_separator
=:
17023 no_undefined_flag
=' -z defs'
17024 if test "$GCC" = yes; then
17026 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17027 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17028 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17030 case `$CC -V 2>&1` in
17033 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17034 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17035 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17039 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17040 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17041 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17045 hardcode_libdir_flag_spec
='-R$libdir'
17046 hardcode_shlibpath_var
=no
17048 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17050 # The compiler driver will combine and reorder linker options,
17051 # but understands `-z linker_flag'. GCC discards it without `$wl',
17052 # but is careful enough not to reorder.
17053 # Supported since Solaris 2.6 (maybe 2.5.1?)
17054 if test "$GCC" = yes; then
17055 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17057 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
17061 link_all_deplibs
=yes
17065 if test "x$host_vendor" = xsequent
; then
17066 # Use $CC to link under sequent, because it throws in some extra .o
17067 # files that make .init and .fini sections work.
17068 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17070 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17072 hardcode_libdir_flag_spec
='-L$libdir'
17073 hardcode_direct
=yes
17074 hardcode_minus_L
=yes
17075 hardcode_shlibpath_var
=no
17079 case $host_vendor in
17081 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17082 hardcode_direct
=yes # is this really true???
17085 ## LD is ld it makes a PLAMLIB
17086 ## CC just makes a GrossModule.
17087 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17088 reload_cmds
='$CC -r -o $output$reload_objs'
17092 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17093 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
17096 runpath_var
='LD_RUN_PATH'
17097 hardcode_shlibpath_var
=no
17101 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17102 hardcode_shlibpath_var
=no
17103 export_dynamic_flag_spec
='-Bexport'
17107 if test -d /usr
/nec
; then
17108 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17109 hardcode_shlibpath_var
=no
17110 runpath_var
=LD_RUN_PATH
17111 hardcode_runpath_var
=yes
17116 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
17117 no_undefined_flag
='${wl}-z,text'
17118 archive_cmds_need_lc
=no
17119 hardcode_shlibpath_var
=no
17120 runpath_var
='LD_RUN_PATH'
17122 if test "$GCC" = yes; then
17123 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17124 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17126 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17127 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17131 sysv5
* | sco3.2v5
* | sco5v6
*)
17132 # Note: We can NOT use -z defs as we might desire, because we do not
17133 # link with -lc, and that would cause any symbols used from libc to
17134 # always be unresolved, which means just about no library would
17135 # ever link correctly. If we're not using GNU ld we use -z text
17136 # though, which does catch some bad symbols but isn't as heavy-handed
17138 no_undefined_flag
='${wl}-z,text'
17139 allow_undefined_flag
='${wl}-z,nodefs'
17140 archive_cmds_need_lc
=no
17141 hardcode_shlibpath_var
=no
17142 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
17143 hardcode_libdir_separator
=':'
17144 link_all_deplibs
=yes
17145 export_dynamic_flag_spec
='${wl}-Bexport'
17146 runpath_var
='LD_RUN_PATH'
17148 if test "$GCC" = yes; then
17149 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17150 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17152 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17153 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17158 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17159 hardcode_libdir_flag_spec
='-L$libdir'
17160 hardcode_shlibpath_var
=no
17168 if test x
$host_vendor = xsni
; then
17170 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
17171 export_dynamic_flag_spec
='${wl}-Blargedynsym'
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17178 $as_echo "$ld_shlibs" >&6; }
17179 test "$ld_shlibs" = no
&& can_build_shared
=no
17181 with_gnu_ld
=$with_gnu_ld
17198 # Do we need to explicitly link libc?
17200 case "x$archive_cmds_need_lc" in
17202 # Assume -lc should be added
17203 archive_cmds_need_lc
=yes
17205 if test "$enable_shared" = yes && test "$GCC" = yes; then
17206 case $archive_cmds in
17208 # FIXME: we may have to deal with multi-command sequences.
17211 # Test whether the compiler implicitly links with -lc since on some
17212 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17213 # to ld, don't add -lc before -lgcc.
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17215 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17216 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17217 $as_echo_n "(cached) " >&6
17220 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17223 (eval $ac_compile) 2>&5
17225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17226 test $ac_status = 0; } 2>conftest.err
; then
17229 libobjs
=conftest.
$ac_objext
17231 wl
=$lt_prog_compiler_wl
17232 pic_flag
=$lt_prog_compiler_pic
17238 lt_save_allow_undefined_flag
=$allow_undefined_flag
17239 allow_undefined_flag
=
17240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17241 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17244 test $ac_status = 0; }
17246 lt_cv_archive_cmds_need_lc
=no
17248 lt_cv_archive_cmds_need_lc
=yes
17250 allow_undefined_flag
=$lt_save_allow_undefined_flag
17252 cat conftest.err
1>&5
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17258 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17259 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17423 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17425 if test "$GCC" = yes; then
17427 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17428 *) lt_awk_arg
="/^libraries:/" ;;
17431 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17432 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17434 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17435 case $lt_search_path_spec in
17437 # if the path contains ";" then we assume it to be the separator
17438 # otherwise default to the standard path separator (i.e. ":") - it is
17439 # assumed that no part of a normal pathname contains ";" but that should
17440 # okay in the real world where ";" in dirpaths is itself problematic.
17441 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17444 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17447 # Ok, now we have the path, separated by spaces, we can step through it
17448 # and add multilib dir if necessary.
17449 lt_tmp_lt_search_path_spec
=
17450 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17451 for lt_sys_path
in $lt_search_path_spec; do
17452 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17453 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17455 test -d "$lt_sys_path" && \
17456 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17459 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17460 BEGIN {RS=" "; FS="/|\n";} {
17463 for (lt_i = NF; lt_i > 0; lt_i--) {
17464 if ($lt_i != "" && $lt_i != ".") {
17465 if ($lt_i == "..") {
17468 if (lt_count == 0) {
17469 lt_foo="/" $lt_i lt_foo;
17476 if (lt_foo != "") { lt_freq[lt_foo]++; }
17477 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17479 # AWK program above erroneously prepends '/' to C:/dos/paths
17482 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17483 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17485 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17487 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17489 library_names_spec
=
17490 libname_spec
='lib$name'
17494 postuninstall_cmds
=
17498 shlibpath_overrides_runpath
=unknown
17500 dynamic_linker
="$host_os ld.so"
17501 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17502 need_lib_prefix
=unknown
17503 hardcode_into_libs
=no
17505 # when you set need_version to no, make sure it does not cause -set_version
17506 # flags to be left without arguments
17507 need_version
=unknown
17512 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17513 shlibpath_var
=LIBPATH
17515 # AIX 3 has no versioning support, so we append a major version to the name.
17516 soname_spec
='${libname}${release}${shared_ext}$major'
17523 hardcode_into_libs
=yes
17524 if test "$host_cpu" = ia64
; then
17525 # AIX 5 supports IA64
17526 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17527 shlibpath_var
=LD_LIBRARY_PATH
17529 # With GCC up to 2.95.x, collect2 would create an import file
17530 # for dependence libraries. The import file would start with
17531 # the line `#! .'. This would cause the generated library to
17532 # depend on `.', always an invalid library. This was fixed in
17533 # development snapshots of GCC prior to 3.0.
17535 aix4 | aix4.
[01] | aix4.
[01].
*)
17536 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17538 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17541 can_build_shared
=no
17545 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17546 # soname into executable. Probably we can add versioning support to
17547 # collect2, so additional links can be useful in future.
17548 if test "$aix_use_runtimelinking" = yes; then
17549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17550 # instead of lib<name>.a to let people know that these are not
17551 # typical AIX shared libraries.
17552 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 # We preserve .a as extension for shared libraries through AIX4.2
17555 # and later when we are not doing run time linking.
17556 library_names_spec
='${libname}${release}.a $libname.a'
17557 soname_spec
='${libname}${release}${shared_ext}$major'
17559 shlibpath_var
=LIBPATH
17566 # Since July 2007 AmigaOS4 officially supports .so libraries.
17567 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17571 library_names_spec
='$libname.ixlibrary $libname.a'
17572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17573 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'
17579 library_names_spec
='${libname}${shared_ext}'
17580 dynamic_linker
="$host_os ld.so"
17581 shlibpath_var
=LIBRARY_PATH
17587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 soname_spec
='${libname}${release}${shared_ext}$major'
17589 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17590 shlibpath_var
=LD_LIBRARY_PATH
17591 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17592 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17593 # the default ld.so.conf also contains /usr/contrib/lib and
17594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17595 # libtool to hard-code these into programs
17598 cygwin
* | mingw
* | pw32
* | cegcc
*)
17599 version_type
=windows
17604 case $GCC,$host_os in
17605 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17606 library_names_spec
='$libname.dll.a'
17607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17608 postinstall_cmds
='base_file=`basename \${file}`~
17609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17610 dldir=$destdir/`dirname \$dlpath`~
17611 test -d \$dldir || mkdir -p \$dldir~
17612 $install_prog $dir/$dlname \$dldir/$dlname~
17613 chmod a+x \$dldir/$dlname~
17614 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17615 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17617 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17618 dlpath=$dir/\$dldll~
17620 shlibpath_overrides_runpath
=yes
17624 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17625 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17627 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17630 # MinGW DLLs use traditional 'lib' prefix
17631 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17634 # pw32 DLLs use 'pw' prefix rather than 'lib'
17635 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17641 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17644 dynamic_linker
='Win32 ld.exe'
17645 # FIXME: first we should search . and the directory the executable is in
17649 darwin
* | rhapsody
*)
17650 dynamic_linker
="$host_os dyld"
17651 version_type
=darwin
17654 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17655 soname_spec
='${libname}${release}${major}$shared_ext'
17656 shlibpath_overrides_runpath
=yes
17657 shlibpath_var
=DYLD_LIBRARY_PATH
17658 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17660 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17661 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17669 soname_spec
='${libname}${release}${shared_ext}$major'
17670 shlibpath_var
=LD_LIBRARY_PATH
17673 freebsd
* | dragonfly
*)
17674 # DragonFly does not have aout. When/if they implement a new
17675 # versioning mechanism, adjust this.
17676 if test -x /usr
/bin
/objformat
; then
17677 objformat
=`/usr/bin/objformat`
17680 freebsd
[23].
*) objformat
=aout
;;
17681 *) objformat
=elf
;;
17684 version_type
=freebsd-
$objformat
17685 case $version_type in
17687 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17692 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17696 shlibpath_var
=LD_LIBRARY_PATH
17699 shlibpath_overrides_runpath
=yes
17701 freebsd3.
[01]* | freebsdelf3.
[01]*)
17702 shlibpath_overrides_runpath
=yes
17703 hardcode_into_libs
=yes
17705 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17706 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17707 shlibpath_overrides_runpath
=no
17708 hardcode_into_libs
=yes
17710 *) # from 4.6 on, and DragonFly
17711 shlibpath_overrides_runpath
=yes
17712 hardcode_into_libs
=yes
17721 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17722 soname_spec
='${libname}${release}${shared_ext}$major'
17723 shlibpath_var
=LD_LIBRARY_PATH
17724 hardcode_into_libs
=yes
17731 dynamic_linker
="$host_os runtime_loader"
17732 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17733 soname_spec
='${libname}${release}${shared_ext}$major'
17734 shlibpath_var
=LIBRARY_PATH
17735 shlibpath_overrides_runpath
=yes
17736 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17737 hardcode_into_libs
=yes
17740 hpux9
* | hpux10
* | hpux11
*)
17741 # Give a soname corresponding to the major version so that dld.sl refuses to
17742 # link against other versions.
17749 hardcode_into_libs
=yes
17750 dynamic_linker
="$host_os dld.so"
17751 shlibpath_var
=LD_LIBRARY_PATH
17752 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17753 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17754 soname_spec
='${libname}${release}${shared_ext}$major'
17755 if test "X$HPUX_IA64_MODE" = X32
; then
17756 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17758 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17760 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17764 hardcode_into_libs
=yes
17765 dynamic_linker
="$host_os dld.sl"
17766 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17767 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17769 soname_spec
='${libname}${release}${shared_ext}$major'
17770 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17771 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17775 dynamic_linker
="$host_os dld.sl"
17776 shlibpath_var
=SHLIB_PATH
17777 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779 soname_spec
='${libname}${release}${shared_ext}$major'
17782 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17783 postinstall_cmds
='chmod 555 $lib'
17784 # or fails outright, so override atomically:
17785 install_override_mode
=555
17792 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17793 soname_spec
='${libname}${release}${shared_ext}$major'
17794 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17795 shlibpath_var
=LD_LIBRARY_PATH
17796 shlibpath_overrides_runpath
=no
17797 hardcode_into_libs
=yes
17800 irix5
* | irix6
* | nonstopux
*)
17802 nonstopux
*) version_type
=nonstopux
;;
17804 if test "$lt_cv_prog_gnu_ld" = yes; then
17812 soname_spec
='${libname}${release}${shared_ext}$major'
17813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17815 irix5
* | nonstopux
*)
17816 libsuff
= shlibsuff
=
17819 case $LD in # libtool.m4 will add one of these switches to LD
17820 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17821 libsuff
= shlibsuff
= libmagic
=32-bit;;
17822 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17823 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17824 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17825 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17826 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17830 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17831 shlibpath_overrides_runpath
=no
17832 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17833 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17834 hardcode_into_libs
=yes
17837 # No shared lib support for Linux oldld, aout, or coff.
17838 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17842 # This must be Linux ELF.
17843 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17847 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17848 soname_spec
='${libname}${release}${shared_ext}$major'
17849 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17850 shlibpath_var
=LD_LIBRARY_PATH
17851 shlibpath_overrides_runpath
=no
17853 # Some binutils ld are patched to set DT_RUNPATH
17854 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17855 $as_echo_n "(cached) " >&6
17857 lt_cv_shlibpath_overrides_runpath
=no
17858 save_LDFLAGS
=$LDFLAGS
17859 save_libdir
=$libdir
17860 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17861 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17863 /* end confdefs.h. */
17873 if ac_fn_c_try_link
"$LINENO"; then :
17874 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17875 lt_cv_shlibpath_overrides_runpath
=yes
17878 rm -f core conftest.err conftest.
$ac_objext \
17879 conftest
$ac_exeext conftest.
$ac_ext
17880 LDFLAGS
=$save_LDFLAGS
17881 libdir
=$save_libdir
17885 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17887 # This implies no fast_install, which is unacceptable.
17888 # Some rework will be needed to allow for fast_install
17889 # before this can be enabled.
17890 hardcode_into_libs
=yes
17892 # Append ld.so.conf contents to the search path
17893 if test -f /etc
/ld.so.conf
; then
17894 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' ' '`
17895 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17898 # We used to test for /lib/ld.so.1 and disable shared libraries on
17899 # powerpc, because MkLinux only supported shared libraries with the
17900 # GNU dynamic linker. Since this was broken with cross compilers,
17901 # most powerpc-linux boxes support dynamic linking these days and
17902 # people can always --disable-shared, the test was removed, and we
17903 # assume the GNU/Linux dynamic linker is in use.
17904 dynamic_linker
='GNU/Linux ld.so'
17911 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17913 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17914 dynamic_linker
='NetBSD (a.out) ld.so'
17916 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17917 soname_spec
='${libname}${release}${shared_ext}$major'
17918 dynamic_linker
='NetBSD ld.elf_so'
17920 shlibpath_var
=LD_LIBRARY_PATH
17921 shlibpath_overrides_runpath
=yes
17922 hardcode_into_libs
=yes
17927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17928 shlibpath_var
=LD_LIBRARY_PATH
17929 shlibpath_overrides_runpath
=yes
17936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17937 soname_spec
='${libname}${release}${shared_ext}$major'
17938 shlibpath_var
=LD_LIBRARY_PATH
17939 shlibpath_overrides_runpath
=no
17940 hardcode_into_libs
=yes
17941 dynamic_linker
='ldqnx.so'
17946 sys_lib_dlsearch_path_spec
="/usr/lib"
17948 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17950 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17951 *) need_version
=no
;;
17953 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17954 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17955 shlibpath_var
=LD_LIBRARY_PATH
17956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17958 openbsd2.
[89] | openbsd2.
[89].
*)
17959 shlibpath_overrides_runpath
=no
17962 shlibpath_overrides_runpath
=yes
17966 shlibpath_overrides_runpath
=yes
17971 libname_spec
='$name'
17974 library_names_spec
='$libname${shared_ext} $libname.a'
17975 dynamic_linker
='OS/2 ld.exe'
17976 shlibpath_var
=LIBPATH
17979 osf3
* | osf4
* | osf5
*)
17983 soname_spec
='${libname}${release}${shared_ext}$major'
17984 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985 shlibpath_var
=LD_LIBRARY_PATH
17986 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17987 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999 soname_spec
='${libname}${release}${shared_ext}$major'
18000 shlibpath_var
=LD_LIBRARY_PATH
18001 shlibpath_overrides_runpath
=yes
18002 hardcode_into_libs
=yes
18003 # ldd complains unless libraries are executable
18004 postinstall_cmds
='chmod +x $lib'
18009 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18010 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18011 shlibpath_var
=LD_LIBRARY_PATH
18012 shlibpath_overrides_runpath
=yes
18013 if test "$with_gnu_ld" = yes; then
18021 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022 soname_spec
='${libname}${release}${shared_ext}$major'
18023 shlibpath_var
=LD_LIBRARY_PATH
18024 case $host_vendor in
18026 shlibpath_overrides_runpath
=no
18028 runpath_var
=LD_RUN_PATH
18036 shlibpath_overrides_runpath
=no
18037 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18043 if test -d /usr
/nec
;then
18045 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18046 soname_spec
='$libname${shared_ext}.$major'
18047 shlibpath_var
=LD_LIBRARY_PATH
18051 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18052 version_type
=freebsd-elf
18055 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18056 soname_spec
='${libname}${release}${shared_ext}$major'
18057 shlibpath_var
=LD_LIBRARY_PATH
18058 shlibpath_overrides_runpath
=yes
18059 hardcode_into_libs
=yes
18060 if test "$with_gnu_ld" = yes; then
18061 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18063 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18066 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18070 sys_lib_dlsearch_path_spec
='/usr/lib'
18074 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079 shlibpath_var
=LD_LIBRARY_PATH
18080 shlibpath_overrides_runpath
=no
18081 hardcode_into_libs
=yes
18086 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18087 soname_spec
='${libname}${release}${shared_ext}$major'
18088 shlibpath_var
=LD_LIBRARY_PATH
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18096 $as_echo "$dynamic_linker" >&6; }
18097 test "$dynamic_linker" = no
&& can_build_shared
=no
18099 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18100 if test "$GCC" = yes; then
18101 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18104 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18105 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
18107 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18108 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18203 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18205 if test -n "$hardcode_libdir_flag_spec" ||
18206 test -n "$runpath_var" ||
18207 test "X$hardcode_automatic" = "Xyes" ; then
18209 # We can hardcode non-existent directories.
18210 if test "$hardcode_direct" != no
&&
18211 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18212 # have to relink, otherwise we might link with an installed library
18213 # when we should be linking with a yet-to-be-installed one
18214 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18215 test "$hardcode_minus_L" != no
; then
18216 # Linking always hardcodes the temporary library directory.
18217 hardcode_action
=relink
18219 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18220 hardcode_action
=immediate
18223 # We cannot hardcode anything, or else we can only hardcode existing
18225 hardcode_action
=unsupported
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18228 $as_echo "$hardcode_action" >&6; }
18230 if test "$hardcode_action" = relink ||
18231 test "$inherit_rpath" = yes; then
18232 # Fast installation is not supported
18233 enable_fast_install
=no
18234 elif test "$shlibpath_overrides_runpath" = yes ||
18235 test "$enable_shared" = no
; then
18236 # Fast installation is not necessary
18237 enable_fast_install
=needless
18245 if test "x$enable_dlopen" != xyes
; then
18246 enable_dlopen
=unknown
18247 enable_dlopen_self
=unknown
18248 enable_dlopen_self_static
=unknown
18255 lt_cv_dlopen
="load_add_on"
18257 lt_cv_dlopen_self
=yes
18260 mingw
* | pw32
* | cegcc
*)
18261 lt_cv_dlopen
="LoadLibrary"
18266 lt_cv_dlopen
="dlopen"
18271 # if libdl is installed we need to link against it
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18273 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18274 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18275 $as_echo_n "(cached) " >&6
18277 ac_check_lib_save_LIBS
=$LIBS
18279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18280 /* end confdefs.h. */
18282 /* Override any GCC internal prototype to avoid an error.
18283 Use char because int might match the return type of a GCC
18284 builtin and then its argument prototype would still apply. */
18297 if ac_fn_c_try_link
"$LINENO"; then :
18298 ac_cv_lib_dl_dlopen
=yes
18300 ac_cv_lib_dl_dlopen
=no
18302 rm -f core conftest.err conftest.
$ac_objext \
18303 conftest
$ac_exeext conftest.
$ac_ext
18304 LIBS
=$ac_check_lib_save_LIBS
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18307 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18308 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18309 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18312 lt_cv_dlopen
="dyld"
18314 lt_cv_dlopen_self
=yes
18321 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18322 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18323 lt_cv_dlopen
="shl_load"
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18326 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18327 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18328 $as_echo_n "(cached) " >&6
18330 ac_check_lib_save_LIBS
=$LIBS
18332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18335 /* Override any GCC internal prototype to avoid an error.
18336 Use char because int might match the return type of a GCC
18337 builtin and then its argument prototype would still apply. */
18345 return shl_load ();
18350 if ac_fn_c_try_link
"$LINENO"; then :
18351 ac_cv_lib_dld_shl_load
=yes
18353 ac_cv_lib_dld_shl_load
=no
18355 rm -f core conftest.err conftest.
$ac_objext \
18356 conftest
$ac_exeext conftest.
$ac_ext
18357 LIBS
=$ac_check_lib_save_LIBS
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18360 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18361 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18362 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18364 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18365 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18366 lt_cv_dlopen
="dlopen"
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18369 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18370 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18371 $as_echo_n "(cached) " >&6
18373 ac_check_lib_save_LIBS
=$LIBS
18375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18378 /* Override any GCC internal prototype to avoid an error.
18379 Use char because int might match the return type of a GCC
18380 builtin and then its argument prototype would still apply. */
18393 if ac_fn_c_try_link
"$LINENO"; then :
18394 ac_cv_lib_dl_dlopen
=yes
18396 ac_cv_lib_dl_dlopen
=no
18398 rm -f core conftest.err conftest.
$ac_objext \
18399 conftest
$ac_exeext conftest.
$ac_ext
18400 LIBS
=$ac_check_lib_save_LIBS
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18403 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18404 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18405 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18408 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18409 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18410 $as_echo_n "(cached) " >&6
18412 ac_check_lib_save_LIBS
=$LIBS
18413 LIBS
="-lsvld $LIBS"
18414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18432 if ac_fn_c_try_link
"$LINENO"; then :
18433 ac_cv_lib_svld_dlopen
=yes
18435 ac_cv_lib_svld_dlopen
=no
18437 rm -f core conftest.err conftest.
$ac_objext \
18438 conftest
$ac_exeext conftest.
$ac_ext
18439 LIBS
=$ac_check_lib_save_LIBS
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18442 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18443 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18444 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18447 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18448 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18449 $as_echo_n "(cached) " >&6
18451 ac_check_lib_save_LIBS
=$LIBS
18453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18454 /* end confdefs.h. */
18456 /* Override any GCC internal prototype to avoid an error.
18457 Use char because int might match the return type of a GCC
18458 builtin and then its argument prototype would still apply. */
18466 return dld_link ();
18471 if ac_fn_c_try_link
"$LINENO"; then :
18472 ac_cv_lib_dld_dld_link
=yes
18474 ac_cv_lib_dld_dld_link
=no
18476 rm -f core conftest.err conftest.
$ac_objext \
18477 conftest
$ac_exeext conftest.
$ac_ext
18478 LIBS
=$ac_check_lib_save_LIBS
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18481 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18482 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18483 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18504 if test "x$lt_cv_dlopen" != xno
; then
18510 case $lt_cv_dlopen in
18512 save_CPPFLAGS
="$CPPFLAGS"
18513 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18515 save_LDFLAGS
="$LDFLAGS"
18516 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18519 LIBS
="$lt_cv_dlopen_libs $LIBS"
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18522 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18523 if test "${lt_cv_dlopen_self+set}" = set; then :
18524 $as_echo_n "(cached) " >&6
18526 if test "$cross_compiling" = yes; then :
18527 lt_cv_dlopen_self
=cross
18529 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18530 lt_status
=$lt_dlunknown
18531 cat > conftest.
$ac_ext <<_LT_EOF
18532 #line 18532 "configure"
18533 #include "confdefs.h"
18542 # define LT_DLGLOBAL RTLD_GLOBAL
18545 # define LT_DLGLOBAL DL_GLOBAL
18547 # define LT_DLGLOBAL 0
18551 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18552 find out it does not work in some platform. */
18553 #ifndef LT_DLLAZY_OR_NOW
18555 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18558 # define LT_DLLAZY_OR_NOW DL_LAZY
18561 # define LT_DLLAZY_OR_NOW RTLD_NOW
18564 # define LT_DLLAZY_OR_NOW DL_NOW
18566 # define LT_DLLAZY_OR_NOW 0
18573 /* When -fvisbility=hidden is used, assume the code has been annotated
18574 correspondingly for the symbols needed. */
18575 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18576 void fnord () __attribute__((visibility("default")));
18579 void fnord () { int i=42; }
18582 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18583 int status = $lt_dlunknown;
18587 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18590 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18591 else puts (dlerror ());
18593 /* dlclose (self); */
18601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18602 (eval $ac_link) 2>&5
18604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18605 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18606 (.
/conftest
; exit; ) >&5 2>/dev
/null
18608 case x
$lt_status in
18609 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18610 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18611 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18614 # compilation failed
18615 lt_cv_dlopen_self
=no
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18623 $as_echo "$lt_cv_dlopen_self" >&6; }
18625 if test "x$lt_cv_dlopen_self" = xyes
; then
18626 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18628 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18629 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18630 $as_echo_n "(cached) " >&6
18632 if test "$cross_compiling" = yes; then :
18633 lt_cv_dlopen_self_static
=cross
18635 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18636 lt_status
=$lt_dlunknown
18637 cat > conftest.
$ac_ext <<_LT_EOF
18638 #line 18638 "configure"
18639 #include "confdefs.h"
18648 # define LT_DLGLOBAL RTLD_GLOBAL
18651 # define LT_DLGLOBAL DL_GLOBAL
18653 # define LT_DLGLOBAL 0
18657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18658 find out it does not work in some platform. */
18659 #ifndef LT_DLLAZY_OR_NOW
18661 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18664 # define LT_DLLAZY_OR_NOW DL_LAZY
18667 # define LT_DLLAZY_OR_NOW RTLD_NOW
18670 # define LT_DLLAZY_OR_NOW DL_NOW
18672 # define LT_DLLAZY_OR_NOW 0
18679 /* When -fvisbility=hidden is used, assume the code has been annotated
18680 correspondingly for the symbols needed. */
18681 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18682 void fnord () __attribute__((visibility("default")));
18685 void fnord () { int i=42; }
18688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18689 int status = $lt_dlunknown;
18693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18696 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18697 else puts (dlerror ());
18699 /* dlclose (self); */
18707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18708 (eval $ac_link) 2>&5
18710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18711 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18712 (.
/conftest
; exit; ) >&5 2>/dev
/null
18714 case x
$lt_status in
18715 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18716 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18717 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18720 # compilation failed
18721 lt_cv_dlopen_self_static
=no
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18729 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18732 CPPFLAGS
="$save_CPPFLAGS"
18733 LDFLAGS
="$save_LDFLAGS"
18738 case $lt_cv_dlopen_self in
18739 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18740 *) enable_dlopen_self
=unknown
;;
18743 case $lt_cv_dlopen_self_static in
18744 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18745 *) enable_dlopen_self_static
=unknown
;;
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18768 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18769 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18770 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18771 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18773 $as_echo "yes" >&6; }
18775 # FIXME - insert some real tests, host_os isn't really good enough
18778 if test -n "$STRIP" ; then
18779 striplib
="$STRIP -x"
18780 old_striplib
="$STRIP -S"
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18782 $as_echo "yes" >&6; }
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18785 $as_echo "no" >&6; }
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18790 $as_echo "no" >&6; }
18806 # Report which library types will actually be built
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18808 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18810 $as_echo "$can_build_shared" >&6; }
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18813 $as_echo_n "checking whether to build shared libraries... " >&6; }
18814 test "$can_build_shared" = "no" && enable_shared
=no
18816 # On AIX, shared libraries and static libraries use the same namespace, and
18817 # are all built from PIC.
18820 test "$enable_shared" = yes && enable_static
=no
18821 if test -n "$RANLIB"; then
18822 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18823 postinstall_cmds
='$RANLIB $lib'
18828 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18829 test "$enable_shared" = yes && enable_static
=no
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18834 $as_echo "$enable_shared" >&6; }
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18837 $as_echo_n "checking whether to build static libraries... " >&6; }
18838 # Make sure either enable_shared or enable_static is yes.
18839 test "$enable_shared" = yes || enable_static
=yes
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18841 $as_echo "$enable_static" >&6; }
18848 ac_cpp
='$CXXCPP $CPPFLAGS'
18849 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18850 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18851 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18855 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18856 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18857 (test "X$CXX" != "Xg++"))) ; then
18859 ac_cpp
='$CXXCPP $CPPFLAGS'
18860 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18864 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18865 if test -z "$CXXCPP"; then
18866 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18867 $as_echo_n "(cached) " >&6
18869 # Double quotes because CXXCPP needs to be expanded
18870 for CXXCPP
in "$CXX -E" "/lib/cpp"
18872 ac_preproc_ok
=false
18873 for ac_cxx_preproc_warn_flag
in '' yes
18875 # Use a header file that comes with gcc, so configuring glibc
18876 # with a fresh cross-compiler works.
18877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18878 # <limits.h> exists even on freestanding compilers.
18879 # On the NeXT, cc -E runs the code through the compiler's parser,
18880 # not just through cpp. "Syntax error" is here to catch this case.
18881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h. */
18884 # include <limits.h>
18886 # include <assert.h>
18890 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18893 # Broken: fails on valid input.
18896 rm -f conftest.err conftest.
$ac_ext
18898 # OK, works on sane cases. Now check whether nonexistent headers
18899 # can be detected and how.
18900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18902 #include <ac_nonexistent.h>
18904 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18905 # Broken: success on invalid input.
18908 # Passes both tests.
18912 rm -f conftest.err conftest.
$ac_ext
18915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18916 rm -f conftest.err conftest.
$ac_ext
18917 if $ac_preproc_ok; then :
18922 ac_cv_prog_CXXCPP
=$CXXCPP
18925 CXXCPP
=$ac_cv_prog_CXXCPP
18927 ac_cv_prog_CXXCPP
=$CXXCPP
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18930 $as_echo "$CXXCPP" >&6; }
18931 ac_preproc_ok
=false
18932 for ac_cxx_preproc_warn_flag
in '' yes
18934 # Use a header file that comes with gcc, so configuring glibc
18935 # with a fresh cross-compiler works.
18936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18937 # <limits.h> exists even on freestanding compilers.
18938 # On the NeXT, cc -E runs the code through the compiler's parser,
18939 # not just through cpp. "Syntax error" is here to catch this case.
18940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18941 /* end confdefs.h. */
18943 # include <limits.h>
18945 # include <assert.h>
18949 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18952 # Broken: fails on valid input.
18955 rm -f conftest.err conftest.
$ac_ext
18957 # OK, works on sane cases. Now check whether nonexistent headers
18958 # can be detected and how.
18959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18961 #include <ac_nonexistent.h>
18963 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18964 # Broken: success on invalid input.
18967 # Passes both tests.
18971 rm -f conftest.err conftest.
$ac_ext
18974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18975 rm -f conftest.err conftest.
$ac_ext
18976 if $ac_preproc_ok; then :
18979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18981 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18982 See \`config.log' for more details." "$LINENO" 5; }
18986 ac_cpp
='$CXXCPP $CPPFLAGS'
18987 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18988 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18989 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18992 _lt_caught_CXX_error
=yes
18996 ac_cpp
='$CXXCPP $CPPFLAGS'
18997 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18998 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18999 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19001 archive_cmds_need_lc_CXX
=no
19002 allow_undefined_flag_CXX
=
19003 always_export_symbols_CXX
=no
19004 archive_expsym_cmds_CXX
=
19005 compiler_needs_object_CXX
=no
19006 export_dynamic_flag_spec_CXX
=
19007 hardcode_direct_CXX
=no
19008 hardcode_direct_absolute_CXX
=no
19009 hardcode_libdir_flag_spec_CXX
=
19010 hardcode_libdir_flag_spec_ld_CXX
=
19011 hardcode_libdir_separator_CXX
=
19012 hardcode_minus_L_CXX
=no
19013 hardcode_shlibpath_var_CXX
=unsupported
19014 hardcode_automatic_CXX
=no
19015 inherit_rpath_CXX
=no
19017 module_expsym_cmds_CXX
=
19018 link_all_deplibs_CXX
=unknown
19019 old_archive_cmds_CXX
=$old_archive_cmds
19020 reload_flag_CXX
=$reload_flag
19021 reload_cmds_CXX
=$reload_cmds
19022 no_undefined_flag_CXX
=
19023 whole_archive_flag_spec_CXX
=
19024 enable_shared_with_static_runtimes_CXX
=no
19026 # Source file extension for C++ test sources.
19029 # Object file extension for compiled C++ test sources.
19033 # No sense in running all these tests if we already determined that
19034 # the CXX compiler isn't working. Some variables (like enable_shared)
19035 # are currently assumed to apply to all compilers on this platform,
19036 # and will be corrupted by setting them based on a non-working compiler.
19037 if test "$_lt_caught_CXX_error" != yes; then
19038 # Code to be used in simple compile tests
19039 lt_simple_compile_test_code
="int some_variable = 0;"
19041 # Code to be used in simple link tests
19042 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
19044 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19051 # If no C compiler was specified, use CC.
19054 # If no C compiler flags were specified, use CFLAGS.
19055 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19057 # Allow CC to be a program name with arguments.
19061 # save warnings/boilerplate of simple test code
19062 ac_outfile
=conftest.
$ac_objext
19063 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19064 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19065 _lt_compiler_boilerplate
=`cat conftest.err`
19068 ac_outfile
=conftest.
$ac_objext
19069 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19070 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19071 _lt_linker_boilerplate
=`cat conftest.err`
19075 # Allow CC to be a program name with arguments.
19080 lt_save_with_gnu_ld
=$with_gnu_ld
19081 lt_save_path_LD
=$lt_cv_path_LD
19082 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19083 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
19085 $as_unset lt_cv_prog_gnu_ld
19087 if test -n "${lt_cv_path_LDCXX+set}"; then
19088 lt_cv_path_LD
=$lt_cv_path_LDCXX
19090 $as_unset lt_cv_path_LD
19092 test -z "${LDCXX+set}" || LD
=$LDCXX
19096 for cc_temp
in $compiler""; do
19098 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19099 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19104 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19107 if test -n "$compiler"; then
19108 # We don't want -fno-exception when compiling C++ code, so set the
19109 # no_builtin_flag separately
19110 if test "$GXX" = yes; then
19111 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
19113 lt_prog_compiler_no_builtin_flag_CXX
=
19116 if test "$GXX" = yes; then
19117 # Set up default GNU C++ configuration
19121 # Check whether --with-gnu-ld was given.
19122 if test "${with_gnu_ld+set}" = set; then :
19123 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
19129 if test "$GCC" = yes; then
19130 # Check if gcc -print-prog-name=ld gives a path.
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19132 $as_echo_n "checking for ld used by $CC... " >&6; }
19135 # gcc leaves a trailing carriage return which upsets mingw
19136 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19138 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
19141 # Accept absolute paths.
19143 re_direlt
='/[^/][^/]*/\.\./'
19144 # Canonicalize the pathname of ld
19145 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19146 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
19147 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19149 test -z "$LD" && LD
="$ac_prog"
19152 # If it fails, then pretend we aren't using GCC.
19156 # If it is relative, then search for the first ld in PATH.
19157 with_gnu_ld
=unknown
19160 elif test "$with_gnu_ld" = yes; then
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19162 $as_echo_n "checking for GNU ld... " >&6; }
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19165 $as_echo_n "checking for non-GNU ld... " >&6; }
19167 if test "${lt_cv_path_LD+set}" = set; then :
19168 $as_echo_n "(cached) " >&6
19170 if test -z "$LD"; then
19171 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
19172 for ac_dir
in $PATH; do
19174 test -z "$ac_dir" && ac_dir
=.
19175 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
19176 lt_cv_path_LD
="$ac_dir/$ac_prog"
19177 # Check to see if the program is GNU ld. I'd rather use --version,
19178 # but apparently some variants of GNU ld only accept -v.
19179 # Break only if it was the GNU/non-GNU ld that we prefer.
19180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19181 *GNU
* |
*'with BFD'*)
19182 test "$with_gnu_ld" != no
&& break
19185 test "$with_gnu_ld" != yes && break
19192 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19196 LD
="$lt_cv_path_LD"
19197 if test -n "$LD"; then
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19199 $as_echo "$LD" >&6; }
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
19204 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19206 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19207 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19208 $as_echo_n "(cached) " >&6
19210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19211 case `$LD -v 2>&1 </dev/null` in
19212 *GNU
* |
*'with BFD'*)
19213 lt_cv_prog_gnu_ld
=yes
19216 lt_cv_prog_gnu_ld
=no
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19221 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19222 with_gnu_ld
=$lt_cv_prog_gnu_ld
19230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19231 # archiving commands below assume that GNU ld is being used.
19232 if test "$with_gnu_ld" = yes; then
19233 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19234 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'
19236 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19237 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19239 # If archive_cmds runs LD, not CC, wlarc should be empty
19240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19241 # investigate it a little bit more. (MM)
19244 # ancient GNU ld didn't support --whole-archive et. al.
19245 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19246 $GREP 'no-whole-archive' > /dev
/null
; then
19247 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19249 whole_archive_flag_spec_CXX
=
19255 # A generic and very simple default shared library creation
19256 # command for GNU C++ for the case where it uses the native
19257 # linker, instead of GNU ld. If possible, this setting should
19258 # overridden to take advantage of the native linker features on
19259 # the platform it is being used on.
19260 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19263 # Commands to make compiler produce verbose output that lists
19264 # what "hidden" libraries, object files and flags are used when
19265 # linking a shared library.
19266 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19274 # PORTME: fill in a description of your system's C++ link characteristics
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19276 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19280 # FIXME: insert proper C++ library support
19284 if test "$host_cpu" = ia64
; then
19285 # On IA64, the linker does run time linking by default, so we don't
19286 # have to do anything special.
19287 aix_use_runtimelinking
=no
19288 exp_sym_flag
='-Bexport'
19291 aix_use_runtimelinking
=no
19293 # Test if we are trying to use run time linking or normal
19294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19295 # need to do runtime linking.
19296 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19297 for ld_flag
in $LDFLAGS; do
19300 aix_use_runtimelinking
=yes
19308 exp_sym_flag
='-bexport'
19309 no_entry_flag
='-bnoentry'
19312 # When large executables or shared objects are built, AIX ld can
19313 # have problems creating the table of contents. If linking a library
19314 # or program results in "error TOC overflow" add -mminimal-toc to
19315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19318 archive_cmds_CXX
=''
19319 hardcode_direct_CXX
=yes
19320 hardcode_direct_absolute_CXX
=yes
19321 hardcode_libdir_separator_CXX
=':'
19322 link_all_deplibs_CXX
=yes
19323 file_list_spec_CXX
='${wl}-f,'
19325 if test "$GXX" = yes; then
19326 case $host_os in aix4.
[012]|aix4.
[012].
*)
19327 # We only want to do this on AIX 4.2 and lower, the check
19328 # below for broken collect2 doesn't work under 4.3+
19329 collect2name
=`${CC} -print-prog-name=collect2`
19330 if test -f "$collect2name" &&
19331 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19333 # We have reworked collect2
19336 # We have old collect2
19337 hardcode_direct_CXX
=unsupported
19338 # It fails to find uninstalled libraries when the uninstalled
19339 # path is not listed in the libpath. Setting hardcode_minus_L
19340 # to unsupported forces relinking
19341 hardcode_minus_L_CXX
=yes
19342 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19343 hardcode_libdir_separator_CXX
=
19346 shared_flag
='-shared'
19347 if test "$aix_use_runtimelinking" = yes; then
19348 shared_flag
="$shared_flag "'${wl}-G'
19352 if test "$host_cpu" = ia64
; then
19353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19354 # chokes on -Wl,-G. The following line is correct:
19357 if test "$aix_use_runtimelinking" = yes; then
19358 shared_flag
='${wl}-G'
19360 shared_flag
='${wl}-bM:SRE'
19365 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19366 # It seems that -bexpall does not export symbols beginning with
19367 # underscore (_), so it is better to generate a list of symbols to
19369 always_export_symbols_CXX
=yes
19370 if test "$aix_use_runtimelinking" = yes; then
19371 # Warning - without using the other runtime loading flags (-brtl),
19372 # -berok will link without error, but may produce a broken library.
19373 allow_undefined_flag_CXX
='-berok'
19374 # Determine the default libpath from the value encoded in an empty
19376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19387 if ac_fn_cxx_try_link
"$LINENO"; then :
19389 lt_aix_libpath_sed
='
19390 /Import File Strings/,/^$/ {
19396 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19397 # Check for a 64-bit object if we didn't find anything.
19398 if test -z "$aix_libpath"; then
19399 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19402 rm -f core conftest.err conftest.
$ac_objext \
19403 conftest
$ac_exeext conftest.
$ac_ext
19404 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19406 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19408 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"
19410 if test "$host_cpu" = ia64
; then
19411 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19412 allow_undefined_flag_CXX
="-z nodefs"
19413 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"
19415 # Determine the default libpath from the value encoded in an
19416 # empty executable.
19417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h. */
19428 if ac_fn_cxx_try_link
"$LINENO"; then :
19430 lt_aix_libpath_sed
='
19431 /Import File Strings/,/^$/ {
19437 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19438 # Check for a 64-bit object if we didn't find anything.
19439 if test -z "$aix_libpath"; then
19440 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19443 rm -f core conftest.err conftest.
$ac_objext \
19444 conftest
$ac_exeext conftest.
$ac_ext
19445 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19447 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19448 # Warning - without using the other run time loading flags,
19449 # -berok will link without error, but may produce a broken library.
19450 no_undefined_flag_CXX
=' ${wl}-bernotok'
19451 allow_undefined_flag_CXX
=' ${wl}-berok'
19452 if test "$with_gnu_ld" = yes; then
19453 # We only use this code for GNU lds that support --whole-archive.
19454 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19456 # Exported symbols can be pulled into shared objects from archives
19457 whole_archive_flag_spec_CXX
='$convenience'
19459 archive_cmds_need_lc_CXX
=yes
19460 # This is similar to how AIX traditionally builds its shared
19462 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'
19468 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19469 allow_undefined_flag_CXX
=unsupported
19470 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19471 # support --undefined. This deserves some investigation. FIXME
19472 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19479 case $cc_basename in
19481 # FIXME: insert proper C++ library support
19487 cygwin
* | mingw
* | pw32
* | cegcc
*)
19488 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19489 # as there is no search path for DLLs.
19490 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19491 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19492 allow_undefined_flag_CXX
=unsupported
19493 always_export_symbols_CXX
=no
19494 enable_shared_with_static_runtimes_CXX
=yes
19496 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19497 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'
19498 # If the export-symbols file already is a .def file (1st line
19499 # is EXPORTS), use it as is; otherwise, prepend...
19500 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19501 cp $export_symbols $output_objdir/$soname.def;
19503 echo EXPORTS > $output_objdir/$soname.def;
19504 cat $export_symbols >> $output_objdir/$soname.def;
19506 $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'
19511 darwin
* | rhapsody
*)
19514 archive_cmds_need_lc_CXX
=no
19515 hardcode_direct_CXX
=no
19516 hardcode_automatic_CXX
=yes
19517 hardcode_shlibpath_var_CXX
=unsupported
19518 if test "$lt_cv_ld_force_load" = "yes"; then
19519 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\"`'
19521 whole_archive_flag_spec_CXX
=''
19523 link_all_deplibs_CXX
=yes
19524 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19525 case $cc_basename in
19526 ifort
*) _lt_dar_can_shared
=yes ;;
19527 *) _lt_dar_can_shared
=$GCC ;;
19529 if test "$_lt_dar_can_shared" = "yes"; then
19530 output_verbose_link_cmd
=func_echo_all
19531 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}"
19532 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19533 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}"
19534 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}"
19535 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19536 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}"
19537 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}"
19547 case $cc_basename in
19549 # FIXME: insert proper C++ library support
19553 # Green Hills C++ Compiler
19554 # FIXME: insert proper C++ library support
19558 # FIXME: insert proper C++ library support
19565 # C++ shared libraries reported to be fairly broken before
19571 archive_cmds_need_lc_CXX
=no
19574 freebsd
* | dragonfly
*)
19575 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19584 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19585 link_all_deplibs_CXX
=yes
19589 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19590 hardcode_libdir_separator_CXX
=:
19591 export_dynamic_flag_spec_CXX
='${wl}-E'
19592 hardcode_direct_CXX
=yes
19593 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19594 # but as the default
19595 # location of the library.
19597 case $cc_basename in
19599 # FIXME: insert proper C++ library support
19603 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'
19604 # Commands to make compiler produce verbose output that lists
19605 # what "hidden" libraries, object files and flags are used when
19606 # linking a shared library.
19608 # There doesn't appear to be a way to prevent this compiler from
19609 # explicitly linking system object files so we need to strip them
19610 # from the output so that they don't get included in the library
19612 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"'
19615 if test "$GXX" = yes; then
19616 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'
19618 # FIXME: insert proper C++ library support
19626 if test $with_gnu_ld = no
; then
19627 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19628 hardcode_libdir_separator_CXX
=:
19634 export_dynamic_flag_spec_CXX
='${wl}-E'
19640 hardcode_direct_CXX
=no
19641 hardcode_shlibpath_var_CXX
=no
19644 hardcode_direct_CXX
=yes
19645 hardcode_direct_absolute_CXX
=yes
19646 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19647 # but as the default
19648 # location of the library.
19652 case $cc_basename in
19654 # FIXME: insert proper C++ library support
19660 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19663 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19666 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19669 # Commands to make compiler produce verbose output that lists
19670 # what "hidden" libraries, object files and flags are used when
19671 # linking a shared library.
19673 # There doesn't appear to be a way to prevent this compiler from
19674 # explicitly linking system object files so we need to strip them
19675 # from the output so that they don't get included in the library
19677 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"'
19680 if test "$GXX" = yes; then
19681 if test $with_gnu_ld = no
; then
19684 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19687 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19690 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'
19695 # FIXME: insert proper C++ library support
19703 hardcode_direct_CXX
=no
19704 hardcode_shlibpath_var_CXX
=no
19705 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19706 export_dynamic_flag_spec_CXX
='${wl}-E'
19707 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19708 # Instead, shared libraries are loaded at an image base (0x10000000 by
19709 # default) and relocated if they conflict, which is a slow very memory
19710 # consuming and fragmenting process. To avoid this, we pick a random,
19711 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19712 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19713 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'
19714 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'
19717 case $cc_basename in
19720 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'
19722 # Archives containing C++ object files must be created using
19723 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19724 # necessary to make sure instantiated templates are included
19726 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19729 if test "$GXX" = yes; then
19730 if test "$with_gnu_ld" = no
; then
19731 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'
19733 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'
19736 link_all_deplibs_CXX
=yes
19739 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19740 hardcode_libdir_separator_CXX
=:
19741 inherit_rpath_CXX
=yes
19744 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19745 case $cc_basename in
19747 # Kuck and Associates, Inc. (KAI) C++ Compiler
19749 # KCC will only create a shared library if the output file
19750 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19751 # to its proper name (with version) after linking.
19752 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'
19753 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'
19754 # Commands to make compiler produce verbose output that lists
19755 # what "hidden" libraries, object files and flags are used when
19756 # linking a shared library.
19758 # There doesn't appear to be a way to prevent this compiler from
19759 # explicitly linking system object files so we need to strip them
19760 # from the output so that they don't get included in the library
19762 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"'
19764 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19765 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19767 # Archives containing C++ object files must be created using
19768 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19769 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19774 # version 8.0 and above of icpc choke on multiply defined symbols
19775 # if we add $predep_objects and $postdep_objects, however 7.1 and
19776 # earlier do not add the objects themselves.
19777 case `$CC -V 2>&1` in
19779 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19780 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'
19782 *) # Version 8.0 or newer
19785 ia64
*) tmp_idyn
=' -i_dynamic';;
19787 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19788 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'
19791 archive_cmds_need_lc_CXX
=no
19792 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19793 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19794 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19797 # Portland Group C++ compiler
19799 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19800 prelink_cmds_CXX
='tpldir=Template.dir~
19802 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19803 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
19804 old_archive_cmds_CXX
='tpldir=Template.dir~
19806 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19807 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19809 archive_cmds_CXX
='tpldir=Template.dir~
19811 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19812 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19813 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19815 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19816 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19818 *) # Version 6 and above use weak symbols
19819 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19820 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'
19824 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19825 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19826 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'
19830 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19831 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'
19833 runpath_var
=LD_RUN_PATH
19834 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19835 hardcode_libdir_separator_CXX
=:
19837 # Commands to make compiler produce verbose output that lists
19838 # what "hidden" libraries, object files and flags are used when
19839 # linking a shared library.
19841 # There doesn't appear to be a way to prevent this compiler from
19842 # explicitly linking system object files so we need to strip them
19843 # from the output so that they don't get included in the library
19845 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'
19847 xl
* | mpixl
* | bgxl
*)
19848 # IBM XL 8.0 on PPC, with GNU ld
19849 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19850 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19851 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19852 if test "x$supports_anon_versioning" = xyes
; then
19853 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19854 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19855 echo "local: *; };" >> $output_objdir/$libname.ver~
19856 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19860 case `$CC -V 2>&1 | sed 5q` in
19863 no_undefined_flag_CXX
=' -zdefs'
19864 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19865 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'
19866 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19867 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'
19868 compiler_needs_object_CXX
=yes
19870 # Not sure whether something based on
19871 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19873 output_verbose_link_cmd
='func_echo_all'
19875 # Archives containing C++ object files must be created using
19876 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19877 # necessary to make sure instantiated templates are included
19879 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19887 # FIXME: insert proper C++ library support
19892 # FIXME: insert proper C++ library support
19897 case $cc_basename in
19899 # FIXME: insert proper C++ library support
19903 # FIXME: insert proper C++ library support
19910 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19911 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19913 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19914 hardcode_direct_CXX
=yes
19915 hardcode_shlibpath_var_CXX
=no
19917 # Workaround some broken pre-1.5 toolchains
19918 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19926 # C++ shared libraries are fairly broken
19931 if test -f /usr
/libexec
/ld.so
; then
19932 hardcode_direct_CXX
=yes
19933 hardcode_shlibpath_var_CXX
=no
19934 hardcode_direct_absolute_CXX
=yes
19935 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19936 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19937 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19938 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19939 export_dynamic_flag_spec_CXX
='${wl}-E'
19940 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19942 output_verbose_link_cmd
=func_echo_all
19948 osf3
* | osf4
* | osf5
*)
19949 case $cc_basename in
19951 # Kuck and Associates, Inc. (KAI) C++ Compiler
19953 # KCC will only create a shared library if the output file
19954 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19955 # to its proper name (with version) after linking.
19956 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'
19958 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19959 hardcode_libdir_separator_CXX
=:
19961 # Archives containing C++ object files must be created using
19962 # the KAI C++ compiler.
19964 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19965 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19969 # Rational C++ 2.4.1
19970 # FIXME: insert proper C++ library support
19976 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19977 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'
19978 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19981 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19982 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'
19983 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19984 echo "-hidden">> $lib.exp~
19985 $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~
19987 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19991 hardcode_libdir_separator_CXX
=:
19993 # Commands to make compiler produce verbose output that lists
19994 # what "hidden" libraries, object files and flags are used when
19995 # linking a shared library.
19997 # There doesn't appear to be a way to prevent this compiler from
19998 # explicitly linking system object files so we need to strip them
19999 # from the output so that they don't get included in the library
20001 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"'
20004 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20005 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
20008 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'
20011 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'
20015 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
20016 hardcode_libdir_separator_CXX
=:
20018 # Commands to make compiler produce verbose output that lists
20019 # what "hidden" libraries, object files and flags are used when
20020 # linking a shared library.
20021 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20024 # FIXME: insert proper C++ library support
20032 # FIXME: insert proper C++ library support
20037 case $cc_basename in
20040 # FIXME: insert proper C++ library support
20045 # FIXME: insert proper C++ library support
20049 # FIXME: insert proper C++ library support
20056 case $cc_basename in
20058 # Sun C++ 4.2, 5.x and Centerline C++
20059 archive_cmds_need_lc_CXX
=yes
20060 no_undefined_flag_CXX
=' -zdefs'
20061 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20062 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20063 $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'
20065 hardcode_libdir_flag_spec_CXX
='-R$libdir'
20066 hardcode_shlibpath_var_CXX
=no
20068 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20070 # The compiler driver will combine and reorder linker options,
20071 # but understands `-z linker_flag'.
20072 # Supported since Solaris 2.6 (maybe 2.5.1?)
20073 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
20076 link_all_deplibs_CXX
=yes
20078 output_verbose_link_cmd
='func_echo_all'
20080 # Archives containing C++ object files must be created using
20081 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20082 # necessary to make sure instantiated templates are included
20084 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
20087 # Green Hills C++ Compiler
20088 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20090 # The C++ compiler must be used to create the archive.
20091 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20094 # GNU C++ compiler with Solaris linker
20095 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
20096 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
20097 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
20098 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20099 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20100 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20102 # Commands to make compiler produce verbose output that lists
20103 # what "hidden" libraries, object files and flags are used when
20104 # linking a shared library.
20105 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20107 # g++ 2.7 appears to require `-G' NOT `-shared' on this
20109 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
20110 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20111 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
20113 # Commands to make compiler produce verbose output that lists
20114 # what "hidden" libraries, object files and flags are used when
20115 # linking a shared library.
20116 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20119 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
20121 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20123 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20131 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20132 no_undefined_flag_CXX
='${wl}-z,text'
20133 archive_cmds_need_lc_CXX
=no
20134 hardcode_shlibpath_var_CXX
=no
20135 runpath_var
='LD_RUN_PATH'
20137 case $cc_basename in
20139 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20140 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20143 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20144 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20149 sysv5
* | sco3.2v5
* | sco5v6
*)
20150 # Note: We can NOT use -z defs as we might desire, because we do not
20151 # link with -lc, and that would cause any symbols used from libc to
20152 # always be unresolved, which means just about no library would
20153 # ever link correctly. If we're not using GNU ld we use -z text
20154 # though, which does catch some bad symbols but isn't as heavy-handed
20156 no_undefined_flag_CXX
='${wl}-z,text'
20157 allow_undefined_flag_CXX
='${wl}-z,nodefs'
20158 archive_cmds_need_lc_CXX
=no
20159 hardcode_shlibpath_var_CXX
=no
20160 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
20161 hardcode_libdir_separator_CXX
=':'
20162 link_all_deplibs_CXX
=yes
20163 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
20164 runpath_var
='LD_RUN_PATH'
20166 case $cc_basename in
20168 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20169 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20170 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
20171 '"$old_archive_cmds_CXX"
20172 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
20173 '"$reload_cmds_CXX"
20176 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20177 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20183 case $cc_basename in
20185 # NonStop-UX NCC 3.20
20186 # FIXME: insert proper C++ library support
20190 # FIXME: insert proper C++ library support
20197 # FIXME: insert proper C++ library support
20202 # FIXME: insert proper C++ library support
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20208 $as_echo "$ld_shlibs_CXX" >&6; }
20209 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20215 ## There is no encapsulation within the following macros, do not change
20216 ## the running order or otherwise move them around unless you know exactly
20217 ## what you are doing...
20218 # Dependencies to place before and after the object being linked:
20219 predep_objects_CXX
=
20220 postdep_objects_CXX
=
20223 compiler_lib_search_path_CXX
=
20225 cat > conftest.
$ac_ext <<_LT_EOF
20229 Foo (void) { a = 0; }
20235 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20236 (eval $ac_compile) 2>&5
20238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20239 test $ac_status = 0; }; then
20240 # Parse the compiler output and extract the necessary
20241 # objects, libraries and library flags.
20243 # Sentinel used to keep track of whether or not we are before
20244 # the conftest object file.
20245 pre_test_object_deps_done
=no
20247 for p
in `eval "$output_verbose_link_cmd"`; do
20251 # Some compilers place space between "-{L,R}" and the path.
20252 # Remove the space.
20253 if test $p = "-L" ||
20254 test $p = "-R"; then
20261 if test "$pre_test_object_deps_done" = no
; then
20264 # Internal compiler library paths should come after those
20265 # provided the user. The postdeps already come after the
20266 # user supplied libs so there is no need to process them.
20267 if test -z "$compiler_lib_search_path_CXX"; then
20268 compiler_lib_search_path_CXX
="${prev}${p}"
20270 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20273 # The "-l" case would never come before the object being
20274 # linked, so don't bother handling this case.
20277 if test -z "$postdeps_CXX"; then
20278 postdeps_CXX
="${prev}${p}"
20280 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20286 # This assumes that the test object file only shows up
20287 # once in the compiler output.
20288 if test "$p" = "conftest.$objext"; then
20289 pre_test_object_deps_done
=yes
20293 if test "$pre_test_object_deps_done" = no
; then
20294 if test -z "$predep_objects_CXX"; then
20295 predep_objects_CXX
="$p"
20297 predep_objects_CXX
="$predep_objects_CXX $p"
20300 if test -z "$postdep_objects_CXX"; then
20301 postdep_objects_CXX
="$p"
20303 postdep_objects_CXX
="$postdep_objects_CXX $p"
20308 *) ;; # Ignore the rest.
20316 echo "libtool.m4: error: problem compiling CXX test program"
20319 $RM -f confest.
$objext
20321 # PORTME: override above test on systems where it is broken
20324 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20325 # hack all around it, let's just trust "g++" to DTRT.
20326 predep_objects_CXX
=
20327 postdep_objects_CXX
=
20332 case `$CC -V 2>&1 | sed 5q` in
20336 # The more standards-conforming stlport4 library is
20337 # incompatible with the Cstd library. Avoid specifying
20338 # it if it's in CXXFLAGS. Ignore libCrun as
20339 # -library=stlport4 depends on it.
20340 case " $CXX $CXXFLAGS " in
20341 *" -library=stlport4 "*)
20342 solaris_use_stlport4
=yes
20346 if test "$solaris_use_stlport4" != yes; then
20347 postdeps_CXX
='-library=Cstd -library=Crun'
20354 case $cc_basename in
20356 # The more standards-conforming stlport4 library is
20357 # incompatible with the Cstd library. Avoid specifying
20358 # it if it's in CXXFLAGS. Ignore libCrun as
20359 # -library=stlport4 depends on it.
20360 case " $CXX $CXXFLAGS " in
20361 *" -library=stlport4 "*)
20362 solaris_use_stlport4
=yes
20366 # Adding this requires a known-good setup of shared libraries for
20367 # Sun compiler versions before 5.6, else PIC objects from an old
20368 # archive will be linked into the output, leading to subtle bugs.
20369 if test "$solaris_use_stlport4" != yes; then
20370 postdeps_CXX
='-library=Cstd -library=Crun'
20378 case " $postdeps_CXX " in
20379 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20381 compiler_lib_search_dirs_CXX
=
20382 if test -n "${compiler_lib_search_path_CXX}"; then
20383 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20416 lt_prog_compiler_wl_CXX
=
20417 lt_prog_compiler_pic_CXX
=
20418 lt_prog_compiler_static_CXX
=
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20421 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20423 # C++ specific cases for pic, static, wl, etc.
20424 if test "$GXX" = yes; then
20425 lt_prog_compiler_wl_CXX
='-Wl,'
20426 lt_prog_compiler_static_CXX
='-static'
20430 # All AIX code is PIC.
20431 if test "$host_cpu" = ia64
; then
20432 # AIX 5 now supports IA64 processor
20433 lt_prog_compiler_static_CXX
='-Bstatic'
20435 lt_prog_compiler_pic_CXX
='-fPIC'
20441 # see comment about AmigaOS4 .so support
20442 lt_prog_compiler_pic_CXX
='-fPIC'
20445 # FIXME: we need at least 68020 code to build shared libraries, but
20446 # adding the `-m68020' flag to GCC prevents building anything better,
20448 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20453 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20454 # PIC is the default for these OSes.
20456 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20457 # This hack is so that the source file can tell whether it is being
20458 # built for inclusion in a dll (and should export symbols for example).
20459 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20460 # (--disable-auto-import) libraries
20461 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20463 darwin
* | rhapsody
*)
20464 # PIC is the default on this platform
20465 # Common symbols not allowed in MH_DYLIB files
20466 lt_prog_compiler_pic_CXX
='-fno-common'
20469 # DJGPP does not support shared libraries at all
20470 lt_prog_compiler_pic_CXX
=
20473 # PIC is the default for Haiku.
20474 # The "-static" flag exists, but is broken.
20475 lt_prog_compiler_static_CXX
=
20478 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20479 # Instead, we relocate shared libraries at runtime.
20482 if test -d /usr
/nec
; then
20483 lt_prog_compiler_pic_CXX
=-Kconform_pic
20487 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20488 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20489 # sets the default TLS model and affects inlining.
20494 lt_prog_compiler_pic_CXX
='-fPIC'
20499 # QNX uses GNU C++, but need to define -shared option too, otherwise
20500 # it will coredump.
20501 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20504 lt_prog_compiler_pic_CXX
='-fPIC'
20510 # All AIX code is PIC.
20511 if test "$host_cpu" = ia64
; then
20512 # AIX 5 now supports IA64 processor
20513 lt_prog_compiler_static_CXX
='-Bstatic'
20515 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20519 case $cc_basename in
20521 # Green Hills C++ Compiler
20522 # _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"
20527 case $cc_basename in
20529 lt_prog_compiler_pic_CXX
='-KPIC'
20532 # Green Hills C++ Compiler
20533 lt_prog_compiler_pic_CXX
='-pic'
20539 freebsd
* | dragonfly
*)
20540 # FreeBSD uses GNU C++
20542 hpux9
* | hpux10
* | hpux11
*)
20543 case $cc_basename in
20545 lt_prog_compiler_wl_CXX
='-Wl,'
20546 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20547 if test "$host_cpu" != ia64
; then
20548 lt_prog_compiler_pic_CXX
='+Z'
20552 lt_prog_compiler_wl_CXX
='-Wl,'
20553 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20559 lt_prog_compiler_pic_CXX
='+Z'
20568 # This is c89, which is MS Visual C++ (no shared libs)
20569 # Anyone wants to do a port?
20571 irix5
* | irix6
* | nonstopux
*)
20572 case $cc_basename in
20574 lt_prog_compiler_wl_CXX
='-Wl,'
20575 lt_prog_compiler_static_CXX
='-non_shared'
20576 # CC pic flag -KPIC is the default.
20582 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20583 case $cc_basename in
20586 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20587 lt_prog_compiler_pic_CXX
='-fPIC'
20590 # old Intel C++ for x86_64 which still supported -KPIC.
20591 lt_prog_compiler_wl_CXX
='-Wl,'
20592 lt_prog_compiler_pic_CXX
='-KPIC'
20593 lt_prog_compiler_static_CXX
='-static'
20596 # Intel C++, used to be incompatible with GCC.
20597 # ICC 10 doesn't accept -KPIC any more.
20598 lt_prog_compiler_wl_CXX
='-Wl,'
20599 lt_prog_compiler_pic_CXX
='-fPIC'
20600 lt_prog_compiler_static_CXX
='-static'
20603 # Portland Group C++ compiler
20604 lt_prog_compiler_wl_CXX
='-Wl,'
20605 lt_prog_compiler_pic_CXX
='-fpic'
20606 lt_prog_compiler_static_CXX
='-Bstatic'
20610 # Make sure the PIC flag is empty. It appears that all Alpha
20611 # Linux and Compaq Tru64 Unix objects are PIC.
20612 lt_prog_compiler_pic_CXX
=
20613 lt_prog_compiler_static_CXX
='-non_shared'
20615 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20616 # IBM XL 8.0, 9.0 on PPC and BlueGene
20617 lt_prog_compiler_wl_CXX
='-Wl,'
20618 lt_prog_compiler_pic_CXX
='-qpic'
20619 lt_prog_compiler_static_CXX
='-qstaticlink'
20622 case `$CC -V 2>&1 | sed 5q` in
20625 lt_prog_compiler_pic_CXX
='-KPIC'
20626 lt_prog_compiler_static_CXX
='-Bstatic'
20627 lt_prog_compiler_wl_CXX
='-Qoption ld '
20638 case $cc_basename in
20640 lt_prog_compiler_pic_CXX
='-W c,exportall'
20649 # QNX uses GNU C++, but need to define -shared option too, otherwise
20650 # it will coredump.
20651 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20653 osf3
* | osf4
* | osf5
*)
20654 case $cc_basename in
20656 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20659 # Rational C++ 2.4.1
20660 lt_prog_compiler_pic_CXX
='-pic'
20663 # Digital/Compaq C++
20664 lt_prog_compiler_wl_CXX
='-Wl,'
20665 # Make sure the PIC flag is empty. It appears that all Alpha
20666 # Linux and Compaq Tru64 Unix objects are PIC.
20667 lt_prog_compiler_pic_CXX
=
20668 lt_prog_compiler_static_CXX
='-non_shared'
20677 case $cc_basename in
20679 # Sun C++ 4.2, 5.x and Centerline C++
20680 lt_prog_compiler_pic_CXX
='-KPIC'
20681 lt_prog_compiler_static_CXX
='-Bstatic'
20682 lt_prog_compiler_wl_CXX
='-Qoption ld '
20685 # Green Hills C++ Compiler
20686 lt_prog_compiler_pic_CXX
='-PIC'
20693 case $cc_basename in
20696 lt_prog_compiler_pic_CXX
='-pic'
20697 lt_prog_compiler_static_CXX
='-Bstatic'
20701 lt_prog_compiler_pic_CXX
='-pic'
20707 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20708 case $cc_basename in
20710 lt_prog_compiler_wl_CXX
='-Wl,'
20711 lt_prog_compiler_pic_CXX
='-KPIC'
20712 lt_prog_compiler_static_CXX
='-Bstatic'
20717 case $cc_basename in
20719 # NonStop-UX NCC 3.20
20720 lt_prog_compiler_pic_CXX
='-KPIC'
20729 lt_prog_compiler_can_build_shared_CXX
=no
20735 # For platforms which do not support PIC, -DPIC is meaningless:
20737 lt_prog_compiler_pic_CXX
=
20740 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20744 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20749 # Check to make sure the PIC flag actually works.
20751 if test -n "$lt_prog_compiler_pic_CXX"; then
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20753 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20754 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20755 $as_echo_n "(cached) " >&6
20757 lt_cv_prog_compiler_pic_works_CXX
=no
20758 ac_outfile
=conftest.
$ac_objext
20759 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20760 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20761 # Insert the option either (1) after the last *FLAGS variable, or
20762 # (2) before a word containing "conftest.", or (3) at the end.
20763 # Note that $ac_compile itself does not contain backslashes and begins
20764 # with a dollar sign (not a hyphen), so the echo should work correctly.
20765 # The option is referenced via a variable to avoid confusing sed.
20766 lt_compile
=`echo "$ac_compile" | $SED \
20767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20769 -e 's:$: $lt_compiler_flag:'`
20770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20771 (eval "$lt_compile" 2>conftest.err
)
20773 cat conftest.err
>&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 if (exit $ac_status) && test -s "$ac_outfile"; then
20776 # The compiler can only warn and ignore the option if not recognized
20777 # So say no if there are warnings other than the usual output.
20778 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20779 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20780 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20781 lt_cv_prog_compiler_pic_works_CXX
=yes
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20788 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20790 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20791 case $lt_prog_compiler_pic_CXX in
20793 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20796 lt_prog_compiler_pic_CXX
=
20797 lt_prog_compiler_can_build_shared_CXX
=no
20805 # Check to make sure the static flag actually works.
20807 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20809 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20810 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20811 $as_echo_n "(cached) " >&6
20813 lt_cv_prog_compiler_static_works_CXX
=no
20814 save_LDFLAGS
="$LDFLAGS"
20815 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20816 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20817 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20818 # The linker can only warn and ignore the option if not recognized
20819 # So say no if there are warnings
20820 if test -s conftest.err
; then
20821 # Append any errors to the config.log.
20822 cat conftest.err
1>&5
20823 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20824 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20825 if diff conftest.exp conftest.er2
>/dev
/null
; then
20826 lt_cv_prog_compiler_static_works_CXX
=yes
20829 lt_cv_prog_compiler_static_works_CXX
=yes
20833 LDFLAGS
="$save_LDFLAGS"
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20837 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20839 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20842 lt_prog_compiler_static_CXX
=
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20849 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20850 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20851 $as_echo_n "(cached) " >&6
20853 lt_cv_prog_compiler_c_o_CXX
=no
20854 $RM -r conftest
2>/dev
/null
20858 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20860 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20861 # Insert the option either (1) after the last *FLAGS variable, or
20862 # (2) before a word containing "conftest.", or (3) at the end.
20863 # Note that $ac_compile itself does not contain backslashes and begins
20864 # with a dollar sign (not a hyphen), so the echo should work correctly.
20865 lt_compile
=`echo "$ac_compile" | $SED \
20866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20868 -e 's:$: $lt_compiler_flag:'`
20869 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20870 (eval "$lt_compile" 2>out
/conftest.err
)
20872 cat out
/conftest.err
>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20876 # The compiler can only warn and ignore the option if not recognized
20877 # So say no if there are warnings
20878 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20879 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20880 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20881 lt_cv_prog_compiler_c_o_CXX
=yes
20886 # SGI C++ compiler will create directory out/ii_files/ for
20887 # template instantiation
20888 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20889 $RM out
/* && rmdir out
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20896 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20902 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20903 $as_echo_n "(cached) " >&6
20905 lt_cv_prog_compiler_c_o_CXX
=no
20906 $RM -r conftest
2>/dev
/null
20910 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20912 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20913 # Insert the option either (1) after the last *FLAGS variable, or
20914 # (2) before a word containing "conftest.", or (3) at the end.
20915 # Note that $ac_compile itself does not contain backslashes and begins
20916 # with a dollar sign (not a hyphen), so the echo should work correctly.
20917 lt_compile
=`echo "$ac_compile" | $SED \
20918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20920 -e 's:$: $lt_compiler_flag:'`
20921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20922 (eval "$lt_compile" 2>out
/conftest.err
)
20924 cat out
/conftest.err
>&5
20925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20928 # The compiler can only warn and ignore the option if not recognized
20929 # So say no if there are warnings
20930 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20931 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20932 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20933 lt_cv_prog_compiler_c_o_CXX
=yes
20938 # SGI C++ compiler will create directory out/ii_files/ for
20939 # template instantiation
20940 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20941 $RM out
/* && rmdir out
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20948 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20953 hard_links
="nottested"
20954 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20955 # do not overwrite the value of need_locks provided by the user
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20957 $as_echo_n "checking if we can lock with hard links... " >&6; }
20960 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20962 ln conftest.a conftest.b
2>&5 || hard_links
=no
20963 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20965 $as_echo "$hard_links" >&6; }
20966 if test "$hard_links" = no
; then
20967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20968 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20978 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20980 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20983 # If we're using GNU nm, then we don't want the "-C" option.
20984 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20985 # Also, AIX nm treats weak defined symbols like other global defined
20986 # symbols, whereas GNU nm marks them as "W".
20987 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20988 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'
20990 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'
20994 export_symbols_cmds_CXX
="$ltdll_cmds"
20996 cygwin
* | mingw
* | cegcc
*)
20997 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'
21000 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21003 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21006 $as_echo "$ld_shlibs_CXX" >&6; }
21007 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
21009 with_gnu_ld_CXX
=$with_gnu_ld
21017 # Do we need to explicitly link libc?
21019 case "x$archive_cmds_need_lc_CXX" in
21021 # Assume -lc should be added
21022 archive_cmds_need_lc_CXX
=yes
21024 if test "$enable_shared" = yes && test "$GCC" = yes; then
21025 case $archive_cmds_CXX in
21027 # FIXME: we may have to deal with multi-command sequences.
21030 # Test whether the compiler implicitly links with -lc since on some
21031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21032 # to ld, don't add -lc before -lgcc.
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21034 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21035 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
21036 $as_echo_n "(cached) " >&6
21039 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21042 (eval $ac_compile) 2>&5
21044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21045 test $ac_status = 0; } 2>conftest.err
; then
21048 libobjs
=conftest.
$ac_objext
21050 wl
=$lt_prog_compiler_wl_CXX
21051 pic_flag
=$lt_prog_compiler_pic_CXX
21057 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
21058 allow_undefined_flag_CXX
=
21059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21060 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
21062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063 test $ac_status = 0; }
21065 lt_cv_archive_cmds_need_lc_CXX
=no
21067 lt_cv_archive_cmds_need_lc_CXX
=yes
21069 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
21071 cat conftest.err
1>&5
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21077 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21078 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
21148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21149 $as_echo_n "checking dynamic linker characteristics... " >&6; }
21151 library_names_spec
=
21152 libname_spec
='lib$name'
21156 postuninstall_cmds
=
21160 shlibpath_overrides_runpath
=unknown
21162 dynamic_linker
="$host_os ld.so"
21163 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
21164 need_lib_prefix
=unknown
21165 hardcode_into_libs
=no
21167 # when you set need_version to no, make sure it does not cause -set_version
21168 # flags to be left without arguments
21169 need_version
=unknown
21174 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
21175 shlibpath_var
=LIBPATH
21177 # AIX 3 has no versioning support, so we append a major version to the name.
21178 soname_spec
='${libname}${release}${shared_ext}$major'
21185 hardcode_into_libs
=yes
21186 if test "$host_cpu" = ia64
; then
21187 # AIX 5 supports IA64
21188 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21189 shlibpath_var
=LD_LIBRARY_PATH
21191 # With GCC up to 2.95.x, collect2 would create an import file
21192 # for dependence libraries. The import file would start with
21193 # the line `#! .'. This would cause the generated library to
21194 # depend on `.', always an invalid library. This was fixed in
21195 # development snapshots of GCC prior to 3.0.
21197 aix4 | aix4.
[01] | aix4.
[01].
*)
21198 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21200 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21203 can_build_shared
=no
21207 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21208 # soname into executable. Probably we can add versioning support to
21209 # collect2, so additional links can be useful in future.
21210 if test "$aix_use_runtimelinking" = yes; then
21211 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21212 # instead of lib<name>.a to let people know that these are not
21213 # typical AIX shared libraries.
21214 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21216 # We preserve .a as extension for shared libraries through AIX4.2
21217 # and later when we are not doing run time linking.
21218 library_names_spec
='${libname}${release}.a $libname.a'
21219 soname_spec
='${libname}${release}${shared_ext}$major'
21221 shlibpath_var
=LIBPATH
21228 # Since July 2007 AmigaOS4 officially supports .so libraries.
21229 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21233 library_names_spec
='$libname.ixlibrary $libname.a'
21234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21235 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'
21241 library_names_spec
='${libname}${shared_ext}'
21242 dynamic_linker
="$host_os ld.so"
21243 shlibpath_var
=LIBRARY_PATH
21249 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21250 soname_spec
='${libname}${release}${shared_ext}$major'
21251 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21252 shlibpath_var
=LD_LIBRARY_PATH
21253 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21254 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21255 # the default ld.so.conf also contains /usr/contrib/lib and
21256 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21257 # libtool to hard-code these into programs
21260 cygwin
* | mingw
* | pw32
* | cegcc
*)
21261 version_type
=windows
21266 case $GCC,$host_os in
21267 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21268 library_names_spec
='$libname.dll.a'
21269 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21270 postinstall_cmds
='base_file=`basename \${file}`~
21271 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21272 dldir=$destdir/`dirname \$dlpath`~
21273 test -d \$dldir || mkdir -p \$dldir~
21274 $install_prog $dir/$dlname \$dldir/$dlname~
21275 chmod a+x \$dldir/$dlname~
21276 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21277 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21279 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21280 dlpath=$dir/\$dldll~
21282 shlibpath_overrides_runpath
=yes
21286 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21287 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21291 # MinGW DLLs use traditional 'lib' prefix
21292 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21295 # pw32 DLLs use 'pw' prefix rather than 'lib'
21296 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21302 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21305 dynamic_linker
='Win32 ld.exe'
21306 # FIXME: first we should search . and the directory the executable is in
21310 darwin
* | rhapsody
*)
21311 dynamic_linker
="$host_os dyld"
21312 version_type
=darwin
21315 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21316 soname_spec
='${libname}${release}${major}$shared_ext'
21317 shlibpath_overrides_runpath
=yes
21318 shlibpath_var
=DYLD_LIBRARY_PATH
21319 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21321 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21328 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21329 soname_spec
='${libname}${release}${shared_ext}$major'
21330 shlibpath_var
=LD_LIBRARY_PATH
21333 freebsd
* | dragonfly
*)
21334 # DragonFly does not have aout. When/if they implement a new
21335 # versioning mechanism, adjust this.
21336 if test -x /usr
/bin
/objformat
; then
21337 objformat
=`/usr/bin/objformat`
21340 freebsd
[23].
*) objformat
=aout
;;
21341 *) objformat
=elf
;;
21344 version_type
=freebsd-
$objformat
21345 case $version_type in
21347 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21352 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21356 shlibpath_var
=LD_LIBRARY_PATH
21359 shlibpath_overrides_runpath
=yes
21361 freebsd3.
[01]* | freebsdelf3.
[01]*)
21362 shlibpath_overrides_runpath
=yes
21363 hardcode_into_libs
=yes
21365 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21366 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21367 shlibpath_overrides_runpath
=no
21368 hardcode_into_libs
=yes
21370 *) # from 4.6 on, and DragonFly
21371 shlibpath_overrides_runpath
=yes
21372 hardcode_into_libs
=yes
21381 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21382 soname_spec
='${libname}${release}${shared_ext}$major'
21383 shlibpath_var
=LD_LIBRARY_PATH
21384 hardcode_into_libs
=yes
21391 dynamic_linker
="$host_os runtime_loader"
21392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21393 soname_spec
='${libname}${release}${shared_ext}$major'
21394 shlibpath_var
=LIBRARY_PATH
21395 shlibpath_overrides_runpath
=yes
21396 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21397 hardcode_into_libs
=yes
21400 hpux9
* | hpux10
* | hpux11
*)
21401 # Give a soname corresponding to the major version so that dld.sl refuses to
21402 # link against other versions.
21409 hardcode_into_libs
=yes
21410 dynamic_linker
="$host_os dld.so"
21411 shlibpath_var
=LD_LIBRARY_PATH
21412 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21413 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21414 soname_spec
='${libname}${release}${shared_ext}$major'
21415 if test "X$HPUX_IA64_MODE" = X32
; then
21416 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21418 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21420 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21424 hardcode_into_libs
=yes
21425 dynamic_linker
="$host_os dld.sl"
21426 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21427 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21429 soname_spec
='${libname}${release}${shared_ext}$major'
21430 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21431 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21435 dynamic_linker
="$host_os dld.sl"
21436 shlibpath_var
=SHLIB_PATH
21437 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21438 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21439 soname_spec
='${libname}${release}${shared_ext}$major'
21442 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21443 postinstall_cmds
='chmod 555 $lib'
21444 # or fails outright, so override atomically:
21445 install_override_mode
=555
21452 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21453 soname_spec
='${libname}${release}${shared_ext}$major'
21454 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21455 shlibpath_var
=LD_LIBRARY_PATH
21456 shlibpath_overrides_runpath
=no
21457 hardcode_into_libs
=yes
21460 irix5
* | irix6
* | nonstopux
*)
21462 nonstopux
*) version_type
=nonstopux
;;
21464 if test "$lt_cv_prog_gnu_ld" = yes; then
21472 soname_spec
='${libname}${release}${shared_ext}$major'
21473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21475 irix5
* | nonstopux
*)
21476 libsuff
= shlibsuff
=
21479 case $LD in # libtool.m4 will add one of these switches to LD
21480 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21481 libsuff
= shlibsuff
= libmagic
=32-bit;;
21482 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21483 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21484 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21485 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21486 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21490 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21491 shlibpath_overrides_runpath
=no
21492 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21493 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21494 hardcode_into_libs
=yes
21497 # No shared lib support for Linux oldld, aout, or coff.
21498 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21502 # This must be Linux ELF.
21503 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21507 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21508 soname_spec
='${libname}${release}${shared_ext}$major'
21509 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21510 shlibpath_var
=LD_LIBRARY_PATH
21511 shlibpath_overrides_runpath
=no
21513 # Some binutils ld are patched to set DT_RUNPATH
21514 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21515 $as_echo_n "(cached) " >&6
21517 lt_cv_shlibpath_overrides_runpath
=no
21518 save_LDFLAGS
=$LDFLAGS
21519 save_libdir
=$libdir
21520 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21521 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21523 /* end confdefs.h. */
21533 if ac_fn_cxx_try_link
"$LINENO"; then :
21534 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21535 lt_cv_shlibpath_overrides_runpath
=yes
21538 rm -f core conftest.err conftest.
$ac_objext \
21539 conftest
$ac_exeext conftest.
$ac_ext
21540 LDFLAGS
=$save_LDFLAGS
21541 libdir
=$save_libdir
21545 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21547 # This implies no fast_install, which is unacceptable.
21548 # Some rework will be needed to allow for fast_install
21549 # before this can be enabled.
21550 hardcode_into_libs
=yes
21552 # Append ld.so.conf contents to the search path
21553 if test -f /etc
/ld.so.conf
; then
21554 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' ' '`
21555 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21558 # We used to test for /lib/ld.so.1 and disable shared libraries on
21559 # powerpc, because MkLinux only supported shared libraries with the
21560 # GNU dynamic linker. Since this was broken with cross compilers,
21561 # most powerpc-linux boxes support dynamic linking these days and
21562 # people can always --disable-shared, the test was removed, and we
21563 # assume the GNU/Linux dynamic linker is in use.
21564 dynamic_linker
='GNU/Linux ld.so'
21571 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21572 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21573 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21574 dynamic_linker
='NetBSD (a.out) ld.so'
21576 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21577 soname_spec
='${libname}${release}${shared_ext}$major'
21578 dynamic_linker
='NetBSD ld.elf_so'
21580 shlibpath_var
=LD_LIBRARY_PATH
21581 shlibpath_overrides_runpath
=yes
21582 hardcode_into_libs
=yes
21587 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21588 shlibpath_var
=LD_LIBRARY_PATH
21589 shlibpath_overrides_runpath
=yes
21596 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21597 soname_spec
='${libname}${release}${shared_ext}$major'
21598 shlibpath_var
=LD_LIBRARY_PATH
21599 shlibpath_overrides_runpath
=no
21600 hardcode_into_libs
=yes
21601 dynamic_linker
='ldqnx.so'
21606 sys_lib_dlsearch_path_spec
="/usr/lib"
21608 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21610 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21611 *) need_version
=no
;;
21613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21614 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21615 shlibpath_var
=LD_LIBRARY_PATH
21616 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21618 openbsd2.
[89] | openbsd2.
[89].
*)
21619 shlibpath_overrides_runpath
=no
21622 shlibpath_overrides_runpath
=yes
21626 shlibpath_overrides_runpath
=yes
21631 libname_spec
='$name'
21634 library_names_spec
='$libname${shared_ext} $libname.a'
21635 dynamic_linker
='OS/2 ld.exe'
21636 shlibpath_var
=LIBPATH
21639 osf3
* | osf4
* | osf5
*)
21643 soname_spec
='${libname}${release}${shared_ext}$major'
21644 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21645 shlibpath_var
=LD_LIBRARY_PATH
21646 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21647 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21658 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21659 soname_spec
='${libname}${release}${shared_ext}$major'
21660 shlibpath_var
=LD_LIBRARY_PATH
21661 shlibpath_overrides_runpath
=yes
21662 hardcode_into_libs
=yes
21663 # ldd complains unless libraries are executable
21664 postinstall_cmds
='chmod +x $lib'
21669 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21670 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21671 shlibpath_var
=LD_LIBRARY_PATH
21672 shlibpath_overrides_runpath
=yes
21673 if test "$with_gnu_ld" = yes; then
21681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21682 soname_spec
='${libname}${release}${shared_ext}$major'
21683 shlibpath_var
=LD_LIBRARY_PATH
21684 case $host_vendor in
21686 shlibpath_overrides_runpath
=no
21688 runpath_var
=LD_RUN_PATH
21696 shlibpath_overrides_runpath
=no
21697 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21703 if test -d /usr
/nec
;then
21705 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21706 soname_spec
='$libname${shared_ext}.$major'
21707 shlibpath_var
=LD_LIBRARY_PATH
21711 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21712 version_type
=freebsd-elf
21715 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21716 soname_spec
='${libname}${release}${shared_ext}$major'
21717 shlibpath_var
=LD_LIBRARY_PATH
21718 shlibpath_overrides_runpath
=yes
21719 hardcode_into_libs
=yes
21720 if test "$with_gnu_ld" = yes; then
21721 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21723 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21726 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21730 sys_lib_dlsearch_path_spec
='/usr/lib'
21734 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21738 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21739 shlibpath_var
=LD_LIBRARY_PATH
21740 shlibpath_overrides_runpath
=no
21741 hardcode_into_libs
=yes
21746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21747 soname_spec
='${libname}${release}${shared_ext}$major'
21748 shlibpath_var
=LD_LIBRARY_PATH
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21756 $as_echo "$dynamic_linker" >&6; }
21757 test "$dynamic_linker" = no
&& can_build_shared
=no
21759 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21760 if test "$GCC" = yes; then
21761 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21764 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21765 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21767 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21768 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21809 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21810 hardcode_action_CXX
=
21811 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21812 test -n "$runpath_var_CXX" ||
21813 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21815 # We can hardcode non-existent directories.
21816 if test "$hardcode_direct_CXX" != no
&&
21817 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21818 # have to relink, otherwise we might link with an installed library
21819 # when we should be linking with a yet-to-be-installed one
21820 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21821 test "$hardcode_minus_L_CXX" != no
; then
21822 # Linking always hardcodes the temporary library directory.
21823 hardcode_action_CXX
=relink
21825 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21826 hardcode_action_CXX
=immediate
21829 # We cannot hardcode anything, or else we can only hardcode existing
21831 hardcode_action_CXX
=unsupported
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21834 $as_echo "$hardcode_action_CXX" >&6; }
21836 if test "$hardcode_action_CXX" = relink ||
21837 test "$inherit_rpath_CXX" = yes; then
21838 # Fast installation is not supported
21839 enable_fast_install
=no
21840 elif test "$shlibpath_overrides_runpath" = yes ||
21841 test "$enable_shared" = no
; then
21842 # Fast installation is not necessary
21843 enable_fast_install
=needless
21852 fi # test -n "$compiler"
21858 with_gnu_ld
=$lt_save_with_gnu_ld
21859 lt_cv_path_LDCXX
=$lt_cv_path_LD
21860 lt_cv_path_LD
=$lt_save_path_LD
21861 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21862 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21863 fi # test "$_lt_caught_CXX_error" != yes
21866 ac_cpp
='$CXXCPP $CPPFLAGS'
21867 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21868 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21869 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21886 # Only expand once:
21892 # Identify the assembler which will work hand-in-glove with the newly
21893 # built GCC, so that we can examine its features. This is the assembler
21894 # which will be driven by the driver program.
21896 # If build != host, and we aren't building gas in-tree, we identify a
21897 # build->target assembler and hope that it will have the same features
21898 # as the host->target assembler we'll be using.
21899 gcc_cv_gas_major_version
=
21900 gcc_cv_gas_minor_version
=
21901 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21903 if test "${gcc_cv_as+set}" = set; then :
21907 if test -x "$DEFAULT_ASSEMBLER"; then
21908 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21909 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21910 && test -f ..
/gas
/Makefile \
21911 && test x
$build = x
$host; then
21912 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21913 elif test -x as
$build_exeext; then
21914 # Build using assembler in the current directory.
21915 gcc_cv_as
=.
/as
$build_exeext
21916 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21917 gcc_cv_as
="$AS_FOR_TARGET"
21919 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21920 set dummy
$AS_FOR_TARGET; ac_word
=$2
21921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21922 $as_echo_n "checking for $ac_word... " >&6; }
21923 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21924 $as_echo_n "(cached) " >&6
21928 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21932 for as_dir
in $PATH
21935 test -z "$as_dir" && as_dir
=.
21936 for ac_exec_ext
in '' $ac_executable_extensions; do
21937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21938 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21949 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21950 if test -n "$gcc_cv_as"; then
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21952 $as_echo "$gcc_cv_as" >&6; }
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21955 $as_echo "no" >&6; }
21962 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21964 case "$ORIGINAL_AS_FOR_TARGET" in
21965 .
/as | .
/as
$build_exeext) ;;
21966 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21971 $as_echo_n "checking what assembler to use... " >&6; }
21972 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21973 # Single tree build which includes gas. We want to prefer it
21974 # over whatever linker top-level may have detected, since
21975 # we'll use what we're building after installation anyway.
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21977 $as_echo "newly built gas" >&6; }
21979 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21980 for f
in $gcc_cv_as_bfd_srcdir/configure \
21981 $gcc_cv_as_gas_srcdir/configure \
21982 $gcc_cv_as_gas_srcdir/configure.ac \
21983 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21984 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21985 if test x
$gcc_cv_gas_version != x
; then
21989 case $gcc_cv_gas_version in
21991 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21993 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21994 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21995 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21996 case $gcc_cv_gas_patch_version in
21997 "") gcc_cv_gas_patch_version
="0" ;;
21999 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
22000 + $gcc_cv_gas_minor_version \) \* 1000 \
22001 + $gcc_cv_gas_patch_version`
22003 in_tree_gas_is_elf
=no
22004 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
22005 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
22006 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
22008 in_tree_gas_is_elf
=yes
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
22012 $as_echo "$gcc_cv_as" >&6; }
22017 # Check whether --enable-ld was given.
22018 if test "${enable_ld+set}" = set; then :
22019 enableval
=$enable_ld; case "${enableval}" in
22027 install_gold_as_default
=no
22028 # Check whether --enable-gold was given.
22029 if test "${enable_gold+set}" = set; then :
22030 enableval
=$enable_gold; case "${enableval}" in
22032 install_gold_as_default
=yes
22035 if test x
${default_ld} != x
; then
22036 install_gold_as_default
=yes
22042 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
22048 # Identify the linker which will work hand-in-glove with the newly
22049 # built GCC, so that we can examine its features. This is the linker
22050 # which will be driven by the driver program.
22052 # If build != host, and we aren't building gas in-tree, we identify a
22053 # build->target linker and hope that it will have the same features
22054 # as the host->target linker we'll be using.
22055 gcc_cv_gld_major_version
=
22056 gcc_cv_gld_minor_version
=
22057 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
22058 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
22059 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
22061 if test "${gcc_cv_ld+set}" = set; then :
22065 if test -x "$DEFAULT_LINKER"; then
22066 gcc_cv_ld
="$DEFAULT_LINKER"
22067 elif test $install_gold_as_default = yes \
22068 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
22069 && test -f ..
/gold
/Makefile \
22070 && test x
$build = x
$host; then
22071 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
22072 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
22073 && test -f ..
/ld
/Makefile \
22074 && test x
$build = x
$host; then
22075 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
22076 elif test -x collect-ld
$build_exeext; then
22077 # Build using linker in the current directory.
22078 gcc_cv_ld
=.
/collect-ld
$build_exeext
22079 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
22080 gcc_cv_ld
="$LD_FOR_TARGET"
22082 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
22083 set dummy
$LD_FOR_TARGET; ac_word
=$2
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22085 $as_echo_n "checking for $ac_word... " >&6; }
22086 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
22087 $as_echo_n "(cached) " >&6
22091 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
22094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22095 for as_dir
in $PATH
22098 test -z "$as_dir" && as_dir
=.
22099 for ac_exec_ext
in '' $ac_executable_extensions; do
22100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22101 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
22102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22112 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
22113 if test -n "$gcc_cv_ld"; then
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22115 $as_echo "$gcc_cv_ld" >&6; }
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22118 $as_echo "no" >&6; }
22125 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
22126 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
22127 # if the PLUGIN_LD is set ld-new, just have it as ld
22128 # as that is the installed named.
22129 if test x
$PLUGIN_LD_SUFFIX = xld-new \
22130 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
22131 PLUGIN_LD_SUFFIX
=ld
22134 # Check whether --with-plugin-ld was given.
22135 if test "${with_plugin_ld+set}" = set; then :
22136 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
22137 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
22138 PLUGIN_LD_SUFFIX
="$withval"
22144 cat >>confdefs.h
<<_ACEOF
22145 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
22149 # Check to see if we are using gold instead of ld
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
22151 $as_echo_n "checking whether we are using gold... " >&6; }
22153 if test x
$gcc_cv_ld != x
; then
22154 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
22155 |
grep "GNU gold" > /dev
/null
; then
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
22160 $as_echo "$ld_is_gold" >&6; }
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gold linker with split stack support as non default" >&5
22163 $as_echo_n "checking gold linker with split stack support as non default... " >&6; }
22164 # Check to see if default ld is not gold, but gold is
22165 # available and has support for split stack. If gcc was configured
22166 # with gold then no checking is done.
22168 if test x
$ld_is_gold = xno
&& which ${gcc_cv_ld}.gold
>/dev
/null
2>&1; then
22170 # For platforms other than powerpc64*, enable as appropriate.
22172 gold_non_default
=no
22173 ld_gold
=`which ${gcc_cv_ld}.gold`
22174 # Make sure this gold has minimal split stack support
22175 if $ld_gold --help 2>/dev
/null |
grep split-stack-adjust-size
>/dev
/null
2>&1; then
22176 ld_vers
=`$ld_gold --version | sed 1q`
22177 gold_vers
=`echo $ld_vers | sed -n \
22178 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22180 # check that the gold version contains the complete split stack support
22181 # on powerpc64 big and little endian
22183 case "$gold_vers" in
22184 2.25.
[1-9]*|
2.2[6-9][.0-9]*|
2.
[3-9][.0-9]*|
[3-9].
[.0-9]*) gold_non_default
=yes
22186 *) gold_non_default
=no
22192 if test $gold_non_default = yes; then
22194 $as_echo "#define HAVE_GOLD_NON_DEFAULT_SPLIT_STACK 1" >>confdefs.h
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gold_non_default" >&5
22199 $as_echo "$gold_non_default" >&6; }
22201 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
22203 case "$ORIGINAL_LD_FOR_TARGET" in
22204 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
22205 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
22209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
22210 $as_echo_n "checking what linker to use... " >&6; }
22211 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
22212 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
22213 # Single tree build which includes ld. We want to prefer it
22214 # over whatever linker top-level may have detected, since
22215 # we'll use what we're building after installation anyway.
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
22217 $as_echo "newly built ld" >&6; }
22219 in_tree_ld_is_elf
=no
22220 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
22221 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
22222 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
22223 in_tree_ld_is_elf
=yes
22224 elif test "$ld_is_gold" = yes; then
22225 in_tree_ld_is_elf
=yes
22227 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
22229 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22230 if test x
$gcc_cv_gld_version != x
; then
22234 case $gcc_cv_gld_version in
22236 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22238 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22239 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22240 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22241 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22244 $as_echo "$gcc_cv_ld" >&6; }
22246 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22247 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22248 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22254 # Figure out what nm we will be using.
22255 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22256 if test "${gcc_cv_nm+set}" = set; then :
22260 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22261 && test -f ..
/binutils
/Makefile \
22262 && test x
$build = x
$host; then
22263 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22264 elif test -x nm
$build_exeext; then
22265 gcc_cv_nm
=.
/nm
$build_exeext
22266 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22267 gcc_cv_nm
="$NM_FOR_TARGET"
22269 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22270 set dummy
$NM_FOR_TARGET; ac_word
=$2
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22272 $as_echo_n "checking for $ac_word... " >&6; }
22273 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22274 $as_echo_n "(cached) " >&6
22278 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22282 for as_dir
in $PATH
22285 test -z "$as_dir" && as_dir
=.
22286 for ac_exec_ext
in '' $ac_executable_extensions; do
22287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22288 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22299 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22300 if test -n "$gcc_cv_nm"; then
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22302 $as_echo "$gcc_cv_nm" >&6; }
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22305 $as_echo "no" >&6; }
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22313 $as_echo_n "checking what nm to use... " >&6; }
22314 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22315 # Single tree build which includes binutils.
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22317 $as_echo "newly built nm" >&6; }
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22321 $as_echo "$gcc_cv_nm" >&6; }
22325 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22327 case "$ORIGINAL_NM_FOR_TARGET" in
22328 .
/nm | .
/nm
$build_exeext) ;;
22329 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22334 # Figure out what objdump we will be using.
22335 if test "${gcc_cv_objdump+set}" = set; then :
22339 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22340 && test -f ..
/binutils
/Makefile \
22341 && test x
$build = x
$host; then
22342 # Single tree build which includes binutils.
22343 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22344 elif test -x objdump
$build_exeext; then
22345 gcc_cv_objdump
=.
/objdump
$build_exeext
22346 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22347 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22349 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22350 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22352 $as_echo_n "checking for $ac_word... " >&6; }
22353 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22354 $as_echo_n "(cached) " >&6
22356 case $gcc_cv_objdump in
22358 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22362 for as_dir
in $PATH
22365 test -z "$as_dir" && as_dir
=.
22366 for ac_exec_ext
in '' $ac_executable_extensions; do
22367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22368 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22379 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22380 if test -n "$gcc_cv_objdump"; then
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22382 $as_echo "$gcc_cv_objdump" >&6; }
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22385 $as_echo "no" >&6; }
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22393 $as_echo_n "checking what objdump to use... " >&6; }
22394 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22395 # Single tree build which includes binutils.
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22397 $as_echo "newly built objdump" >&6; }
22398 elif test x
$gcc_cv_objdump = x
; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22400 $as_echo "not found" >&6; }
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22403 $as_echo "$gcc_cv_objdump" >&6; }
22406 # Figure out what readelf we will be using.
22407 if test "${gcc_cv_readelf+set}" = set; then :
22411 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22412 && test -f ..
/binutils
/Makefile \
22413 && test x
$build = x
$host; then
22414 # Single tree build which includes binutils.
22415 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22416 elif test -x readelf
$build_exeext; then
22417 gcc_cv_readelf
=.
/readelf
$build_exeext
22418 elif ( set dummy
$READELF_FOR_TARGET; test -x $2 ); then
22419 gcc_cv_readelf
="$READELF_FOR_TARGET"
22421 # Extract the first word of "$READELF_FOR_TARGET", so it can be a program name with args.
22422 set dummy
$READELF_FOR_TARGET; ac_word
=$2
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22424 $as_echo_n "checking for $ac_word... " >&6; }
22425 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22426 $as_echo_n "(cached) " >&6
22428 case $gcc_cv_readelf in
22430 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22434 for as_dir
in $PATH
22437 test -z "$as_dir" && as_dir
=.
22438 for ac_exec_ext
in '' $ac_executable_extensions; do
22439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22440 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22451 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22452 if test -n "$gcc_cv_readelf"; then
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22454 $as_echo "$gcc_cv_readelf" >&6; }
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22457 $as_echo "no" >&6; }
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22465 $as_echo_n "checking what readelf to use... " >&6; }
22466 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22467 # Single tree build which includes binutils.
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22469 $as_echo "newly built readelf" >&6; }
22470 elif test x
$gcc_cv_readelf = x
; then
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22472 $as_echo "not found" >&6; }
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22475 $as_echo "$gcc_cv_readelf" >&6; }
22478 # Figure out what assembler alignment features are present.
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22480 $as_echo_n "checking assembler flags... " >&6; }
22481 if test "${gcc_cv_as_flags+set}" = set; then :
22482 $as_echo_n "(cached) " >&6
22485 i
[34567]86-*-linux*)
22486 gcc_cv_as_flags
=--32
22488 x86_64-
*-linux-gnux32)
22489 gcc_cv_as_flags
=--x32
22492 gcc_cv_as_flags
=--64
22494 powerpc
*-*-darwin*)
22495 gcc_cv_as_flags
="-arch ppc"
22498 gcc_cv_as_flags
=" "
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22503 $as_echo "$gcc_cv_as_flags" >&6; }
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22506 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22507 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22508 $as_echo_n "(cached) " >&6
22510 gcc_cv_as_balign_and_p2align
=no
22511 if test $in_tree_gas = yes; then
22512 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22513 then gcc_cv_as_balign_and_p2align
=yes
22515 elif test x
$gcc_cv_as != x
; then
22516 $as_echo '.balign 4
22517 .p2align 2' > conftest.s
22518 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22520 (eval $ac_try) 2>&5
22522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22523 test $ac_status = 0; }; }
22525 gcc_cv_as_balign_and_p2align
=yes
22527 echo "configure: failed program was" >&5
22530 rm -f conftest.o conftest.s
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22534 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22535 if test $gcc_cv_as_balign_and_p2align = yes; then
22537 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22543 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22544 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22545 $as_echo_n "(cached) " >&6
22547 gcc_cv_as_max_skip_p2align
=no
22548 if test $in_tree_gas = yes; then
22549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22550 then gcc_cv_as_max_skip_p2align
=yes
22552 elif test x
$gcc_cv_as != x
; then
22553 $as_echo '.p2align 4,,7' > conftest.s
22554 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22556 (eval $ac_try) 2>&5
22558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22559 test $ac_status = 0; }; }
22561 gcc_cv_as_max_skip_p2align
=yes
22563 echo "configure: failed program was" >&5
22566 rm -f conftest.o conftest.s
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22570 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22571 if test $gcc_cv_as_max_skip_p2align = yes; then
22573 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22579 $as_echo_n "checking assembler for .literal16... " >&6; }
22580 if test "${gcc_cv_as_literal16+set}" = set; then :
22581 $as_echo_n "(cached) " >&6
22583 gcc_cv_as_literal16
=no
22584 if test $in_tree_gas = yes; then
22585 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22586 then gcc_cv_as_literal16
=yes
22588 elif test x
$gcc_cv_as != x
; then
22589 $as_echo '.literal16' > conftest.s
22590 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22592 (eval $ac_try) 2>&5
22594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22595 test $ac_status = 0; }; }
22597 gcc_cv_as_literal16
=yes
22599 echo "configure: failed program was" >&5
22602 rm -f conftest.o conftest.s
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22606 $as_echo "$gcc_cv_as_literal16" >&6; }
22607 if test $gcc_cv_as_literal16 = yes; then
22609 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22615 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22616 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22617 $as_echo_n "(cached) " >&6
22619 gcc_cv_as_subsection_m1
=no
22620 if test $in_tree_gas = yes; then
22621 if test $in_tree_gas_is_elf = yes \
22622 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22623 then gcc_cv_as_subsection_m1
=yes
22625 elif test x
$gcc_cv_as != x
; then
22626 $as_echo 'conftest_label1: .word 0
22628 conftest_label2: .word 0
22629 .previous' > conftest.s
22630 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22632 (eval $ac_try) 2>&5
22634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22635 test $ac_status = 0; }; }
22637 if test x
$gcc_cv_nm != x
; then
22638 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22639 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22640 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22642 else gcc_cv_as_subsection_m1
=yes
22644 rm -f conftest.nm1 conftest.nm2
22647 echo "configure: failed program was" >&5
22650 rm -f conftest.o conftest.s
22653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22654 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22655 if test $gcc_cv_as_subsection_m1 = yes; then
22657 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22663 $as_echo_n "checking assembler for .weak... " >&6; }
22664 if test "${gcc_cv_as_weak+set}" = set; then :
22665 $as_echo_n "(cached) " >&6
22668 if test $in_tree_gas = yes; then
22669 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22670 then gcc_cv_as_weak
=yes
22672 elif test x
$gcc_cv_as != x
; then
22673 $as_echo ' .weak foobar' > conftest.s
22674 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22676 (eval $ac_try) 2>&5
22678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22679 test $ac_status = 0; }; }
22683 echo "configure: failed program was" >&5
22686 rm -f conftest.o conftest.s
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22690 $as_echo "$gcc_cv_as_weak" >&6; }
22691 if test $gcc_cv_as_weak = yes; then
22693 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22699 $as_echo_n "checking assembler for .weakref... " >&6; }
22700 if test "${gcc_cv_as_weakref+set}" = set; then :
22701 $as_echo_n "(cached) " >&6
22703 gcc_cv_as_weakref
=no
22704 if test $in_tree_gas = yes; then
22705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22706 then gcc_cv_as_weakref
=yes
22708 elif test x
$gcc_cv_as != x
; then
22709 $as_echo ' .weakref foobar, barfnot' > conftest.s
22710 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22712 (eval $ac_try) 2>&5
22714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22715 test $ac_status = 0; }; }
22717 gcc_cv_as_weakref
=yes
22719 echo "configure: failed program was" >&5
22722 rm -f conftest.o conftest.s
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22726 $as_echo "$gcc_cv_as_weakref" >&6; }
22727 if test $gcc_cv_as_weakref = yes; then
22729 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22735 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22736 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22737 $as_echo_n "(cached) " >&6
22739 gcc_cv_as_nsubspa_comdat
=no
22740 if test $in_tree_gas = yes; then
22741 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22742 then gcc_cv_as_nsubspa_comdat
=yes
22744 elif test x
$gcc_cv_as != x
; then
22745 $as_echo ' .SPACE $TEXT$
22746 .NSUBSPA $CODE$,COMDAT' > conftest.s
22747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }
22754 gcc_cv_as_nsubspa_comdat
=yes
22756 echo "configure: failed program was" >&5
22759 rm -f conftest.o conftest.s
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22763 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22764 if test $gcc_cv_as_nsubspa_comdat = yes; then
22766 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22771 # .hidden needs to be supported in both the assembler and the linker,
22772 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22773 # This is irritatingly difficult to feature test for; we have to check the
22774 # date string after the version number. If we've got an in-tree
22775 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22777 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22778 case "${target}" in
22780 conftest_s
=' .globl foobar,hidden'
22783 conftest_s
=' .hidden foobar
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22788 $as_echo_n "checking assembler for .hidden... " >&6; }
22789 if test "${gcc_cv_as_hidden+set}" = set; then :
22790 $as_echo_n "(cached) " >&6
22792 gcc_cv_as_hidden
=no
22793 if test $in_tree_gas = yes; then
22794 if test $in_tree_gas_is_elf = yes \
22795 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22796 then gcc_cv_as_hidden
=yes
22798 elif test x
$gcc_cv_as != x
; then
22799 $as_echo "$conftest_s" > conftest.s
22800 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22802 (eval $ac_try) 2>&5
22804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22805 test $ac_status = 0; }; }
22807 gcc_cv_as_hidden
=yes
22809 echo "configure: failed program was" >&5
22812 rm -f conftest.o conftest.s
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22816 $as_echo "$gcc_cv_as_hidden" >&6; }
22819 case "${target}" in
22821 # Darwin as has some visibility support, though with a different syntax.
22822 gcc_cv_as_hidden
=yes
22826 # gnu_indirect_function type is an extension proposed at
22827 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22828 # selection of function implementation
22829 # Check whether --enable-gnu-indirect-function was given.
22830 if test "${enable_gnu_indirect_function+set}" = set; then :
22831 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22833 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22834 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22837 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22841 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22843 cat >>confdefs.h
<<_ACEOF
22844 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22849 if test $in_tree_ld != yes ; then
22850 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22851 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22852 if test x
"$ld_is_gold" = xyes
; then
22853 # GNU gold --version looks like this:
22855 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22857 # We extract the binutils version which is more familiar and specific
22858 # than the gold version.
22859 ld_vers
=`echo $ld_ver | sed -n \
22860 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22862 # GNU ld --version looks like this:
22864 # GNU ld (GNU Binutils) 2.21.51.20110225
22865 ld_vers
=`echo $ld_ver | sed -n \
22866 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22868 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'`
22869 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22870 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22871 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22873 case "${target}" in
22875 # Solaris 2 ld -V output looks like this for a regular version:
22877 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22879 # but test versions add stuff at the end:
22881 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22883 # In Solaris 11.4, this was changed to
22885 # ld: Solaris ELF Utilities: 11.4-1.3123
22887 # ld and ld.so.1 are guaranteed to be updated in lockstep, so ld version
22888 # numbers can be used in ld.so.1 feature checks even if a different
22889 # linker is configured.
22890 ld_ver
=`$gcc_cv_ld -V 2>&1`
22891 if echo "$ld_ver" |
$EGREP 'Solaris Link Editors|Solaris ELF Utilities' > /dev
/null
; then
22892 ld_vers
=`echo $ld_ver | sed -n \
22893 -e 's,^.*: \(5\|1[0-9]\)\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\2,p'`
22894 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22895 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22903 $as_echo_n "checking linker for .hidden support... " >&6; }
22904 if test "${gcc_cv_ld_hidden+set}" = set; then :
22905 $as_echo_n "(cached) " >&6
22907 if test $in_tree_ld = yes ; then
22908 gcc_cv_ld_hidden
=no
22909 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 \
22910 && test $in_tree_ld_is_elf = yes; then
22911 gcc_cv_ld_hidden
=yes
22914 gcc_cv_ld_hidden
=yes
22915 if test x
"$ld_is_gold" = xyes
; then
22917 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22918 case "${target}" in
22919 mmix-knuth-mmixware
)
22920 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22921 gcc_cv_ld_hidden
=no
22924 if test 0"$ld_date" -lt 20020404; then
22925 if test -n "$ld_date"; then
22926 # If there was date string, but was earlier than 2002-04-04, fail
22927 gcc_cv_ld_hidden
=no
22928 elif test -z "$ld_vers"; then
22929 # If there was no date string nor ld version number, something is wrong
22930 gcc_cv_ld_hidden
=no
22932 test -z "$ld_vers_patch" && ld_vers_patch
=0
22933 if test "$ld_vers_major" -lt 2; then
22934 gcc_cv_ld_hidden
=no
22935 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22936 gcc_cv_ld_hidden
="no"
22937 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22938 gcc_cv_ld_hidden
=no
22943 case "${target}" in
22945 gcc_cv_ld_hidden
=yes
22948 # Darwin ld has some visibility support.
22949 gcc_cv_ld_hidden
=yes
22951 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22952 gcc_cv_ld_hidden
=yes
22954 *-*-solaris2.1
[0-9]*)
22955 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22956 # .symbolic was only added in Solaris 9 12/02.
22957 gcc_cv_ld_hidden
=yes
22960 gcc_cv_ld_hidden
=no
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22967 $as_echo "$gcc_cv_ld_hidden" >&6; }
22968 libgcc_visibility
=no
22971 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22972 libgcc_visibility
=yes
22974 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22979 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22980 gcc_cv_ld_ro_rw_mix
=unknown
22981 if test $in_tree_ld = yes ; then
22982 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 \
22983 && test $in_tree_ld_is_elf = yes; then
22984 gcc_cv_ld_ro_rw_mix
=read-write
22986 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22987 echo '.section myfoosect, "a"' > conftest1.s
22988 echo '.section myfoosect, "aw"' > conftest2.s
22989 echo '.byte 1' >> conftest2.s
22990 echo '.section myfoosect, "a"' > conftest3.s
22991 echo '.byte 0' >> conftest3.s
22992 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22993 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22994 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22995 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22996 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22997 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22998 | sed -e '/myfoosect/!d' -e N`
22999 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
23000 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
23001 gcc_cv_ld_ro_rw_mix
=read-only
23003 gcc_cv_ld_ro_rw_mix
=read-write
23007 rm -f conftest.
* conftest
[123].
*
23009 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
23011 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
23015 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
23017 # Check whether --enable-initfini-array was given.
23018 if test "${enable_initfini_array+set}" = set; then :
23019 enableval
=$enable_initfini_array;
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
23023 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
23024 if test "${gcc_cv_initfini_array+set}" = set; then :
23025 $as_echo_n "(cached) " >&6
23027 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
23028 case "${target}" in
23030 if test "$cross_compiling" = yes; then :
23031 gcc_cv_initfini_array
=no
23033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23034 /* end confdefs.h. */
23037 #error Not an ELF OS
23039 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
23040 if it can be used. */
23042 int main (void) { return x; }
23043 int foo (void) { x = 0; }
23044 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
23047 if ac_fn_cxx_try_run
"$LINENO"; then :
23048 gcc_cv_initfini_array
=yes
23050 gcc_cv_initfini_array
=no
23052 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23053 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23057 gcc_cv_initfini_array
=no
23058 if test $in_tree_ld = yes ; then
23059 if test "$gcc_cv_gld_major_version" -eq 2 \
23060 -a "$gcc_cv_gld_minor_version" -ge 22 \
23061 -o "$gcc_cv_gld_major_version" -gt 2 \
23062 && test $in_tree_ld_is_elf = yes; then
23063 gcc_cv_initfini_array
=yes
23065 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
23066 case $target:$gas in
23069 sh_type
='%progbits'
23071 i?
86-*-solaris2*:no | x86_64-
*-solaris2*:no
)
23073 sh_type
='@progbits'
23075 sparc
*-*-solaris2*:no
)
23077 sh_type
='#progbits'
23081 case "$target:$gnu_ld" in
23083 cat > conftest.s
<<EOF
23084 .section .dtors,$sh_flags,$sh_type
23086 .byte 'A', 'A', 'A', 'A'
23087 .section .ctors,$sh_flags,$sh_type
23089 .byte 'B', 'B', 'B', 'B'
23090 .section .fini_array.65530,$sh_flags,$sh_type
23092 .byte 'C', 'C', 'C', 'C'
23093 .section .init_array.65530,$sh_flags,$sh_type
23095 .byte 'D', 'D', 'D', 'D'
23096 .section .dtors.64528,$sh_flags,$sh_type
23098 .byte 'E', 'E', 'E', 'E'
23099 .section .ctors.64528,$sh_flags,$sh_type
23101 .byte 'F', 'F', 'F', 'F'
23102 .section .fini_array.01005,$sh_flags,$sh_type
23104 .byte 'G', 'G', 'G', 'G'
23105 .section .init_array.01005,$sh_flags,$sh_type
23107 .byte 'H', 'H', 'H', 'H'
23112 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23113 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23114 && $gcc_cv_objdump -s -j .init_array conftest \
23115 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
23116 && $gcc_cv_objdump -s -j .fini_array conftest \
23117 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
23118 gcc_cv_initfini_array
=yes
23122 # When Solaris ld added constructor priority support, it was
23123 # decided to only handle .init_array.N/.fini_array.N since
23124 # there was no need for backwards compatibility with
23125 # .ctors.N/.dtors.N. .ctors/.dtors remain as separate
23126 # sections with correct execution order resp. to
23127 # .init_array/.fini_array, while gld merges them into
23128 # .init_array/.fini_array.
23129 cat > conftest.s
<<EOF
23130 .section $sh_quote.fini_array.65530$sh_quote,$sh_flags,$sh_type
23132 .byte 'C', 'C', 'C', 'C'
23133 .section $sh_quote.init_array.65530$sh_quote,$sh_flags,$sh_type
23135 .byte 'D', 'D', 'D', 'D'
23136 .section $sh_quote.fini_array.01005$sh_quote,$sh_flags,$sh_type
23138 .byte 'G', 'G', 'G', 'G'
23139 .section $sh_quote.init_array.01005$sh_quote,$sh_flags,$sh_type
23141 .byte 'H', 'H', 'H', 'H'
23146 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
23147 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
23148 && $gcc_cv_objdump -s -j .init_array conftest \
23149 |
grep HHHHDDDD
> /dev
/null
2>&1 \
23150 && $gcc_cv_objdump -s -j .fini_array conftest \
23151 |
grep GGGGCCCC
> /dev
/null
2>&1; then
23152 gcc_cv_initfini_array
=yes
23156 rm -f conftest conftest.
*
23158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23159 /* end confdefs.h. */
23162 # error Not an ELF OS
23164 #include <stdlib.h>
23165 #if defined __GLIBC_PREREQ
23166 # if __GLIBC_PREREQ (2, 4)
23168 # error GLIBC 2.4 required
23171 # if defined __sun__ && defined __svr4__
23172 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
23174 # error The C library not known to support .init_array/.fini_array
23179 if ac_fn_cxx_try_cpp
"$LINENO"; then :
23182 gcc_cv_initfini_array
=no
23184 rm -f conftest.err conftest.
$ac_ext;;
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
23188 $as_echo_n "checking cross compile... guessing... " >&6; }
23189 gcc_cv_initfini_array
=no
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
23193 $as_echo "$gcc_cv_initfini_array" >&6; }
23194 enable_initfini_array
=$gcc_cv_initfini_array
23199 cat >>confdefs.h
<<_ACEOF
23200 #define HAVE_INITFINI_ARRAY_SUPPORT `if test $enable_initfini_array = yes; then echo 1; else echo 0; fi`
23205 # Check if we have .[us]leb128, and support symbol arithmetic with it.
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
23207 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
23208 if test "${gcc_cv_as_leb128+set}" = set; then :
23209 $as_echo_n "(cached) " >&6
23211 gcc_cv_as_leb128
=no
23212 if test $in_tree_gas = yes; then
23213 if test $in_tree_gas_is_elf = yes \
23214 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23215 then gcc_cv_as_leb128
=yes
23217 elif test x
$gcc_cv_as != x
; then
23224 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23226 (eval $ac_try) 2>&5
23228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23229 test $ac_status = 0; }; }
23231 # GAS versions before 2.11 do not support uleb128,
23232 # despite appearing to.
23233 # ??? There exists an elf-specific test that will crash
23234 # the assembler. Perhaps it's better to figure out whether
23235 # arbitrary sections are supported and try the test.
23236 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
23237 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
23238 as_vers
=`echo $as_ver | sed -n \
23239 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23240 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
23241 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
23242 if test $as_major -eq 2 && test $as_minor -lt 11
23244 else gcc_cv_as_leb128
=yes
23248 echo "configure: failed program was" >&5
23251 rm -f conftest.o conftest.s
23254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
23255 $as_echo "$gcc_cv_as_leb128" >&6; }
23256 if test $gcc_cv_as_leb128 = yes; then
23258 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
23261 if test $gcc_cv_as_leb128 != yes; then
23263 $as_echo "#define HAVE_AS_LEB128 0" >>confdefs.h
23267 # Determine if an .eh_frame section is read-only.
23268 gcc_fn_eh_frame_ro
() {
23269 $gcc_cv_as $1 -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23270 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23271 sed -e '/.eh_frame/!d' -e N |
grep READONLY
> /dev
/null
23274 # Check if we have assembler support for unwind directives.
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
23276 $as_echo_n "checking assembler for cfi directives... " >&6; }
23277 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
23278 $as_echo_n "(cached) " >&6
23280 gcc_cv_as_cfi_directive
=no
23281 if test x
$gcc_cv_as != x
; then
23287 .cfi_escape 1, 2, 3, 4, 5
23288 .cfi_endproc' > conftest.s
23289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23291 (eval $ac_try) 2>&5
23293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23294 test $ac_status = 0; }; }
23298 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23299 # read-only and read-write sections, we need to make sure that the
23300 # assembler used emits read-write .eh_frame sections.
23301 if test "x$gcc_cv_ld_ro_rw_mix" = xread-write
; then
23302 gcc_cv_as_cfi_directive
=yes
23303 elif test "x$gcc_cv_objdump" = x
; then
23304 # No objdump, err on the side of caution.
23305 gcc_cv_as_cfi_directive
=no
23307 if test x
$gas = xyes
; then
23315 sparc
*-*-solaris2.
*)
23316 # On Solaris/SPARC, .eh_frame sections should always be read-write.
23317 if gcc_fn_eh_frame_ro
$as_32_opt \
23318 || gcc_fn_eh_frame_ro
$as_64_opt; then
23319 gcc_cv_as_cfi_directive
=no
23321 gcc_cv_as_cfi_directive
=yes
23324 i?
86-*-solaris2.
* | x86_64-
*-solaris2.
*)
23325 # On Solaris/x86, make sure that GCC and assembler agree on using
23326 # read-only .eh_frame sections for 64-bit.
23327 if gcc_fn_eh_frame_ro
$as_32_opt; then
23328 gcc_cv_as_cfi_directive
=no
23329 elif gcc_fn_eh_frame_ro
$as_64_opt; then
23330 gcc_cv_as_cfi_directive
=yes
23332 gcc_cv_as_cfi_directive
=no
23339 gcc_cv_as_cfi_directive
=yes
23343 echo "configure: failed program was" >&5
23346 rm -f conftest.o conftest.s
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23350 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23353 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23355 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23356 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23357 $as_echo_n "(cached) " >&6
23359 gcc_cv_as_cfi_advance_working
=no
23360 if test x
$gcc_cv_as != x
; then
23363 .cfi_adjust_cfa_offset 64
23365 .cfi_adjust_cfa_offset 128
23366 .cfi_endproc' > conftest.s
23367 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23369 (eval $ac_try) 2>&5
23371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23372 test $ac_status = 0; }; }
23375 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23376 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23377 gcc_cv_as_cfi_advance_working
=yes
23381 echo "configure: failed program was" >&5
23384 rm -f conftest.o conftest.s
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23388 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23392 # no objdump, err on the side of caution
23393 gcc_cv_as_cfi_advance_working
=no
23397 cat >>confdefs.h
<<_ACEOF
23398 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23399 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23405 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23406 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23407 $as_echo_n "(cached) " >&6
23409 gcc_cv_as_cfi_personality_directive
=no
23410 if test x
$gcc_cv_as != x
; then
23413 .cfi_personality 0, symbol
23414 .cfi_endproc' > conftest.s
23415 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23417 (eval $ac_try) 2>&5
23419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23420 test $ac_status = 0; }; }
23422 gcc_cv_as_cfi_personality_directive
=yes
23424 echo "configure: failed program was" >&5
23427 rm -f conftest.o conftest.s
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23431 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23435 cat >>confdefs.h
<<_ACEOF
23436 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23437 then echo 1; else echo 0; fi`
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23442 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23443 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23444 $as_echo_n "(cached) " >&6
23446 gcc_cv_as_cfi_sections_directive
=no
23447 if test x
$gcc_cv_as != x
; then
23449 .cfi_sections .debug_frame, .eh_frame
23451 .cfi_endproc' > conftest.s
23452 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23454 (eval $ac_try) 2>&5
23456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23457 test $ac_status = 0; }; }
23460 win32 | pe | cygwin
* | mingw32
*)
23461 # Need to check that we generated the correct relocation for the
23462 # .debug_frame section. This was fixed for binutils 2.21.
23463 gcc_cv_as_cfi_sections_directive
=no
23464 if test "x$gcc_cv_objdump" != x
; then
23465 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23466 grep secrel
> /dev
/null
; then
23467 gcc_cv_as_cfi_sections_directive
=yes
23472 gcc_cv_as_cfi_sections_directive
=yes
23476 echo "configure: failed program was" >&5
23479 rm -f conftest.o conftest.s
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23483 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23488 cat >>confdefs.h
<<_ACEOF
23489 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23490 then echo 1; else echo 0; fi`
23494 # GAS versions up to and including 2.11.0 may mis-optimize
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23497 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23498 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23499 $as_echo_n "(cached) " >&6
23501 gcc_cv_as_eh_frame
=no
23502 if test $in_tree_gas = yes; then
23503 if test $in_tree_gas_is_elf = yes \
23504 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23505 then gcc_cv_as_eh_frame
=yes
23507 elif test x
$gcc_cv_as != x
; then
23514 .section .eh_frame,"aw",@progbits
23516 .4byte .LECIE1-.LSCIE1
23530 .4byte .LEFDE1-.LASFDE1
23532 .4byte .LASFDE1-__FRAME_BEGIN__
23539 .LEFDE1:' > conftest.s
23540 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23542 (eval $ac_try) 2>&5
23544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23545 test $ac_status = 0; }; }
23547 cat > conftest.lit
<<EOF
23548 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23549 0010 01000000 12000000 18000000 00000000 ................
23550 0020 08000000 04080000 0044 .........D
23552 cat > conftest.big
<<EOF
23553 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23554 0010 00000001 00000012 00000018 00000000 ................
23555 0020 00000008 04000000 0844 .........D
23557 # If the assembler didn't choke, and we can objdump,
23558 # and we got the correct data, then succeed.
23559 # The text in the here-document typically retains its unix-style line
23560 # endings, while the output of objdump will use host line endings.
23561 # Therefore, use diff -b for the comparisons.
23562 if test x
$gcc_cv_objdump != x \
23563 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23564 |
tail -3 > conftest.got \
23565 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23566 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23568 gcc_cv_as_eh_frame
=yes
23569 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23571 (eval $ac_try) 2>&5
23573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23574 test $ac_status = 0; }; }; then
23575 gcc_cv_as_eh_frame
=buggy
23577 # Uh oh, what do we do now?
23578 gcc_cv_as_eh_frame
=no
23581 echo "configure: failed program was" >&5
23584 rm -f conftest.o conftest.s
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23588 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23592 if test $gcc_cv_as_eh_frame = buggy
; then
23594 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23598 # Test if the assembler supports the section flag 'e' or #exclude for
23599 # specifying an excluded section.
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23601 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23602 if test "${gcc_cv_as_section_exclude_e+set}" = set; then :
23603 $as_echo_n "(cached) " >&6
23605 gcc_cv_as_section_exclude_e
=no
23606 if test $in_tree_gas = yes; then
23607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
23608 then gcc_cv_as_section_exclude_e
=yes
23610 elif test x
$gcc_cv_as != x
; then
23611 $as_echo '.section foo1,"e"
23612 .byte 0,0,0,0' > conftest.s
23613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23615 (eval $ac_try) 2>&5
23617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23618 test $ac_status = 0; }; }
23620 gcc_cv_as_section_exclude_e
=yes
23622 echo "configure: failed program was" >&5
23625 rm -f conftest.o conftest.s
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_e" >&5
23629 $as_echo "$gcc_cv_as_section_exclude_e" >&6; }
23632 if test $gcc_cv_as_section_exclude_e = no
; then
23633 case "${target}" in
23634 # Solaris as uses #exclude instead.
23636 case "${target}" in
23637 sparc
*-*-solaris2*)
23638 conftest_s
='.section "foo1", #exclude'
23640 i?
86-*-solaris2* | x86_64-
*-solaris2*)
23641 conftest_s
='.section foo1, #exclude'
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section exclude flag" >&5
23647 $as_echo_n "checking assembler for section exclude flag... " >&6; }
23648 if test "${gcc_cv_as_section_exclude_hash+set}" = set; then :
23649 $as_echo_n "(cached) " >&6
23651 gcc_cv_as_section_exclude_hash
=no
23652 if test x
$gcc_cv_as != x
; then
23653 $as_echo "$conftest_s
23654 .byte 0,0,0,0" > conftest.s
23655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23657 (eval $ac_try) 2>&5
23659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23660 test $ac_status = 0; }; }
23662 gcc_cv_as_section_exclude_hash
=yes
23664 echo "configure: failed program was" >&5
23667 rm -f conftest.o conftest.s
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_exclude_hash" >&5
23671 $as_echo "$gcc_cv_as_section_exclude_hash" >&6; }
23676 cat >>confdefs.h
<<_ACEOF
23677 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_exclude_e = yes || test $gcc_cv_as_section_exclude_hash = yes; then echo 1; else echo 0; fi`
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23682 $as_echo_n "checking assembler for section merging support... " >&6; }
23683 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23684 $as_echo_n "(cached) " >&6
23686 gcc_cv_as_shf_merge
=no
23687 if test $in_tree_gas = yes; then
23688 if test $in_tree_gas_is_elf = yes \
23689 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23690 then gcc_cv_as_shf_merge
=yes
23692 elif test x
$gcc_cv_as != x
; then
23693 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23694 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23696 (eval $ac_try) 2>&5
23698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23699 test $ac_status = 0; }; }
23701 gcc_cv_as_shf_merge
=yes
23703 echo "configure: failed program was" >&5
23706 rm -f conftest.o conftest.s
23709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23710 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23713 if test $gcc_cv_as_shf_merge = no
; then
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23715 $as_echo_n "checking assembler for section merging support... " >&6; }
23716 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23717 $as_echo_n "(cached) " >&6
23719 gcc_cv_as_shf_merge
=no
23720 if test $in_tree_gas = yes; then
23721 if test $in_tree_gas_is_elf = yes \
23722 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23723 then gcc_cv_as_shf_merge
=yes
23725 elif test x
$gcc_cv_as != x
; then
23726 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23727 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23729 (eval $ac_try) 2>&5
23731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23732 test $ac_status = 0; }; }
23734 gcc_cv_as_shf_merge
=yes
23736 echo "configure: failed program was" >&5
23739 rm -f conftest.o conftest.s
23742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23743 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23748 i?
86-*-solaris2.10
* | x86_64-
*-solaris2.10
*)
23749 # SHF_MERGE support in Solaris 10/x86 ld is broken.
23750 if test x
"$gnu_ld" = xno
; then
23751 gcc_cv_as_shf_merge
=no
23756 cat >>confdefs.h
<<_ACEOF
23757 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23761 gcc_cv_ld_aligned_shf_merge
=yes
23763 # While Solaris 10/SPARC ld isn't affected, disable to avoid problems
23764 # relinking on Solaris 11 < 11.4.
23765 sparc
*-*-solaris2.10
*)
23766 if test x
"$gnu_ld" = xno
; then
23767 gcc_cv_ld_aligned_shf_merge
=no
23770 # SHF_MERGE support is broken in Solaris ld up to Solaris 11.3/SPARC for
23772 sparc
*-*-solaris2.11
*)
23773 if test x
"$gnu_ld" = xno \
23774 && test "$ld_vers_major" -lt 2 && test "$ld_vers_minor" -lt 3159; then
23775 gcc_cv_ld_aligned_shf_merge
=no
23780 cat >>confdefs.h
<<_ACEOF
23781 #define HAVE_LD_ALIGNED_SHF_MERGE `if test $gcc_cv_ld_aligned_shf_merge = yes; then echo 1; else echo 0; fi`
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for stabs directive" >&5
23786 $as_echo_n "checking assembler for stabs directive... " >&6; }
23787 if test "${gcc_cv_as_stabs_directive+set}" = set; then :
23788 $as_echo_n "(cached) " >&6
23790 gcc_cv_as_stabs_directive
=no
23791 if test x
$gcc_cv_as != x
; then
23792 $as_echo '.stabs "gcc2_compiled.",60,0,0,0' > conftest.s
23793 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23795 (eval $ac_try) 2>&5
23797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23798 test $ac_status = 0; }; }
23800 gcc_cv_as_stabs_directive
=yes
23802 echo "configure: failed program was" >&5
23805 rm -f conftest.o conftest.s
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_stabs_directive" >&5
23809 $as_echo "$gcc_cv_as_stabs_directive" >&6; }
23810 if test $gcc_cv_as_stabs_directive = yes; then
23812 $as_echo "#define HAVE_AS_STABS_DIRECTIVE 1" >>confdefs.h
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23818 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23819 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23820 $as_echo_n "(cached) " >&6
23822 gcc_cv_as_comdat_group
=no
23823 if test $in_tree_gas = yes; then
23824 if test $in_tree_gas_is_elf = yes \
23825 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23826 then gcc_cv_as_comdat_group
=yes
23828 elif test x
$gcc_cv_as != x
; then
23829 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23830 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23832 (eval $ac_try) 2>&5
23834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23835 test $ac_status = 0; }; }
23837 gcc_cv_as_comdat_group
=yes
23839 echo "configure: failed program was" >&5
23842 rm -f conftest.o conftest.s
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23846 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23849 if test $gcc_cv_as_comdat_group = yes; then
23850 gcc_cv_as_comdat_group_percent
=no
23851 gcc_cv_as_comdat_group_group
=no
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23854 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23855 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23856 $as_echo_n "(cached) " >&6
23858 gcc_cv_as_comdat_group_percent
=no
23859 if test $in_tree_gas = yes; then
23860 if test $in_tree_gas_is_elf = yes \
23861 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23862 then gcc_cv_as_comdat_group_percent
=yes
23864 elif test x
$gcc_cv_as != x
; then
23865 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23866 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23868 (eval $ac_try) 2>&5
23870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23871 test $ac_status = 0; }; }
23873 gcc_cv_as_comdat_group_percent
=yes
23875 echo "configure: failed program was" >&5
23878 rm -f conftest.o conftest.s
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23882 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23885 if test $gcc_cv_as_comdat_group_percent = yes; then
23886 gcc_cv_as_comdat_group_group
=no
23888 case "${target}" in
23889 # Sun as uses a completely different syntax.
23891 case "${target}" in
23892 sparc
*-*-solaris2*)
23894 .group foo,".text%foo",#comdat
23895 .section ".text%foo", #alloc,#execinstr,#progbits
23900 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23902 .group foo,.text%foo,#comdat
23903 .section .text%foo, "ax", @progbits
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23910 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23911 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23914 gcc_cv_as_comdat_group_group
=no
23915 if test x
$gcc_cv_as != x
; then
23916 $as_echo "$conftest_s" > conftest.s
23917 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23919 (eval $ac_try) 2>&5
23921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23922 test $ac_status = 0; }; }
23924 gcc_cv_as_comdat_group_group
=yes
23926 echo "configure: failed program was" >&5
23929 rm -f conftest.o conftest.s
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23933 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23938 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23939 gcc_cv_as_comdat_group_group
=no
23943 if test x
"$ld_is_gold" = xyes
; then
23945 elif test $in_tree_ld = yes ; then
23947 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 \
23948 && test $in_tree_ld_is_elf = yes; then
23951 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23953 if test 0"$ld_date" -lt 20050308; then
23954 if test -n "$ld_date"; then
23955 # If there was date string, but was earlier than 2005-03-08, fail
23957 elif test "$ld_vers_major" -lt 2; then
23959 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23964 case "${target}" in
23965 *-*-solaris2.1
[1-9]*)
23967 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23968 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23971 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23972 # least ld version 1.2267.
23973 if test "$ld_vers_major" -gt 1; then
23975 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23977 elif test "$ld_vers_minor" -ge 2267; then
23982 # Assume linkers other than GNU ld don't support COMDAT group.
23987 # Allow overriding the automatic COMDAT group tests above.
23988 # Check whether --enable-comdat was given.
23989 if test "${enable_comdat+set}" = set; then :
23990 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23993 if test $comdat_group = no
; then
23994 gcc_cv_as_comdat_group
=no
23995 gcc_cv_as_comdat_group_percent
=no
23996 gcc_cv_as_comdat_group_group
=no
23999 cat >>confdefs.h
<<_ACEOF
24000 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
24001 || test $gcc_cv_as_comdat_group_percent = yes \
24002 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
24006 # Restrict this test to Solaris/x86: other targets define this statically.
24007 case "${target}" in
24008 i?
86-*-solaris2* | x86_64-
*-solaris2*)
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5
24010 $as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; }
24011 if test $in_tree_ld = yes ||
echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24012 hidden_linkonce
=yes
24014 case "${target}" in
24015 # Full support for hidden thunks in linkonce sections only appeared in
24016 # Solaris 11/OpenSolaris.
24017 *-*-solaris2.1
[1-9]*)
24018 hidden_linkonce
=yes
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5
24026 $as_echo "$hidden_linkonce" >&6; }
24028 cat >>confdefs.h
<<_ACEOF
24029 #define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi`
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table is_stmt support" >&5
24036 $as_echo_n "checking assembler for line table is_stmt support... " >&6; }
24037 if test "${gcc_cv_as_is_stmt+set}" = set; then :
24038 $as_echo_n "(cached) " >&6
24040 gcc_cv_as_is_stmt
=no
24041 if test $in_tree_gas = yes; then
24042 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 92`
24043 then gcc_cv_as_is_stmt
=yes
24045 elif test x
$gcc_cv_as != x
; then
24048 .loc 1 1 0 is_stmt 1' > conftest.s
24049 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24051 (eval $ac_try) 2>&5
24053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24054 test $ac_status = 0; }; }
24056 gcc_cv_as_is_stmt
=yes
24058 echo "configure: failed program was" >&5
24061 rm -f conftest.o conftest.s
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_is_stmt" >&5
24065 $as_echo "$gcc_cv_as_is_stmt" >&6; }
24066 if test $gcc_cv_as_is_stmt = yes; then
24068 $as_echo "#define HAVE_GAS_LOC_STMT 1" >>confdefs.h
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
24074 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
24075 if test "${gcc_cv_as_discriminator+set}" = set; then :
24076 $as_echo_n "(cached) " >&6
24078 gcc_cv_as_discriminator
=no
24079 if test $in_tree_gas = yes; then
24080 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
24081 then gcc_cv_as_discriminator
=yes
24083 elif test x
$gcc_cv_as != x
; then
24086 .loc 1 1 0 discriminator 1' > conftest.s
24087 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; }
24094 gcc_cv_as_discriminator
=yes
24096 echo "configure: failed program was" >&5
24099 rm -f conftest.o conftest.s
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
24103 $as_echo "$gcc_cv_as_discriminator" >&6; }
24104 if test $gcc_cv_as_discriminator = yes; then
24106 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
24111 # Thread-local storage - the check is heavily parameterized.
24119 .section ".tdata","awT",@progbits
24122 ldq $27,__tls_get_addr($29) !literal!1
24123 lda $16,foo($29) !tlsgd!1
24124 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
24125 ldq $27,__tls_get_addr($29) !literal!2
24126 lda $16,foo($29) !tlsldm!2
24127 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
24128 ldq $1,foo($29) !gotdtprel
24129 ldah $2,foo($29) !dtprelhi
24130 lda $3,foo($2) !dtprello
24131 lda $4,foo($29) !dtprel
24132 ldq $1,foo($29) !gottprel
24133 ldah $2,foo($29) !tprelhi
24134 lda $3,foo($2) !tprello
24135 lda $4,foo($29) !tprel'
24138 tls_as_opt
=--fatal-warnings
24142 add_s r0,r0, @foo@tpoff'
24146 cris-
*-*|crisv32-
*-*)
24148 .section ".tdata","awT",@progbits
24155 tls_as_opt
=--fatal-warnings
24159 .section ".tdata","awT",@progbits
24162 call #gettlsoff(x)'
24171 .section ".tdata","awT",@progbits
24175 addil LT%foo-$tls_gdidx$,gp
24176 ldo RT%foo-$tls_gdidx$(%r1),%arg0
24179 addil LT%foo-$tls_ldidx$,gp
24181 ldo RT%foo-$tls_ldidx$(%r1),%arg0
24182 addil LR%foo-$tls_dtpoff$,%ret0
24183 ldo RR%foo-$tls_dtpoff$(%r1),%t1
24185 addil LT%foo-$tls_ieoff$,gp
24186 ldw RT%foo-$tls_ieoff$(%r1),%t2
24189 addil LR%foo-$tls_leoff$,%t1
24190 ldo RR%foo-$tls_leoff$(%r1),%t2'
24193 tls_as_opt
=--fatal-warnings
24197 .section ".tdata","awT",%progbits
24200 .word foo(gottpoff)
24208 i
[34567]86-*-* | x86_64-
*-*)
24210 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
24217 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24219 .section .tdata,"awt",@progbits'
24224 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
24228 .section ".tdata","awT",@progbits'
24232 tls_as_opt
="--fatal-warnings"
24236 conftest_s
="$conftest_s
24240 leal foo@tlsgd(,%ebx,1), %eax
24241 leal foo@tlsldm(%ebx), %eax
24242 leal foo@dtpoff(%eax), %edx
24243 movl foo@gottpoff(%ebx), %eax
24244 subl foo@gottpoff(%ebx), %eax
24245 addl foo@gotntpoff(%ebx), %eax
24246 movl foo@indntpoff, %eax
24247 movl \$foo@tpoff, %eax
24248 subl \$foo@tpoff, %eax
24249 leal foo@ntpoff(%ecx), %eax"
24252 if test x
$on_solaris = xyes
; then
24254 yes) tls_as_opt
="$tls_as_opt --64" ;;
24255 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
24258 conftest_s
="$conftest_s
24262 leaq foo@tlsgd(%rip), %rdi
24263 leaq foo@tlsld(%rip), %rdi
24264 leaq foo@dtpoff(%rax), %rdx
24265 movq foo@gottpoff(%rip), %rax
24266 movq \$foo@tpoff, %rax"
24272 .section ".tdata","awT",@progbits
24275 addl r16 = @ltoff(@dtpmod(foo#)), gp
24276 addl r17 = @ltoff(@dtprel(foo#)), gp
24277 addl r18 = @ltoff(@tprel(foo#)), gp
24278 addl r19 = @dtprel(foo#), gp
24279 adds r21 = @dtprel(foo#), r13
24280 movl r23 = @dtprel(foo#)
24281 addl r20 = @tprel(foo#), gp
24282 adds r22 = @tprel(foo#), r13
24283 movl r24 = @tprel(foo#)'
24286 tls_as_opt
=--fatal-warnings
24290 .section .tdata,"awT",@progbits
24294 addik r5,r20,x@TLSGD
24295 addik r5,r20,x@TLSLDM'
24298 tls_as_opt
='--fatal-warnings'
24302 .section .tdata,"awT",@progbits
24306 addiu $4, $28, %tlsgd(x)
24307 addiu $4, $28, %tlsldm(x)
24308 lui $4, %dtprel_hi(x)
24309 addiu $4, $4, %dtprel_lo(x)
24310 lw $4, %gottprel(x)($28)
24311 lui $4, %tprel_hi(x)
24312 addiu $4, $4, %tprel_lo(x)'
24315 tls_as_opt
='-32 --fatal-warnings'
24319 .section .tdata,"awT",@progbits
24324 move.l x@TLSGD(%a5),%a0
24325 move.l x@TLSLDM(%a5),%a0
24326 move.l x@TLSLDO(%a5),%a0
24327 move.l x@TLSIE(%a5),%a0
24328 move.l x@TLSLE(%a5),%a0'
24331 tls_as_opt
='--fatal-warnings'
24335 .section ".tdata","awT",@progbits'
24338 tls_as_opt
="--fatal-warnings"
24342 .section ".tdata","awT",%progbits
24346 add x0, x0, #:tlsgd_lo12:x
24351 tls_as_opt
='--fatal-warnings'
24355 .extern __get_tpointer
24373 .section ".tdata","awT",@progbits
24381 addi 3,2,ld0@got@tlsgd
24387 addi 3,2,x1@got@tlsld
24393 addis 9,3,x2@dtprel@ha
24394 addi 9,9,x2@dtprel@l
24397 ld 9,x3@got@dtprel(2)
24403 tls_as_opt
="-a64 --fatal-warnings"
24407 .section ".tdata","awT",@progbits
24415 addi 3,31,ld0@got@tlsgd
24417 addi 3,31,x1@got@tlsld
24420 addis 9,3,x2@dtprel@ha
24421 addi 9,9,x2@dtprel@l
24422 lwz 9,x3@got@tprel(31)
24425 addis 9,2,x2@tprel@ha
24426 addi 9,9,x2@tprel@l'
24429 tls_as_opt
="-a32 --fatal-warnings"
24433 .section .tdata,"awT",@progbits
24437 call __tls_get_addr'
24440 tls_as_opt
='--fatal-warnings'
24444 .section ".tdata","awT",@progbits
24451 .long foo@GOTNTPOFF
24452 .long foo@INDNTPOFF
24453 l %r1,foo@GOTNTPOFF(%r12)
24454 l %r1,0(%r1):tls_load:foo
24455 bas %r14,0(%r1,%r13):tls_gdcall:foo
24456 bas %r14,0(%r1,%r13):tls_ldcall:foo'
24459 tls_as_opt
="-m31 --fatal-warnings"
24463 .section ".tdata","awT",@progbits
24470 .quad foo@GOTNTPOFF
24471 lg %r1,foo@GOTNTPOFF(%r12)
24472 larl %r1,foo@INDNTPOFF
24473 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
24474 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
24477 tls_as_opt
="-m64 -Aesame --fatal-warnings"
24479 sh-
*-* | sh
[123456789lbe
]*-*-*)
24481 .section ".tdata","awT",@progbits
24491 tls_as_opt
=--fatal-warnings
24495 sparc
*-sun-solaris2.
*)
24502 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
24504 .section ".tdata",#alloc,#write,#tls'
24509 .section ".tdata","awT",@progbits'
24512 tls_as_opt
="-32 --fatal-warnings"
24514 conftest_s
="$conftest_s
24517 sethi %tgd_hi22(foo), %o0
24518 add %o0, %tgd_lo10(foo), %o1
24519 add %l7, %o1, %o0, %tgd_add(foo)
24520 call __tls_get_addr, %tgd_call(foo)
24521 sethi %tldm_hi22(foo), %l1
24522 add %l1, %tldm_lo10(foo), %l2
24523 add %l7, %l2, %o0, %tldm_add(foo)
24524 call __tls_get_addr, %tldm_call(foo)
24525 sethi %tldo_hix22(foo), %l3
24526 xor %l3, %tldo_lox10(foo), %l4
24527 add %o0, %l4, %l5, %tldo_add(foo)
24528 sethi %tie_hi22(foo), %o3
24529 add %o3, %tie_lo10(foo), %o3
24530 ld [%l7 + %o3], %o2, %tie_ld(foo)
24531 add %g7, %o2, %o4, %tie_add(foo)
24532 sethi %tle_hix22(foo), %l1
24533 xor %l1, %tle_lox10(foo), %o5
24534 ld [%g7 + %o5], %o1"
24538 .section ".tdata","awT",@progbits
24541 addli r0, zero, tls_gd(foo)
24542 auli r0, zero, tls_gd_ha16(foo)
24543 addli r0, r0, tls_gd_lo16(foo)
24545 addli r0, zero, tls_ie(foo)
24546 auli r0, r0, tls_ie_ha16(foo)
24547 addli r0, r0, tls_ie_lo16(foo)'
24550 tls_as_opt
="--fatal-warnings"
24554 .section ".tdata","awT",@progbits
24557 shl16insli r0, zero, hw0_last_tls_gd(foo)
24558 shl16insli r0, zero, hw1_last_tls_gd(foo)
24559 shl16insli r0, r0, hw0_tls_gd(foo)
24561 shl16insli r0, zero, hw1_last_tls_ie(foo)
24562 shl16insli r0, r0, hw0_tls_ie(foo)'
24565 tls_as_opt
="--fatal-warnings"
24569 .section ".tdata","awT",@progbits
24572 movi a8, foo@TLSFUNC
24573 movi a10, foo@TLSARG
24574 callx8.tls a8, foo@TLSCALL'
24580 if test "x$enable_tls" = xno
; then
24581 : # TLS explicitly disabled.
24582 elif test "x$enable_tls" = xyes
; then
24583 set_have_as_tls
=yes # TLS explicitly enabled.
24584 elif test -z "$tls_first_major"; then
24585 : # If we don't have a check, assume no support.
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24588 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24589 if test "${gcc_cv_as_tls+set}" = set; then :
24590 $as_echo_n "(cached) " >&6
24593 if test $in_tree_gas = yes; then
24594 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24595 then gcc_cv_as_tls
=yes
24597 elif test x
$gcc_cv_as != x
; then
24598 $as_echo "$conftest_s" > conftest.s
24599 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24601 (eval $ac_try) 2>&5
24603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24604 test $ac_status = 0; }; }
24608 echo "configure: failed program was" >&5
24611 rm -f conftest.o conftest.s
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24615 $as_echo "$gcc_cv_as_tls" >&6; }
24616 if test $gcc_cv_as_tls = yes; then
24617 set_have_as_tls
=yes
24621 if test $set_have_as_tls = yes ; then
24623 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24627 # Target-specific assembler checks.
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24630 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24631 gcc_cv_ld_static_dynamic
=no
24632 gcc_cv_ld_static_option
='-Bstatic'
24633 gcc_cv_ld_dynamic_option
='-Bdynamic'
24634 if test $in_tree_ld = yes ; then
24635 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
24636 gcc_cv_ld_static_dynamic
=yes
24638 elif test x
$gcc_cv_ld != x
; then
24639 # Check if linker supports -Bstatic/-Bdynamic option
24640 if $gcc_cv_ld --help 2>&1 |
grep -- -Bstatic > /dev
/null \
24641 && $gcc_cv_ld --help 2>&1 |
grep -- -Bdynamic > /dev
/null
; then
24642 gcc_cv_ld_static_dynamic
=yes
24645 # AIX ld uses -b flags
24646 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24647 gcc_cv_ld_static_dynamic
=yes
24648 gcc_cv_ld_static_option
="-bstatic"
24649 gcc_cv_ld_dynamic_option
="-bdynamic"
24651 # HP-UX ld uses -a flags to select between shared and archive.
24653 if test x
"$gnu_ld" = xno
; then
24654 gcc_cv_ld_static_dynamic
=yes
24655 gcc_cv_ld_static_option
="-aarchive_shared"
24656 gcc_cv_ld_dynamic_option
="-adefault"
24659 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24661 gcc_cv_ld_static_dynamic
=yes
24666 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24668 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24671 cat >>confdefs.h
<<_ACEOF
24672 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24676 cat >>confdefs.h
<<_ACEOF
24677 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24682 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --version-script option" >&5
24685 $as_echo_n "checking linker --version-script option... " >&6; }
24686 gcc_cv_ld_version_script
=no
24687 ld_version_script_option
=''
24688 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24689 gcc_cv_ld_version_script
=yes
24690 ld_version_script_option
='--version-script'
24691 elif test x
$gcc_cv_ld != x
; then
24693 # Solaris 2 ld always supports -M. It also supports a subset of
24694 # --version-script since Solaris 11.4, but requires
24695 # -z gnu-version-script-compat to activate.
24697 gcc_cv_ld_version_script
=yes
24698 ld_version_script_option
='-M'
24702 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_version_script" >&5
24704 $as_echo "$gcc_cv_ld_version_script" >&6; }
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker soname option" >&5
24708 $as_echo_n "checking linker soname option... " >&6; }
24709 gcc_cv_ld_soname
=no
24710 if test $in_tree_ld = yes ||
test x
"$gnu_ld" = xyes
; then
24711 gcc_cv_ld_soname
=yes
24712 ld_soname_option
='-soname'
24713 elif test x
$gcc_cv_ld != x
; then
24716 gcc_cv_ld_soname
=yes
24717 ld_soname_option
='-install_name'
24719 # Solaris 2 ld always supports -h. It also supports --soname for GNU
24720 # ld compatiblity since some Solaris 10 update.
24722 gcc_cv_ld_soname
=yes
24723 ld_soname_option
='-h'
24727 # Don't AC_DEFINE result, only used in jit/Make-lang.in so far.
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_soname" >&5
24729 $as_echo "$gcc_cv_ld_soname" >&6; }
24732 if test x
"$demangler_in_ld" = xyes
; then
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24734 $as_echo_n "checking linker --demangle support... " >&6; }
24735 gcc_cv_ld_demangle
=no
24736 if test $in_tree_ld = yes; then
24737 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 \
24738 gcc_cv_ld_demangle
=yes
24740 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24741 # Check if the GNU linker supports --demangle option
24742 if $gcc_cv_ld --help 2>&1 |
grep no-demangle
> /dev
/null
; then
24743 gcc_cv_ld_demangle
=yes
24746 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24748 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24752 $as_echo "$gcc_cv_ld_demangle" >&6; }
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24756 $as_echo_n "checking linker plugin support... " >&6; }
24757 gcc_cv_lto_plugin
=0
24758 if test -f liblto_plugin.la
; then
24759 save_ld_ver
="$ld_ver"
24760 save_ld_vers_major
="$ld_vers_major"
24761 save_ld_vers_minor
="$ld_vers_minor"
24762 save_ld_is_gold
="$ld_is_gold"
24766 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24768 # FIXME: ld_is_gold?
24769 ld_vers_major
="$gcc_cv_gld_major_version"
24770 ld_vers_minor
="$gcc_cv_gld_minor_version"
24772 # Determine plugin linker version.
24773 # FIXME: Partial duplicate from above, generalize.
24774 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24775 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24776 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24778 ld_vers
=`echo $ld_ver | sed -n \
24779 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24781 ld_vers
=`echo $ld_ver | sed -n \
24782 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24784 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24785 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24789 # Determine plugin support.
24790 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24791 # Require GNU ld or gold 2.21+ for plugin support by default.
24792 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24793 gcc_cv_lto_plugin
=2
24794 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24795 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24796 gcc_cv_lto_plugin
=1
24800 ld_ver
="$save_ld_ver"
24801 ld_vers_major
="$save_ld_vers_major"
24802 ld_vers_minor
="$save_ld_vers_minor"
24803 ld_is_gold
="$save_ld_is_gold"
24806 cat >>confdefs.h
<<_ACEOF
24807 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24811 $as_echo "$gcc_cv_lto_plugin" >&6; }
24813 # Target OS-specific assembler checks.
24815 case "$target_os" in
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mmacosx-version-min option" >&5
24818 $as_echo_n "checking assembler for -mmacosx-version-min option... " >&6; }
24819 if test "${gcc_cv_as_mmacosx_version_min+set}" = set; then :
24820 $as_echo_n "(cached) " >&6
24822 gcc_cv_as_mmacosx_version_min
=no
24823 if test x
$gcc_cv_as != x
; then
24824 $as_echo '.text' > conftest.s
24825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mmacosx-version-min=10.1 -o conftest.o conftest.s >&5'
24826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24827 (eval $ac_try) 2>&5
24829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24830 test $ac_status = 0; }; }
24832 gcc_cv_as_mmacosx_version_min
=yes
24834 echo "configure: failed program was" >&5
24837 rm -f conftest.o conftest.s
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mmacosx_version_min" >&5
24841 $as_echo "$gcc_cv_as_mmacosx_version_min" >&6; }
24842 if test $gcc_cv_as_mmacosx_version_min = yes; then
24844 $as_echo "#define HAVE_AS_MMACOSX_VERSION_MIN_OPTION 1" >>confdefs.h
24851 # Target CPU-specific assembler checks.
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24856 $as_echo_n "checking assembler for -mabi option... " >&6; }
24857 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24858 $as_echo_n "(cached) " >&6
24860 gcc_cv_as_aarch64_mabi
=no
24861 if test x
$gcc_cv_as != x
; then
24862 $as_echo '.text' > conftest.s
24863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24865 (eval $ac_try) 2>&5
24867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24868 test $ac_status = 0; }; }
24870 gcc_cv_as_aarch64_mabi
=yes
24872 echo "configure: failed program was" >&5
24875 rm -f conftest.o conftest.s
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24879 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24882 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24884 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24887 if test x
$with_abi = xilp32
; then
24888 as_fn_error
"Assembler does not support -mabi=ilp32.\
24889 Upgrade the Assembler." "$LINENO" 5
24891 if test x
"$with_multilib_list" = xdefault
; then
24892 TM_MULTILIB_CONFIG
=lp64
24894 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24895 for aarch64_multilib
in ${aarch64_multilibs}; do
24896 case ${aarch64_multilib} in
24898 as_fn_error
"Assembler does not support -mabi=ilp32.\
24899 Upgrade the Assembler." "$LINENO" 5
24907 # Check if we have binutils support for relocations types needed by -fpic
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24909 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24910 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24913 gcc_cv_as_aarch64_picreloc
=no
24914 if test x
$gcc_cv_as != x
; then
24917 ldr x0, [x2, #:gotpage_lo15:globalsym]
24919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24921 (eval $ac_try) 2>&5
24923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24924 test $ac_status = 0; }; }
24926 gcc_cv_as_aarch64_picreloc
=yes
24928 echo "configure: failed program was" >&5
24931 rm -f conftest.o conftest.s
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24935 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24936 if test $gcc_cv_as_aarch64_picreloc = yes; then
24938 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24942 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24943 # Check whether --enable-fix-cortex-a53-835769 was given.
24944 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24945 enableval
=$enable_fix_cortex_a53_835769;
24948 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24953 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24954 Valid choices are 'yes' and 'no'." "$LINENO" 5
24961 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24962 # Check whether --enable-fix-cortex-a53-843419 was given.
24963 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24964 enableval
=$enable_fix_cortex_a53_843419;
24967 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24972 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24973 Valid choices are 'yes' and 'no'." "$LINENO" 5
24982 # All TARGET_ABI_OSF targets.
24983 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24985 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24986 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24987 $as_echo_n "(cached) " >&6
24989 gcc_cv_as_alpha_explicit_relocs
=no
24990 if test $in_tree_gas = yes; then
24991 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24992 then gcc_cv_as_alpha_explicit_relocs
=yes
24994 elif test x
$gcc_cv_as != x
; then
24995 $as_echo ' .set nomacro
24997 extbl $3, $2, $3 !lituse_bytoff!1
24998 ldq $2, a($29) !literal!1
24999 ldq $4, b($29) !literal!2
25000 ldq_u $3, 0($2) !lituse_base!1
25001 ldq $27, f($29) !literal!5
25002 jsr $26, ($27), f !lituse_jsr!5
25003 ldah $29, 0($26) !gpdisp!3
25004 lda $0, c($29) !gprel
25005 ldah $1, d($29) !gprelhigh
25006 lda $1, d($1) !gprellow
25007 lda $29, 0($29) !gpdisp!3' > conftest.s
25008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25010 (eval $ac_try) 2>&5
25012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25013 test $ac_status = 0; }; }
25015 gcc_cv_as_alpha_explicit_relocs
=yes
25017 echo "configure: failed program was" >&5
25020 rm -f conftest.o conftest.s
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
25024 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
25025 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
25027 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
25032 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
25033 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
25034 $as_echo_n "(cached) " >&6
25036 gcc_cv_as_alpha_jsrdirect_relocs
=no
25037 if test $in_tree_gas = yes; then
25038 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
25039 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
25041 elif test x
$gcc_cv_as != x
; then
25042 $as_echo ' .set nomacro
25044 ldq $27, a($29) !literal!1
25045 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
25046 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25048 (eval $ac_try) 2>&5
25050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25051 test $ac_status = 0; }; }
25053 gcc_cv_as_alpha_jsrdirect_relocs
=yes
25055 echo "configure: failed program was" >&5
25058 rm -f conftest.o conftest.s
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
25062 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
25063 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
25065 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
25073 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
25074 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
25075 $as_echo_n "(cached) " >&6
25077 gcc_cv_as_avr_mlink_relax
=no
25078 if test x
$gcc_cv_as != x
; then
25079 $as_echo '.text' > conftest.s
25080 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
25081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25082 (eval $ac_try) 2>&5
25084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25085 test $ac_status = 0; }; }
25087 gcc_cv_as_avr_mlink_relax
=yes
25089 echo "configure: failed program was" >&5
25092 rm -f conftest.o conftest.s
25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
25096 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
25097 if test $gcc_cv_as_avr_mlink_relax = yes; then
25099 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
25105 $as_echo_n "checking assembler for -mrmw option... " >&6; }
25106 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
25107 $as_echo_n "(cached) " >&6
25109 gcc_cv_as_avr_mrmw
=no
25110 if test x
$gcc_cv_as != x
; then
25111 $as_echo '.text' > conftest.s
25112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
25113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25114 (eval $ac_try) 2>&5
25116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25117 test $ac_status = 0; }; }
25119 gcc_cv_as_avr_mrmw
=yes
25121 echo "configure: failed program was" >&5
25124 rm -f conftest.o conftest.s
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
25128 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
25129 if test $gcc_cv_as_avr_mrmw = yes; then
25131 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for __gcc_isr pseudo instruction" >&5
25137 $as_echo_n "checking assembler for __gcc_isr pseudo instruction... " >&6; }
25138 if test "${gcc_cv_as_avr_mgccisr+set}" = set; then :
25139 $as_echo_n "(cached) " >&6
25141 gcc_cv_as_avr_mgccisr
=no
25142 if test x
$gcc_cv_as != x
; then
25148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mgcc-isr -o conftest.o conftest.s >&5'
25149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25150 (eval $ac_try) 2>&5
25152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25153 test $ac_status = 0; }; }
25155 gcc_cv_as_avr_mgccisr
=yes
25157 echo "configure: failed program was" >&5
25160 rm -f conftest.o conftest.s
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mgccisr" >&5
25164 $as_echo "$gcc_cv_as_avr_mgccisr" >&6; }
25165 if test $gcc_cv_as_avr_mgccisr = yes; then
25167 $as_echo "#define HAVE_AS_AVR_MGCCISR_OPTION 1" >>confdefs.h
25172 # Check how default linker description file implements .rodata for
25173 # avrxmega3 (PR21472). avr-gcc assumes .rodata is *not* loaded to
25174 # RAM so avr-gcc skips __do_copy_data for .rodata objects.
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking binutils for avrxmega3 .rodata support" >&5
25176 $as_echo_n "checking binutils for avrxmega3 .rodata support... " >&6; }
25177 cat > conftest.s
<<EOF
25178 .section .rodata,"a",@progbits
25180 ;; avr-nm should print "... R xxvaryy", not "... D xxvaryy".
25185 { ac_try
='$gcc_cv_as -mmcu=avrxmega3 conftest.s -o conftest.o'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; }
25191 { ac_try
='$gcc_cv_ld -mavrxmega3 conftest.o -o conftest.elf'
25192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25193 (eval $ac_try) 2>&5
25195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25196 test $ac_status = 0; }; }
25197 { ac_try
='$gcc_cv_nm conftest.elf > conftest.nm'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; }
25203 if test -s conftest.nm
25205 if grep ' R xxvaryy' conftest.nm
> /dev
/null
; then
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25207 $as_echo "yes" >&6; }
25209 $as_echo "#define HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH 1" >>confdefs.h
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: avrxmega3 .rodata located in RAM" >&5
25213 $as_echo "no: avrxmega3 .rodata located in RAM" >&6; }
25214 echo "$as_me: nm output was" >&5
25215 cat conftest.nm
>&5
25216 avr_ld_ver
="`$gcc_cv_ld -v | sed -e 's:^.* ::'`"
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&5
25218 $as_echo "$as_me: WARNING: support for avrxmega3 .rodata in flash needs Binutils 2.29 or higher (have $avr_ld_ver)" >&2;}
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5
25222 $as_echo "test failed" >&6; }
25223 echo "$as_me: failed program was" >&5
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see \`config.log' for details" >&5
25226 $as_echo "$as_me: WARNING: see \`config.log' for details" >&2;}
25228 rm -f conftest.s conftest.o conftest.elf conftest.nm
25232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
25233 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
25234 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
25235 $as_echo_n "(cached) " >&6
25237 gcc_cv_as_cris_no_mul_bug
=no
25238 if test $in_tree_gas = yes; then
25239 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25240 then gcc_cv_as_cris_no_mul_bug
=yes
25242 elif test x
$gcc_cv_as != x
; then
25243 $as_echo '.text' > conftest.s
25244 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
25245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25246 (eval $ac_try) 2>&5
25248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25249 test $ac_status = 0; }; }
25251 gcc_cv_as_cris_no_mul_bug
=yes
25253 echo "configure: failed program was" >&5
25256 rm -f conftest.o conftest.s
25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
25260 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
25261 if test $gcc_cv_as_cris_no_mul_bug = yes; then
25263 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
25271 $as_echo_n "checking assembler for .register... " >&6; }
25272 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
25273 $as_echo_n "(cached) " >&6
25275 gcc_cv_as_sparc_register_op
=no
25276 if test x
$gcc_cv_as != x
; then
25277 $as_echo '.register %g2, #scratch' > conftest.s
25278 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25280 (eval $ac_try) 2>&5
25282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25283 test $ac_status = 0; }; }
25285 gcc_cv_as_sparc_register_op
=yes
25287 echo "configure: failed program was" >&5
25290 rm -f conftest.o conftest.s
25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
25294 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
25295 if test $gcc_cv_as_sparc_register_op = yes; then
25297 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
25303 $as_echo_n "checking assembler for -relax option... " >&6; }
25304 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
25305 $as_echo_n "(cached) " >&6
25307 gcc_cv_as_sparc_relax
=no
25308 if test x
$gcc_cv_as != x
; then
25309 $as_echo '.text' > conftest.s
25310 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
25311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25312 (eval $ac_try) 2>&5
25314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25315 test $ac_status = 0; }; }
25317 gcc_cv_as_sparc_relax
=yes
25319 echo "configure: failed program was" >&5
25322 rm -f conftest.o conftest.s
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
25326 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
25327 if test $gcc_cv_as_sparc_relax = yes; then
25329 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
25335 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
25336 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
25337 $as_echo_n "(cached) " >&6
25339 gcc_cv_as_sparc_gotdata_op
=no
25340 if test x
$gcc_cv_as != x
; then
25346 sethi %gdop_hix22(foo), %g1
25347 xor %g1, %gdop_lox10(foo), %g1
25348 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
25349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25356 if test x
$gcc_cv_ld != x \
25357 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25358 if test x
$gcc_cv_objdump != x
; then
25359 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
25360 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
25361 gcc_cv_as_sparc_gotdata_op
=no
25363 gcc_cv_as_sparc_gotdata_op
=yes
25369 echo "configure: failed program was" >&5
25372 rm -f conftest.o conftest.s
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
25376 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
25377 if test $gcc_cv_as_sparc_gotdata_op = yes; then
25379 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
25385 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
25386 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
25387 $as_echo_n "(cached) " >&6
25389 gcc_cv_as_sparc_ua_pcrel
=no
25390 if test x
$gcc_cv_as != x
; then
25397 .uaword %r_disp32(foo)' > conftest.s
25398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25400 (eval $ac_try) 2>&5
25402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25403 test $ac_status = 0; }; }
25405 if test x
$gcc_cv_ld != x \
25406 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25407 gcc_cv_as_sparc_ua_pcrel
=yes
25411 echo "configure: failed program was" >&5
25414 rm -f conftest.o conftest.s
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
25418 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
25419 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
25421 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
25425 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
25426 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
25427 $as_echo_n "(cached) " >&6
25429 gcc_cv_as_sparc_ua_pcrel_hidden
=no
25430 if test x
$gcc_cv_as != x
; then
25434 .uaword %r_disp32(foo)
25435 .byte 0x32, 0x33, 0x34
25439 .skip 4' > conftest.s
25440 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
25441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25442 (eval $ac_try) 2>&5
25444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25445 test $ac_status = 0; }; }
25447 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25448 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
25449 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
25450 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
25451 if $gcc_cv_objdump -R conftest
2> /dev
/null \
25452 |
grep 'DISP32' > /dev
/null
2>&1; then
25455 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
25460 echo "configure: failed program was" >&5
25463 rm -f conftest.o conftest.s
25466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
25467 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
25468 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
25470 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
25476 # unaligned pcrel relocs
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
25479 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
25480 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
25481 $as_echo_n "(cached) " >&6
25483 gcc_cv_as_sparc_offsetable_lo10
=no
25484 if test x
$gcc_cv_as != x
; then
25486 or %g1, %lo(ab) + 12, %g1
25487 or %g1, %lo(ab + 12), %g1' > conftest.s
25488 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
25489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25490 (eval $ac_try) 2>&5
25492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25493 test $ac_status = 0; }; }
25495 if test x
$gcc_cv_objdump != x \
25496 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
25497 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
25498 gcc_cv_as_sparc_offsetable_lo10
=yes
25501 echo "configure: failed program was" >&5
25504 rm -f conftest.o conftest.s
25507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
25508 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
25509 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
25511 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
25517 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
25518 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
25519 $as_echo_n "(cached) " >&6
25521 gcc_cv_as_sparc_fmaf
=no
25522 if test x
$gcc_cv_as != x
; then
25524 .register %g2, #scratch
25525 .register %g3, #scratch
25527 fmaddd %f0, %f2, %f4, %f6
25528 addxccc %g1, %g2, %g3
25529 fsrl32 %f2, %f4, %f8
25530 fnaddd %f10, %f12, %f14' > conftest.s
25531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
25532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25533 (eval $ac_try) 2>&5
25535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25536 test $ac_status = 0; }; }
25538 gcc_cv_as_sparc_fmaf
=yes
25540 echo "configure: failed program was" >&5
25543 rm -f conftest.o conftest.s
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
25547 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
25548 if test $gcc_cv_as_sparc_fmaf = yes; then
25550 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
25556 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
25557 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25560 gcc_cv_as_sparc_sparc4
=no
25561 if test x
$gcc_cv_as != x
; then
25563 .register %g2, #scratch
25564 .register %g3, #scratch
25567 1: cwbneg %g2, %g3, 1f
25570 aes_kexpand0 %f4, %f6, %f8
25571 des_round %f38, %f40, %f42, %f44
25572 camellia_f %f54, %f56, %f58, %f60
25573 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
25574 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
25575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25576 (eval $ac_try) 2>&5
25578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25579 test $ac_status = 0; }; }
25581 gcc_cv_as_sparc_sparc4
=yes
25583 echo "configure: failed program was" >&5
25586 rm -f conftest.o conftest.s
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
25590 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
25591 if test $gcc_cv_as_sparc_sparc4 = yes; then
25593 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC5 and VIS 4.0 instructions" >&5
25599 $as_echo_n "checking assembler for SPARC5 and VIS 4.0 instructions... " >&6; }
25600 if test "${gcc_cv_as_sparc_sparc5+set}" = set; then :
25601 $as_echo_n "(cached) " >&6
25603 gcc_cv_as_sparc_sparc5
=no
25604 if test x
$gcc_cv_as != x
; then
25606 .register %g2, #scratch
25607 .register %g3, #scratch
25609 subxc %g1, %g2, %g3
25610 fpadd8 %f0, %f2, %f4' > conftest.s
25611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc5 -o conftest.o conftest.s >&5'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; }
25618 gcc_cv_as_sparc_sparc5
=yes
25620 echo "configure: failed program was" >&5
25623 rm -f conftest.o conftest.s
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc5" >&5
25627 $as_echo "$gcc_cv_as_sparc_sparc5" >&6; }
25628 if test $gcc_cv_as_sparc_sparc5 = yes; then
25630 $as_echo "#define HAVE_AS_SPARC5_VIS4 1" >>confdefs.h
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC6 instructions" >&5
25636 $as_echo_n "checking assembler for SPARC6 instructions... " >&6; }
25637 if test "${gcc_cv_as_sparc_sparc6+set}" = set; then :
25638 $as_echo_n "(cached) " >&6
25640 gcc_cv_as_sparc_sparc6
=no
25641 if test x
$gcc_cv_as != x
; then
25643 .register %g2, #scratch
25644 .register %g3, #scratch
25647 fpsll64x %f0, %f2, %f4' > conftest.s
25648 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc6 -o conftest.o conftest.s >&5'
25649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25650 (eval $ac_try) 2>&5
25652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25653 test $ac_status = 0; }; }
25655 gcc_cv_as_sparc_sparc6
=yes
25657 echo "configure: failed program was" >&5
25660 rm -f conftest.o conftest.s
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc6" >&5
25664 $as_echo "$gcc_cv_as_sparc_sparc6" >&6; }
25665 if test $gcc_cv_as_sparc_sparc6 = yes; then
25667 $as_echo "#define HAVE_AS_SPARC6 1" >>confdefs.h
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
25673 $as_echo_n "checking assembler for LEON instructions... " >&6; }
25674 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
25675 $as_echo_n "(cached) " >&6
25677 gcc_cv_as_sparc_leon
=no
25678 if test x
$gcc_cv_as != x
; then
25680 .register %g2, #scratch
25681 .register %g3, #scratch
25685 casa [%g2] 0xb, %g3, %g1' > conftest.s
25686 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
25687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25688 (eval $ac_try) 2>&5
25690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25691 test $ac_status = 0; }; }
25693 gcc_cv_as_sparc_leon
=yes
25695 echo "configure: failed program was" >&5
25698 rm -f conftest.o conftest.s
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
25702 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
25703 if test $gcc_cv_as_sparc_leon = yes; then
25705 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
25711 i
[34567]86-*-* | x86_64-
*-*)
25714 # Full C++ conformance when using a shared libstdc++-v3 requires some
25715 # support from the Cygwin DLL, which in more recent versions exports
25716 # wrappers to aid in interposing and redirecting operators new, delete,
25717 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
25718 # are configuring for a version of Cygwin that exports the wrappers.
25719 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
25720 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
25721 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
25722 gcc_ac_cygwin_dll_wrappers
=yes
25724 gcc_ac_cygwin_dll_wrappers
=no
25728 # Can't check presence of libc functions during cross-compile, so
25729 # we just have to assume we're building for an up-to-date target.
25730 gcc_ac_cygwin_dll_wrappers
=yes
25733 cat >>confdefs.h
<<_ACEOF
25734 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
25739 cygwin
* | pe | mingw32
*)
25740 # Recent binutils allows the three-operand form of ".comm" on PE. This
25741 # definition is used unconditionally to initialise the default state of
25742 # the target option variable that governs usage of the feature.
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
25744 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
25745 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
25746 $as_echo_n "(cached) " >&6
25748 gcc_cv_as_comm_has_align
=no
25749 if test $in_tree_gas = yes; then
25750 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25751 then gcc_cv_as_comm_has_align
=yes
25753 elif test x
$gcc_cv_as != x
; then
25754 $as_echo '.comm foo,1,32' > conftest.s
25755 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25757 (eval $ac_try) 2>&5
25759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25760 test $ac_status = 0; }; }
25762 gcc_cv_as_comm_has_align
=yes
25764 echo "configure: failed program was" >&5
25767 rm -f conftest.o conftest.s
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
25771 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
25775 cat >>confdefs.h
<<_ACEOF
25776 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
25779 # Used for DWARF 2 in PE
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25781 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25782 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25783 $as_echo_n "(cached) " >&6
25785 gcc_cv_as_ix86_pe_secrel32
=no
25786 if test $in_tree_gas = yes; then
25787 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25788 then gcc_cv_as_ix86_pe_secrel32
=yes
25790 elif test x
$gcc_cv_as != x
; then
25794 .secrel32 foo' > conftest.s
25795 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25797 (eval $ac_try) 2>&5
25799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25800 test $ac_status = 0; }; }
25802 if test x
$gcc_cv_ld != x \
25803 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25804 gcc_cv_as_ix86_pe_secrel32
=yes
25808 echo "configure: failed program was" >&5
25811 rm -f conftest.o conftest.s
25814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25815 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25816 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25818 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25822 # Test if the assembler supports the extended form of the .section
25823 # directive that specifies section alignment. LTO support uses this,
25824 # but normally only after installation, so we warn but don't fail the
25825 # configure if LTO is enabled but the assembler does not support it.
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25827 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25828 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25829 $as_echo_n "(cached) " >&6
25831 gcc_cv_as_section_has_align
=no
25832 if test $in_tree_gas = yes; then
25833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25834 then gcc_cv_as_section_has_align
=yes
25836 elif test x
$gcc_cv_as != x
; then
25837 $as_echo '.section lto_test,"dr0"' > conftest.s
25838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25840 (eval $ac_try) 2>&5
25842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25843 test $ac_status = 0; }; }
25845 gcc_cv_as_section_has_align
=yes
25847 echo "configure: failed program was" >&5
25850 rm -f conftest.o conftest.s
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25854 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25857 if test x
$gcc_cv_as_section_has_align != xyes
; then
25858 case ",$enable_languages," in
25860 { $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
25861 $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;}
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -xbrace_comment" >&5
25869 $as_echo_n "checking assembler for -xbrace_comment... " >&6; }
25870 if test "${gcc_cv_as_ix86_xbrace_comment+set}" = set; then :
25871 $as_echo_n "(cached) " >&6
25873 gcc_cv_as_ix86_xbrace_comment
=no
25874 if test x
$gcc_cv_as != x
; then
25875 $as_echo '.text' > conftest.s
25876 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xbrace_comment=no -o conftest.o conftest.s >&5'
25877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25878 (eval $ac_try) 2>&5
25880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25881 test $ac_status = 0; }; }
25883 gcc_cv_as_ix86_xbrace_comment
=yes
25885 echo "configure: failed program was" >&5
25888 rm -f conftest.o conftest.s
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_xbrace_comment" >&5
25892 $as_echo "$gcc_cv_as_ix86_xbrace_comment" >&6; }
25893 if test $gcc_cv_as_ix86_xbrace_comment = yes; then
25895 $as_echo "#define HAVE_AS_XBRACE_COMMENT_OPTION 1" >>confdefs.h
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25901 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25902 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25903 $as_echo_n "(cached) " >&6
25905 gcc_cv_as_ix86_filds
=no
25906 if test x
$gcc_cv_as != x
; then
25907 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -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 gcc_cv_as_ix86_filds
=yes
25917 echo "configure: failed program was" >&5
25920 rm -f conftest.o conftest.s
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25924 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25925 if test $gcc_cv_as_ix86_filds = yes; then
25927 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25933 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25934 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25935 $as_echo_n "(cached) " >&6
25937 gcc_cv_as_ix86_fildq
=no
25938 if test x
$gcc_cv_as != x
; then
25939 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25940 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25942 (eval $ac_try) 2>&5
25944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25945 test $ac_status = 0; }; }
25947 gcc_cv_as_ix86_fildq
=yes
25949 echo "configure: failed program was" >&5
25952 rm -f conftest.o conftest.s
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25956 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25957 if test $gcc_cv_as_ix86_fildq = yes; then
25959 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25965 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25966 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25967 $as_echo_n "(cached) " >&6
25969 gcc_cv_as_ix86_cmov_sun_syntax
=no
25970 if test x
$gcc_cv_as != x
; then
25971 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25972 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25974 (eval $ac_try) 2>&5
25976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25977 test $ac_status = 0; }; }
25979 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25981 echo "configure: failed program was" >&5
25984 rm -f conftest.o conftest.s
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25988 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25989 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25991 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25997 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25998 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25999 $as_echo_n "(cached) " >&6
26001 gcc_cv_as_ix86_ffreep
=no
26002 if test x
$gcc_cv_as != x
; then
26003 $as_echo 'ffreep %st(1)' > conftest.s
26004 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26006 (eval $ac_try) 2>&5
26008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26009 test $ac_status = 0; }; }
26011 gcc_cv_as_ix86_ffreep
=yes
26013 echo "configure: failed program was" >&5
26016 rm -f conftest.o conftest.s
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
26020 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
26021 if test $gcc_cv_as_ix86_ffreep = yes; then
26023 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
26029 $as_echo_n "checking assembler for .quad directive... " >&6; }
26030 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
26031 $as_echo_n "(cached) " >&6
26033 gcc_cv_as_ix86_quad
=no
26034 if test x
$gcc_cv_as != x
; then
26035 $as_echo '.quad 0' > conftest.s
26036 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26038 (eval $ac_try) 2>&5
26040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26041 test $ac_status = 0; }; }
26043 gcc_cv_as_ix86_quad
=yes
26045 echo "configure: failed program was" >&5
26048 rm -f conftest.o conftest.s
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
26052 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
26053 if test $gcc_cv_as_ix86_quad = yes; then
26055 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
26061 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
26062 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
26063 $as_echo_n "(cached) " >&6
26065 gcc_cv_as_ix86_sahf
=no
26066 if test x
$gcc_cv_as != x
; then
26069 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26071 (eval $ac_try) 2>&5
26073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26074 test $ac_status = 0; }; }
26076 gcc_cv_as_ix86_sahf
=yes
26078 echo "configure: failed program was" >&5
26081 rm -f conftest.o conftest.s
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
26085 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
26086 if test $gcc_cv_as_ix86_sahf = yes; then
26088 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
26094 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
26095 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
26096 $as_echo_n "(cached) " >&6
26098 gcc_cv_as_ix86_interunit_movq
=no
26099 if test x
$gcc_cv_as != x
; then
26102 movq %rax, %xmm0' > conftest.s
26103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105 (eval $ac_try) 2>&5
26107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; }
26110 gcc_cv_as_ix86_interunit_movq
=yes
26112 echo "configure: failed program was" >&5
26115 rm -f conftest.o conftest.s
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
26119 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
26123 cat >>confdefs.h
<<_ACEOF
26124 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
26128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
26129 $as_echo_n "checking assembler for hle prefixes... " >&6; }
26130 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
26131 $as_echo_n "(cached) " >&6
26133 gcc_cv_as_ix86_hle
=no
26134 if test x
$gcc_cv_as != x
; then
26135 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
26136 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26138 (eval $ac_try) 2>&5
26140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26141 test $ac_status = 0; }; }
26143 gcc_cv_as_ix86_hle
=yes
26145 echo "configure: failed program was" >&5
26148 rm -f conftest.o conftest.s
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
26152 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
26153 if test $gcc_cv_as_ix86_hle = yes; then
26155 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
26161 $as_echo_n "checking assembler for swap suffix... " >&6; }
26162 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
26163 $as_echo_n "(cached) " >&6
26165 gcc_cv_as_ix86_swap
=no
26166 if test x
$gcc_cv_as != x
; then
26167 $as_echo 'movl.s %esp, %ebp' > conftest.s
26168 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26170 (eval $ac_try) 2>&5
26172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26173 test $ac_status = 0; }; }
26175 gcc_cv_as_ix86_swap
=yes
26177 echo "configure: failed program was" >&5
26180 rm -f conftest.o conftest.s
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
26184 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
26185 if test $gcc_cv_as_ix86_swap = yes; then
26187 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
26193 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
26194 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
26195 $as_echo_n "(cached) " >&6
26197 gcc_cv_as_ix86_diff_sect_delta
=no
26198 if test x
$gcc_cv_as != x
; then
26199 $as_echo '.section .rodata
26205 .L2: nop' > conftest.s
26206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26208 (eval $ac_try) 2>&5
26210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26211 test $ac_status = 0; }; }
26213 gcc_cv_as_ix86_diff_sect_delta
=yes
26215 echo "configure: failed program was" >&5
26218 rm -f conftest.o conftest.s
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
26222 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
26223 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
26225 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
26230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
26231 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
26232 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
26233 $as_echo_n "(cached) " >&6
26235 gcc_cv_as_ix86_rep_lock_prefix
=no
26236 if test x
$gcc_cv_as != x
; then
26237 $as_echo 'rep movsl
26242 lock addl %edi, (%eax,%esi)
26243 lock orl $0, (%esp)' > conftest.s
26244 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26246 (eval $ac_try) 2>&5
26248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26249 test $ac_status = 0; }; }
26251 gcc_cv_as_ix86_rep_lock_prefix
=yes
26253 echo "configure: failed program was" >&5
26256 rm -f conftest.o conftest.s
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
26260 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
26261 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
26263 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
26269 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
26270 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
26271 $as_echo_n "(cached) " >&6
26273 gcc_cv_as_ix86_ud2
=no
26274 if test x
$gcc_cv_as != x
; then
26275 $as_echo 'ud2' > conftest.s
26276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26278 (eval $ac_try) 2>&5
26280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26281 test $ac_status = 0; }; }
26283 gcc_cv_as_ix86_ud2
=yes
26285 echo "configure: failed program was" >&5
26288 rm -f conftest.o conftest.s
26291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
26292 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
26293 if test $gcc_cv_as_ix86_ud2 = yes; then
26295 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
26300 # Enforce 32-bit output with gas and gld.
26301 if test x
$gas = xyes
; then
26302 as_ix86_gas_32_opt
="--32"
26304 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26305 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
26306 ld_ix86_gld_32_opt
="-melf_i386_sol2"
26308 ld_ix86_gld_32_opt
="-melf_i386"
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
26313 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
26314 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
26315 $as_echo_n "(cached) " >&6
26317 gcc_cv_as_ix86_tlsgdplt
=no
26318 if test x
$gcc_cv_as != x
; then
26319 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
26320 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26322 (eval $ac_try) 2>&5
26324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; }
26327 if test x
$gcc_cv_ld != x \
26328 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26329 gcc_cv_as_ix86_tlsgdplt
=yes
26333 echo "configure: failed program was" >&5
26336 rm -f conftest.o conftest.s
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
26340 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
26341 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
26343 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
26349 .section .tdata,"aw'$tls_section_flag'",@progbits
26351 .section .text,"ax",@progbits
26352 call tls_ld@tlsldmplt'
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
26355 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
26356 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
26357 $as_echo_n "(cached) " >&6
26359 gcc_cv_as_ix86_tlsldmplt
=no
26360 if test x
$gcc_cv_as != x
; then
26361 $as_echo "$conftest_s" > conftest.s
26362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26364 (eval $ac_try) 2>&5
26366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26367 test $ac_status = 0; }; }
26369 if test x
$gcc_cv_ld != x \
26370 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
-G > /dev
/null
2>&1; then
26371 gcc_cv_as_ix86_tlsldmplt
=yes
26375 echo "configure: failed program was" >&5
26378 rm -f conftest.o conftest.s
26381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
26382 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
26386 cat >>confdefs.h
<<_ACEOF
26387 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
26392 .section .text,"ax",@progbits
26394 .type _start, @function
26396 leal value@tlsldm(%ebx), %eax
26397 call ___tls_get_addr@plt
26399 .section .tdata,"aw'$tls_section_flag'",@progbits
26400 .type value, @object
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
26403 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
26404 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
26405 $as_echo_n "(cached) " >&6
26407 gcc_cv_as_ix86_tlsldm
=no
26408 if test x
$gcc_cv_as != x
; then
26409 $as_echo "$conftest_s" > conftest.s
26410 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26412 (eval $ac_try) 2>&5
26414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26415 test $ac_status = 0; }; }
26417 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26418 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
26419 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
26420 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
26421 gcc_cv_as_ix86_tlsldm
=yes
26426 echo "configure: failed program was" >&5
26429 rm -f conftest.o conftest.s
26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
26433 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
26437 cat >>confdefs.h
<<_ACEOF
26438 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_GOT32X reloc" >&5
26452 $as_echo_n "checking assembler for R_386_GOT32X reloc... " >&6; }
26453 if test "${gcc_cv_as_ix86_got32x+set}" = set; then :
26454 $as_echo_n "(cached) " >&6
26456 gcc_cv_as_ix86_got32x
=no
26457 if test x
$gcc_cv_as != x
; then
26458 $as_echo "$conftest_s" > conftest.s
26459 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26461 (eval $ac_try) 2>&5
26463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26464 test $ac_status = 0; }; }
26466 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
26467 && test x
$gcc_cv_readelf != x \
26468 && $gcc_cv_readelf --relocs --wide conftest.o
2>&1 \
26469 |
grep R_386_GOT32X
> /dev
/null
2>&1 \
26470 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26471 if $gcc_cv_objdump -dw conftest
2>&1 \
26472 |
grep 0xffffff > /dev
/null
2>&1; then
26473 gcc_cv_as_ix86_got32x
=no
26475 gcc_cv_as_ix86_got32x
=yes
26480 echo "configure: failed program was" >&5
26483 rm -f conftest.o conftest.s
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_got32x" >&5
26487 $as_echo "$gcc_cv_as_ix86_got32x" >&6; }
26491 cat >>confdefs.h
<<_ACEOF
26492 #define HAVE_AS_IX86_GOT32X `if test x"$gcc_cv_as_ix86_got32x" = xyes; then echo 1; else echo 0; fi`
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
26497 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
26498 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
26499 $as_echo_n "(cached) " >&6
26501 gcc_cv_as_ix86_gotoff_in_data
=no
26502 if test $in_tree_gas = yes; then
26503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26504 then gcc_cv_as_ix86_gotoff_in_data
=yes
26506 elif test x
$gcc_cv_as != x
; then
26511 .long .L0@GOTOFF' > conftest.s
26512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26514 (eval $ac_try) 2>&5
26516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26517 test $ac_status = 0; }; }
26519 gcc_cv_as_ix86_gotoff_in_data
=yes
26521 echo "configure: failed program was" >&5
26524 rm -f conftest.o conftest.s
26527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
26528 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
26532 cat >>confdefs.h
<<_ACEOF
26533 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
26538 .section .text,"ax",@progbits
26540 .type _start, @function
26542 leal ld@tlsldm(%ecx), %eax
26543 call *___tls_get_addr@GOT(%ecx)
26544 leal gd@tlsgd(%ecx), %eax
26545 call *___tls_get_addr@GOT(%ecx)
26547 .section .tdata,"aw'$tls_section_flag'",@progbits
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for calling ___tls_get_addr via GOT" >&5
26556 $as_echo_n "checking assembler for calling ___tls_get_addr via GOT... " >&6; }
26557 if test "${gcc_cv_as_ix86_tls_get_addr_via_got+set}" = set; then :
26558 $as_echo_n "(cached) " >&6
26560 gcc_cv_as_ix86_tls_get_addr_via_got
=no
26561 if test x
$gcc_cv_as != x
; then
26562 $as_echo "$conftest_s" > conftest.s
26563 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gas_32_opt -o conftest.o conftest.s >&5'
26564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26565 (eval $ac_try) 2>&5
26567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26568 test $ac_status = 0; }; }
26570 if test x
$gcc_cv_ld != x \
26571 && $gcc_cv_ld $ld_ix86_gld_32_opt -o conftest conftest.o
> /dev
/null
2>&1; then
26572 gcc_cv_as_ix86_tls_get_addr_via_got
=yes
26576 echo "configure: failed program was" >&5
26579 rm -f conftest.o conftest.s
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tls_get_addr_via_got" >&5
26583 $as_echo "$gcc_cv_as_ix86_tls_get_addr_via_got" >&6; }
26587 cat >>confdefs.h
<<_ACEOF
26588 #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`
26594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
26595 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
26596 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
26597 $as_echo_n "(cached) " >&6
26599 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
26600 if test $in_tree_gas = yes; then
26601 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26602 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26604 elif test x
$gcc_cv_as != x
; then
26606 addl r15 = @ltoffx(x#), gp
26608 ld8.mov r16 = [r15], x#' > conftest.s
26609 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26611 (eval $ac_try) 2>&5
26613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26614 test $ac_status = 0; }; }
26616 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
26618 echo "configure: failed program was" >&5
26621 rm -f conftest.o conftest.s
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
26625 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
26626 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
26628 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
26640 $as_echo_n "checking assembler for .machine directive support... " >&6; }
26641 if test "${gcc_cv_as_machine_directive+set}" = set; then :
26642 $as_echo_n "(cached) " >&6
26644 gcc_cv_as_machine_directive
=no
26645 if test x
$gcc_cv_as != x
; then
26646 $as_echo ' .machine ppc7400' > conftest.s
26647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26649 (eval $ac_try) 2>&5
26651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26652 test $ac_status = 0; }; }
26654 gcc_cv_as_machine_directive
=yes
26656 echo "configure: failed program was" >&5
26659 rm -f conftest.o conftest.s
26662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
26663 $as_echo "$gcc_cv_as_machine_directive" >&6; }
26666 if test x
$gcc_cv_as_machine_directive != xyes
; then
26667 echo "*** This target requires an assembler supporting \".machine\"" >&2
26668 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
26669 test x
$build = x
$target && exit 1
26675 *-*-aix*) conftest_s
=' .machine "pwr5"
26678 *-*-darwin*) conftest_s
=' .text
26680 *) conftest_s
=' .machine power4
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
26686 $as_echo_n "checking assembler for mfcr field support... " >&6; }
26687 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
26688 $as_echo_n "(cached) " >&6
26690 gcc_cv_as_powerpc_mfcrf
=no
26691 if test $in_tree_gas = yes; then
26692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26693 then gcc_cv_as_powerpc_mfcrf
=yes
26695 elif test x
$gcc_cv_as != x
; then
26696 $as_echo "$conftest_s" > conftest.s
26697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26699 (eval $ac_try) 2>&5
26701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26702 test $ac_status = 0; }; }
26704 gcc_cv_as_powerpc_mfcrf
=yes
26706 echo "configure: failed program was" >&5
26709 rm -f conftest.o conftest.s
26712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
26713 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
26714 if test $gcc_cv_as_powerpc_mfcrf = yes; then
26716 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
26722 *-*-aix*) conftest_s
=' .csect .text[PR]
26724 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
26728 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
26729 *) conftest_s
=' .text
26731 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
26735 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
26736 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
26737 $as_echo_n "(cached) " >&6
26739 gcc_cv_as_powerpc_rel16
=no
26740 if test $in_tree_gas = yes; then
26741 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
26742 then gcc_cv_as_powerpc_rel16
=yes
26744 elif test x
$gcc_cv_as != x
; then
26745 $as_echo "$conftest_s" > conftest.s
26746 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26748 (eval $ac_try) 2>&5
26750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26751 test $ac_status = 0; }; }
26753 gcc_cv_as_powerpc_rel16
=yes
26755 echo "configure: failed program was" >&5
26758 rm -f conftest.o conftest.s
26761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
26762 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
26763 if test $gcc_cv_as_powerpc_rel16 = yes; then
26765 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
26771 *-*-aix*) conftest_s
=' .machine "pwr7"
26774 *) conftest_s
=' .machine power7
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26780 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26781 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26782 $as_echo_n "(cached) " >&6
26784 gcc_cv_as_powerpc_vsx
=no
26785 if test $in_tree_gas = yes; then
26786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26787 then gcc_cv_as_powerpc_vsx
=yes
26789 elif test x
$gcc_cv_as != x
; then
26790 $as_echo "$conftest_s" > conftest.s
26791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26793 (eval $ac_try) 2>&5
26795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26796 test $ac_status = 0; }; }
26798 gcc_cv_as_powerpc_vsx
=yes
26800 echo "configure: failed program was" >&5
26803 rm -f conftest.o conftest.s
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26807 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26808 if test $gcc_cv_as_powerpc_vsx = yes; then
26810 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26816 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26817 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26818 $as_echo_n "(cached) " >&6
26820 gcc_cv_as_powerpc_gnu_attribute
=no
26821 if test $in_tree_gas = yes; then
26822 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26823 then gcc_cv_as_powerpc_gnu_attribute
=yes
26825 elif test x
$gcc_cv_as != x
; then
26826 $as_echo '.gnu_attribute 4,1' > conftest.s
26827 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26829 (eval $ac_try) 2>&5
26831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26832 test $ac_status = 0; }; }
26834 gcc_cv_as_powerpc_gnu_attribute
=yes
26836 echo "configure: failed program was" >&5
26839 rm -f conftest.o conftest.s
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26843 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26844 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26846 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26852 $as_echo_n "checking assembler for tls marker support... " >&6; }
26853 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26854 $as_echo_n "(cached) " >&6
26856 gcc_cv_as_powerpc_tls_markers
=no
26857 if test $in_tree_gas = yes; then
26858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26859 then gcc_cv_as_powerpc_tls_markers
=yes
26861 elif test x
$gcc_cv_as != x
; then
26862 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26863 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26865 (eval $ac_try) 2>&5
26867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26868 test $ac_status = 0; }; }
26870 gcc_cv_as_powerpc_tls_markers
=yes
26872 echo "configure: failed program was" >&5
26875 rm -f conftest.o conftest.s
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26879 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26880 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26882 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for prologue entry point marker support" >&5
26888 $as_echo_n "checking assembler for prologue entry point marker support... " >&6; }
26889 if test "${gcc_cv_as_powerpc_entry_markers+set}" = set; then :
26890 $as_echo_n "(cached) " >&6
26892 gcc_cv_as_powerpc_entry_markers
=no
26893 if test $in_tree_gas = yes; then
26894 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
26895 then gcc_cv_as_powerpc_entry_markers
=yes
26897 elif test x
$gcc_cv_as != x
; then
26898 $as_echo ' .reloc .,R_PPC64_ENTRY; nop' > conftest.s
26899 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a64 --fatal-warnings -o conftest.o conftest.s >&5'
26900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26901 (eval $ac_try) 2>&5
26903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26904 test $ac_status = 0; }; }
26906 gcc_cv_as_powerpc_entry_markers
=yes
26908 echo "configure: failed program was" >&5
26911 rm -f conftest.o conftest.s
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_entry_markers" >&5
26915 $as_echo "$gcc_cv_as_powerpc_entry_markers" >&6; }
26916 if test $gcc_cv_as_powerpc_entry_markers = yes; then
26918 $as_echo "#define HAVE_AS_ENTRY_MARKERS 1" >>confdefs.h
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX .ref support" >&5
26926 $as_echo_n "checking assembler for AIX .ref support... " >&6; }
26927 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26928 $as_echo_n "(cached) " >&6
26930 gcc_cv_as_aix_ref
=no
26931 if test $in_tree_gas = yes; then
26932 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26933 then gcc_cv_as_aix_ref
=yes
26935 elif test x
$gcc_cv_as != x
; then
26936 $as_echo ' .csect stuff[rw]
26942 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26944 (eval $ac_try) 2>&5
26946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26947 test $ac_status = 0; }; }
26949 gcc_cv_as_aix_ref
=yes
26951 echo "configure: failed program was" >&5
26954 rm -f conftest.o conftest.s
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26958 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26959 if test $gcc_cv_as_aix_ref = yes; then
26961 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for AIX DWARF location lists section support" >&5
26967 $as_echo_n "checking assembler for AIX DWARF location lists section support... " >&6; }
26968 if test "${gcc_cv_as_aix_dwloc+set}" = set; then :
26969 $as_echo_n "(cached) " >&6
26971 gcc_cv_as_aix_dwloc
=no
26972 if test $in_tree_gas = yes; then
26973 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26974 then gcc_cv_as_aix_dwloc
=yes
26976 elif test x
$gcc_cv_as != x
; then
26977 $as_echo ' .dwsect 0xA0000
26981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26983 (eval $ac_try) 2>&5
26985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26986 test $ac_status = 0; }; }
26988 gcc_cv_as_aix_dwloc
=yes
26990 echo "configure: failed program was" >&5
26993 rm -f conftest.o conftest.s
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_dwloc" >&5
26997 $as_echo "$gcc_cv_as_aix_dwloc" >&6; }
26998 if test $gcc_cv_as_aix_dwloc = yes; then
27000 $as_echo "#define HAVE_XCOFF_DWARF_EXTRAS 1" >>confdefs.h
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
27010 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
27011 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
27012 $as_echo_n "(cached) " >&6
27014 gcc_cv_as_mips_explicit_relocs
=no
27015 if test $in_tree_gas = yes; then
27016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
27017 then gcc_cv_as_mips_explicit_relocs
=yes
27019 elif test x
$gcc_cv_as != x
; then
27020 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
27021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27023 (eval $ac_try) 2>&5
27025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27026 test $ac_status = 0; }; }
27028 gcc_cv_as_mips_explicit_relocs
=yes
27030 echo "configure: failed program was" >&5
27033 rm -f conftest.o conftest.s
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
27037 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
27038 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27039 if test x
$target_cpu_default = x
27040 then target_cpu_default
=MASK_EXPLICIT_RELOCS
27041 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
27047 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
27048 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
27049 $as_echo_n "(cached) " >&6
27051 gcc_cv_as_mips_no_shared
=no
27052 if test $in_tree_gas = yes; then
27053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
27054 then gcc_cv_as_mips_no_shared
=yes
27056 elif test x
$gcc_cv_as != x
; then
27057 $as_echo 'nop' > conftest.s
27058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
27059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27060 (eval $ac_try) 2>&5
27062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27063 test $ac_status = 0; }; }
27065 gcc_cv_as_mips_no_shared
=yes
27067 echo "configure: failed program was" >&5
27070 rm -f conftest.o conftest.s
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
27074 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
27075 if test $gcc_cv_as_mips_no_shared = yes; then
27077 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27083 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27084 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
27085 $as_echo_n "(cached) " >&6
27087 gcc_cv_as_mips_gnu_attribute
=no
27088 if test $in_tree_gas = yes; then
27089 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27090 then gcc_cv_as_mips_gnu_attribute
=yes
27092 elif test x
$gcc_cv_as != x
; then
27093 $as_echo '.gnu_attribute 4,1' > conftest.s
27094 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27096 (eval $ac_try) 2>&5
27098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27099 test $ac_status = 0; }; }
27101 gcc_cv_as_mips_gnu_attribute
=yes
27103 echo "configure: failed program was" >&5
27106 rm -f conftest.o conftest.s
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
27110 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
27111 if test $gcc_cv_as_mips_gnu_attribute = yes; then
27113 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
27119 $as_echo_n "checking assembler for .module support... " >&6; }
27120 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
27121 $as_echo_n "(cached) " >&6
27123 gcc_cv_as_mips_dot_module
=no
27124 if test x
$gcc_cv_as != x
; then
27125 $as_echo '.module mips2
27126 .module fp=xx' > conftest.s
27127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
27128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27129 (eval $ac_try) 2>&5
27131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27132 test $ac_status = 0; }; }
27134 gcc_cv_as_mips_dot_module
=yes
27136 echo "configure: failed program was" >&5
27139 rm -f conftest.o conftest.s
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
27143 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
27144 if test $gcc_cv_as_mips_dot_module = yes; then
27146 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
27150 if test x
$gcc_cv_as_mips_dot_module = xno \
27151 && test x
$with_fp_32 != x
; then
27152 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
27156 $as_echo_n "checking assembler for .micromips support... " >&6; }
27157 if test "${gcc_cv_as_micromips_support+set}" = set; then :
27158 $as_echo_n "(cached) " >&6
27160 gcc_cv_as_micromips_support
=no
27161 if test x
$gcc_cv_as != x
; then
27162 $as_echo '.set micromips' > conftest.s
27163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
27164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27165 (eval $ac_try) 2>&5
27167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27168 test $ac_status = 0; }; }
27170 gcc_cv_as_micromips_support
=yes
27172 echo "configure: failed program was" >&5
27175 rm -f conftest.o conftest.s
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
27179 $as_echo "$gcc_cv_as_micromips_support" >&6; }
27180 if test $gcc_cv_as_micromips_support = yes; then
27182 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
27187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
27188 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
27189 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
27190 $as_echo_n "(cached) " >&6
27192 gcc_cv_as_mips_dtprelword
=no
27193 if test $in_tree_gas = yes; then
27194 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27195 then gcc_cv_as_mips_dtprelword
=yes
27197 elif test x
$gcc_cv_as != x
; then
27198 $as_echo '.section .tdata,"awT",@progbits
27202 .dtprelword x+0x8000' > conftest.s
27203 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27205 (eval $ac_try) 2>&5
27207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27208 test $ac_status = 0; }; }
27210 gcc_cv_as_mips_dtprelword
=yes
27212 echo "configure: failed program was" >&5
27215 rm -f conftest.o conftest.s
27218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
27219 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
27220 if test $gcc_cv_as_mips_dtprelword = yes; then
27222 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
27228 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
27229 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
27230 $as_echo_n "(cached) " >&6
27232 gcc_cv_as_mips_dspr1_mult
=no
27233 if test x
$gcc_cv_as != x
; then
27234 $as_echo ' .set mips32r2
27242 multu $ac3,$4,$5' > conftest.s
27243 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27245 (eval $ac_try) 2>&5
27247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27248 test $ac_status = 0; }; }
27250 gcc_cv_as_mips_dspr1_mult
=yes
27252 echo "configure: failed program was" >&5
27255 rm -f conftest.o conftest.s
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
27259 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
27260 if test $gcc_cv_as_mips_dspr1_mult = yes; then
27262 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
27268 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
27269 gcc_cv_as_ld_jalr_reloc
=no
27270 if test $gcc_cv_as_mips_explicit_relocs = yes; then
27271 if test $in_tree_ld = yes ; then
27272 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 \
27273 && test $in_tree_ld_is_elf = yes; then
27274 gcc_cv_as_ld_jalr_reloc
=yes
27276 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27277 echo ' .ent x' > conftest.s
27278 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
27279 echo ' lw $25,%call16(y)($28)' >> conftest.s
27280 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
27281 echo '1: jalr $25' >> conftest.s
27282 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
27283 echo '1: jalr $25' >> conftest.s
27284 echo ' .end x' >> conftest.s
27285 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
27286 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
27287 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
27288 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
27289 gcc_cv_as_ld_jalr_reloc
=yes
27295 if test $gcc_cv_as_ld_jalr_reloc = yes; then
27296 if test x
$target_cpu_default = x
; then
27297 target_cpu_default
=MASK_RELAX_PIC_CALLS
27299 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
27303 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
27306 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
27307 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
27308 $as_echo_n "(cached) " >&6
27310 gcc_cv_ld_mips_personality_relaxation
=no
27311 if test $in_tree_ld = yes ; then
27312 if test "$gcc_cv_gld_major_version" -eq 2 \
27313 -a "$gcc_cv_gld_minor_version" -ge 21 \
27314 -o "$gcc_cv_gld_major_version" -gt 2; then
27315 gcc_cv_ld_mips_personality_relaxation
=yes
27317 elif test x
$gcc_cv_as != x \
27318 -a x
$gcc_cv_ld != x \
27319 -a x
$gcc_cv_readelf != x
; then
27320 cat > conftest.s
<<EOF
27322 .cfi_personality 0x80,indirect_ptr
27329 .section .data,"aw",@progbits
27333 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
27334 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
27335 if $gcc_cv_readelf -d conftest
2>&1 \
27336 |
grep TEXTREL
> /dev
/null
2>&1; then
27338 elif $gcc_cv_readelf --relocs conftest
2>&1 \
27339 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
27342 gcc_cv_ld_mips_personality_relaxation
=yes
27346 rm -f conftest.s conftest.o conftest
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
27349 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
27350 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
27352 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
27357 $as_echo_n "checking assembler for -mnan= support... " >&6; }
27358 if test "${gcc_cv_as_mips_nan+set}" = set; then :
27359 $as_echo_n "(cached) " >&6
27361 gcc_cv_as_mips_nan
=no
27362 if test x
$gcc_cv_as != x
; then
27363 $as_echo '' > conftest.s
27364 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
27365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27366 (eval $ac_try) 2>&5
27368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27369 test $ac_status = 0; }; }
27371 gcc_cv_as_mips_nan
=yes
27373 echo "configure: failed program was" >&5
27376 rm -f conftest.o conftest.s
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
27380 $as_echo "$gcc_cv_as_mips_nan" >&6; }
27381 if test $gcc_cv_as_mips_nan = yes; then
27383 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
27387 if test x
$gcc_cv_as_mips_nan = xno \
27388 && test x
$with_nan != x
; then
27389 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
27393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
27394 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
27395 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
27396 $as_echo_n "(cached) " >&6
27398 gcc_cv_as_s390_gnu_attribute
=no
27399 if test $in_tree_gas = yes; then
27400 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27401 then gcc_cv_as_s390_gnu_attribute
=yes
27403 elif test x
$gcc_cv_as != x
; then
27404 $as_echo '.gnu_attribute 8,1' > conftest.s
27405 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27407 (eval $ac_try) 2>&5
27409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27410 test $ac_status = 0; }; }
27412 gcc_cv_as_s390_gnu_attribute
=yes
27414 echo "configure: failed program was" >&5
27417 rm -f conftest.o conftest.s
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
27421 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
27422 if test $gcc_cv_as_s390_gnu_attribute = yes; then
27424 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine and .machinemode support" >&5
27429 $as_echo_n "checking assembler for .machine and .machinemode support... " >&6; }
27430 if test "${gcc_cv_as_s390_machine_machinemode+set}" = set; then :
27431 $as_echo_n "(cached) " >&6
27433 gcc_cv_as_s390_machine_machinemode
=no
27434 if test $in_tree_gas = yes; then
27435 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 24 \) \* 1000 + 0`
27436 then gcc_cv_as_s390_machine_machinemode
=yes
27438 elif test x
$gcc_cv_as != x
; then
27439 $as_echo ' .machinemode push
27442 .machine pop' > conftest.s
27443 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27445 (eval $ac_try) 2>&5
27447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27448 test $ac_status = 0; }; }
27450 gcc_cv_as_s390_machine_machinemode
=yes
27452 echo "configure: failed program was" >&5
27455 rm -f conftest.o conftest.s
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_machine_machinemode" >&5
27459 $as_echo "$gcc_cv_as_s390_machine_machinemode" >&6; }
27460 if test $gcc_cv_as_s390_machine_machinemode = yes; then
27462 $as_echo "#define HAVE_AS_MACHINE_MACHINEMODE 1" >>confdefs.h
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for architecture modifiers support" >&5
27467 $as_echo_n "checking assembler for architecture modifiers support... " >&6; }
27468 if test "${gcc_cv_as_s390_architecture_modifiers+set}" = set; then :
27469 $as_echo_n "(cached) " >&6
27471 gcc_cv_as_s390_architecture_modifiers
=no
27472 if test $in_tree_gas = yes; then
27473 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 26 \) \* 1000 + 0`
27474 then gcc_cv_as_s390_architecture_modifiers
=yes
27476 elif test x
$gcc_cv_as != x
; then
27477 $as_echo ' .machine z13+vx ' > conftest.s
27478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27480 (eval $ac_try) 2>&5
27482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27483 test $ac_status = 0; }; }
27485 gcc_cv_as_s390_architecture_modifiers
=yes
27487 echo "configure: failed program was" >&5
27490 rm -f conftest.o conftest.s
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_architecture_modifiers" >&5
27494 $as_echo "$gcc_cv_as_s390_architecture_modifiers" >&6; }
27495 if test $gcc_cv_as_s390_architecture_modifiers = yes; then
27497 $as_echo "#define HAVE_AS_ARCHITECTURE_MODIFIERS 1" >>confdefs.h
27504 # Mips and HP-UX need the GNU assembler.
27505 # Linux on IA64 might be able to use the Intel assembler.
27508 mips
*-*-* |
*-*-hpux* )
27509 if test x
$gas_flag = xyes \
27510 ||
test x
"$host" != x
"$build" \
27511 ||
test ! -x "$gcc_cv_as" \
27512 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
27515 echo "*** This configuration requires the GNU assembler" >&2
27521 # ??? Not all targets support dwarf2 debug_line, even within a version
27522 # of gas. Moreover, we need to emit a valid instruction to trigger any
27523 # info to the output file. So, as supported targets are added to gas 2.11,
27524 # add some instruction here to (also) show we expect this might work.
27525 # ??? Once 2.11 is released, probably need to add first known working
27526 # version to the per-target configury.
27527 case "$cpu_type" in
27528 aarch64 | alpha | arc | arm | avr | bfin | cris | csky | i386 | m32c | m68k \
27529 | microblaze | mips | nios2 | pa | riscv | rs6000 | score | sparc | spu \
27530 | tilegx | tilepro | visium | xstormy16 | xtensa
)
27540 if test x
"$insn" != x
; then
27542 .file 1 \"conftest.s\"
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
27546 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
27547 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
27548 $as_echo_n "(cached) " >&6
27550 gcc_cv_as_dwarf2_debug_line
=no
27551 if test $in_tree_gas = yes; then
27552 if test $in_tree_gas_is_elf = yes \
27553 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27554 then gcc_cv_as_dwarf2_debug_line
=yes
27556 elif test x
$gcc_cv_as != x
; then
27557 $as_echo "$conftest_s" > conftest.s
27558 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27560 (eval $ac_try) 2>&5
27562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27563 test $ac_status = 0; }; }
27565 if test x
$gcc_cv_objdump != x \
27566 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
27567 |
grep debug_line
> /dev
/null
2>&1; then
27568 gcc_cv_as_dwarf2_debug_line
=yes
27571 echo "configure: failed program was" >&5
27574 rm -f conftest.o conftest.s
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
27578 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
27582 # The .debug_line file table must be in the exact order that
27583 # we specified the files, since these indices are also used
27584 # by DW_AT_decl_file. Approximate this test by testing if
27585 # the assembler bitches if the same index is assigned twice.
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
27587 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
27588 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
27589 $as_echo_n "(cached) " >&6
27591 gcc_cv_as_dwarf2_file_buggy
=no
27592 if test x
$gcc_cv_as != x
; then
27593 $as_echo ' .file 1 "foo.s"
27594 .file 1 "bar.s"' > conftest.s
27595 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27597 (eval $ac_try) 2>&5
27599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27600 test $ac_status = 0; }; }
27602 gcc_cv_as_dwarf2_file_buggy
=yes
27604 echo "configure: failed program was" >&5
27607 rm -f conftest.o conftest.s
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
27611 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
27615 if test $gcc_cv_as_dwarf2_debug_line = yes \
27616 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
27618 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
27621 if test $gcc_cv_as_leb128 = yes; then
27623 .file 1 \"conftest.s\"
27624 .loc 1 3 0 view .LVU1
27630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_view support" >&5
27631 $as_echo_n "checking assembler for dwarf2 debug_view support... " >&6; }
27632 if test "${gcc_cv_as_dwarf2_debug_view+set}" = set; then :
27633 $as_echo_n "(cached) " >&6
27635 gcc_cv_as_dwarf2_debug_view
=no
27636 if test $in_tree_gas = yes; then
27637 if test $in_tree_gas_is_elf = yes \
27638 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 27 \) \* 1000 + 0`
27639 then gcc_cv_as_dwarf2_debug_view
=yes
27641 elif test x
$gcc_cv_as != x
; then
27642 $as_echo "$conftest_s" > conftest.s
27643 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27645 (eval $ac_try) 2>&5
27647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27648 test $ac_status = 0; }; }
27650 gcc_cv_as_dwarf2_debug_view
=yes
27652 echo "configure: failed program was" >&5
27655 rm -f conftest.o conftest.s
27658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_view" >&5
27659 $as_echo "$gcc_cv_as_dwarf2_debug_view" >&6; }
27660 if test $gcc_cv_as_dwarf2_debug_view = yes; then
27662 $as_echo "#define HAVE_AS_DWARF2_DEBUG_VIEW 1" >>confdefs.h
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
27670 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
27671 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
27672 $as_echo_n "(cached) " >&6
27674 gcc_cv_as_gdwarf2_flag
=no
27675 if test $in_tree_gas = yes; then
27676 if test $in_tree_gas_is_elf = yes \
27677 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27678 then gcc_cv_as_gdwarf2_flag
=yes
27680 elif test x
$gcc_cv_as != x
; then
27681 $as_echo "$insn" > conftest.s
27682 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
27683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27684 (eval $ac_try) 2>&5
27686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27687 test $ac_status = 0; }; }
27689 gcc_cv_as_gdwarf2_flag
=yes
27691 echo "configure: failed program was" >&5
27694 rm -f conftest.o conftest.s
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
27698 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
27699 if test $gcc_cv_as_gdwarf2_flag = yes; then
27701 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
27707 $as_echo_n "checking assembler for --gstabs option... " >&6; }
27708 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
27709 $as_echo_n "(cached) " >&6
27711 gcc_cv_as_gstabs_flag
=no
27712 if test $in_tree_gas = yes; then
27713 if test $in_tree_gas_is_elf = yes \
27714 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
27715 then gcc_cv_as_gstabs_flag
=yes
27717 elif test x
$gcc_cv_as != x
; then
27718 $as_echo "$insn" > conftest.s
27719 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
27720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27721 (eval $ac_try) 2>&5
27723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27724 test $ac_status = 0; }; }
27726 gcc_cv_as_gstabs_flag
=yes
27728 echo "configure: failed program was" >&5
27731 rm -f conftest.o conftest.s
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27735 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27736 if test $gcc_cv_as_gstabs_flag = yes; then
27738 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27744 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27745 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27746 $as_echo_n "(cached) " >&6
27748 gcc_cv_as_debug_prefix_map_flag
=no
27749 if test $in_tree_gas = yes; then
27750 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27751 then gcc_cv_as_debug_prefix_map_flag
=yes
27753 elif test x
$gcc_cv_as != x
; then
27754 $as_echo "$insn" > conftest.s
27755 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27757 (eval $ac_try) 2>&5
27759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27760 test $ac_status = 0; }; }
27762 gcc_cv_as_debug_prefix_map_flag
=yes
27764 echo "configure: failed program was" >&5
27767 rm -f conftest.o conftest.s
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27771 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27772 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27774 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27781 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27782 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27783 $as_echo_n "(cached) " >&6
27785 gcc_cv_as_compress_debug
=no
27786 if test x
$gcc_cv_as != x
; then
27787 $as_echo '' > conftest.s
27788 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27790 (eval $ac_try) 2>&5
27792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27793 test $ac_status = 0; }; }
27795 # gas compiled without zlib cannot compress debug sections and warns
27796 # about it, but still exits successfully. So check for this, too.
27797 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27799 gcc_cv_as_compress_debug
=0
27800 # Since binutils 2.26, gas supports --compress-debug-sections=type,
27801 # defaulting to the ELF gABI format.
27802 elif $gcc_cv_as --compress-debug-sections=zlib-gnu
-o conftest.o conftest.s
> /dev
/null
2>&1
27804 gcc_cv_as_compress_debug
=2
27805 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27806 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27807 # Before binutils 2.26, gas only supported --compress-debug-options and
27808 # emitted the traditional GNU format.
27809 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27811 gcc_cv_as_compress_debug
=1
27812 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27813 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27815 gcc_cv_as_compress_debug
=0
27818 echo "configure: failed program was" >&5
27821 rm -f conftest.o conftest.s
27824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27825 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27829 cat >>confdefs.h
<<_ACEOF
27830 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27834 cat >>confdefs.h
<<_ACEOF
27835 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27839 cat >>confdefs.h
<<_ACEOF
27840 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27845 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27846 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27847 $as_echo_n "(cached) " >&6
27849 gcc_cv_as_lcomm_with_alignment
=no
27850 if test x
$gcc_cv_as != x
; then
27851 $as_echo '.lcomm bar,4,16' > conftest.s
27852 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27854 (eval $ac_try) 2>&5
27856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27857 test $ac_status = 0; }; }
27859 gcc_cv_as_lcomm_with_alignment
=yes
27861 echo "configure: failed program was" >&5
27864 rm -f conftest.o conftest.s
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27868 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27869 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27871 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27876 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27877 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27878 && test "$prefix" != "NONE"; then
27880 cat >>confdefs.h
<<_ACEOF
27881 #define PREFIX_INCLUDE_DIR "$prefix/include"
27886 # Determine the version of glibc, if any, used on the target.
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27888 $as_echo_n "checking for target glibc version... " >&6; }
27890 # Check whether --with-glibc-version was given.
27891 if test "${with_glibc_version+set}" = set; then :
27892 withval
=$with_glibc_version;
27893 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27894 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27895 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27897 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27901 glibc_version_major
=0
27902 glibc_version_minor
=0
27903 if test -f $target_header_dir/features.h \
27904 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27905 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27906 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27907 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27912 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27914 cat >>confdefs.h
<<_ACEOF
27915 #define TARGET_GLIBC_MAJOR $glibc_version_major
27919 cat >>confdefs.h
<<_ACEOF
27920 #define TARGET_GLIBC_MINOR $glibc_version_minor
27924 # Check whether --enable-gnu-unique-object was given.
27925 if test "${enable_gnu_unique_object+set}" = set; then :
27926 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27928 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27929 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27933 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27934 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27935 $as_echo_n "(cached) " >&6
27937 gcc_cv_as_gnu_unique_object
=no
27938 if test $in_tree_gas = yes; then
27939 if test $in_tree_gas_is_elf = yes \
27940 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27941 then gcc_cv_as_gnu_unique_object
=yes
27943 elif test x
$gcc_cv_as != x
; then
27944 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27947 (eval $ac_try) 2>&5
27949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27950 test $ac_status = 0; }; }
27952 gcc_cv_as_gnu_unique_object
=yes
27954 echo "configure: failed program was" >&5
27957 rm -f conftest.o conftest.s
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27961 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27962 if test $gcc_cv_as_gnu_unique_object = yes; then
27963 # We need to unquote above to to use the definition from config.gcc.
27964 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27966 if test $glibc_version_major -gt 2 \
27967 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27968 enable_gnu_unique_object
=yes
27975 if test x
$enable_gnu_unique_object = xyes
; then
27977 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27982 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27983 if test "${gcc_cv_as_line_zero+set}" = set; then :
27984 $as_echo_n "(cached) " >&6
27986 gcc_cv_as_line_zero
=no
27987 if test $in_tree_gas = yes; then
27988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27989 then gcc_cv_as_line_zero
=yes
27991 elif test "x$gcc_cv_as" != x
; then
27992 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27993 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27995 (eval $ac_try) 2>&5
27997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27998 test $ac_status = 0; }; } &&
27999 test "x`cat conftest.out`" = x
28001 gcc_cv_as_line_zero
=yes
28003 echo "configure: failed program was" >&5
28005 echo "configure: error output was" >&5
28006 cat conftest.out
>&5
28008 rm -f conftest.o conftest.s conftest.out
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
28012 $as_echo "$gcc_cv_as_line_zero" >&6; }
28013 if test "x$gcc_cv_as_line_zero" = xyes
; then
28015 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for thin archives" >&5
28020 $as_echo_n "checking support for thin archives... " >&6; }
28021 thin_archive_support
=no
28022 echo 'int main (void) { return 0; }' > conftest.c
28023 if ($AR --version |
sed 1q |
grep "GNU ar" \
28024 && $CC $CFLAGS -c conftest.c \
28025 && $AR rcT conftest.a conftest.o \
28026 && $CC $CFLAGS $LDFLAGS -o conftest conftest.a
) >/dev
/null
2>&1; then
28027 thin_archive_support
=yes
28029 rm -f conftest.c conftest.o conftest.a conftest
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $thin_archive_support" >&5
28031 $as_echo "$thin_archive_support" >&6; }
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
28035 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
28036 gcc_cv_ld_eh_frame_hdr
=no
28037 if test $in_tree_ld = yes ; then
28038 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 \
28039 && test $in_tree_ld_is_elf = yes; then
28040 gcc_cv_ld_eh_frame_hdr
=yes
28042 elif test x
$gcc_cv_ld != x
; then
28043 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28044 # Check if linker supports --eh-frame-hdr option
28045 if $gcc_cv_ld --help 2>&1 |
grep eh-frame-hdr
> /dev
/null
; then
28046 gcc_cv_ld_eh_frame_hdr
=yes
28051 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
28052 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
28053 gcc_cv_ld_eh_frame_hdr
=yes
28060 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
28062 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
28066 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
28069 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
28070 gcc_cv_ld_eh_frame_ciev3
=no
28071 if test $in_tree_ld = yes ; then
28072 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 \
28073 && test $in_tree_ld_is_elf = yes; then
28074 gcc_cv_ld_eh_frame_ciev3
=yes
28076 elif test x
$gcc_cv_ld != x
; then
28077 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28078 gcc_cv_ld_eh_frame_ciev3
=yes
28079 if test 0"$ld_date" -lt 20040513; then
28080 if test -n "$ld_date"; then
28081 # If there was date string, but was earlier than 2004-05-13, fail
28082 gcc_cv_ld_eh_frame_ciev3
=no
28083 elif test "$ld_vers_major" -lt 2; then
28084 gcc_cv_ld_eh_frame_ciev3
=no
28085 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
28086 gcc_cv_ld_eh_frame_ciev3
=no
28092 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
28093 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
28094 gcc_cv_ld_eh_frame_ciev3
=yes
28101 cat >>confdefs.h
<<_ACEOF
28102 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
28106 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
28109 $as_echo_n "checking linker position independent executable support... " >&6; }
28111 if test $in_tree_ld = yes ; then
28113 # Full PIE support on Solaris was only introduced in gld 2.26.
28114 *-*-solaris2*) gcc_gld_pie_min_version
=26 ;;
28115 *) gcc_gld_pie_min_version
=15 ;;
28117 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 \
28118 && test $in_tree_ld_is_elf = yes; then
28121 elif test x
$gcc_cv_ld != x
; then
28122 # Check if linker supports -pie option
28123 if $gcc_cv_ld --help 2>&1 |
grep -- -pie > /dev
/null
; then
28127 if echo "$ld_ver" |
grep GNU
> /dev
/null \
28128 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28135 *-*-solaris2.1
[1-9]*)
28136 # Solaris 11.3 added PIE support.
28137 if $gcc_cv_ld -z help 2>&1 |
grep -- type.
*pie
> /dev
/null
; then
28144 if test x
"$gcc_cv_ld_pie" = xyes
; then
28146 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
28150 $as_echo "$gcc_cv_ld_pie" >&6; }
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
28153 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
28154 gcc_cv_ld_pie_copyreloc
=no
28155 if test $gcc_cv_ld_pie = yes ; then
28156 if test $in_tree_ld = yes ; then
28157 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
28158 gcc_cv_ld_pie_copyreloc
=yes
28160 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28161 # Check if linker supports -pie option with copy reloc
28163 i?
86-*-linux* | x86_64-
*-linux*)
28164 cat > conftest1.s
<<EOF
28167 .type a_glob, @object
28172 cat > conftest2.s
<<EOF
28175 .type main, @function
28177 movl %eax, a_glob(%rip)
28180 .section .data.rel,"aw",@progbits
28185 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28186 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
28187 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28188 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
28189 gcc_cv_ld_pie_copyreloc
=yes
28191 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
28197 cat >>confdefs.h
<<_ACEOF
28198 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
28202 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
28205 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
28206 gcc_cv_ld_eh_gc_sections
=no
28207 if test $in_tree_ld = yes ; then
28208 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 \
28209 && test $in_tree_ld_is_elf = yes; then
28210 gcc_cv_ld_eh_gc_sections
=yes
28212 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
28213 cat > conftest.s
<<EOF
28216 .type _start, @function
28219 .size _start, .-_start
28220 .section .text.foo,"ax",@progbits
28221 .type foo, @function
28225 .section .gcc_except_table.foo,"a",@progbits
28228 .section .eh_frame,"a",@progbits
28231 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28232 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28233 |
grep "gc-sections option ignored" > /dev
/null
; then
28234 gcc_cv_ld_eh_gc_sections
=no
28235 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28236 |
grep gcc_except_table
> /dev
/null
; then
28237 gcc_cv_ld_eh_gc_sections
=yes
28238 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
28239 if test x
$gcc_cv_as_comdat_group != xyes
; then
28240 gcc_cv_ld_eh_gc_sections
=no
28241 cat > conftest.s
<<EOF
28244 .type _start, @function
28247 .size _start, .-_start
28248 .section .gnu.linkonce.t.foo,"ax",@progbits
28249 .type foo, @function
28253 .section .gcc_except_table.foo,"a",@progbits
28256 .section .eh_frame,"a",@progbits
28259 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28260 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28261 |
grep "gc-sections option ignored" > /dev
/null
; then
28262 gcc_cv_ld_eh_gc_sections
=no
28263 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28264 |
grep gcc_except_table
> /dev
/null
; then
28265 gcc_cv_ld_eh_gc_sections
=yes
28271 rm -f conftest.s conftest.o conftest
28275 # ??? This apparently exposes a binutils bug with PC-relative relocations.
28276 gcc_cv_ld_eh_gc_sections
=no
28279 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
28281 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
28285 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
28288 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
28289 gcc_cv_ld_eh_gc_sections_bug
=no
28290 if test $in_tree_ld = yes ; then
28291 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 \
28292 && test $in_tree_ld_is_elf = yes; then
28293 gcc_cv_ld_eh_gc_sections_bug
=yes
28295 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
28296 gcc_cv_ld_eh_gc_sections_bug
=yes
28297 cat > conftest.s
<<EOF
28300 .type _start, @function
28303 .size _start, .-_start
28304 .section .text.startup.foo,"ax",@progbits
28305 .type foo, @function
28309 .section .gcc_except_table.foo,"a",@progbits
28312 .section .eh_frame,"a",@progbits
28315 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
28316 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
28317 |
grep "gc-sections option ignored" > /dev
/null
; then
28319 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
28320 |
grep gcc_except_table
> /dev
/null
; then
28321 gcc_cv_ld_eh_gc_sections_bug
=no
28324 rm -f conftest.s conftest.o conftest
28326 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
28328 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
28331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
28332 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
28335 $as_echo_n "checking linker for compressed debug sections... " >&6; }
28336 # gold/gld support compressed debug sections since binutils 2.19/2.21
28337 # In binutils 2.26, gld gained support for the ELF gABI format.
28338 if test $in_tree_ld = yes ; then
28339 gcc_cv_ld_compress_debug
=0
28340 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 \
28341 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
28342 gcc_cv_ld_compress_debug
=2
28343 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28344 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 \
28345 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = no
; then
28346 gcc_cv_ld_compress_debug
=3
28347 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28348 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 \
28349 && test $in_tree_ld_is_elf = yes; then
28350 gcc_cv_ld_compress_debug
=1
28352 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28353 if test "$ld_vers_major" -lt 2 \
28354 ||
test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
28355 gcc_cv_ld_compress_debug
=0
28356 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 26; then
28357 gcc_cv_ld_compress_debug
=1
28359 gcc_cv_ld_compress_debug
=3
28360 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28362 if test $ld_is_gold = yes; then
28363 gcc_cv_ld_compress_debug
=2
28364 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
28367 case "${target}" in
28369 # Introduced in Solaris 11.2.
28370 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
28371 gcc_cv_ld_compress_debug
=3
28372 gcc_cv_ld_compress_debug_option
="-z compress-sections"
28374 gcc_cv_ld_compress_debug
=0
28378 # Assume linkers other than GNU ld don't support compessed debug
28380 gcc_cv_ld_compress_debug
=0
28385 cat >>confdefs.h
<<_ACEOF
28386 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
28390 cat >>confdefs.h
<<_ACEOF
28391 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
28395 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
28397 if test x
"$ld64_flag" = x
"yes"; then
28399 # Set defaults for possibly untestable items.
28400 gcc_cv_ld64_export_dynamic
=0
28402 if test "$build" = "$host"; then
28408 # On Darwin, because of FAT library support, it is often possible to execute
28409 # exes from compatible archs even when the host differs from the build system.
28410 case "$build","$host" in
28411 x86_64-
*-darwin*,i?
86-*-darwin* | powerpc64
*-*-darwin*,powerpc
*-*-darwin*)
28412 darwin_try_test
=1;;
28416 # If the configurer specified a minimum ld64 version to be supported, then use
28417 # that to determine feature support.
28418 if test x
"${gcc_cv_ld64_version}" != x
; then
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ld64 specified version" >&5
28420 $as_echo_n "checking ld64 specified version... " >&6; }
28421 gcc_cv_ld64_major
=`echo "$gcc_cv_ld64_version" | sed -e 's/\..*//'`
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_major" >&5
28423 $as_echo "$gcc_cv_ld64_major" >&6; }
28424 if test "$gcc_cv_ld64_major" -ge 236; then
28425 gcc_cv_ld64_export_dynamic
=1
28427 elif test -x "$gcc_cv_ld" -a "$darwin_try_test" -eq 1; then
28428 # If the version was not specified, try to find it.
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker version" >&5
28430 $as_echo_n "checking linker version... " >&6; }
28431 if test x
"${gcc_cv_ld64_version}" = x
; then
28432 gcc_cv_ld64_version
=`$gcc_cv_ld -v 2>&1 | grep ld64 | sed s/.*ld64-// | awk '{print $1}'`
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_version" >&5
28435 $as_echo "$gcc_cv_ld64_version" >&6; }
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for -export_dynamic support" >&5
28438 $as_echo_n "checking linker for -export_dynamic support... " >&6; }
28439 gcc_cv_ld64_export_dynamic
=1
28440 if $gcc_cv_ld -export_dynamic < /dev
/null
2>&1 |
grep 'unknown option' > /dev
/null
; then
28441 gcc_cv_ld64_export_dynamic
=0
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld64_export_dynamic" >&5
28444 $as_echo "$gcc_cv_ld64_export_dynamic" >&6; }
28447 if test x
"${gcc_cv_ld64_version}" != x
; then
28449 cat >>confdefs.h
<<_ACEOF
28450 #define LD64_VERSION "${gcc_cv_ld64_version}"
28456 cat >>confdefs.h
<<_ACEOF
28457 #define LD64_HAS_EXPORT_DYNAMIC $gcc_cv_ld64_export_dynamic
28466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
28467 $as_echo_n "checking linker --as-needed support... " >&6; }
28468 if test "${gcc_cv_ld_as_needed+set}" = set; then :
28469 $as_echo_n "(cached) " >&6
28471 gcc_cv_ld_as_needed
=no
28472 gcc_cv_ld_as_needed_option
='--as-needed'
28473 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
28474 if test $in_tree_ld = yes ; then
28475 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 \
28476 && test $in_tree_ld_is_elf = yes; then
28477 gcc_cv_ld_as_needed
=yes
28478 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 28; then
28479 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28480 gcc_cv_ld_no_as_needed_option
='--pop-state'
28483 elif test x
$gcc_cv_ld != x
; then
28484 # Check if linker supports --as-needed and --no-as-needed options
28485 if $gcc_cv_ld --help 2>&1 |
grep as-needed
> /dev
/null
; then
28486 gcc_cv_ld_as_needed
=yes
28487 if $gcc_cv_ld --help 2>&1 |
grep push-state
> /dev
/null \
28488 && $gcc_cv_ld --help 2>&1 |
grep pop-state
> /dev
/null \
28489 && echo "$ld_ver" |
grep GNU
> /dev
/null \
28490 && test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 28; then
28491 # Use these options only when both ld.bfd and ld.gold support
28492 # --push-state/--pop-state, which unfortunately wasn't added
28493 # at the same time.
28494 gcc_cv_ld_as_needed_option
='--push-state --as-needed'
28495 gcc_cv_ld_no_as_needed_option
='--pop-state'
28498 case "$target:$gnu_ld" in
28500 # Solaris 2 ld always supports -z ignore/-z record. Prefer the native
28502 gcc_cv_ld_as_needed
=yes
28503 gcc_cv_ld_as_needed_option
="-z ignore"
28504 gcc_cv_ld_no_as_needed_option
="-z record"
28508 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
28509 # dl_iterate_phdr, i.e. since Solaris 11.
28511 *-*-solaris2.1
[1-9]*)
28513 i?
86-*-* | x86_64-
*-*)
28514 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
28515 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
28516 gcc_cv_ld_as_needed
=no
28522 gcc_cv_ld_as_needed
=no
28527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
28528 $as_echo "$gcc_cv_ld_as_needed" >&6; }
28529 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
28531 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
28534 cat >>confdefs.h
<<_ACEOF
28535 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
28539 cat >>confdefs.h
<<_ACEOF
28540 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
28546 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
28547 saved_LDFLAGS
="$LDFLAGS"
28548 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
28549 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
28550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28551 /* end confdefs.h. */
28552 int main(void) {return 0;}
28554 if ac_fn_cxx_try_link
"$LINENO"; then :
28555 gcc_cv_ld_clearcap
=yes; break
28557 gcc_cv_ld_clearcap
=no
28559 rm -f core conftest.err conftest.
$ac_objext \
28560 conftest
$ac_exeext conftest.
$ac_ext
28562 LDFLAGS
="$saved_LDFLAGS"
28563 if test "x$gcc_cv_ld_clearcap" = xyes
; then
28565 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
28567 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
28570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
28571 $as_echo "$gcc_cv_ld_clearcap" >&6; }
28577 emul_name
="-melf32lppc"
28580 emul_name
="-melf32ppc"
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker .gnu.attributes long double support" >&5
28584 $as_echo_n "checking linker .gnu.attributes long double support... " >&6; }
28585 if test "${gcc_cv_ld_ppc_attr+set}" = set; then :
28586 $as_echo_n "(cached) " >&6
28588 gcc_cv_ld_ppc_attr
=no
28589 if test x
"$ld_is_gold" = xyes
; then
28590 gcc_cv_ld_ppc_attr
=yes
28591 elif test $in_tree_ld = yes ; then
28592 if test "$gcc_cv_gld_major_version" -eq 2 \
28593 -a "$gcc_cv_gld_minor_version" -ge 28 \
28594 -o "$gcc_cv_gld_major_version" -gt 2; then
28595 gcc_cv_ld_ppc_attr
=yes
28597 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28598 # check that merging the long double .gnu_attribute doesn't warn
28599 cat > conftest1.s
<<EOF
28602 cat > conftest2.s
<<EOF
28605 if $gcc_cv_as -a32 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28606 && $gcc_cv_as -a32 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28607 && $gcc_cv_ld $emul_name -r -o conftest.o conftest1.o conftest2.o
> /dev
/null
2> conftest.err \
28608 && test ! -s conftest.err
; then
28609 gcc_cv_ld_ppc_attr
=yes
28611 rm -f conftest.err conftest.o conftest1.o conftest2.o conftest1.s conftest2.s
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ppc_attr" >&5
28616 $as_echo "$gcc_cv_ld_ppc_attr" >&6; }
28617 if test x
$gcc_cv_ld_ppc_attr = xyes
; then
28619 $as_echo "#define HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE 1" >>confdefs.h
28625 case "$target:$tm_file" in
28626 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
28629 emul_name
="-melf64lppc"
28632 emul_name
="-melf64ppc"
28635 emul_name
="-melf64ppc_fbsd"
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
28639 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
28640 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
28641 $as_echo_n "(cached) " >&6
28643 gcc_cv_ld_no_dot_syms
=no
28644 if test x
"$ld_is_gold" = xyes
; then
28645 gcc_cv_ld_no_dot_syms
=yes
28646 elif test $in_tree_ld = yes ; then
28647 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
28648 gcc_cv_ld_no_dot_syms
=yes
28650 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28651 cat > conftest1.s
<<EOF
28655 cat > conftest2.s
<<EOF
28656 .section ".opd","aw"
28659 .type foo,@function
28661 .quad .LEfoo,.TOC.@tocbase,0
28667 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
28668 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
28669 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
28670 gcc_cv_ld_no_dot_syms
=yes
28672 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
28677 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
28678 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
28680 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
28684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28685 $as_echo_n "checking linker large toc support... " >&6; }
28686 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28687 $as_echo_n "(cached) " >&6
28689 gcc_cv_ld_large_toc
=no
28690 if test x
"$ld_is_gold" = xyes
; then
28691 gcc_cv_ld_large_toc
=yes
28692 elif test $in_tree_ld = yes ; then
28693 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
28694 gcc_cv_ld_large_toc
=yes
28696 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
28697 cat > conftest.s
<<EOF
28698 .section ".tbss","awT",@nobits
28704 addis 9,13,ie0@got@tprel@ha
28705 ld 9,ie0@got@tprel@l(9)
28707 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28708 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
28709 gcc_cv_ld_large_toc
=yes
28711 rm -f conftest conftest.o conftest.s
28715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28716 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28717 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28719 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
28724 $as_echo_n "checking linker toc pointer alignment... " >&6; }
28725 if test "${gcc_cv_ld_toc_align+set}" = set; then :
28726 $as_echo_n "(cached) " >&6
28728 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
28729 cat > conftest.s
<<EOF
28734 .section .data.rel.ro,"aw",@progbits
28739 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
28740 && $gcc_cv_ld $emul_name -z norelro
-o conftest conftest.o
> /dev
/null
2>&1; then
28741 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)) }'`
28743 rm -f conftest conftest.o conftest.s
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
28748 $as_echo "$gcc_cv_ld_toc_align" >&6; }
28749 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
28751 cat >>confdefs.h
<<_ACEOF
28752 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
28762 $as_echo_n "checking linker large toc support... " >&6; }
28763 if test "${gcc_cv_ld_large_toc+set}" = set; then :
28764 $as_echo_n "(cached) " >&6
28766 gcc_cv_ld_large_toc
=no
28767 if test x
$gcc_cv_as != x
; then
28768 cat > conftest.s
<<EOF
28778 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
28779 gcc_cv_ld_large_toc
=yes
28781 rm -f conftest conftest.o conftest.s
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
28786 $as_echo "$gcc_cv_ld_large_toc" >&6; }
28787 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
28789 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
28796 $as_echo_n "checking linker --build-id support... " >&6; }
28797 if test "${gcc_cv_ld_buildid+set}" = set; then :
28798 $as_echo_n "(cached) " >&6
28800 gcc_cv_ld_buildid
=no
28801 if test $in_tree_ld = yes ; then
28802 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28803 "$gcc_cv_gld_minor_version" -ge 18 -o \
28804 "$gcc_cv_gld_major_version" -gt 2 \
28805 && test $in_tree_ld_is_elf = yes; then
28806 gcc_cv_ld_buildid
=yes
28808 elif test x
$gcc_cv_ld != x
; then
28809 if $gcc_cv_ld --help 2>&1 |
grep build-id
> /dev
/null
; then
28810 gcc_cv_ld_buildid
=yes
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
28815 $as_echo "$gcc_cv_ld_buildid" >&6; }
28816 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28818 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
28822 # Check whether --enable-linker-build-id was given.
28823 if test "${enable_linker_build_id+set}" = set; then :
28824 enableval
=$enable_linker_build_id;
28826 enable_linker_build_id
=no
28830 if test x
"$enable_linker_build_id" = xyes
; then
28831 if test x
"$gcc_cv_ld_buildid" = xyes
; then
28833 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
28836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
28837 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
28841 # In binutils 2.21, GNU ld gained support for new emulations fully
28842 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
28844 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
28845 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
28846 $as_echo_n "(cached) " >&6
28848 gcc_cv_ld_sol2_emulation
=no
28849 if test $in_tree_ld = yes ; then
28850 if test "$gcc_cv_gld_major_version" -eq 2 -a \
28851 "$gcc_cv_gld_minor_version" -ge 21 -o \
28852 "$gcc_cv_gld_major_version" -gt 2 \
28853 && test $in_tree_ld_is_elf = yes; then
28854 gcc_cv_ld_sol2_emulation
=yes
28856 elif test x
$gcc_cv_ld != x
; then
28857 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
28858 grep _sol2
> /dev
/null
; then
28859 gcc_cv_ld_sol2_emulation
=yes
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
28864 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
28865 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
28867 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
28872 $as_echo_n "checking linker --sysroot support... " >&6; }
28873 if test "${gcc_cv_ld_sysroot+set}" = set; then :
28874 $as_echo_n "(cached) " >&6
28876 gcc_cv_ld_sysroot
=no
28877 if test $in_tree_ld = yes ; then
28878 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
28879 gcc_cv_ld_sysroot
=yes
28881 elif test x
$gcc_cv_ld != x
; then
28882 if $gcc_cv_ld --help 2>&1 |
grep sysroot
> /dev
/null
; then
28883 gcc_cv_ld_sysroot
=yes
28887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
28888 $as_echo "$gcc_cv_ld_sysroot" >&6; }
28889 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
28891 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
28897 # Check for system-provided CRTs on Solaris 11.x and Solaris 12.
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system-provided CRTs on Solaris" >&5
28899 $as_echo_n "checking system-provided CRTs on Solaris... " >&6; }
28900 if test "${gcc_cv_solaris_crts+set}" = set; then :
28901 $as_echo_n "(cached) " >&6
28903 gcc_cv_solaris_crts
=no
28904 if test x
$host != x
$target; then
28905 if test "x$with_sysroot" = xyes
; then
28906 target_sysroot
="${test_exec_prefix}/${target_noncanonical}/sys-root"
28908 target_sysroot
="${with_sysroot}"
28911 target_libdir
="$target_sysroot/usr/lib"
28912 # At the time they were added, gcrt1.o became a symlink for backwards
28913 # compatibility on x86, while crt1.o was added on sparc, so check for that.
28915 i?
86-*-solaris2* | x86_64-
*-solaris2*)
28916 if test -h "$target_libdir/gcrt1.o"; then gcc_cv_solaris_crts
=yes; fi
28918 sparc
*-*-solaris2*)
28919 if test -f "$target_libdir/crt1.o"; then gcc_cv_solaris_crts
=yes; fi
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_solaris_crts" >&5
28924 $as_echo "$gcc_cv_solaris_crts" >&6; }
28927 if test x
$gcc_cv_solaris_crts = xyes
; then
28929 $as_echo "#define HAVE_SOLARIS_CRTS 1" >>confdefs.h
28933 # Check whether --enable-libssp was given.
28934 if test "${enable_libssp+set}" = set; then :
28935 enableval
=$enable_libssp; case "${enableval}" in
28939 as_fn_error
"unknown libssp setting $enableval" "$LINENO" 5
28945 # Test for stack protector support in target C library.
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
28947 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
28948 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
28949 $as_echo_n "(cached) " >&6
28951 gcc_cv_libc_provides_ssp
=no
28952 if test "x$enable_libssp" = "xno"; then
28953 gcc_cv_libc_provides_ssp
=yes
28954 elif test "x$enable_libssp" = "xyes"; then
28955 gcc_cv_libc_provides_ssp
=no
28959 # All versions of musl provide stack protector
28960 gcc_cv_libc_provides_ssp
=yes;;
28961 *-*-linux* |
*-*-kfreebsd*-gnu)
28962 # glibc 2.4 and later provides __stack_chk_fail and
28963 # either __stack_chk_guard, or TLS access to stack guard canary.
28965 if test $glibc_version_major -gt 2 \
28966 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28967 gcc_cv_libc_provides_ssp
=yes
28970 if test -f $target_header_dir/features.h \
28971 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28972 $target_header_dir/features.h
> /dev
/null
; then
28973 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28974 $target_header_dir/features.h
> /dev
/null
&& \
28975 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28976 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28977 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28978 gcc_cv_libc_provides_ssp
=yes
28980 # all versions of Bionic support stack protector
28981 elif test -f $target_header_dir/sys
/cdefs.h \
28982 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28983 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28984 gcc_cv_libc_provides_ssp
=yes
28989 # Avoid complicated tests (see
28990 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28991 # simply assert that glibc does provide this, which is true for all
28992 # realistically usable GNU/Hurd configurations.
28993 # All supported versions of musl provide it as well
28994 gcc_cv_libc_provides_ssp
=yes;;
28995 *-*-darwin* |
*-*-freebsd* |
*-*-netbsd*)
28996 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28997 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28998 gcc_cv_libc_provides_ssp
=yes
29000 echo "no __stack_chk_fail on this target"
29004 *) gcc_cv_libc_provides_ssp
=no
;;
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
29009 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
29011 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29013 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
29017 # Check whether --enable-default-ssp was given.
29018 # Check whether --enable-default-ssp was given.
29019 if test "${enable_default_ssp+set}" = set; then :
29020 enableval
=$enable_default_ssp;
29021 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
29023 ia64
*-*-*) enable_default_ssp
=no
;;
29024 *) enable_default_ssp
=$enableval ;;
29027 enable_default_ssp
=no
29030 enable_default_ssp
=no
29033 if test x
$enable_default_ssp = xyes
; then
29035 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
29040 # Test for <sys/sdt.h> on the target.
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
29043 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
29045 if test -f $target_header_dir/sys
/sdt.h
; then
29048 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
29052 $as_echo "$have_sys_sdt_h" >&6; }
29054 # Check if TFmode long double should be used by default or not.
29055 # Some glibc targets used DFmode long double, but with glibc 2.4
29056 # and later they can use TFmode.
29058 powerpc
*-*-linux* | \
29059 sparc
*-*-linux* | \
29063 # Check whether --with-long-double-128 was given.
29064 if test "${with_long_double_128+set}" = set; then :
29065 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
29068 if test $glibc_version_major -gt 2 \
29069 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
29070 gcc_cv_target_ldbl128
=yes
29073 gcc_cv_target_ldbl128
=no
29074 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
29075 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
29076 && gcc_cv_target_ldbl128
=yes
29083 if test x
$gcc_cv_target_ldbl128 = xyes
; then
29085 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
29089 # Check if TFmode long double target should use the IBM extended double or IEEE
29090 # 128-bit floating point formats if long doubles are 128-bits long. The long
29091 # double type can only be switched on powerpc64 bit Linux systems where VSX is
29092 # supported. Other PowerPC systems do not build the IEEE 128-bit emulator in
29095 # Check whether --with-long-double-format was given.
29096 if test "${with_long_double_format+set}" = set; then :
29097 withval
=$with_long_double_format;
29098 case "$target:$with_long_double_format" in
29099 powerpc64le-
*-linux*:ieee | powerpc64le-
*-linux*:ibm
)
29102 powerpc64-
*-linux*:ieee | powerpc64-
*-linux*:ibm
)
29103 # IEEE 128-bit emulation is only built on 64-bit VSX Linux systems
29104 case "$with_cpu" in
29105 power7 | power8 | power9 | power1
*)
29109 as_fn_error
"Configuration option --with-long-double-format is only \
29110 supported if the default cpu is power7 or newer" "$LINENO" 5
29111 with_long_double_format
=""
29115 xpowerpc64
*-*-linux*:*)
29116 as_fn_error
"--with-long-double-format argument should be ibm or ieee" "$LINENO" 5
29117 with_long_double_format
=""
29120 as_fn_error
"Configure option --with-long-double-format is only supported \
29121 on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
29122 with_long_double_format
=""
29128 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
29129 # values in the TCB. Currently, only GLIBC 2.23 and later support this.
29130 gcc_cv_libc_provides_hwcap_in_tcb
=no
29134 if test $glibc_version_major -gt 2 \
29135 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 23 ); then :
29136 gcc_cv_libc_provides_hwcap_in_tcb
=yes
29140 if test x
$gcc_cv_libc_provides_hwcap_in_tcb = xyes
; then
29142 $as_echo "#define TARGET_LIBC_PROVIDES_HWCAP_IN_TCB 1" >>confdefs.h
29146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
29147 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
29148 gcc_cv_target_dl_iterate_phdr
=unknown
29150 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
29151 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
29152 # libdl there, both complicating its use and breaking compatibility
29153 # between Solaris 10 updates.
29154 *-*-solaris2.1
[1-9]*)
29155 # <link.h> needs both a dl_iterate_phdr declaration and support for
29156 # compilation with largefile support.
29157 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
29158 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
29159 gcc_cv_target_dl_iterate_phdr
=yes
29161 gcc_cv_target_dl_iterate_phdr
=no
29164 *-*-dragonfly* |
*-*-freebsd*)
29165 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
29166 gcc_cv_target_dl_iterate_phdr
=yes
29168 gcc_cv_target_dl_iterate_phdr
=no
29172 gcc_cv_target_dl_iterate_phdr
=yes
29176 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
29178 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
29182 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
29184 # We no longer support different GC mechanisms. Emit an error if
29185 # the user configures with --with-gc.
29187 # Check whether --with-gc was given.
29188 if test "${with_gc+set}" = set; then :
29189 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
29193 # Libraries to use on the host. This will normally be set by the top
29194 # level Makefile. Here we simply capture the value for our Makefile.
29195 if test -z "${HOST_LIBS+set}"; then
29200 # Use the system's zlib library.
29202 # Use the system's zlib library.
29203 zlibdir
="-L\$(top_builddir)/../zlib"
29204 zlibinc
="-I\$(top_srcdir)/../zlib"
29206 # Check whether --with-system-zlib was given.
29207 if test "${with_system_zlib+set}" = set; then :
29208 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
29221 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
29222 # Check whether --enable-maintainer-mode was given.
29223 if test "${enable_maintainer_mode+set}" = set; then :
29224 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
29231 $as_echo "$maintainer_mode" >&6; }
29233 if test "$maintainer_mode" = "yes"; then
29240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
29241 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
29242 # Check whether --enable-link-mutex was given.
29243 if test "${enable_link_mutex+set}" = set; then :
29244 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
29250 $as_echo "$do_link_mutex" >&6; }
29252 if test "$do_link_mutex" = "yes"; then
29255 DO_LINK_MUTEX
=false
29263 # Make empty files to contain the specs and options for each language.
29264 # Then add #include lines to for a compiler that has specs and/or options.
29270 # These (without "all_") are set in each config-lang.in.
29271 # `language' must be a single word so is spelled singularly.
29274 all_outputs
='Makefile'
29275 # List of language makefile fragments.
29276 all_lang_makefrags
=
29277 # Additional files for gengtype
29278 all_gtfiles
="$target_gtfiles"
29280 # These are the languages that are set in --enable-languages,
29281 # and are available in the GCC tree.
29282 all_selected_languages
=
29284 # Add the language fragments.
29285 # Languages are added via two mechanisms. Some information must be
29286 # recorded in makefile variables, these are defined in config-lang.in.
29287 # We accumulate them and plug them into the main Makefile.
29288 # The other mechanism is a set of hooks for each of the main targets
29289 # like `clean', `install', etc.
29291 language_hooks
="Make-hooks"
29293 for lang
in ${srcdir}/*/config-lang.
in
29295 test "$lang" = "${srcdir}/*/config-lang.in" && continue
29297 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
29298 if test "x$lang_alias" = x
29300 echo "$lang doesn't set \$language." 1>&2
29303 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
29304 subdirs
="$subdirs $subdir"
29306 # $gcc_subdir is where the gcc integration files are to be found
29307 # for a language, both for internal compiler purposes (compiler
29308 # sources implementing front-end to GCC tree converters), and for
29309 # build infrastructure purposes (Make-lang.in, etc.)
29311 # This will be <subdir> (relative to $srcdir) if a line like
29312 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
29313 # is found in <langdir>/config-lang.in, and will remain <langdir>
29316 # Except for the language alias (fetched above), the regular
29317 # "config-lang.in" contents are always retrieved from $gcc_subdir,
29318 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
29319 # only this and the language alias.
29321 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
29322 if [ "$gcc_subdir" = "" ]; then
29323 gcc_subdir
="$subdir"
29326 case ",$enable_languages," in
29328 all_selected_languages
="$all_selected_languages $lang_alias"
29329 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
29330 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
29341 .
${srcdir}/$gcc_subdir/config-lang.
in
29342 if test "x$language" = x
29344 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
29349 case ",$enable_languages," in
29350 *,$lang_alias,*) ;;
29352 for i
in $subdir_requires; do
29353 test -f "${srcdir}/$i/config-lang.in" && continue
29361 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
29362 if test -f $srcdir/$gcc_subdir/lang.opt
; then
29363 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
29364 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
29366 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
29367 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
29369 all_languages
="$all_languages $language"
29370 all_compilers
="$all_compilers $compilers"
29371 all_outputs
="$all_outputs $outputs"
29372 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
29373 case ",$enable_languages," in
29376 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
29386 for language
in $all_selected_languages
29388 check_languages
="$check_languages check-$language"
29391 selftest_languages
=
29392 for language
in $all_selected_languages
29394 selftest_languages
="$selftest_languages selftest-$language"
29397 # We link each language in with a set of hooks, reached indirectly via
29398 # lang.${target}. Only do so for selected languages.
29402 target_list
="all.cross start.encap rest.encap tags \
29403 install-common install-man install-info install-pdf install-html dvi \
29404 pdf html uninstall info man srcextra srcman srcinfo \
29405 mostlyclean clean distclean maintainer-clean install-plugin"
29407 for t
in $target_list
29410 for lang
in $all_selected_languages
29414 echo "lang.$t: $x" >> Make-hooks
29418 # Option include files
29421 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
29422 option_includes
="option-includes.mk"
29431 echo "dir ." > .gdbinit
29432 echo "dir ${srcdir}" >> .gdbinit
29433 if test x
$gdb_needs_out_file_path = xyes
29435 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
29437 if test "x$subdirs" != x
; then
29440 echo "dir ${srcdir}/$s" >> .gdbinit
29443 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
29444 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
29446 # Put a breakpoint on __asan_report_error to help with debugging buffer
29449 *-fsanitize=address
*)
29450 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
29454 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
29458 # Find a directory in which to install a shared libgcc.
29460 # Check whether --enable-version-specific-runtime-libs was given.
29461 if test "${enable_version_specific_runtime_libs+set}" = set; then :
29462 enableval
=$enable_version_specific_runtime_libs;
29466 # Substitute configuration variables
29534 if test x
${build} = x
${host} ; then
29535 if test x
${host} = x
${target} ; then
29536 echo "Links are now set up to build a native compiler for ${target}." 1>&2
29538 echo "Links are now set up to build a cross-compiler" 1>&2
29539 echo " from ${host} to ${target}." 1>&2
29542 if test x
${host} = x
${target} ; then
29543 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
29544 echo " for ${target}." 1>&2
29546 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
29547 echo " from ${host} to ${target}." 1>&2
29556 if test "x${ISLLIBS}" != "x" ; then
29558 $as_echo "#define HAVE_isl 1" >>confdefs.h
29562 # Check for plugin support
29563 # Check whether --enable-plugin was given.
29564 if test "${enable_plugin+set}" = set; then :
29565 enableval
=$enable_plugin; enable_plugin
=$enableval
29567 enable_plugin
=yes; default_plugin
=yes
29576 # Since plugin support under MinGW is not as straightforward as on
29577 # other platforms (e.g., we have to link import library, etc), we
29578 # only enable it if explicitly requested.
29579 if test x
"$default_plugin" = x
"yes"; then
29581 elif test x
"$enable_plugin" = x
"yes"; then
29582 # Use make's target variable to derive import library name.
29583 pluginlibs
='-Wl,--export-all-symbols -Wl,--out-implib=$@.a'
29588 if test x
$build = x
$host; then
29589 export_sym_check
="nm${exeext} -g"
29590 elif test x
$host = x
$target; then
29591 export_sym_check
="$gcc_cv_nm -g"
29597 if test x
$build = x
$host; then
29598 export_sym_check
="objdump${exeext} -T"
29599 elif test x
$host = x
$target; then
29600 export_sym_check
="$gcc_cv_objdump -T"
29607 if test x
"$enable_plugin" = x
"yes" -a x
"$plugin_check" = x
"yes"; then
29609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
29610 $as_echo_n "checking for exported symbols... " >&6; }
29611 if test "x$export_sym_check" != x
; then
29612 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
29613 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29614 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29615 : # No need to use a flag
29616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29617 $as_echo "yes" >&6; }
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29620 $as_echo "yes" >&6; }
29621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
29622 $as_echo_n "checking for -rdynamic... " >&6; }
29623 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
29624 if $export_sym_check conftest
$ac_exeext |
grep foobar
> /dev
/null
; then
29625 plugin_rdynamic
=yes
29626 pluginlibs
="-rdynamic"
29631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
29632 $as_echo "$plugin_rdynamic" >&6; }
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
29636 $as_echo "unable to check" >&6; }
29641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
29642 $as_echo_n "checking for library containing dlopen... " >&6; }
29643 if test "${ac_cv_search_dlopen+set}" = set; then :
29644 $as_echo_n "(cached) " >&6
29646 ac_func_search_save_LIBS
=$LIBS
29647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29648 /* end confdefs.h. */
29650 /* Override any GCC internal prototype to avoid an error.
29651 Use char because int might match the return type of a GCC
29652 builtin and then its argument prototype would still apply. */
29665 for ac_lib
in '' dl
; do
29666 if test -z "$ac_lib"; then
29667 ac_res
="none required"
29670 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
29672 if ac_fn_cxx_try_link
"$LINENO"; then :
29673 ac_cv_search_dlopen
=$ac_res
29675 rm -f core conftest.err conftest.
$ac_objext \
29677 if test "${ac_cv_search_dlopen+set}" = set; then :
29681 if test "${ac_cv_search_dlopen+set}" = set; then :
29684 ac_cv_search_dlopen
=no
29686 rm conftest.
$ac_ext
29687 LIBS
=$ac_func_search_save_LIBS
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
29690 $as_echo "$ac_cv_search_dlopen" >&6; }
29691 ac_res
=$ac_cv_search_dlopen
29692 if test "$ac_res" != no
; then :
29693 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
29697 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
29698 pluginlibs
="$pluginlibs -ldl"
29702 # Check that we can build shared objects with -fPIC -shared
29703 saved_LDFLAGS
="$LDFLAGS"
29704 saved_CFLAGS
="$CFLAGS"
29707 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
29708 CFLAGS
="$CFLAGS -fPIC"
29709 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
29712 CFLAGS
="$CFLAGS -fPIC"
29713 LDFLAGS
="$LDFLAGS -fPIC -shared"
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
29717 $as_echo_n "checking for -fPIC -shared... " >&6; }
29718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29719 /* end confdefs.h. */
29729 if ac_fn_cxx_try_link
"$LINENO"; then :
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29731 $as_echo "yes" >&6; }; have_pic_shared
=yes
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29734 $as_echo "no" >&6; }; have_pic_shared
=no
29736 rm -f core conftest.err conftest.
$ac_objext \
29737 conftest
$ac_exeext conftest.
$ac_ext
29738 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
29742 LDFLAGS
="$saved_LDFLAGS"
29743 CFLAGS
="$saved_CFLAGS"
29745 # If plugin support had been requested but not available, fail.
29746 if test x
"$enable_plugin" = x
"no" ; then
29747 if test x
"$default_plugin" != x
"yes"; then
29749 Building GCC with plugin support requires a host that supports
29750 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
29757 if test x
"$enable_plugin" = x
"yes"; then
29759 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
29764 # Enable --enable-host-shared
29765 # Check whether --enable-host-shared was given.
29766 if test "${enable_host_shared+set}" = set; then :
29767 enableval
=$enable_host_shared; PICFLAG
=-fPIC
29776 # Check whether --enable-libquadmath-support was given.
29777 if test "${enable_libquadmath_support+set}" = set; then :
29778 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
29780 ENABLE_LIBQUADMATH_SUPPORT
=yes
29783 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
29785 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
29790 # Specify what hash style to use by default.
29792 # Check whether --with-linker-hash-style was given.
29793 if test "${with_linker_hash_style+set}" = set; then :
29794 withval
=$with_linker_hash_style; case x
"$withval" in
29796 LINKER_HASH_STYLE
=sysv
29799 LINKER_HASH_STYLE
=gnu
29802 LINKER_HASH_STYLE
=both
29805 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
29809 LINKER_HASH_STYLE
=''
29812 if test x
"${LINKER_HASH_STYLE}" != x
; then
29814 cat >>confdefs.h
<<_ACEOF
29815 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
29820 # Specify what should be the default of -fdiagnostics-color option.
29822 # Check whether --with-diagnostics-color was given.
29823 if test "${with_diagnostics_color+set}" = set; then :
29824 withval
=$with_diagnostics_color; case x
"$withval" in
29826 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
29829 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29832 DIAGNOSTICS_COLOR_DEFAULT
=-1
29835 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
29838 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
29842 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
29846 cat >>confdefs.h
<<_ACEOF
29847 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
29851 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
29852 # of jit/jit-playback.c.
29853 gcc_driver_version
=`eval "${get_gcc_base_ver} $srcdir/BASE-VER"`
29854 echo "gcc_driver_version: ${gcc_driver_version}"
29855 cat > gcc-driver-name.h
<<EOF
29856 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_driver_version}${exeext}"
29859 # Check whether --enable-default-pie was given.
29860 # Check whether --enable-default-pie was given.
29861 if test "${enable_default_pie+set}" = set; then :
29862 enableval
=$enable_default_pie; enable_default_pie
=$enableval
29864 enable_default_pie
=no
29867 if test x
$enable_default_pie = xyes
; then
29869 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
29874 # Check if -fno-PIE works.
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
29876 $as_echo_n "checking for -fno-PIE option... " >&6; }
29877 if test "${gcc_cv_c_no_fpie+set}" = set; then :
29878 $as_echo_n "(cached) " >&6
29880 saved_CXXFLAGS
="$CXXFLAGS"
29881 CXXFLAGS
="$CXXFLAGS -fno-PIE"
29882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29883 /* end confdefs.h. */
29884 int main(void) {return 0;}
29886 if ac_fn_cxx_try_compile
"$LINENO"; then :
29887 gcc_cv_c_no_fpie
=yes
29889 gcc_cv_c_no_fpie
=no
29891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
29892 CXXFLAGS
="$saved_CXXFLAGS"
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
29895 $as_echo "$gcc_cv_c_no_fpie" >&6; }
29896 if test "$gcc_cv_c_no_fpie" = "yes"; then
29897 NO_PIE_CFLAGS
="-fno-PIE"
29901 # Check if -no-pie works.
29902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
29903 $as_echo_n "checking for -no-pie option... " >&6; }
29904 if test "${gcc_cv_no_pie+set}" = set; then :
29905 $as_echo_n "(cached) " >&6
29907 saved_LDFLAGS
="$LDFLAGS"
29908 LDFLAGS
="$LDFLAGS -no-pie"
29909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
29910 /* end confdefs.h. */
29911 int main(void) {return 0;}
29913 if ac_fn_cxx_try_link
"$LINENO"; then :
29918 rm -f core conftest.err conftest.
$ac_objext \
29919 conftest
$ac_exeext conftest.
$ac_ext
29920 LDFLAGS
="$saved_LDFLAGS"
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
29923 $as_echo "$gcc_cv_no_pie" >&6; }
29924 if test "$gcc_cv_no_pie" = "yes"; then
29925 NO_PIE_FLAG
="-no-pie"
29929 # Check linker supports '-z bndplt'
29930 ld_bndplt_support
=no
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
29932 $as_echo_n "checking linker -z bndplt option... " >&6; }
29933 if test x
"$ld_is_gold" = xno
; then
29934 if test $in_tree_ld = yes ; then
29935 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
29936 ld_bndplt_support
=yes
29938 elif test x
$gcc_cv_ld != x
; then
29939 # Check if linker supports -a bndplt option
29940 if $gcc_cv_ld --help 2>&1 |
grep -- '-z bndplt' > /dev
/null
; then
29941 ld_bndplt_support
=yes
29945 if test x
"$ld_bndplt_support" = xyes
; then
29947 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
29951 $as_echo "$ld_bndplt_support" >&6; }
29953 # Check linker supports '--push-state'/'--pop-state'
29954 ld_pushpopstate_support
=no
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --push-state/--pop-state options" >&5
29956 $as_echo_n "checking linker --push-state/--pop-state options... " >&6; }
29957 if test x
"$ld_is_gold" = xno
; then
29958 if test $in_tree_ld = yes ; then
29959 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
29960 ld_pushpopstate_support
=yes
29962 elif test x
$gcc_cv_ld != x
; then
29963 # Check if linker supports --push-state/--pop-state options
29964 if $gcc_cv_ld --help 2>&1 |
grep -- '--push-state' > /dev
/null
; then
29965 ld_pushpopstate_support
=yes
29969 if test x
"$ld_pushpopstate_support" = xyes
; then
29971 $as_echo "#define HAVE_LD_PUSHPOPSTATE_SUPPORT 1" >>confdefs.h
29974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_pushpopstate_support" >&5
29975 $as_echo "$ld_pushpopstate_support" >&6; }
29977 # Configure the subdirectories
29978 # AC_CONFIG_SUBDIRS($subdirs)
29980 # Create the Makefile
29981 # and configure language subdirectories
29982 ac_config_files
="$ac_config_files $all_outputs"
29985 ac_config_commands
="$ac_config_commands default"
29987 cat >confcache
<<\_ACEOF
29988 # This file is a shell script that caches the results of configure
29989 # tests run on this system so they can be shared between configure
29990 # scripts and configure runs, see configure's option --config-cache.
29991 # It is not useful on other systems. If it contains results you don't
29992 # want to keep, you may remove or edit it.
29994 # config.status only pays attention to the cache file if you give it
29995 # the --recheck option to rerun configure.
29997 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29998 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29999 # following values.
30003 # The following way of writing the cache mishandles newlines in values,
30004 # but we know of no workaround that is simple, portable, and efficient.
30005 # So, we kill variables containing newlines.
30006 # Ultrix sh set writes to stderr and can't be redirected directly,
30007 # and sets the high bit in the cache file unless we assign to the vars.
30009 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30010 eval ac_val
=\$
$ac_var
30014 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30018 _ | IFS | as_nl
) ;; #(
30019 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30020 *) { eval $ac_var=; unset $ac_var;} ;;
30026 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30027 *${as_nl}ac_space
=\
*)
30028 # `set' does not quote correctly, so add quotes: double-quote
30029 # substitution turns \\\\ into \\, and sed turns \\ into \.
30032 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30035 # `set' quotes correctly as required by POSIX, so do not add quotes.
30036 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30045 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30047 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30049 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
30050 if test -w "$cache_file"; then
30051 test "x$cache_file" != "x/dev/null" &&
30052 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30053 $as_echo "$as_me: updating cache $cache_file" >&6;}
30054 cat confcache
>$cache_file
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30057 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30062 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
30063 # Let make expand exec_prefix.
30064 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
30066 DEFS
=-DHAVE_CONFIG_H
30070 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
30071 # 1. Remove the extension, and $U if already installed.
30072 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
30073 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
30074 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30075 # will be set to the directory where LIBOBJS objects are built.
30076 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30077 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
30079 LIBOBJS
=$ac_libobjs
30081 LTLIBOBJS
=$ac_ltlibobjs
30086 : ${CONFIG_STATUS=./config.status}
30088 ac_clean_files_save
=$ac_clean_files
30089 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
30090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30091 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30093 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30095 # Generated by $as_me.
30096 # Run this file to recreate the current configuration.
30097 # Compiler output produced by configure, useful for debugging
30098 # configure, is in config.log if it exists.
30101 ac_cs_recheck=false
30104 SHELL=\${CONFIG_SHELL-$SHELL}
30107 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
30108 ## -------------------- ##
30109 ## M4sh Initialization. ##
30110 ## -------------------- ##
30112 # Be more Bourne compatible
30113 DUALCASE
=1; export DUALCASE
# for MKS sh
30114 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
30117 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30118 # is contrary to our usage. Disable this feature.
30119 alias -g '${1+"$@"}'='"$@"'
30120 setopt NO_GLOB_SUBST
30122 case `(set -o) 2>/dev/null` in #(
30134 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30135 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30136 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30137 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30138 # Prefer a ksh shell builtin over an external printf program on Solaris,
30139 # but without wasting forks for bash or zsh.
30140 if test -z "$BASH_VERSION$ZSH_VERSION" \
30141 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30142 as_echo='print
-r --'
30143 as_echo_n='print
-rn --'
30144 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30145 as_echo='printf %s
\n'
30146 as_echo_n='printf %s
'
30148 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30149 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
30150 as_echo_n='/usr
/ucb
/echo -n'
30152 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30153 as_echo_n_body='eval
30157 expr "X$arg" : "X\\(.*\\)$as_nl";
30158 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30160 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
30162 export as_echo_n_body
30163 as_echo_n='sh
-c $as_echo_n_body as_echo
'
30165 export as_echo_body
30166 as_echo='sh
-c $as_echo_body as_echo
'
30169 # The user is always right.
30170 if test "${PATH_SEPARATOR+set}" != set; then
30172 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30173 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30180 # We need space, tab and new line, in precisely that order. Quoting is
30181 # there to prevent editors from complaining about space-tab.
30182 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30183 # splitting by setting IFS to empty value.)
30186 # Find who we are. Look in the path if we contain no directory separator.
30188 *[\\/]* ) as_myself=$0 ;;
30189 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30190 for as_dir in $PATH
30193 test -z "$as_dir" && as_dir=.
30194 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30200 # We did not find ourselves, most probably we were run as `sh COMMAND'
30201 # in which case we are not to be found in the path.
30202 if test "x$as_myself" = x
; then
30205 if test ! -f "$as_myself"; then
30206 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30210 # Unset variables that we do not need and which cause bugs (e.g. in
30211 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
30212 # suppresses any "Segmentation fault" message there. '((' could
30213 # trigger a bug in pdksh 5.2.14.
30214 for as_var
in BASH_ENV ENV MAIL MAILPATH
30215 do eval test x\
${$as_var+set} = xset \
30216 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
30229 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
30232 # as_fn_error ERROR [LINENO LOG_FD]
30233 # ---------------------------------
30234 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30235 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30236 # script with status $?, using 1 if that was 0.
30239 as_status
=$?
; test $as_status -eq 0 && as_status
=1
30241 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
30242 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30244 $as_echo "$as_me: error: $1" >&2
30245 as_fn_exit
$as_status
30249 # as_fn_set_status STATUS
30250 # -----------------------
30251 # Set $? to STATUS, without forking.
30252 as_fn_set_status
()
30255 } # as_fn_set_status
30257 # as_fn_exit STATUS
30258 # -----------------
30259 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30263 as_fn_set_status
$1
30269 # Portably unset VAR.
30272 { eval $1=; unset $1;}
30274 as_unset
=as_fn_unset
30275 # as_fn_append VAR VALUE
30276 # ----------------------
30277 # Append the text in VALUE to the end of the definition contained in VAR. Take
30278 # advantage of any shell optimizations that allow amortized linear growth over
30279 # repeated appends, instead of the typical quadratic growth present in naive
30281 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
30282 eval 'as_fn_append ()
30293 # as_fn_arith ARG...
30294 # ------------------
30295 # Perform arithmetic evaluation on the ARGs, and store the result in the
30296 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30297 # must be portable across $(()) and expr.
30298 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
30299 eval 'as_fn_arith ()
30306 as_val
=`expr "$@" || test $? -eq 1`
30311 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
30312 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
30318 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30319 as_basename
=basename
30324 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
30330 as_me
=`$as_basename -- "$0" ||
30331 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30332 X"$0" : 'X\(//\)$' \| \
30333 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30335 sed '/^.*\/\([^/][^/]*\)\/*$/{
30349 # Avoid depending upon Character Ranges.
30350 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
30351 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30352 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
30353 as_cr_digits
='0123456789'
30354 as_cr_alnum
=$as_cr_Letters$as_cr_digits
30356 ECHO_C
= ECHO_N
= ECHO_T
=
30357 case `echo -n x` in #(((((
30359 case `echo 'xy\c'` in
30360 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
30362 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
30369 rm -f conf$$ conf$$.exe conf$$.
file
30370 if test -d conf$$.dir
; then
30371 rm -f conf$$.dir
/conf$$.
file
30374 mkdir conf$$.dir
2>/dev
/null
30376 if (echo >conf$$.
file) 2>/dev
/null
; then
30377 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
30379 # ... but there are two gotchas:
30380 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30381 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30382 # In both cases, we have to default to `cp -p'.
30383 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
30385 elif ln conf$$.
file conf$$
2>/dev
/null
; then
30393 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
30394 rmdir conf$$.dir
2>/dev
/null
30399 # Create "$as_dir" as a directory, including parents if necessary.
30404 -*) as_dir
=.
/$as_dir;;
30406 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
30410 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30411 *) as_qdir
=$as_dir;;
30413 as_dirs
="'$as_qdir' $as_dirs"
30414 as_dir
=`$as_dirname -- "$as_dir" ||
30415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30416 X"$as_dir" : 'X\(//\)[^/]' \| \
30417 X"$as_dir" : 'X\(//\)$' \| \
30418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30419 $as_echo X"$as_dir" |
30420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30424 /^X\(\/\/\)[^/].*/{
30437 test -d "$as_dir" && break
30439 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
30440 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
30444 if mkdir
-p .
2>/dev
/null
; then
30445 as_mkdir_p
='mkdir -p "$as_dir"'
30447 test -d .
/-p && rmdir .
/-p
30451 if test -x / >/dev
/null
2>&1; then
30452 as_test_x
='test -x'
30454 if ls -dL / >/dev
/null
2>&1; then
30461 if test -d "$1"; then
30467 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30468 ???[sx]*):;;*)false;;esac;fi
30472 as_executable_p
=$as_test_x
30474 # Sed expression to map a string onto a valid CPP name.
30475 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30477 # Sed expression to map a string onto a valid variable name.
30478 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30482 ## ----------------------------------- ##
30483 ## Main body of $CONFIG_STATUS script. ##
30484 ## ----------------------------------- ##
30486 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
30488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30489 # Save the log message, to keep $0 and so on meaningful, and to
30490 # report actual input values of CONFIG_FILES etc. instead of their
30491 # values after options handling.
30493 This file was extended by $as_me, which was
30494 generated by GNU Autoconf 2.64. Invocation command line was
30496 CONFIG_FILES = $CONFIG_FILES
30497 CONFIG_HEADERS = $CONFIG_HEADERS
30498 CONFIG_LINKS = $CONFIG_LINKS
30499 CONFIG_COMMANDS = $CONFIG_COMMANDS
30502 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30507 case $ac_config_files in *"
30508 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
30511 case $ac_config_headers in *"
30512 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
30516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30517 # Files that config.status was made for.
30518 config_files="$ac_config_files"
30519 config_headers="$ac_config_headers"
30520 config_links="$ac_config_links"
30521 config_commands="$ac_config_commands"
30525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30527 \`$as_me' instantiates files and other configuration actions
30528 from templates according to the current configuration. Unless the files
30529 and actions are specified as TAGs, all are instantiated by default.
30531 Usage: $0 [OPTION]... [TAG]...
30533 -h, --help print this help, then exit
30534 -V, --version print version number and configuration settings, then exit
30535 -q, --quiet, --silent
30536 do not print progress messages
30537 -d, --debug don't remove temporary files
30538 --recheck update $as_me by reconfiguring in the same conditions
30539 --file=FILE[:TEMPLATE]
30540 instantiate the configuration file FILE
30541 --header=FILE[:TEMPLATE]
30542 instantiate the configuration header FILE
30544 Configuration files:
30547 Configuration headers:
30550 Configuration links:
30553 Configuration commands:
30556 Report bugs to the package provider."
30559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30562 configured by $0, generated by GNU Autoconf 2.64,
30563 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30565 Copyright (C) 2009 Free Software Foundation, Inc.
30566 This config.status script is free software; the Free Software Foundation
30567 gives unlimited permission to copy, distribute and modify it."
30572 test -n "\$AWK" || AWK=awk
30575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30576 # The default lists apply if the user does not specify any file.
30582 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
30583 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
30594 # Handling of the options.
30595 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
30597 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
30598 $as_echo "$ac_cs_version"; exit ;;
30599 --debug |
--debu |
--deb |
--de |
--d |
-d )
30601 --file |
--fil |
--fi |
--f )
30604 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30606 as_fn_append CONFIG_FILES
" '$ac_optarg'"
30607 ac_need_defaults
=false
;;
30608 --header |
--heade |
--head |
--hea )
30611 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30613 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
30614 ac_need_defaults
=false
;;
30616 # Conflict between --help and --header
30617 as_fn_error
"ambiguous option: \`$1'
30618 Try \`$0 --help' for more information.";;
30619 --help |
--hel |
-h )
30620 $as_echo "$ac_cs_usage"; exit ;;
30621 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
30622 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
30625 # This is an error.
30626 -*) as_fn_error
"unrecognized option: \`$1'
30627 Try \`$0 --help' for more information." ;;
30629 *) as_fn_append ac_config_targets
" $1"
30630 ac_need_defaults
=false
;;
30636 ac_configure_extra_args
=
30638 if $ac_cs_silent; then
30640 ac_configure_extra_args
="$ac_configure_extra_args --silent"
30644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30645 if \$ac_cs_recheck; then
30646 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30648 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30649 CONFIG_SHELL='$SHELL'
30650 export CONFIG_SHELL
30655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30659 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30660 ## Running $as_me. ##
30666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30670 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30671 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
30676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30678 # Handling of arguments.
30679 for ac_config_target
in $ac_config_targets
30681 case $ac_config_target in
30682 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
30683 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
30684 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
30685 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
30686 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
30687 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
30688 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
30689 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
30690 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
30692 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30697 # If the user did not use the arguments to specify the items to instantiate,
30698 # then the envvar interface is used. Set only those that are not.
30699 # We use the long form for the default assignment because of an extremely
30700 # bizarre bug on SunOS 4.1.3.
30701 if $ac_need_defaults; then
30702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
30703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
30704 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
30705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
30708 # Have a temporary directory for convenience. Make it in the build tree
30709 # simply because there is no reason against having it here, and in addition,
30710 # creating and moving files from /tmp can sometimes cause problems.
30711 # Hook for its removal unless debugging.
30712 # Note that there is a small window in which the directory will not be cleaned:
30713 # after its creation but before its name has been assigned to `$tmp'.
30717 trap 'exit_status=$?
30718 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30720 trap 'as_fn_exit 1' 1 2 13 15
30722 # Create a (secure) tmp directory for tmp files.
30725 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30726 test -n "$tmp" && test -d "$tmp"
30729 tmp
=.
/conf$$
-$RANDOM
30730 (umask 077 && mkdir
"$tmp")
30731 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
30733 # Set up the scripts for CONFIG_FILES section.
30734 # No need to generate them if there are no CONFIG_FILES.
30735 # This happens for instance with `./config.status config.h'.
30736 if test -n "$CONFIG_FILES"; then
30738 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
30739 ac_cs_awk_getline
=:
30740 ac_cs_awk_pipe_init
=
30741 ac_cs_awk_read_file
='
30742 while ((getline aline < (F[key])) > 0)
30745 ac_cs_awk_pipe_fini
=
30747 ac_cs_awk_getline
=false
30748 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
30749 ac_cs_awk_read_file
='
30751 print "cat " F[key] " &&"
30752 '$ac_cs_awk_pipe_init
30753 # The final `:' finishes the AND list.
30754 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
30756 ac_cr
=`echo X | tr X '\015'`
30757 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30758 # But we know of no other shell where ac_cr would be empty at this
30759 # point, so we can use a bashism as a fallback.
30760 if test "x$ac_cr" = x
; then
30761 eval ac_cr
=\$
\'\\r
\'
30763 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30764 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30767 ac_cs_awk_cr
=$ac_cr
30770 echo 'BEGIN {' >"$tmp/subs1.awk" &&
30773 # Create commands to substitute file output variables.
30775 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
30776 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
30777 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
30780 } >conf$
$files.sh
&&
30781 . .
/conf$
$files.sh ||
30782 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
30783 rm -f conf$
$files.sh
30786 echo "cat >conf$$subs.awk <<_ACEOF" &&
30787 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30789 } >conf$$subs.sh ||
30790 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30791 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
30793 for ac_last_try in false false false false false :; do
30794 . ./conf$$subs.sh ||
30795 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30797 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
30798 if test $ac_delim_n = $ac_delim_num; then
30800 elif $ac_last_try; then
30801 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
30803 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30806 rm -f conf$$subs.sh
30808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30809 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
30813 s/^/S["/; s
/!.
*/"]=/
30823 s/\(.\{148\}\).*/\1/
30825 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
30830 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30837 s/\(.\{148\}\).*/\1/
30839 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
30843 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
30848 ' <conf$$subs.awk | sed '
30853 ' >>$CONFIG_STATUS || ac_write_fail=1
30854 rm -f conf$$subs.awk
30855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30857 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
30858 for (key in S) S_is_set[key] = 1
30860 \$ac_cs_awk_pipe_init
30864 nfields = split(line, field, "@
")
30866 len = length(field[1])
30867 for (i = 2; i < nfields; i++) {
30869 keylen = length(key)
30870 if (S_is_set[key]) {
30872 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30873 len += length(value) + length(field[++i])
30878 if (nfields == 3 && !substed) {
30880 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
30881 \$ac_cs_awk_read_file
30887 \$ac_cs_awk_pipe_fini
30890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30891 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30892 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
30895 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
30896 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
30899 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30900 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
30901 # trailing colons and then remove the whole line if VPATH becomes empty
30902 # (actually we leave an empty line to preserve line numbers).
30903 if test "x
$srcdir" = x.; then
30904 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30905 s/:*\$(srcdir):*/:/
30906 s/:*\${srcdir}:*/:/
30908 s/^\([^=]*=[ ]*\):*/\1/
30914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30915 fi # test -n "$CONFIG_FILES"
30917 # Set up the scripts for CONFIG_HEADERS section.
30918 # No need to generate them if there are no CONFIG_HEADERS.
30919 # This happens for instance with `./config.status Makefile'.
30920 if test -n "$CONFIG_HEADERS"; then
30921 cat >"$tmp/defines.
awk" <<\_ACAWK ||
30925 # Transform confdefs.h into an awk script `defines.awk', embedded as
30926 # here-document in config.status, that substitutes the proper values into
30927 # config.h.in to produce config.h.
30929 # Create a delimiter string that does not exist in confdefs.h, to ease
30930 # handling of long lines.
30932 for ac_last_try in false false :; do
30933 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
30934 if test -z "$ac_t"; then
30936 elif $ac_last_try; then
30937 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
30939 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
30943 # For the awk script, D is an array of macro values keyed by name,
30944 # likewise P contains macro parameters if any. Preserve backslash
30945 # newline sequences.
30947 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30949 s/.\{148\}/&'"$ac_delim"'/g
30952 s/^[ ]*#[ ]*define[ ][ ]*/ /
30959 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
30961 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
30965 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
30966 D["\
1"]=" \
3\\\\\\n
"\\/p
30968 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
30973 s/.\{148\}/&'"$ac_delim"'/g
30978 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
30981 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
30983 ' <confdefs.h | sed '
30984 s/'"$ac_delim"'/"\\\
30985 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30988 for (key in D) D_is_set[key] = 1
30991 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30993 split(line, arg, " ")
30994 if (arg[1] == "#") {
30998 defundef
= substr
(arg
[1], 2)
31001 split(mac1
, mac2
, "(") #)
31003 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
31004 if (D_is_set
[macro
]) {
31005 # Preserve the white space surrounding the "#".
31006 print prefix
"define", macro P
[macro
] D
[macro
]
31009 # Replace #undef with comments. This is necessary, for example,
31010 # in the case of _POSIX_SOURCE, which is predefined and required
31011 # on some systems where configure will not decide to define it.
31012 if (defundef
== "undef") {
31013 print
"/*", prefix defundef
, macro
, "*/"
31021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31022 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
31023 fi # test -n "$CONFIG_HEADERS"
31026 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
31031 :[FHLC
]) ac_mode
=$ac_tag; continue;;
31033 case $ac_mode$ac_tag in
31035 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
31036 :[FH
]-) ac_tag
=-:-;;
31037 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
31054 -) ac_f
="$tmp/stdin";;
31055 *) # Look for the file first in the build tree, then in the source tree
31056 # (if the path is not absolute). The absolute path cannot be DOS-style,
31057 # because $ac_f cannot contain `:'.
31061 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
31063 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
31065 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31066 as_fn_append ac_file_inputs
" '$ac_f'"
31069 # Let's still pretend it is `configure' which instantiates (i.e., don't
31070 # use $as_me), people would be surprised to read:
31071 # /* config.h. Generated by config.status. */
31072 configure_input
='Generated from '`
31073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31075 if test x
"$ac_file" != x-
; then
31076 configure_input
="$ac_file. $configure_input"
31077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31078 $as_echo "$as_me: creating $ac_file" >&6;}
31080 # Neutralize special characters interpreted by sed in replacement strings.
31081 case $configure_input in #(
31082 *\
&* |
*\|
* |
*\\* )
31083 ac_sed_conf_input
=`$as_echo "$configure_input" |
31084 sed 's/[\\\\&|]/\\\\&/g'`;; #(
31085 *) ac_sed_conf_input
=$configure_input;;
31089 *:-:* |
*:-) cat >"$tmp/stdin" \
31090 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
31095 ac_dir
=`$as_dirname -- "$ac_file" ||
31096 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31097 X"$ac_file" : 'X\(//\)[^/]' \| \
31098 X"$ac_file" : 'X\(//\)$' \| \
31099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31100 $as_echo X"$ac_file" |
31101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31105 /^X\(\/\/\)[^/].*/{
31118 as_dir
="$ac_dir"; as_fn_mkdir_p
31122 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31124 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31125 # A ".." for each directory in $ac_dir_suffix.
31126 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31127 case $ac_top_builddir_sub in
31128 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
31129 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
31132 ac_abs_top_builddir
=$ac_pwd
31133 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
31134 # for backward compatibility:
31135 ac_top_builddir
=$ac_top_build_prefix
31138 .
) # We are building in place.
31140 ac_top_srcdir
=$ac_top_builddir_sub
31141 ac_abs_top_srcdir
=$ac_pwd ;;
31142 [\\/]* | ?
:[\\/]* ) # Absolute name.
31143 ac_srcdir
=$srcdir$ac_dir_suffix;
31144 ac_top_srcdir
=$srcdir
31145 ac_abs_top_srcdir
=$srcdir ;;
31146 *) # Relative name.
31147 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
31148 ac_top_srcdir
=$ac_top_build_prefix$srcdir
31149 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
31151 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
31162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31163 # If the template does not know about datarootdir, expand it.
31164 # FIXME: This hack should be removed a few years after 2.60.
31165 ac_datarootdir_hack
=; ac_datarootdir_seen
=
31176 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31177 *datarootdir
*) ac_datarootdir_seen
=yes;;
31178 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31180 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31183 ac_datarootdir_hack='
31184 s&@datadir@&$datadir&g
31185 s&@docdir@&$docdir&g
31186 s&@infodir@&$infodir&g
31187 s&@localedir@&$localedir&g
31188 s&@mandir@&$mandir&g
31189 s&\\\${datarootdir}&$datarootdir&g' ;;
31193 # Neutralize VPATH when `$srcdir' = `.'.
31194 # Shell code in configure.ac might set extrasub.
31195 # FIXME: do we really want to maintain this feature?
31196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31197 ac_sed_extra="$ac_vpsub
31200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31202 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
31203 s|@configure_input@|
$ac_sed_conf_input|
;t t
31204 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
31205 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
31206 s
&@srcdir@
&$ac_srcdir&;t t
31207 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
31208 s
&@top_srcdir@
&$ac_top_srcdir&;t t
31209 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
31210 s
&@builddir@
&$ac_builddir&;t t
31211 s
&@abs_builddir@
&$ac_abs_builddir&;t t
31212 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
31213 $ac_datarootdir_hack
31215 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31216 if $ac_cs_awk_getline; then
31217 $AWK -f "$tmp/subs.
awk"
31219 $AWK -f "$tmp/subs.
awk" | $SHELL
31221 || as_fn_error "could not create
$ac_file" "$LINENO" 5
31223 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31224 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
31225 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
31226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
31227 which seems to be undefined. Please make sure it is defined." >&5
31228 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
31229 which seems to be undefined. Please make sure it is defined." >&2;}
31233 -) cat "$tmp/out" && rm -f "$tmp/out";;
31234 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31236 || as_fn_error "could not create $ac_file" "$LINENO" 5
31242 if test x"$ac_file" != x-; then
31244 $as_echo "/* $configure_input */" \
31245 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31246 } >"$tmp/config.h" \
31247 || as_fn_error "could not create $ac_file" "$LINENO" 5
31248 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31250 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31253 mv "$tmp/config.h" "$ac_file" \
31254 || as_fn_error "could not create $ac_file" "$LINENO" 5
31257 $as_echo "/* $configure_input */" \
31258 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31259 || as_fn_error "could not create -" "$LINENO" 5
31267 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
31270 # Prefer the file from the source tree if names are identical.
31271 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31272 ac_source=$srcdir/$ac_source
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
31276 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31278 if test ! -r "$ac_source"; then
31279 as_fn_error "$ac_source: file not found" "$LINENO" 5
31283 # Try a relative symlink, then a hard link, then a copy.
31285 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31286 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31288 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31289 ln "$ac_source" "$ac_file" 2>/dev/null ||
31290 cp -p "$ac_source" "$ac_file" ||
31291 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
31294 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31295 $as_echo "$as_me: executing $ac_file commands" >&6;}
31300 case $ac_file$ac_mode in
31301 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
31303 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
31304 for lang in $subdirs c-family common
31306 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
31308 "as":F) chmod +x as ;;
31309 "collect-ld":F) chmod +x collect-ld ;;
31310 "nm":F) chmod +x nm ;;
31312 case ${CONFIG_HEADERS} in
31313 *auto-host.h:config.in*)
31316 # Make sure all the subdirs exist.
31317 for d in $subdirs doc build common c-family
31319 test -d $d || mkdir $d
31329 ac_clean_files=$ac_clean_files_save
31331 test $ac_write_fail = 0 ||
31332 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31335 # configure is writing to config.log, and then calls config.status.
31336 # config.status does its own redirection, appending to config.log.
31337 # Unfortunately, on DOS this fails, as config.log is still kept open
31338 # by configure, so config.status won't be able to
write to it
; its
31339 # output is simply discarded. So we exec the FD to /dev/null,
31340 # effectively closing config.log, so it can be properly (re)opened and
31341 # appended to by config.status. When coming back to configure, we
31342 # need to make the FD available again.
31343 if test "$no_create" != yes; then
31345 ac_config_status_args
=
31346 test "$silent" = yes &&
31347 ac_config_status_args
="$ac_config_status_args --quiet"
31349 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
31351 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31352 # would make configure fail if this is the last instruction.
31353 $ac_cs_success || as_fn_exit $?
31355 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31357 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}