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
624 common_out_object_file
640 gcc_gxx_include_dir_add_sysroot
647 user_headers_inc_next_post
648 user_headers_inc_next_pre
650 TM_MULTILIB_EXCEPTIONS_CONFIG
659 build_xm_include_list
661 build_install_headers_dir
663 all_selected_languages
681 ORIGINAL_NM_FOR_TARGET
683 ORIGINAL_LD_GOLD_FOR_TARGET
684 ORIGINAL_LD_BFD_FOR_TARGET
685 ORIGINAL_LD_FOR_TARGET
686 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 ORIGINAL_AS_FOR_TARGET
730 NATIVE_SYSTEM_HEADER_DIR
763 real_target_noncanonical
764 enable_as_accelerator
769 CROSS_SYSTEM_HEADER_DIR
770 TARGET_SYSTEM_ROOT_DEFINE
772 SYSROOT_CFLAGS_FOR_TARGET
782 valgrind_path_defines
856 program_transform_name
867 ac_subst_files
='option_includes
870 enable_option_checking
875 enable_generated_files_in_srcdir
882 enable_build_format_warnings
886 enable_gather_detailed_mem_stats
887 enable_valgrind_annotations
899 with_native_system_header_dir
909 enable_sjlj_exceptions
911 enable_leading_mingw64_underscores
914 enable_win32_registry
922 enable_gnu_indirect_function
923 enable_initfini_array
925 enable_fix_cortex_a53_835769
926 enable_fix_cortex_a53_843419
928 enable_gnu_unique_object
929 enable_linker_build_id
933 enable_maintainer_mode
935 enable_version_specific_runtime_libs
938 enable_libquadmath_support
939 with_linker_hash_style
940 with_diagnostics_color
942 ac_precious_vars
='build_alias
961 # Initialize some variables set by options.
963 ac_init_version
=false
964 ac_unrecognized_opts
=
966 # The variables have the same names as the options, with
967 # dashes changed to underlines.
975 program_transform_name
=s
,x
,x
,
983 # Installation directory options.
984 # These are left unexpanded so users can "make install exec_prefix=/foo"
985 # and all the variables that are supposed to be based on exec_prefix
986 # by default will actually change.
987 # Use braces instead of parens because sh, perl, etc. also accept them.
988 # (The list follows the same order as the GNU Coding Standards.)
989 bindir
='${exec_prefix}/bin'
990 sbindir
='${exec_prefix}/sbin'
991 libexecdir
='${exec_prefix}/libexec'
992 datarootdir
='${prefix}/share'
993 datadir
='${datarootdir}'
994 sysconfdir
='${prefix}/etc'
995 sharedstatedir
='${prefix}/com'
996 localstatedir
='${prefix}/var'
997 includedir
='${prefix}/include'
998 oldincludedir
='/usr/include'
999 docdir
='${datarootdir}/doc/${PACKAGE}'
1000 infodir
='${datarootdir}/info'
1005 libdir
='${exec_prefix}/lib'
1006 localedir
='${datarootdir}/locale'
1007 mandir
='${datarootdir}/man'
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\
$ac_option
1021 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1027 case $ac_dashdash$ac_option in
1031 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1033 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1034 bindir
=$ac_optarg ;;
1036 -build |
--build |
--buil |
--bui |
--bu)
1037 ac_prev
=build_alias
;;
1038 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1039 build_alias
=$ac_optarg ;;
1041 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1042 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1043 ac_prev
=cache_file
;;
1044 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1045 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1046 cache_file
=$ac_optarg ;;
1048 --config-cache |
-C)
1049 cache_file
=config.cache
;;
1051 -datadir |
--datadir |
--datadi |
--datad)
1053 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1054 datadir
=$ac_optarg ;;
1056 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1057 |
--dataroo |
--dataro |
--datar)
1058 ac_prev
=datarootdir
;;
1059 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1060 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1061 datarootdir
=$ac_optarg ;;
1063 -disable-* |
--disable-*)
1064 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1067 as_fn_error
"invalid feature name: $ac_useropt"
1068 ac_useropt_orig
=$ac_useropt
1069 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1070 case $ac_user_opts in
1072 "enable_
$ac_useropt"
1074 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1075 ac_unrecognized_sep
=', ';;
1077 eval enable_
$ac_useropt=no
;;
1079 -docdir |
--docdir |
--docdi |
--doc |
--do)
1081 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1082 docdir
=$ac_optarg ;;
1084 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1086 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1087 dvidir
=$ac_optarg ;;
1089 -enable-* |
--enable-*)
1090 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1093 as_fn_error
"invalid feature name: $ac_useropt"
1094 ac_useropt_orig
=$ac_useropt
1095 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_
$ac_useropt"
1100 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1101 ac_unrecognized_sep
=', ';;
1103 eval enable_
$ac_useropt=\
$ac_optarg ;;
1105 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1106 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1107 |
--exec |
--exe |
--ex)
1108 ac_prev
=exec_prefix
;;
1109 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1110 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1111 |
--exec=* |
--exe=* |
--ex=*)
1112 exec_prefix
=$ac_optarg ;;
1114 -gas |
--gas |
--ga |
--g)
1115 # Obsolete; use --with-gas.
1118 -help |
--help |
--hel |
--he |
-h)
1119 ac_init_help
=long
;;
1120 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1121 ac_init_help
=recursive
;;
1122 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1123 ac_init_help
=short
;;
1125 -host |
--host |
--hos |
--ho)
1126 ac_prev
=host_alias
;;
1127 -host=* |
--host=* |
--hos=* |
--ho=*)
1128 host_alias
=$ac_optarg ;;
1130 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1132 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1134 htmldir
=$ac_optarg ;;
1136 -includedir |
--includedir |
--includedi |
--included |
--include \
1137 |
--includ |
--inclu |
--incl |
--inc)
1138 ac_prev
=includedir
;;
1139 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1140 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1141 includedir
=$ac_optarg ;;
1143 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1145 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1146 infodir
=$ac_optarg ;;
1148 -libdir |
--libdir |
--libdi |
--libd)
1150 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1151 libdir
=$ac_optarg ;;
1153 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1154 |
--libexe |
--libex |
--libe)
1155 ac_prev
=libexecdir
;;
1156 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1157 |
--libexe=* |
--libex=* |
--libe=*)
1158 libexecdir
=$ac_optarg ;;
1160 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1161 ac_prev
=localedir
;;
1162 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1163 localedir
=$ac_optarg ;;
1165 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1166 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1167 ac_prev
=localstatedir
;;
1168 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1169 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1170 localstatedir
=$ac_optarg ;;
1172 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1174 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1175 mandir
=$ac_optarg ;;
1177 -nfp |
--nfp |
--nf)
1178 # Obsolete; use --without-fp.
1181 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1182 |
--no-cr |
--no-c |
-n)
1185 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1186 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1189 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1190 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1191 |
--oldin |
--oldi |
--old |
--ol |
--o)
1192 ac_prev
=oldincludedir
;;
1193 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1194 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1195 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1196 oldincludedir
=$ac_optarg ;;
1198 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1200 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1201 prefix
=$ac_optarg ;;
1203 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1204 |
--program-pre |
--program-pr |
--program-p)
1205 ac_prev
=program_prefix
;;
1206 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1207 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1208 program_prefix
=$ac_optarg ;;
1210 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1211 |
--program-suf |
--program-su |
--program-s)
1212 ac_prev
=program_suffix
;;
1213 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1214 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1215 program_suffix
=$ac_optarg ;;
1217 -program-transform-name |
--program-transform-name \
1218 |
--program-transform-nam |
--program-transform-na \
1219 |
--program-transform-n |
--program-transform- \
1220 |
--program-transform |
--program-transfor \
1221 |
--program-transfo |
--program-transf \
1222 |
--program-trans |
--program-tran \
1223 |
--progr-tra |
--program-tr |
--program-t)
1224 ac_prev
=program_transform_name
;;
1225 -program-transform-name=* |
--program-transform-name=* \
1226 |
--program-transform-nam=* |
--program-transform-na=* \
1227 |
--program-transform-n=* |
--program-transform-=* \
1228 |
--program-transform=* |
--program-transfor=* \
1229 |
--program-transfo=* |
--program-transf=* \
1230 |
--program-trans=* |
--program-tran=* \
1231 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1232 program_transform_name
=$ac_optarg ;;
1234 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1236 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1237 pdfdir
=$ac_optarg ;;
1239 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1241 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1244 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1245 |
-silent |
--silent |
--silen |
--sile |
--sil)
1248 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1250 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1252 sbindir
=$ac_optarg ;;
1254 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1255 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1256 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1258 ac_prev
=sharedstatedir
;;
1259 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1260 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1261 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1263 sharedstatedir
=$ac_optarg ;;
1265 -site |
--site |
--sit)
1267 -site=* |
--site=* |
--sit=*)
1270 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1272 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1273 srcdir
=$ac_optarg ;;
1275 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1276 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1277 ac_prev
=sysconfdir
;;
1278 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1279 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1280 sysconfdir
=$ac_optarg ;;
1282 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1283 ac_prev
=target_alias
;;
1284 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1285 target_alias
=$ac_optarg ;;
1287 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1290 -version |
--version |
--versio |
--versi |
--vers |
-V)
1291 ac_init_version
=: ;;
1294 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1297 as_fn_error
"invalid package name: $ac_useropt"
1298 ac_useropt_orig
=$ac_useropt
1299 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep
=', ';;
1307 eval with_
$ac_useropt=\
$ac_optarg ;;
1309 -without-* |
--without-*)
1310 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1313 as_fn_error
"invalid package name: $ac_useropt"
1314 ac_useropt_orig
=$ac_useropt
1315 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1320 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1321 ac_unrecognized_sep
=', ';;
1323 eval with_
$ac_useropt=no
;;
1326 # Obsolete; use --with-x.
1329 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1330 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1331 ac_prev
=x_includes
;;
1332 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1333 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1334 x_includes
=$ac_optarg ;;
1336 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1337 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1338 ac_prev
=x_libraries
;;
1339 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1340 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1341 x_libraries
=$ac_optarg ;;
1343 -*) as_fn_error
"unrecognized option: \`$ac_option'
1344 Try \`$0 --help' for more information."
1348 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1349 # Reject names that are not valid shell variable names.
1350 case $ac_envvar in #(
1351 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1352 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1354 eval $ac_envvar=\
$ac_optarg
1355 export $ac_envvar ;;
1358 # FIXME: should be removed in autoconf 3.0.
1359 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1360 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1361 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1362 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1368 if test -n "$ac_prev"; then
1369 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1370 as_fn_error
"missing argument to $ac_option"
1373 if test -n "$ac_unrecognized_opts"; then
1374 case $enable_option_checking in
1376 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1377 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1381 # Check all directory arguments for consistency.
1382 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1383 datadir sysconfdir sharedstatedir localstatedir includedir \
1384 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1385 libdir localedir mandir
1387 eval ac_val
=\$
$ac_var
1388 # Remove trailing slashes.
1391 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1392 eval $ac_var=\
$ac_val;;
1394 # Be sure to have absolute directory names.
1396 [\\/$
]* | ?
:[\\/]* ) continue;;
1397 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1399 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1402 # There might be people who depend on the old broken behavior: `$host'
1403 # used to hold the argument of --host etc.
1404 # FIXME: To remove some day.
1407 target
=$target_alias
1409 # FIXME: To remove some day.
1410 if test "x$host_alias" != x
; then
1411 if test "x$build_alias" = x
; then
1412 cross_compiling
=maybe
1413 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1414 If a cross compiler is detected then cross compile mode will be used." >&2
1415 elif test "x$build_alias" != "x$host_alias"; then
1421 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1423 test "$silent" = yes && exec 6>/dev
/null
1426 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1427 ac_ls_di
=`ls -di .` &&
1428 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1429 as_fn_error
"working directory cannot be determined"
1430 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1431 as_fn_error
"pwd does not report name of working directory"
1434 # Find the source files, if location was not specified.
1435 if test -z "$srcdir"; then
1436 ac_srcdir_defaulted
=yes
1437 # Try the directory containing this script, then the parent directory.
1438 ac_confdir
=`$as_dirname -- "$as_myself" ||
1439 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1440 X"$as_myself" : 'X\(//\)[^/]' \| \
1441 X"$as_myself" : 'X\(//\)$' \| \
1442 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1443 $as_echo X"$as_myself" |
1444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1466 ac_srcdir_defaulted
=no
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1469 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1470 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1472 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1474 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1476 # When building in place, set srcdir=.
1477 if test "$ac_abs_confdir" = "$ac_pwd"; then
1480 # Remove unnecessary trailing slashes from srcdir.
1481 # Double slashes in file names in object file debugging info
1482 # mess up M-x gdb in Emacs.
1484 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1486 for ac_var
in $ac_precious_vars; do
1487 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1488 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1489 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1490 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1494 # Report the --help message.
1496 if test "$ac_init_help" = "long"; then
1497 # Omit some internal or obsolete options to make the list less imposing.
1498 # This message is too long to be a string in the A/UX 3.1 sh.
1500 \`configure' configures this package to adapt to many kinds of systems.
1502 Usage: $0 [OPTION]... [VAR=VALUE]...
1504 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1505 VAR=VALUE. See below for descriptions of some of the useful variables.
1507 Defaults for the options are specified in brackets.
1510 -h, --help display this help and exit
1511 --help=short display options specific to this package
1512 --help=recursive display the short help of all the included packages
1513 -V, --version display version information and exit
1514 -q, --quiet, --silent do not print \`checking...' messages
1515 --cache-file=FILE cache test results in FILE [disabled]
1516 -C, --config-cache alias for \`--cache-file=config.cache'
1517 -n, --no-create do not create output files
1518 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1520 Installation directories:
1521 --prefix=PREFIX install architecture-independent files in PREFIX
1522 [$ac_default_prefix]
1523 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1526 By default, \`make install' will install all the files in
1527 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1528 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1529 for instance \`--prefix=\$HOME'.
1531 For better control, use the options below.
1533 Fine tuning of the installation directories:
1534 --bindir=DIR user executables [EPREFIX/bin]
1535 --sbindir=DIR system admin executables [EPREFIX/sbin]
1536 --libexecdir=DIR program executables [EPREFIX/libexec]
1537 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1538 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1539 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1558 --program-prefix=PREFIX prepend PREFIX to installed program names
1559 --program-suffix=SUFFIX append SUFFIX to installed program names
1560 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1563 --build=BUILD configure
for building on BUILD
[guessed
]
1564 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1565 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1569 if test -n "$ac_init_help"; then
1574 --disable-option-checking ignore unrecognized
--enable/--with options
1575 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1576 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1577 --enable-generated-files-in-srcdir
1578 put copies of generated files
in source dir intended
1579 for creating
source tarballs
for users without
1580 texinfo bison or flex
1581 --disable-largefile omit support
for large files
1582 --disable-build-format-warnings
1583 don
't use -Wformat while building GCC
1584 --enable-werror-always enable -Werror despite compiler version
1585 --enable-checking[=LIST]
1586 enable expensive run-time checks. With LIST, enable
1587 only specific categories of checks. Categories are:
1588 yes,no,all,none,release. Flags are:
1589 assert,df,fold,gc,gcac,gimple,misc,
1590 rtlflag,rtl,runtime,tree,valgrind,types
1591 --enable-coverage[=LEVEL]
1592 enable compiler's code coverage collection. Use to
1593 measure compiler performance and
locate unused parts
1594 of the compiler. With LEVEL
, specify optimization.
1595 Values are opt
, noopt
, default is noopt
1596 --enable-gather-detailed-mem-stats
1597 enable detailed memory allocation stats gathering
1598 --enable-valgrind-annotations
1599 enable valgrind runtime interaction
1600 --enable-multilib enable library support
for multiple ABIs
1601 --enable-multiarch enable support
for multiarch paths
1602 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1603 --enable-decimal-float={no
,yes,bid
,dpd
}
1604 enable decimal float extension to C. Selecting
'bid'
1605 or
'dpd' choses
which decimal floating point format
1607 --enable-fixed-point enable fixed-point arithmetic extension to C
1608 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1610 --enable-tls enable or disable generation of tls code overriding
1611 the assembler check
for tls support
1612 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1613 GNU Objective-C runtime
1614 --disable-shared don't provide a shared libgcc
1615 --enable-languages=LIST specify
which front-ends to build
1616 --disable-rpath do not hardcode runtime library paths
1617 --enable-sjlj-exceptions
1618 arrange to use setjmp
/longjmp exception handling
1619 --enable-secureplt enable -msecure-plt by default
for PowerPC
1620 --enable-leading-mingw64-underscores
1621 enable leading underscores on
64 bit mingw targets
1622 --enable-cld enable -mcld by default
for 32bit x86
1623 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1625 --disable-win32-registry
1626 disable lookup of installation paths
in the Registry
1628 --enable-win32-registry enable registry lookup
(default
)
1629 --enable-win32-registry=KEY
1630 use KEY instead of GCC version as the last portion
1632 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1633 --enable-static[=PKGS
] build static libraries
[default
=yes]
1634 --enable-fast-install[=PKGS
]
1635 optimize
for fast installation
[default
=yes]
1636 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1637 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1638 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1639 --enable-gnu-indirect-function
1640 enable the use of the @gnu_indirect_function to
1642 --enable-initfini-array use .init_array
/.fini_array sections
1643 --enable-comdat enable COMDAT group support
1645 --enable-fix-cortex-a53-835769
1646 enable workaround
for AArch64 Cortex-A53 erratum
1648 --disable-fix-cortex-a53-835769
1649 disable workaround
for AArch64 Cortex-A53 erratum
1653 --enable-fix-cortex-a53-843419
1654 enable workaround
for AArch64 Cortex-A53 erratum
1656 --disable-fix-cortex-a53-843419
1657 disable workaround
for AArch64 Cortex-A53 erratum
1660 --enable-gnu-unique-object
1661 enable the use of the @gnu_unique_object ELF
1662 extension on glibc systems
1663 --enable-linker-build-id
1664 compiler will always pass
--build-id to linker
1665 --enable-maintainer-mode
1666 enable make rules and dependencies not useful
(and
1667 sometimes confusing
) to the casual installer
1668 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1669 thrashing on the build machine
1670 --enable-version-specific-runtime-libs
1671 specify that runtime libraries should be installed
1672 in a compiler-specific directory
1673 --enable-plugin enable plugin support
1674 --enable-host-shared build
host code as shared libraries
1675 --disable-libquadmath-support
1676 disable libquadmath support
for Fortran
1679 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1680 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1681 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1682 --with-local-prefix=DIR specifies directory to put
local include
1683 --with-gxx-include-dir=DIR
1684 specifies directory to put g
++ header files
1685 --with-cpp-install-dir=DIR
1686 install the user visible C preprocessor
in DIR
1687 (relative to PREFIX
) as well as PREFIX
/bin
1688 --with-gnu-ld arrange to work with GNU ld
1689 --with-ld arrange to use the specified ld
(full pathname
)
1690 --with-demangler-in-ld try to use demangler
in GNU ld
1691 --with-gnu-as arrange to work with GNU as
1692 --with-as arrange to use the specified as
(full pathname
)
1693 --with-stabs arrange to use stabs instead of
host debug format
1694 --with-dwarf2 force the default debug format to be DWARF
2
1695 --with-native-system-header-dir=dir
1696 use dir as the directory to
look for standard
1697 system header files
in. Defaults to
/usr
/include.
1698 --with-build-sysroot=sysroot
1699 use sysroot as the system root during the build
1700 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1701 --with-specs=SPECS add SPECS to driver command-line processing
1702 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1703 --with-bugurl=URL Direct users to URL to report a bug
1704 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1705 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1706 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1707 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1708 --with-pic try to use only PIC/non-PIC objects [default=use
1710 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1711 --with-plugin-ld=[ARG] specify the plugin linker
1712 --with-glibc-version=M.N
1713 assume GCC used with glibc version M.N or later
1714 --with-long-double-128 use 128-bit long double by default
1715 --with-gc={page,zone} this option is not supported anymore. It used to
1716 choose the garbage collection mechanism to use with
1718 --with-system-zlib use installed libz
1719 --with-linker-hash-style={sysv,gnu,both}
1720 specify the linker hash style
1721 --with-diagnostics-color={never,auto,auto-if-env,always}
1722 specify the default of -fdiagnostics-color option
1723 auto-if-env stands for -fdiagnostics-color=auto if
1724 GCC_COLOR environment variable is present and
1725 -fdiagnostics-color=never otherwise
1727 Some influential environment variables:
1728 CC C compiler command
1729 CFLAGS C compiler flags
1730 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1731 nonstandard directory <lib dir>
1732 LIBS libraries to pass to the linker, e.g. -l<library>
1733 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1734 you have headers in a nonstandard directory <include dir>
1735 CXX C++ compiler command
1736 CXXFLAGS C++ compiler flags
1737 CXXCPP C++ preprocessor
1739 GMPLIBS How to link GMP
1740 GMPINC How to find GMP include files
1741 ISLLIBS How to link ISL
1742 ISLINC How to find ISL include files
1744 Use these variables to override the choices made by `configure' or to
help
1745 it to
find libraries and programs with nonstandard names
/locations.
1747 Report bugs to the package provider.
1752 if test "$ac_init_help" = "recursive"; then
1753 # If there are subdirs, report their specific --help.
1754 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1755 test -d "$ac_dir" ||
1756 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1761 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1763 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1764 # A ".." for each directory in $ac_dir_suffix.
1765 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1766 case $ac_top_builddir_sub in
1767 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1768 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1771 ac_abs_top_builddir
=$ac_pwd
1772 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1773 # for backward compatibility:
1774 ac_top_builddir
=$ac_top_build_prefix
1777 .
) # We are building in place.
1779 ac_top_srcdir
=$ac_top_builddir_sub
1780 ac_abs_top_srcdir
=$ac_pwd ;;
1781 [\\/]* | ?
:[\\/]* ) # Absolute name.
1782 ac_srcdir
=$srcdir$ac_dir_suffix;
1783 ac_top_srcdir
=$srcdir
1784 ac_abs_top_srcdir
=$srcdir ;;
1786 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1787 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1788 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1790 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1792 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1793 # Check for guested configure.
1794 if test -f "$ac_srcdir/configure.gnu"; then
1796 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1797 elif test -f "$ac_srcdir/configure"; then
1799 $SHELL "$ac_srcdir/configure" --help=recursive
1801 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1803 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1807 test -n "$ac_init_help" && exit $ac_status
1808 if $ac_init_version; then
1811 generated by GNU Autoconf
2.64
1813 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1814 This configure
script is free software
; the Free Software Foundation
1815 gives unlimited permission to copy
, distribute and modify it.
1820 ## ------------------------ ##
1821 ## Autoconf initialization. ##
1822 ## ------------------------ ##
1824 # ac_fn_c_try_compile LINENO
1825 # --------------------------
1826 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_compile
()
1829 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1830 rm -f conftest.
$ac_objext
1831 if { { ac_try
="$ac_compile"
1833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_compile") 2>conftest.err
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest.$ac_objext; then :
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 } # ac_fn_c_try_compile
1862 # ac_fn_cxx_try_compile LINENO
1863 # ----------------------------
1864 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_compile ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext
1869 if { { ac_try="$ac_compile"
1871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1872 *) ac_try_echo
=$ac_try;;
1874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_compile") 2>conftest.err
1878 if test -s conftest.err
; then
1879 grep -v '^ *+' conftest.err
>conftest.er1
1880 cat conftest.er1
>&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest.
$ac_objext; then :
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.
$ac_ext >&5
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1898 } # ac_fn_cxx_try_compile
1900 # ac_fn_cxx_try_cpp LINENO
1901 # ------------------------
1902 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_cxx_try_cpp
()
1905 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1906 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1908 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1915 if test -s conftest.err; then
1916 grep -v '^ *+' conftest.err >conftest.er1
1917 cat conftest.er1 >&5
1918 mv -f conftest.er1 conftest.err
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } >/dev/null && {
1922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1923 test ! -s conftest.err
1927 $as_echo "$as_me: failed program was:" >&5
1928 sed 's/^/| /' conftest.$ac_ext >&5
1932 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935 } # ac_fn_cxx_try_cpp
1937 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1938 # ---------------------------------------------------------
1939 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1940 # the include files in INCLUDES and setting the cache variable VAR
1942 ac_fn_cxx_check_header_mongrel ()
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1955 # Is the header compilable?
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1957 $as_echo_n "checking $2 usability... " >&6; }
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1963 if ac_fn_cxx_try_compile "$LINENO"; then :
1964 ac_header_compiler=yes
1966 ac_header_compiler=no
1968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1970 $as_echo "$ac_header_compiler" >&6; }
1972 # Is the header present?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1974 $as_echo_n "checking $2 presence... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1979 if ac_fn_cxx_try_cpp "$LINENO"; then :
1980 ac_header_preproc=yes
1982 ac_header_preproc=no
1984 rm -f conftest.err conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1986 $as_echo "$ac_header_preproc" >&6; }
1988 # So? What about this header?
1989 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1992 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1998 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2000 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2002 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2004 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2014 eval "$3=\$ac_header_compiler"
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 } # ac_fn_cxx_check_header_mongrel
2024 # ac_fn_cxx_try_run LINENO
2025 # ------------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2027 # that executables *can* be run.
2028 ac_fn_cxx_try_run ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_link"
2033 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2034 *) ac_try_echo
=$ac_try;;
2036 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>&5
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2042 { { case "(($ac_try" in
2043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2044 *) ac_try_echo=$ac_try;;
2046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2047 $as_echo "$ac_try_echo"; } >&5
2048 (eval "$ac_try") 2>&5
2050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2051 test $ac_status = 0; }; }; then :
2054 $as_echo "$as_me: program exited with status $ac_status" >&5
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=$ac_status
2060 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 } # ac_fn_cxx_try_run
2066 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2067 # ---------------------------------------------------------
2068 # Tests whether HEADER exists and can be compiled using the include files in
2069 # INCLUDES, setting the cache variable VAR accordingly.
2070 ac_fn_cxx_check_header_compile ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2083 if ac_fn_cxx_try_compile "$LINENO"; then :
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095 } # ac_fn_cxx_check_header_compile
2097 # ac_fn_c_try_cpp LINENO
2098 # ----------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2106 *) ac_try_echo
=$ac_try;;
2108 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2112 if test -s conftest.err
; then
2113 grep -v '^ *+' conftest.err
>conftest.er1
2114 cat conftest.er1
>&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } >/dev
/null
&& {
2119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2120 test ! -s conftest.err
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.
$ac_ext >&5
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2134 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2135 # ----------------------------------------------
2136 # Tries to find the compile-time value of EXPR in a program that includes
2137 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2139 ac_fn_cxx_compute_int
()
2141 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2142 if test "$cross_compiling" = yes; then
2143 # Depending upon the size, compute the lo and hi bounds.
2144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2150 static int test_array [1 - 2 * !(($2) >= 0)];
2157 if ac_fn_cxx_try_compile
"$LINENO"; then :
2160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2173 if ac_fn_cxx_try_compile
"$LINENO"; then :
2174 ac_hi
=$ac_mid; break
2176 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2177 if test $ac_lo -le $ac_mid; then
2181 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) < 0)];
2199 if ac_fn_cxx_try_compile
"$LINENO"; then :
2202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2208 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2215 if ac_fn_cxx_try_compile
"$LINENO"; then :
2216 ac_lo
=$ac_mid; break
2218 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2219 if test $ac_mid -le $ac_hi; then
2223 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2233 # Binary search between lo and hi bounds.
2234 while test "x$ac_lo" != "x$ac_hi"; do
2235 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2242 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2249 if ac_fn_cxx_try_compile
"$LINENO"; then :
2252 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2257 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2264 static long int longval () { return $2; }
2265 static unsigned long int ulongval () { return $2; }
2272 FILE *f = fopen ("conftest.val", "w");
2277 long int i = longval ();
2280 fprintf (f, "%ld", i);
2284 unsigned long int i = ulongval ();
2287 fprintf (f, "%lu", i);
2289 /* Do not output a trailing newline, as this causes \r\n confusion
2290 on some platforms. */
2291 return ferror (f) || fclose (f) != 0;
2297 if ac_fn_cxx_try_run
"$LINENO"; then :
2298 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2302 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2303 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2310 } # ac_fn_cxx_compute_int
2312 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2313 # ---------------------------------------------
2314 # Tests whether TYPE exists after having included INCLUDES, setting cache
2315 # variable VAR accordingly.
2316 ac_fn_cxx_check_type
()
2318 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2320 $as_echo_n "checking for $2... " >&6; }
2321 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2322 $as_echo_n "(cached) " >&6
2325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2337 if ac_fn_cxx_try_compile
"$LINENO"; then :
2338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2350 if ac_fn_cxx_try_compile
"$LINENO"; then :
2355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2364 } # ac_fn_cxx_check_type
2366 # ac_fn_c_find_intX_t LINENO BITS VAR
2367 # -----------------------------------
2368 # Finds a signed integer type with width BITS, setting cache variable VAR
2370 ac_fn_c_find_intX_t
()
2372 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2374 $as_echo_n "checking for int$2_t... " >&6; }
2375 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2376 $as_echo_n "(cached) " >&6
2379 for ac_type
in int
$2_t 'int' 'long int' \
2380 'long long int' 'short int' 'signed char'; do
2381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2383 $ac_includes_default
2387 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2394 if ac_fn_cxx_try_compile
"$LINENO"; then :
2395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $ac_includes_default
2401 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2402 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2409 if ac_fn_cxx_try_compile
"$LINENO"; then :
2416 eval "$3=\$ac_type" ;;
2419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2423 if test "x$as_val" = x
""no
; then :
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2435 } # ac_fn_c_find_intX_t
2437 # ac_fn_cxx_try_link LINENO
2438 # -------------------------
2439 # Try to link conftest.$ac_ext, and return whether this succeeded.
2440 ac_fn_cxx_try_link
()
2442 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2443 rm -f conftest.
$ac_objext conftest
$ac_exeext
2444 if { { ac_try
="$ac_link"
2446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2447 *) ac_try_echo=$ac_try;;
2449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2450 $as_echo "$ac_try_echo"; } >&5
2451 (eval "$ac_link") 2>conftest.err
2453 if test -s conftest.err; then
2454 grep -v '^ *+' conftest.err >conftest.er1
2455 cat conftest.er1 >&5
2456 mv -f conftest.er1 conftest.err
2458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2459 test $ac_status = 0; } && {
2460 test -z "$ac_cxx_werror_flag" ||
2461 test ! -s conftest.err
2462 } && test -s conftest$ac_exeext && {
2463 test "$cross_compiling" = yes ||
2464 $as_test_x conftest$ac_exeext
2468 $as_echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2473 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2474 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2475 # interfere with the next link command; also delete a directory that is
2476 # left behind by Apple's compiler. We do this before executing the actions.
2477 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2481 } # ac_fn_cxx_try_link
2483 # ac_fn_c_find_uintX_t LINENO BITS VAR
2484 # ------------------------------------
2485 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2487 ac_fn_c_find_uintX_t ()
2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2491 $as_echo_n "checking for uint$2_t... " >&6; }
2492 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2493 $as_echo_n "(cached) " >&6
2496 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2497 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2500 $ac_includes_default
2504 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2511 if ac_fn_cxx_try_compile "$LINENO"; then :
2516 eval "$3=\$ac_type" ;;
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2521 if test "x$as_val" = x""no; then :
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533 } # ac_fn_c_find_uintX_t
2535 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2536 # ------------------------------------------------
2537 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2538 ac_fn_cxx_check_header_preproc ()
2540 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2544 $as_echo_n "(cached) " >&6
2546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h. */
2550 if ac_fn_cxx_try_cpp "$LINENO"; then :
2555 rm -f conftest.err conftest.$ac_ext
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 } # ac_fn_cxx_check_header_preproc
2564 # ac_fn_cxx_check_func LINENO FUNC VAR
2565 # ------------------------------------
2566 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2567 ac_fn_cxx_check_func ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2579 #define $2 innocuous_$2
2581 /* System header to define __stub macros and hopefully few prototypes,
2582 which can conflict with char $2 (); below.
2583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2584 <limits.h> exists even on freestanding compilers. */
2587 # include <limits.h>
2589 # include <assert.h>
2594 /* Override any GCC internal prototype to avoid an error.
2595 Use char because int might match the return type of a GCC
2596 builtin and then its argument prototype would still apply. */
2601 /* The GNU C library defines this for functions which it implements
2602 to always fail with ENOSYS. Some functions are actually named
2603 something starting with __ and the normal name is an alias. */
2604 #if defined __stub_$2 || defined __stub___$2
2616 if ac_fn_cxx_try_link "$LINENO"; then :
2621 rm -f core conftest.err conftest.$ac_objext \
2622 conftest$ac_exeext conftest.$ac_ext
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2629 } # ac_fn_cxx_check_func
2631 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2632 # --------------------------------------
2633 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2634 ac_fn_cxx_check_decl ()
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2638 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2640 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2641 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2642 $as_echo_n "(cached) " >&6
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2650 #ifndef $as_decl_name
2652 (void) $as_decl_use;
2654 (void) $as_decl_name;
2662 if ac_fn_cxx_try_compile "$LINENO"; then :
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2671 $as_echo "$ac_res" >&6; }
2672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2674 } # ac_fn_cxx_check_decl
2676 # ac_fn_c_try_link LINENO
2677 # -----------------------
2678 # Try to link conftest.$ac_ext, and return whether this succeeded.
2681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2682 rm -f conftest.$ac_objext conftest$ac_exeext
2683 if { { ac_try="$ac_link"
2685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2686 *) ac_try_echo
=$ac_try;;
2688 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689 $as_echo "$ac_try_echo"; } >&5
2690 (eval "$ac_link") 2>conftest.err
2692 if test -s conftest.err
; then
2693 grep -v '^ *+' conftest.err
>conftest.er1
2694 cat conftest.er1
>&5
2695 mv -f conftest.er1 conftest.err
2697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2698 test $ac_status = 0; } && {
2699 test -z "$ac_c_werror_flag" ||
2700 test ! -s conftest.err
2701 } && test -s conftest
$ac_exeext && {
2702 test "$cross_compiling" = yes ||
2703 $as_test_x conftest
$ac_exeext
2707 $as_echo "$as_me: failed program was:" >&5
2708 sed 's/^/| /' conftest.
$ac_ext >&5
2712 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2713 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2714 # interfere with the next link command; also delete a directory that is
2715 # left behind by Apple's compiler. We do this before executing the actions.
2716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2717 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2720 } # ac_fn_c_try_link
2722 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2723 # ----------------------------------------------
2724 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2725 ac_fn_c_check_header_preproc
()
2727 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2729 $as_echo_n "checking for $2... " >&6; }
2730 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2731 $as_echo_n "(cached) " >&6
2733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2737 if ac_fn_c_try_cpp
"$LINENO"; then :
2742 rm -f conftest.err conftest.
$ac_ext
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2749 } # ac_fn_c_check_header_preproc
2751 # ac_fn_c_check_func LINENO FUNC VAR
2752 # ----------------------------------
2753 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2754 ac_fn_c_check_func
()
2756 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2758 $as_echo_n "checking for $2... " >&6; }
2759 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2760 $as_echo_n "(cached) " >&6
2762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2764 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2766 #define $2 innocuous_$2
2768 /* System header to define __stub macros and hopefully few prototypes,
2769 which can conflict with char $2 (); below.
2770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2771 <limits.h> exists even on freestanding compilers. */
2774 # include <limits.h>
2776 # include <assert.h>
2781 /* Override any GCC internal prototype to avoid an error.
2782 Use char because int might match the return type of a GCC
2783 builtin and then its argument prototype would still apply. */
2788 /* The GNU C library defines this for functions which it implements
2789 to always fail with ENOSYS. Some functions are actually named
2790 something starting with __ and the normal name is an alias. */
2791 #if defined __stub_$2 || defined __stub___$2
2803 if ac_fn_c_try_link
"$LINENO"; then :
2808 rm -f core conftest.err conftest.
$ac_objext \
2809 conftest
$ac_exeext conftest.
$ac_ext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813 $as_echo "$ac_res" >&6; }
2814 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2816 } # ac_fn_c_check_func
2817 cat >config.log
<<_ACEOF
2818 This file contains any messages produced by compilers while
2819 running configure, to aid debugging if configure makes a mistake.
2821 It was created by $as_me, which was
2822 generated by GNU Autoconf 2.64. Invocation command line was
2834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2846 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir
=.
2858 $as_echo "PATH: $as_dir"
2874 # Keep a trace of the command line.
2875 # Strip out --no-create and --no-recursion so they do not pile up.
2876 # Strip out --silent because we don't want to record it for future runs.
2877 # Also quote any args containing shell meta-characters.
2878 # Make two passes to allow for proper duplicate-argument suppression.
2882 ac_must_keep_next
=false
2888 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2889 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2890 |
-silent |
--silent |
--silen |
--sile |
--sil)
2893 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2896 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2898 as_fn_append ac_configure_args1
" '$ac_arg'"
2899 if test $ac_must_keep_next = true
; then
2900 ac_must_keep_next
=false
# Got value, back to normal.
2903 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2904 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2905 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2906 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2907 case "$ac_configure_args0 " in
2908 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2911 -* ) ac_must_keep_next
=true
;;
2914 as_fn_append ac_configure_args
" '$ac_arg'"
2919 { ac_configure_args0
=; unset ac_configure_args0
;}
2920 { ac_configure_args1
=; unset ac_configure_args1
;}
2922 # When interrupted or exit'd, cleanup temporary files, and complete
2923 # config.log. We remove comments because anyway the quotes in there
2924 # would cause problems or look ugly.
2925 # WARNING: Use '\'' to represent an apostrophe within the trap.
2926 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2927 trap 'exit_status=$?
2928 # Save into config.log some information that might help in debugging.
2933 ## ---------------- ##
2934 ## Cache variables. ##
2935 ## ---------------- ##
2938 # The following way of writing the cache mishandles newlines in values,
2940 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2941 eval ac_val=\$$ac_var
2945 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2946 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2949 _ | IFS | as_nl) ;; #(
2950 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2951 *) { eval $ac_var=; unset $ac_var;} ;;
2956 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2957 *${as_nl}ac_space=\ *)
2959 "s/'\''/'\''\\\\'\'''\''/g;
2960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2963 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2971 ## ----------------- ##
2972 ## Output variables. ##
2973 ## ----------------- ##
2976 for ac_var in $ac_subst_vars
2978 eval ac_val=\$$ac_var
2980 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2982 $as_echo "$ac_var='\''$ac_val'\''"
2986 if test -n "$ac_subst_files"; then
2988 ## ------------------- ##
2989 ## File substitutions. ##
2990 ## ------------------- ##
2993 for ac_var
in $ac_subst_files
2995 eval ac_val
=\$
$ac_var
2997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2999 $as_echo "$ac_var='\''$ac_val'\''"
3004 if test -s confdefs.h; then
3014 test "$ac_signal" != 0 &&
3015 $as_echo "$as_me: caught signal $ac_signal"
3016 $as_echo "$as_me: exit $exit_status"
3018 rm -f core *.core core.conftest.* &&
3019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3022 for ac_signal
in 1 2 13 15; do
3023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3028 rm -f -r conftest
* confdefs.h
3030 $as_echo "/* confdefs.h */" > confdefs.h
3032 # Predefined preprocessor variables.
3034 cat >>confdefs.h
<<_ACEOF
3035 #define PACKAGE_NAME "$PACKAGE_NAME"
3038 cat >>confdefs.h
<<_ACEOF
3039 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3042 cat >>confdefs.h
<<_ACEOF
3043 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3046 cat >>confdefs.h
<<_ACEOF
3047 #define PACKAGE_STRING "$PACKAGE_STRING"
3050 cat >>confdefs.h
<<_ACEOF
3051 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3054 cat >>confdefs.h
<<_ACEOF
3055 #define PACKAGE_URL "$PACKAGE_URL"
3059 # Let the site file select an alternate cache file if it wants to.
3060 # Prefer an explicitly selected file to automatically selected ones.
3063 if test -n "$CONFIG_SITE"; then
3064 ac_site_file1
=$CONFIG_SITE
3065 elif test "x$prefix" != xNONE
; then
3066 ac_site_file1
=$prefix/share
/config.site
3067 ac_site_file2
=$prefix/etc
/config.site
3069 ac_site_file1
=$ac_default_prefix/share
/config.site
3070 ac_site_file2
=$ac_default_prefix/etc
/config.site
3072 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3074 test "x$ac_site_file" = xNONE
&& continue
3075 if test -r "$ac_site_file"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3077 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3078 sed 's/^/| /' "$ac_site_file" >&5
3083 if test -r "$cache_file"; then
3084 # Some versions of bash will fail to source /dev/null (special
3085 # files actually), so we avoid doing that.
3086 if test -f "$cache_file"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3088 $as_echo "$as_me: loading cache $cache_file" >&6;}
3090 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3091 *) .
"./$cache_file";;
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3096 $as_echo "$as_me: creating cache $cache_file" >&6;}
3100 # Check that the precious variables saved in the cache have kept the same
3102 ac_cache_corrupted
=false
3103 for ac_var
in $ac_precious_vars; do
3104 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3105 eval ac_new_set
=\
$ac_env_${ac_var}_set
3106 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3107 eval ac_new_val
=\
$ac_env_${ac_var}_value
3108 case $ac_old_set,$ac_new_set in
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3111 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3112 ac_cache_corrupted
=: ;;
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3115 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3116 ac_cache_corrupted
=: ;;
3119 if test "x$ac_old_val" != "x$ac_new_val"; then
3120 # differences in whitespace do not lead to failure.
3121 ac_old_val_w
=`echo x $ac_old_val`
3122 ac_new_val_w
=`echo x $ac_new_val`
3123 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3125 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3126 ac_cache_corrupted
=:
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3129 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3130 eval $ac_var=\
$ac_old_val
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3133 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3135 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3138 # Pass precious variables to config.status.
3139 if test "$ac_new_set" = set; then
3141 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3142 *) ac_arg
=$ac_var=$ac_new_val ;;
3144 case " $ac_configure_args " in
3145 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3146 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3150 if $ac_cache_corrupted; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3154 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3155 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3157 ## -------------------- ##
3158 ## Main body of script. ##
3159 ## -------------------- ##
3162 ac_cpp
='$CPP $CPPFLAGS'
3163 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3164 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3165 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3172 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3175 gcc_version
=`cat $srcdir/BASE-VER`
3177 # Determine the host, build, and target systems
3179 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3180 for ac_t
in install-sh
install.sh shtool
; do
3181 if test -f "$ac_dir/$ac_t"; then
3183 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3188 if test -z "$ac_aux_dir"; then
3189 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3192 # These three variables are undocumented and unsupported,
3193 # and are intended to be withdrawn in a future Autoconf release.
3194 # They can cause serious problems if a builder's source tree is in a directory
3195 # whose full name contains unusual characters.
3196 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3197 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3198 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3201 # Make sure we can run config.sub.
3202 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3203 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3206 $as_echo_n "checking build system type... " >&6; }
3207 if test "${ac_cv_build+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3210 ac_build_alias
=$build_alias
3211 test "x$ac_build_alias" = x
&&
3212 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3213 test "x$ac_build_alias" = x
&&
3214 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3215 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3216 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3220 $as_echo "$ac_cv_build" >&6; }
3221 case $ac_cv_build in
3223 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3226 ac_save_IFS
=$IFS; IFS
='-'
3232 # Remember, the first character of IFS is used to create $*,
3233 # except with old shells:
3236 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3240 $as_echo_n "checking host system type... " >&6; }
3241 if test "${ac_cv_host+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3244 if test "x$host_alias" = x
; then
3245 ac_cv_host
=$ac_cv_build
3247 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3248 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3253 $as_echo "$ac_cv_host" >&6; }
3256 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3259 ac_save_IFS
=$IFS; IFS
='-'
3265 # Remember, the first character of IFS is used to create $*,
3266 # except with old shells:
3269 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3273 $as_echo_n "checking target system type... " >&6; }
3274 if test "${ac_cv_target+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3277 if test "x$target_alias" = x
; then
3278 ac_cv_target
=$ac_cv_host
3280 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3281 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3286 $as_echo "$ac_cv_target" >&6; }
3287 case $ac_cv_target in
3289 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3291 target
=$ac_cv_target
3292 ac_save_IFS
=$IFS; IFS
='-'
3298 # Remember, the first character of IFS is used to create $*,
3299 # except with old shells:
3302 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3305 # The aliases save the names the user supplied, while $host etc.
3306 # will get canonicalized.
3307 test -n "$target_alias" &&
3308 test "$program_prefix$program_suffix$program_transform_name" = \
3310 program_prefix
=${target_alias}-
3312 # Determine the noncanonical target name, for directory use.
3313 case ${build_alias} in
3314 "") build_noncanonical
=${build} ;;
3315 *) build_noncanonical
=${build_alias} ;;
3318 case ${host_alias} in
3319 "") host_noncanonical
=${build_noncanonical} ;;
3320 *) host_noncanonical
=${host_alias} ;;
3323 case ${target_alias} in
3324 "") target_noncanonical
=${host_noncanonical} ;;
3325 *) target_noncanonical
=${target_alias} ;;
3331 # Used for constructing correct paths for offload compilers.
3332 real_target_noncanonical
=${target_noncanonical}
3335 # Determine the target- and build-specific subdirectories
3337 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3338 # have matching libraries, they should use host libraries: Makefile.tpl
3339 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3340 # However, they still use the build modules, because the corresponding
3341 # host modules (e.g. bison) are only built for the host when bootstrap
3343 # - build_subdir is where we find build modules, and never changes.
3344 # - build_libsubdir is where we find build libraries, and can be overridden.
3346 # Prefix 'build-' so this never conflicts with target_subdir.
3347 build_subdir
="build-${build_noncanonical}"
3349 # Check whether --with-build-libsubdir was given.
3350 if test "${with_build_libsubdir+set}" = set; then :
3351 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3353 build_libsubdir
="$build_subdir"
3356 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3357 if ( test $srcdir = .
&& test -d gcc
) \
3358 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3359 host_subdir
="host-${host_noncanonical}"
3364 target_subdir
=${target_noncanonical}
3367 # Set program_transform_name
3368 test "$program_prefix" != NONE
&&
3369 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3370 # Use a double $ so make ignores it.
3371 test "$program_suffix" != NONE
&&
3372 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3373 # Double any \ or $.
3374 # By default was `s,x,x', remove it if useless.
3375 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3376 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3379 # Check for bogus environment variables.
3380 # Test if LIBRARY_PATH contains the notation for the current directory
3381 # since this would lead to problems installing/building glibc.
3382 # LIBRARY_PATH contains the current directory if one of the following
3384 # - one of the terminals (":" and ";") is the first or last sign
3385 # - two terminals occur directly after each other
3386 # - the path contains an element with a dot in it
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3388 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3389 case ${LIBRARY_PATH} in
3390 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3391 library_path_setting
="contains current directory"
3394 library_path_setting
="ok"
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3398 $as_echo "$library_path_setting" >&6; }
3399 if test "$library_path_setting" != "ok"; then
3401 *** LIBRARY_PATH shouldn't contain the current directory when
3402 *** building gcc. Please change the environment variable
3403 *** and run configure again." "$LINENO" 5
3406 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3407 # since this would lead to problems installing/building glibc.
3408 # GCC_EXEC_PREFIX contains the current directory if one of the following
3410 # - one of the terminals (":" and ";") is the first or last sign
3411 # - two terminals occur directly after each other
3412 # - the path contains an element with a dot in it
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3414 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3415 case ${GCC_EXEC_PREFIX} in
3416 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3417 gcc_exec_prefix_setting
="contains current directory"
3420 gcc_exec_prefix_setting
="ok"
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3424 $as_echo "$gcc_exec_prefix_setting" >&6; }
3425 if test "$gcc_exec_prefix_setting" != "ok"; then
3427 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3428 *** building gcc. Please change the environment variable
3429 *** and run configure again." "$LINENO" 5
3436 # Specify the local prefix
3439 # Check whether --with-local-prefix was given.
3440 if test "${with_local_prefix+set}" = set; then :
3441 withval
=$with_local_prefix; case "${withval}" in
3442 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3444 *) local_prefix
=$with_local_prefix ;;
3449 # Default local prefix if it is empty
3450 if test x
$local_prefix = x
; then
3451 local_prefix
=/usr
/local
3454 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3455 # passed in by the toplevel make and thus we'd get different behavior
3456 # depending on where we built the sources.
3457 gcc_gxx_include_dir
=
3458 # Specify the g++ header file directory
3460 # Check whether --with-gxx-include-dir was given.
3461 if test "${with_gxx_include_dir+set}" = set; then :
3462 withval
=$with_gxx_include_dir; case "${withval}" in
3463 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3465 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3470 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3471 if test x
${gcc_gxx_include_dir} = x
; then
3472 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3473 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3475 libstdcxx_incdir
='include/c++/$(version)'
3476 if test x
$host != x
$target; then
3477 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3479 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3483 gcc_gxx_include_dir_add_sysroot
=0
3484 if test "${with_sysroot+set}" = set; then
3485 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3486 if test "${gcc_gxx_without_sysroot}"; then
3487 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3488 gcc_gxx_include_dir_add_sysroot
=1
3493 # Check whether --with-cpp_install_dir was given.
3494 if test "${with_cpp_install_dir+set}" = set; then :
3495 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3496 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3497 elif test x
$withval != xno
; then
3498 cpp_install_dir
=$withval
3503 # We would like to our source tree to be readonly. However when releases or
3504 # pre-releases are generated, the flex/bison generated files as well as the
3505 # various formats of manuals need to be included along with the rest of the
3506 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3510 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3511 # Check whether --enable-generated-files-in-srcdir was given.
3512 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3513 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3515 generated_files_in_srcdir
=no
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3520 $as_echo "$generated_files_in_srcdir" >&6; }
3522 if test "$generated_files_in_srcdir" = "yes"; then
3529 # -------------------
3530 # Find default linker
3531 # -------------------
3535 # Check whether --with-gnu-ld was given.
3536 if test "${with_gnu_ld+set}" = set; then :
3537 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3543 # With pre-defined ld
3545 # Check whether --with-ld was given.
3546 if test "${with_ld+set}" = set; then :
3547 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3550 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3551 if test ! -x "$DEFAULT_LINKER"; then
3552 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3553 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3557 cat >>confdefs.h
<<_ACEOF
3558 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3564 $as_echo_n "checking whether a default linker was specified... " >&6; }
3565 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3566 if test x
"$gnu_ld_flag" = x
"no"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3568 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3571 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3578 # With demangler in GNU ld
3580 # Check whether --with-demangler-in-ld was given.
3581 if test "${with_demangler_in_ld+set}" = set; then :
3582 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3588 # ----------------------
3589 # Find default assembler
3590 # ----------------------
3594 # Check whether --with-gnu-as was given.
3595 if test "${with_gnu_as+set}" = set; then :
3596 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3603 # Check whether --with-as was given.
3604 if test "${with_as+set}" = set; then :
3605 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3608 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3609 if test ! -x "$DEFAULT_ASSEMBLER"; then
3610 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3611 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3615 cat >>confdefs.h
<<_ACEOF
3616 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3622 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3623 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3624 if test x
"$gas_flag" = x
"no"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3626 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3629 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3640 # If a non-executable a.out is present (e.g. created by GNU as above even if
3641 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3642 # file, even when creating an executable, so an execution test fails.
3643 # Remove possible default executable files to avoid this.
3645 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3646 # Autoconf includes it.
3647 rm -f a.out a.exe b.out
3649 # Find the native compiler
3651 ac_cpp
='$CPP $CPPFLAGS'
3652 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3655 if test -n "$ac_tool_prefix"; then
3656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3657 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659 $as_echo_n "checking for $ac_word... " >&6; }
3660 if test "${ac_cv_prog_CC+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3663 if test -n "$CC"; then
3664 ac_cv_prog_CC
="$CC" # Let the user override the test.
3666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3670 test -z "$as_dir" && as_dir
=.
3671 for ac_exec_ext
in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3673 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 if test -n "$CC"; then
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686 $as_echo "$CC" >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689 $as_echo "no" >&6; }
3694 if test -z "$ac_cv_prog_CC"; then
3696 # Extract the first word of "gcc", so it can be a program name with args.
3697 set dummy gcc
; ac_word
=$2
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699 $as_echo_n "checking for $ac_word... " >&6; }
3700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3703 if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3706 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3710 test -z "$as_dir" && as_dir
=.
3711 for ac_exec_ext
in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3713 ac_cv_prog_ac_ct_CC
="gcc"
3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3724 if test -n "$ac_ct_CC"; then
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726 $as_echo "$ac_ct_CC" >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3732 if test "x$ac_ct_CC" = x
; then
3735 case $cross_compiling:$ac_tool_warned in
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739 ac_tool_warned
=yes ;;
3747 if test -z "$CC"; then
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3750 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if test "${ac_cv_prog_CC+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC
="$CC" # Let the user override the test.
3759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3763 test -z "$as_dir" && as_dir
=.
3764 for ac_exec_ext
in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 if test -n "$CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779 $as_echo "$CC" >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3788 if test -z "$CC"; then
3789 # Extract the first word of "cc", so it can be a program name with args.
3790 set dummy cc
; ac_word
=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if test "${ac_cv_prog_CC+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC
="$CC" # Let the user override the test.
3800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3804 test -z "$as_dir" && as_dir
=.
3805 for ac_exec_ext
in '' $ac_executable_extensions; do
3806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3808 ac_prog_rejected
=yes
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 if test $ac_prog_rejected = yes; then
3820 # We found a bogon in the path, so make sure we never use it.
3821 set dummy
$ac_cv_prog_CC
3823 if test $# != 0; then
3824 # We chose a different compiler from the bogus one.
3825 # However, it has the same basename, so the bogon will be chosen
3826 # first if we set CC to just the basename; use the full file name.
3828 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3834 if test -n "$CC"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836 $as_echo "$CC" >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3844 if test -z "$CC"; then
3845 if test -n "$ac_tool_prefix"; then
3846 for ac_prog
in cl.exe
3848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3849 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if test "${ac_cv_prog_CC+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC
="$CC" # Let the user override the test.
3858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3862 test -z "$as_dir" && as_dir
=.
3863 for ac_exec_ext
in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3885 test -n "$CC" && break
3888 if test -z "$CC"; then
3890 for ac_prog
in cl.exe
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893 set dummy
$ac_prog; ac_word
=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_ac_ct_CC
="$ac_prog"
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3920 if test -n "$ac_ct_CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922 $as_echo "$ac_ct_CC" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3929 test -n "$ac_ct_CC" && break
3932 if test "x$ac_ct_CC" = x
; then
3935 case $cross_compiling:$ac_tool_warned in
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3939 ac_tool_warned
=yes ;;
3948 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950 as_fn_error
"no acceptable C compiler found in \$PATH
3951 See \`config.log' for more details." "$LINENO" 5; }
3953 # Provide some information about the compiler.
3954 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3957 for ac_option
in --version -v -V -qversion; do
3958 { { ac_try
="$ac_compiler $ac_option >&5"
3960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964 $as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3967 if test -s conftest.err; then
3969 ... rest of stderr output deleted ...
3970 10q' conftest.err >conftest.er1
3971 cat conftest.er1 >&5
3972 rm -f conftest.er1 conftest.err
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }
3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3989 ac_clean_files_save=$ac_clean_files
3990 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3991 # Try to create an executable without -o first, disregard a.out.
3992 # It will help us diagnose broken compilers, and finding out an intuition
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3995 $as_echo_n "checking for C compiler default output file name... " >&6; }
3996 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3998 # The possible output files:
3999 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4002 for ac_file in $ac_files
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4011 if { { ac_try="$ac_link_default"
4013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4014 *) ac_try_echo
=$ac_try;;
4016 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_link_default") 2>&5
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4023 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4024 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4025 # so that the user can short-circuit this test for compilers unknown to
4027 for ac_file
in $ac_files ''
4029 test -f "$ac_file" ||
continue
4031 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4034 # We found the default executable, but exeext='' is most
4038 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4040 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042 # We set ac_cv_exeext here because the later test for it is not
4043 # safe: cross compilers may not add the suffix if given an `-o'
4044 # argument, so we may need to know it at that point already.
4045 # Even if this section looks crufty: it has the advantage of
4052 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4058 $as_echo "$ac_file" >&6; }
4059 if test -z "$ac_file"; then :
4060 $as_echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.
$ac_ext >&5
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 { as_fn_set_status
77
4066 as_fn_error
"C compiler cannot create executables
4067 See \`config.log' for more details." "$LINENO" 5; }; }
4069 ac_exeext
=$ac_cv_exeext
4071 # Check that the compiler produces executables we can run. If not, either
4072 # the compiler is broken, or we cross compile.
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4074 $as_echo_n "checking whether the C compiler works... " >&6; }
4075 # If not cross compiling, check that we can run a simple program.
4076 if test "$cross_compiling" != yes; then
4077 if { ac_try
='./$ac_file'
4078 { { case "(($ac_try" in
4079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083 $as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_try") 2>&5
4086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; }; then
4090 if test "$cross_compiling" = maybe; then
4093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4095 as_fn_error "cannot run C compiled programs.
4096 If you meant to cross compile
, use \
`--host'.
4097 See \`config.log
' for more details." "$LINENO" 5; }
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102 $as_echo "yes" >&6; }
4104 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4105 ac_clean_files=$ac_clean_files_save
4106 # Check that the compiler produces executables we can run. If not, either
4107 # the compiler is broken, or we cross compile.
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4109 $as_echo_n "checking whether we are cross compiling... " >&6; }
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4111 $as_echo "$cross_compiling" >&6; }
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4114 $as_echo_n "checking for suffix of executables... " >&6; }
4115 if { { ac_try="$ac_link"
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 $as_echo "$ac_try_echo"; } >&5
4122 (eval "$ac_link") 2>&5
4124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125 test $ac_status = 0; }; then :
4126 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4127 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4128 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4130 for ac_file
in conftest.exe conftest conftest.
*; do
4131 test -f "$ac_file" ||
continue
4133 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4134 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4143 See \`config.log' for more details." "$LINENO" 5; }
4145 rm -f conftest
$ac_cv_exeext
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4147 $as_echo "$ac_cv_exeext" >&6; }
4149 rm -f conftest.
$ac_ext
4150 EXEEXT
=$ac_cv_exeext
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4153 $as_echo_n "checking for suffix of object files... " >&6; }
4154 if test "${ac_cv_objext+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
4157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4168 rm -f conftest.o conftest.obj
4169 if { { ac_try
="$ac_compile"
4171 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175 $as_echo "$ac_try_echo"; } >&5
4176 (eval "$ac_compile") 2>&5
4178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179 test $ac_status = 0; }; then :
4180 for ac_file in conftest.o conftest.obj conftest.*; do
4181 test -f "$ac_file" || continue;
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4184 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4189 $as_echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194 as_fn_error "cannot compute suffix of object files
: cannot compile
4195 See \
`config.log' for more details." "$LINENO" 5; }
4197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4200 $as_echo "$ac_cv_objext" >&6; }
4201 OBJEXT=$ac_cv_objext
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4204 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4205 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4222 if ac_fn_c_try_compile "$LINENO"; then :
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4232 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4233 if test $ac_compiler_gnu = yes; then
4238 ac_test_CFLAGS=${CFLAGS+set}
4239 ac_save_CFLAGS=$CFLAGS
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4241 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4242 if test "${ac_cv_prog_cc_g+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4245 ac_save_c_werror_flag=$ac_c_werror_flag
4246 ac_c_werror_flag=yes
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4260 if ac_fn_c_try_compile "$LINENO"; then :
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4275 if ac_fn_c_try_compile "$LINENO"; then :
4278 ac_c_werror_flag=$ac_save_c_werror_flag
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4291 if ac_fn_c_try_compile "$LINENO"; then :
4294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4302 $as_echo "$ac_cv_prog_cc_g" >&6; }
4303 if test "$ac_test_CFLAGS" = set; then
4304 CFLAGS=$ac_save_CFLAGS
4305 elif test $ac_cv_prog_cc_g = yes; then
4306 if test "$GCC" = yes; then
4312 if test "$GCC" = yes; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4319 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4320 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4323 ac_cv_prog_cc_c89=no
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4329 #include <sys/types.h>
4330 #include <sys/stat.h>
4331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4332 struct buf { int x; };
4333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4334 static char *e (p, i)
4340 static char *f (char * (*g) (char **, int), char **p, ...)
4345 s = g (p, va_arg (v,int));
4350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4351 function prototypes and stuff, but not '\xHH' hex character constants.
4352 These don't provoke an error unfortunately, instead are silently treated
4353 as 'x'. The following induces an error, until -std is added to get
4354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4355 array size at least. It's necessary to write '\x00'==0 to get something
4356 that's true only with -std. */
4357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4360 inside strings and character constants. */
4362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4364 int test (int i, double x);
4365 struct s1 {int (*f) (int a);};
4366 struct s2 {int (*f) (double a);};
4367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4381 CC="$ac_save_CC $ac_arg"
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_c89=$ac_arg
4385 rm -f core conftest.err conftest.$ac_objext
4386 test "x$ac_cv_prog_cc_c89" != "xno" && break
4388 rm -f conftest.$ac_ext
4393 case "x$ac_cv_prog_cc_c89" in
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396 $as_echo "none needed" >&6; } ;;
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4399 $as_echo "unsupported" >&6; } ;;
4401 CC="$CC $ac_cv_prog_cc_c89"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4403 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4405 if test "x$ac_cv_prog_cc_c89" != xno; then :
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 ac_cpp='$CXXCPP $CPPFLAGS'
4417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4420 if test -z "$CXX"; then
4421 if test -n "$CCC"; then
4424 if test -n "$ac_tool_prefix"; then
4425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if test "${ac_cv_prog_CXX+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4434 if test -n "$CXX"; then
4435 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 if test -n "$CXX"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4457 $as_echo "$CXX" >&6; }
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4464 test -n "$CXX" && break
4467 if test -z "$CXX"; then
4469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4478 if test -n "$ac_ct_CXX"; then
4479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_ac_ct_CXX="$ac_prog"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4499 if test -n "$ac_ct_CXX"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4501 $as_echo "$ac_ct_CXX" >&6; }
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4508 test -n "$ac_ct_CXX" && break
4511 if test "x$ac_ct_CXX" = x; then
4514 case $cross_compiling:$ac_tool_warned in
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4518 ac_tool_warned=yes ;;
4526 # Provide some information about the compiler.
4527 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4530 for ac_option in --version -v -V -qversion; do
4531 { { ac_try="$ac_compiler $ac_option >&5"
4533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4534 *) ac_try_echo
=$ac_try;;
4536 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4540 if test -s conftest.err
; then
4542 ... rest of stderr output deleted ...
4543 10q' conftest.err
>conftest.er1
4544 cat conftest.er1
>&5
4545 rm -f conftest.er1 conftest.err
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4552 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4553 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
4556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4570 if ac_fn_cxx_try_compile
"$LINENO"; then :
4575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4576 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4580 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4581 if test $ac_compiler_gnu = yes; then
4586 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4587 ac_save_CXXFLAGS
=$CXXFLAGS
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4589 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4590 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4593 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4594 ac_cxx_werror_flag
=yes
4597 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4608 if ac_fn_cxx_try_compile
"$LINENO"; then :
4609 ac_cv_prog_cxx_g
=yes
4612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4623 if ac_fn_cxx_try_compile
"$LINENO"; then :
4626 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4639 if ac_fn_cxx_try_compile
"$LINENO"; then :
4640 ac_cv_prog_cxx_g
=yes
4642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4647 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4650 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4651 if test "$ac_test_CXXFLAGS" = set; then
4652 CXXFLAGS
=$ac_save_CXXFLAGS
4653 elif test $ac_cv_prog_cxx_g = yes; then
4654 if test "$GXX" = yes; then
4660 if test "$GXX" = yes; then
4667 ac_cpp
='$CPP $CPPFLAGS'
4668 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4677 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4683 if test -n "$GNATBIND"; then
4684 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir
=.
4691 for ac_exec_ext
in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 GNATBIND
=$ac_cv_prog_GNATBIND
4704 if test -n "$GNATBIND"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4706 $as_echo "$GNATBIND" >&6; }
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4714 if test -z "$ac_cv_prog_GNATBIND"; then
4715 ac_ct_GNATBIND
=$GNATBIND
4716 # Extract the first word of "gnatbind", so it can be a program name with args.
4717 set dummy gnatbind
; ac_word
=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4721 $as_echo_n "(cached) " >&6
4723 if test -n "$ac_ct_GNATBIND"; then
4724 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4726 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir
=.
4731 for ac_exec_ext
in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4744 if test -n "$ac_ct_GNATBIND"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4746 $as_echo "$ac_ct_GNATBIND" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4752 if test "x$ac_ct_GNATBIND" = x
; then
4755 case $cross_compiling:$ac_tool_warned in
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4759 ac_tool_warned
=yes ;;
4761 GNATBIND
=$ac_ct_GNATBIND
4764 GNATBIND
="$ac_cv_prog_GNATBIND"
4767 if test -n "$ac_tool_prefix"; then
4768 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4769 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4773 $as_echo_n "(cached) " >&6
4775 if test -n "$GNATMAKE"; then
4776 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir
=.
4783 for ac_exec_ext
in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 GNATMAKE
=$ac_cv_prog_GNATMAKE
4796 if test -n "$GNATMAKE"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4798 $as_echo "$GNATMAKE" >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4806 if test -z "$ac_cv_prog_GNATMAKE"; then
4807 ac_ct_GNATMAKE
=$GNATMAKE
4808 # Extract the first word of "gnatmake", so it can be a program name with args.
4809 set dummy gnatmake
; ac_word
=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4815 if test -n "$ac_ct_GNATMAKE"; then
4816 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4822 test -z "$as_dir" && as_dir
=.
4823 for ac_exec_ext
in '' $ac_executable_extensions; do
4824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4825 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4836 if test -n "$ac_ct_GNATMAKE"; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4838 $as_echo "$ac_ct_GNATMAKE" >&6; }
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 $as_echo "no" >&6; }
4844 if test "x$ac_ct_GNATMAKE" = x
; then
4847 case $cross_compiling:$ac_tool_warned in
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4851 ac_tool_warned
=yes ;;
4853 GNATMAKE
=$ac_ct_GNATMAKE
4856 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4860 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4861 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
4864 cat >conftest.adb
<<EOF
4865 procedure conftest is begin null; end conftest;
4867 acx_cv_cc_gcc_supports_ada
=no
4868 # There is a bug in old released versions of GCC which causes the
4869 # driver to exit successfully when the appropriate language module
4870 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4871 # Therefore we must check for the error message as well as an
4872 # unsuccessful exit.
4873 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4874 # given a .adb file, but produce no object file. So we must check
4875 # if an object file was really produced to guard against this.
4876 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4877 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4878 acx_cv_cc_gcc_supports_ada
=yes
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4883 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4885 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4892 # Do configure tests with the C++ compiler, since that's what we build with.
4894 ac_cpp
='$CXXCPP $CPPFLAGS'
4895 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4900 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4901 # optimizations to be activated explicitly by the toplevel.
4903 */prev-gcc
/xgcc
*) ;;
4904 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4905 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4910 # Determine PICFLAG for target gnatlib.
4916 # PIC is the default on some targets or must not be used.
4918 # For darwin, common symbols are not allowed in MH_DYLIB files
4920 # If we are using a compiler supporting mdynamic-no-pic
4921 # and the option has been tested as safe to add, then cancel
4922 # it here, since the code generated is incompatible with shared
4924 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
4925 *) PICFLAG_FOR_TARGET
=-fno-common ;;
4929 # PIC is the default.
4932 # PIC is the default for 64-bit PA HP-UX.
4934 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4936 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4938 i
[34567]86-*-interix[3-9]*)
4939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4940 # Instead, we relocate shared libraries at runtime.
4942 i
[34567]86-*-nto-qnx*)
4943 # QNX uses GNU C++, but need to define -shared option too, otherwise
4945 PICFLAG_FOR_TARGET
='-fPIC -shared'
4947 i
[34567]86-pc-msdosdjgpp*)
4948 # DJGPP does not support shared libraries at all.
4951 # On IA64 HP-UX, PIC is the default but the pic flag
4952 # sets the default TLS model and affects inlining.
4953 PICFLAG_FOR_TARGET
=-fPIC
4956 # PIC is the default.
4958 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4959 # All AIX code is PIC.
4962 # Some targets support both -fPIC and -fpic, but prefer the latter.
4964 i
[34567]86-*-* | x86_64-
*-*)
4965 PICFLAG_FOR_TARGET
=-fpic
4967 # FIXME: Override -fPIC default in libgcc only?
4968 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4969 PICFLAG_FOR_TARGET
=-fpic
4971 # FIXME: Simplify to sh*-*-netbsd*?
4972 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4973 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4974 PICFLAG_FOR_TARGET
=-fpic
4976 # Default to -fPIC unless specified otherwise.
4978 PICFLAG_FOR_TARGET
=-fPIC
4982 # If the user explicitly uses -fpic/-fPIC, keep that.
4983 case "${CFLAGS_FOR_TARGET}" in
4985 PICFLAG_FOR_TARGET
=-fpic
4988 PICFLAG_FOR_TARGET
=-fPIC
4994 # -------------------------
4995 # Check C compiler features
4996 # -------------------------
5000 ac_cpp
='$CXXCPP $CPPFLAGS'
5001 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5005 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5006 if test -z "$CXXCPP"; then
5007 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5008 $as_echo_n "(cached) " >&6
5010 # Double quotes because CXXCPP needs to be expanded
5011 for CXXCPP
in "$CXX -E" "/lib/cpp"
5014 for ac_cxx_preproc_warn_flag
in '' yes
5016 # Use a header file that comes with gcc, so configuring glibc
5017 # with a fresh cross-compiler works.
5018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5019 # <limits.h> exists even on freestanding compilers.
5020 # On the NeXT, cc -E runs the code through the compiler's parser,
5021 # not just through cpp. "Syntax error" is here to catch this case.
5022 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5025 # include <limits.h>
5027 # include <assert.h>
5031 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5034 # Broken: fails on valid input.
5037 rm -f conftest.err conftest.
$ac_ext
5039 # OK, works on sane cases. Now check whether nonexistent headers
5040 # can be detected and how.
5041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5043 #include <ac_nonexistent.h>
5045 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5046 # Broken: success on invalid input.
5049 # Passes both tests.
5053 rm -f conftest.err conftest.
$ac_ext
5056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5057 rm -f conftest.err conftest.
$ac_ext
5058 if $ac_preproc_ok; then :
5063 ac_cv_prog_CXXCPP
=$CXXCPP
5066 CXXCPP
=$ac_cv_prog_CXXCPP
5068 ac_cv_prog_CXXCPP
=$CXXCPP
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5071 $as_echo "$CXXCPP" >&6; }
5073 for ac_cxx_preproc_warn_flag
in '' yes
5075 # Use a header file that comes with gcc, so configuring glibc
5076 # with a fresh cross-compiler works.
5077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5078 # <limits.h> exists even on freestanding compilers.
5079 # On the NeXT, cc -E runs the code through the compiler's parser,
5080 # not just through cpp. "Syntax error" is here to catch this case.
5081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5082 /* end confdefs.h. */
5084 # include <limits.h>
5086 # include <assert.h>
5090 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5093 # Broken: fails on valid input.
5096 rm -f conftest.err conftest.
$ac_ext
5098 # OK, works on sane cases. Now check whether nonexistent headers
5099 # can be detected and how.
5100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5104 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5105 # Broken: success on invalid input.
5108 # Passes both tests.
5112 rm -f conftest.err conftest.
$ac_ext
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.err conftest.
$ac_ext
5117 if $ac_preproc_ok; then :
5120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5122 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5123 See \`config.log' for more details." "$LINENO" 5; }
5127 ac_cpp
='$CXXCPP $CPPFLAGS'
5128 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5134 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5135 if test "${ac_cv_path_GREP+set}" = set; then :
5136 $as_echo_n "(cached) " >&6
5138 if test -z "$GREP"; then
5139 ac_path_GREP_found
=false
5140 # Loop through the user's path and test for each of PROGNAME-LIST
5141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5142 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5145 test -z "$as_dir" && as_dir
=.
5146 for ac_prog
in grep ggrep
; do
5147 for ac_exec_ext
in '' $ac_executable_extensions; do
5148 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5149 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5150 # Check for GNU ac_path_GREP and select it if it is found.
5151 # Check for GNU $ac_path_GREP
5152 case `"$ac_path_GREP" --version 2>&1` in
5154 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5157 $as_echo_n 0123456789 >"conftest.in"
5160 cat "conftest.in" "conftest.in" >"conftest.tmp"
5161 mv "conftest.tmp" "conftest.in"
5162 cp "conftest.in" "conftest.nl"
5163 $as_echo 'GREP' >> "conftest.nl"
5164 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5165 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5166 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5167 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5168 # Best one so far, save it but keep looking for a better one
5169 ac_cv_path_GREP
="$ac_path_GREP"
5170 ac_path_GREP_max
=$ac_count
5172 # 10*(2^10) chars as input seems more than enough
5173 test $ac_count -gt 10 && break
5175 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5178 $ac_path_GREP_found && break 3
5183 if test -z "$ac_cv_path_GREP"; then
5184 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5187 ac_cv_path_GREP
=$GREP
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5192 $as_echo "$ac_cv_path_GREP" >&6; }
5193 GREP
="$ac_cv_path_GREP"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5197 $as_echo_n "checking for egrep... " >&6; }
5198 if test "${ac_cv_path_EGREP+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
5201 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5202 then ac_cv_path_EGREP
="$GREP -E"
5204 if test -z "$EGREP"; then
5205 ac_path_EGREP_found
=false
5206 # Loop through the user's path and test for each of PROGNAME-LIST
5207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5208 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5211 test -z "$as_dir" && as_dir
=.
5212 for ac_prog
in egrep; do
5213 for ac_exec_ext
in '' $ac_executable_extensions; do
5214 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5215 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5216 # Check for GNU ac_path_EGREP and select it if it is found.
5217 # Check for GNU $ac_path_EGREP
5218 case `"$ac_path_EGREP" --version 2>&1` in
5220 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5223 $as_echo_n 0123456789 >"conftest.in"
5226 cat "conftest.in" "conftest.in" >"conftest.tmp"
5227 mv "conftest.tmp" "conftest.in"
5228 cp "conftest.in" "conftest.nl"
5229 $as_echo 'EGREP' >> "conftest.nl"
5230 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5231 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5232 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5233 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5234 # Best one so far, save it but keep looking for a better one
5235 ac_cv_path_EGREP
="$ac_path_EGREP"
5236 ac_path_EGREP_max
=$ac_count
5238 # 10*(2^10) chars as input seems more than enough
5239 test $ac_count -gt 10 && break
5241 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5244 $ac_path_EGREP_found && break 3
5249 if test -z "$ac_cv_path_EGREP"; then
5250 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5253 ac_cv_path_EGREP
=$EGREP
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5259 $as_echo "$ac_cv_path_EGREP" >&6; }
5260 EGREP
="$ac_cv_path_EGREP"
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5264 $as_echo_n "checking for ANSI C header files... " >&6; }
5265 if test "${ac_cv_header_stdc+set}" = set; then :
5266 $as_echo_n "(cached) " >&6
5268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5283 if ac_fn_cxx_try_compile
"$LINENO"; then :
5284 ac_cv_header_stdc
=yes
5286 ac_cv_header_stdc
=no
5288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5290 if test $ac_cv_header_stdc = yes; then
5291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5298 $EGREP "memchr" >/dev
/null
2>&1; then :
5301 ac_cv_header_stdc
=no
5307 if test $ac_cv_header_stdc = yes; then
5308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5315 $EGREP "free" >/dev
/null
2>&1; then :
5318 ac_cv_header_stdc
=no
5324 if test $ac_cv_header_stdc = yes; then
5325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5326 if test "$cross_compiling" = yes; then :
5329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5333 #if ((' ' & 0x0FF) == 0x020)
5334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5337 # define ISLOWER(c) \
5338 (('a' <= (c) && (c) <= 'i') \
5339 || ('j' <= (c) && (c) <= 'r') \
5340 || ('s' <= (c) && (c) <= 'z'))
5341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5349 for (i = 0; i < 256; i++)
5350 if (XOR (islower (i), ISLOWER (i))
5351 || toupper (i) != TOUPPER (i))
5356 if ac_fn_cxx_try_run
"$LINENO"; then :
5359 ac_cv_header_stdc
=no
5361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5368 $as_echo "$ac_cv_header_stdc" >&6; }
5369 if test $ac_cv_header_stdc = yes; then
5371 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5375 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5376 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5377 inttypes.h stdint.h unistd.h
5379 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5380 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5382 eval as_val
=\$
$as_ac_Header
5383 if test "x$as_val" = x
""yes; then :
5384 cat >>confdefs.h
<<_ACEOF
5385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5394 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5395 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5402 if test "$MINIX" = yes; then
5404 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5407 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5410 $as_echo "#define _MINIX 1" >>confdefs.h
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5416 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5417 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5418 $as_echo_n "(cached) " >&6
5420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5423 # define __EXTENSIONS__ 1
5424 $ac_includes_default
5433 if ac_fn_cxx_try_compile
"$LINENO"; then :
5434 ac_cv_safe_to_define___extensions__
=yes
5436 ac_cv_safe_to_define___extensions__
=no
5438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5441 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5442 test $ac_cv_safe_to_define___extensions__ = yes &&
5443 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5445 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5447 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5449 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5451 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5455 ac_cpp
='$CPP $CPPFLAGS'
5456 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5457 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5458 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5460 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5461 # On Suns, sometimes $CPP names a directory.
5462 if test -n "$CPP" && test -d "$CPP"; then
5465 if test -z "$CPP"; then
5466 if test "${ac_cv_prog_CPP+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5469 # Double quotes because CPP needs to be expanded
5470 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5473 for ac_c_preproc_warn_flag
in '' yes
5475 # Use a header file that comes with gcc, so configuring glibc
5476 # with a fresh cross-compiler works.
5477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5478 # <limits.h> exists even on freestanding compilers.
5479 # On the NeXT, cc -E runs the code through the compiler's parser,
5480 # not just through cpp. "Syntax error" is here to catch this case.
5481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5484 # include <limits.h>
5486 # include <assert.h>
5490 if ac_fn_c_try_cpp
"$LINENO"; then :
5493 # Broken: fails on valid input.
5496 rm -f conftest.err conftest.
$ac_ext
5498 # OK, works on sane cases. Now check whether nonexistent headers
5499 # can be detected and how.
5500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5501 /* end confdefs.h. */
5502 #include <ac_nonexistent.h>
5504 if ac_fn_c_try_cpp
"$LINENO"; then :
5505 # Broken: success on invalid input.
5508 # Passes both tests.
5512 rm -f conftest.err conftest.
$ac_ext
5515 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5516 rm -f conftest.err conftest.
$ac_ext
5517 if $ac_preproc_ok; then :
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5530 $as_echo "$CPP" >&6; }
5532 for ac_c_preproc_warn_flag
in '' yes
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 # <limits.h> exists even on freestanding compilers.
5538 # On the NeXT, cc -E runs the code through the compiler's parser,
5539 # not just through cpp. "Syntax error" is here to catch this case.
5540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h. */
5543 # include <limits.h>
5545 # include <assert.h>
5549 if ac_fn_c_try_cpp
"$LINENO"; then :
5552 # Broken: fails on valid input.
5555 rm -f conftest.err conftest.
$ac_ext
5557 # OK, works on sane cases. Now check whether nonexistent headers
5558 # can be detected and how.
5559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <ac_nonexistent.h>
5563 if ac_fn_c_try_cpp
"$LINENO"; then :
5564 # Broken: success on invalid input.
5567 # Passes both tests.
5571 rm -f conftest.err conftest.
$ac_ext
5574 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5575 rm -f conftest.err conftest.
$ac_ext
5576 if $ac_preproc_ok; then :
5579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5581 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5582 See \`config.log' for more details." "$LINENO" 5; }
5586 ac_cpp
='$CXXCPP $CPPFLAGS'
5587 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5588 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5589 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5592 $as_echo_n "checking for inline... " >&6; }
5593 if test "${ac_cv_c_inline+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5597 for ac_kw
in inline __inline__ __inline
; do
5598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5599 /* end confdefs.h. */
5602 static $ac_kw foo_t static_foo () {return 0; }
5603 $ac_kw foo_t foo () {return 0; }
5607 if ac_fn_cxx_try_compile
"$LINENO"; then :
5608 ac_cv_c_inline
=$ac_kw
5610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5611 test "$ac_cv_c_inline" != no
&& break
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5616 $as_echo "$ac_cv_c_inline" >&6; }
5618 case $ac_cv_c_inline in
5621 case $ac_cv_c_inline in
5623 *) ac_val
=$ac_cv_c_inline;;
5625 cat >>confdefs.h
<<_ACEOF
5627 #define inline $ac_val
5634 # Check whether --enable-largefile was given.
5635 if test "${enable_largefile+set}" = set; then :
5636 enableval
=$enable_largefile;
5639 if test "$enable_largefile" != no
; then
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5642 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5643 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5644 $as_echo_n "(cached) " >&6
5646 ac_cv_sys_largefile_CC
=no
5647 if test "$GCC" != yes; then
5650 # IRIX 6.2 and later do not support large files by default,
5651 # so use the C compiler's -n32 option if that helps.
5652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <sys/types.h>
5655 /* Check that off_t can represent 2**63 - 1 correctly.
5656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5657 since some C++ compilers masquerading as C compilers
5658 incorrectly reject 9223372036854775807. */
5659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5661 && LARGE_OFF_T % 2147483647 == 1)
5671 if ac_fn_cxx_try_compile
"$LINENO"; then :
5674 rm -f core conftest.err conftest.
$ac_objext
5676 if ac_fn_cxx_try_compile
"$LINENO"; then :
5677 ac_cv_sys_largefile_CC
=' -n32'; break
5679 rm -f core conftest.err conftest.
$ac_objext
5683 rm -f conftest.
$ac_ext
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5687 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5688 if test "$ac_cv_sys_largefile_CC" != no
; then
5689 CC
=$CC$ac_cv_sys_largefile_CC
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5693 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5694 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
5698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5717 if ac_fn_cxx_try_compile
"$LINENO"; then :
5718 ac_cv_sys_file_offset_bits
=no
; break
5720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #define _FILE_OFFSET_BITS 64
5724 #include <sys/types.h>
5725 /* Check that off_t can represent 2**63 - 1 correctly.
5726 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5727 since some C++ compilers masquerading as C compilers
5728 incorrectly reject 9223372036854775807. */
5729 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5731 && LARGE_OFF_T % 2147483647 == 1)
5741 if ac_fn_cxx_try_compile
"$LINENO"; then :
5742 ac_cv_sys_file_offset_bits
=64; break
5744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5745 ac_cv_sys_file_offset_bits
=unknown
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5750 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5751 case $ac_cv_sys_file_offset_bits in #(
5754 cat >>confdefs.h
<<_ACEOF
5755 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5760 if test $ac_cv_sys_file_offset_bits = unknown
; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5762 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5763 if test "${ac_cv_sys_large_files+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 #include <sys/types.h>
5770 /* Check that off_t can represent 2**63 - 1 correctly.
5771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5772 since some C++ compilers masquerading as C compilers
5773 incorrectly reject 9223372036854775807. */
5774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5776 && LARGE_OFF_T % 2147483647 == 1)
5786 if ac_fn_cxx_try_compile
"$LINENO"; then :
5787 ac_cv_sys_large_files
=no
; break
5789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 #define _LARGE_FILES 1
5793 #include <sys/types.h>
5794 /* Check that off_t can represent 2**63 - 1 correctly.
5795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5796 since some C++ compilers masquerading as C compilers
5797 incorrectly reject 9223372036854775807. */
5798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5800 && LARGE_OFF_T % 2147483647 == 1)
5810 if ac_fn_cxx_try_compile
"$LINENO"; then :
5811 ac_cv_sys_large_files
=1; break
5813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5814 ac_cv_sys_large_files
=unknown
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5819 $as_echo "$ac_cv_sys_large_files" >&6; }
5820 case $ac_cv_sys_large_files in #(
5823 cat >>confdefs.h
<<_ACEOF
5824 #define _LARGE_FILES $ac_cv_sys_large_files
5833 # sizeof(char) is 1 by definition.
5834 # The cast to long int works around a bug in the HP C Compiler
5835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5837 # This bug is HP SR number 8606223364.
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5839 $as_echo_n "checking size of void *... " >&6; }
5840 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5841 $as_echo_n "(cached) " >&6
5843 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5846 if test "$ac_cv_type_void_p" = yes; then
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 { as_fn_set_status
77
5850 as_fn_error
"cannot compute sizeof (void *)
5851 See \`config.log' for more details." "$LINENO" 5; }; }
5853 ac_cv_sizeof_void_p
=0
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5859 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5863 cat >>confdefs.h
<<_ACEOF
5864 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5868 # The cast to long int works around a bug in the HP C Compiler
5869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5871 # This bug is HP SR number 8606223364.
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5873 $as_echo_n "checking size of short... " >&6; }
5874 if test "${ac_cv_sizeof_short+set}" = set; then :
5875 $as_echo_n "(cached) " >&6
5877 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5880 if test "$ac_cv_type_short" = yes; then
5881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5883 { as_fn_set_status
77
5884 as_fn_error
"cannot compute sizeof (short)
5885 See \`config.log' for more details." "$LINENO" 5; }; }
5887 ac_cv_sizeof_short
=0
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5893 $as_echo "$ac_cv_sizeof_short" >&6; }
5897 cat >>confdefs.h
<<_ACEOF
5898 #define SIZEOF_SHORT $ac_cv_sizeof_short
5902 # The cast to long int works around a bug in the HP C Compiler
5903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5905 # This bug is HP SR number 8606223364.
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5907 $as_echo_n "checking size of int... " >&6; }
5908 if test "${ac_cv_sizeof_int+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5911 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5914 if test "$ac_cv_type_int" = yes; then
5915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5917 { as_fn_set_status
77
5918 as_fn_error
"cannot compute sizeof (int)
5919 See \`config.log' for more details." "$LINENO" 5; }; }
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5927 $as_echo "$ac_cv_sizeof_int" >&6; }
5931 cat >>confdefs.h
<<_ACEOF
5932 #define SIZEOF_INT $ac_cv_sizeof_int
5936 # The cast to long int works around a bug in the HP C Compiler
5937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5939 # This bug is HP SR number 8606223364.
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5941 $as_echo_n "checking size of long... " >&6; }
5942 if test "${ac_cv_sizeof_long+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
5945 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5948 if test "$ac_cv_type_long" = yes; then
5949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5951 { as_fn_set_status
77
5952 as_fn_error
"cannot compute sizeof (long)
5953 See \`config.log' for more details." "$LINENO" 5; }; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5961 $as_echo "$ac_cv_sizeof_long" >&6; }
5965 cat >>confdefs.h
<<_ACEOF
5966 #define SIZEOF_LONG $ac_cv_sizeof_long
5970 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5971 if test "x$ac_cv_type_long_long" = x
""yes; then :
5973 cat >>confdefs.h
<<_ACEOF
5974 #define HAVE_LONG_LONG 1
5977 # The cast to long int works around a bug in the HP C Compiler
5978 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5979 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5980 # This bug is HP SR number 8606223364.
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5982 $as_echo_n "checking size of long long... " >&6; }
5983 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5986 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5989 if test "$ac_cv_type_long_long" = yes; then
5990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5992 { as_fn_set_status
77
5993 as_fn_error
"cannot compute sizeof (long long)
5994 See \`config.log' for more details." "$LINENO" 5; }; }
5996 ac_cv_sizeof_long_long
=0
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6002 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6006 cat >>confdefs.h
<<_ACEOF
6007 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6013 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6014 case $ac_cv_c_int8_t in #(
6018 cat >>confdefs.h
<<_ACEOF
6019 #define int8_t $ac_cv_c_int8_t
6024 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6025 case $ac_cv_c_int16_t in #(
6029 cat >>confdefs.h
<<_ACEOF
6030 #define int16_t $ac_cv_c_int16_t
6035 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6036 case $ac_cv_c_int32_t in #(
6040 cat >>confdefs.h
<<_ACEOF
6041 #define int32_t $ac_cv_c_int32_t
6046 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6047 case $ac_cv_c_int64_t in #(
6051 cat >>confdefs.h
<<_ACEOF
6052 #define int64_t $ac_cv_c_int64_t
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6059 $as_echo_n "checking for long long int... " >&6; }
6060 if test "${ac_cv_type_long_long_int+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6066 /* For now, do not test the preprocessor; as of 2007 there are too many
6067 implementations with broken preprocessors. Perhaps this can
6068 be revisited in 2012. In the meantime, code should not expect
6069 #if to work with literals wider than 32 bits. */
6070 /* Test literals. */
6071 long long int ll = 9223372036854775807ll;
6072 long long int nll = -9223372036854775807LL;
6073 unsigned long long int ull = 18446744073709551615ULL;
6074 /* Test constant expressions. */
6075 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6077 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6083 /* Test availability of runtime routines for shift and division. */
6084 long long int llmax = 9223372036854775807ll;
6085 unsigned long long int ullmax = 18446744073709551615ull;
6086 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6087 | (llmax / ll) | (llmax % ll)
6088 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6089 | (ullmax / ull) | (ullmax % ull));
6095 if ac_fn_cxx_try_link
"$LINENO"; then :
6096 if test "$cross_compiling" = yes; then :
6097 ac_cv_type_long_long_int
=yes
6099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6104 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6105 # define LLONG_MAX (HALF - 1 + HALF)
6110 long long int n = 1;
6114 long long int m = n << i;
6117 if (LLONG_MAX / 2 < m)
6125 if ac_fn_cxx_try_run
"$LINENO"; then :
6126 ac_cv_type_long_long_int
=yes
6128 ac_cv_type_long_long_int
=no
6130 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6131 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6135 ac_cv_type_long_long_int
=no
6137 rm -f core conftest.err conftest.
$ac_objext \
6138 conftest
$ac_exeext conftest.
$ac_ext
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6141 $as_echo "$ac_cv_type_long_long_int" >&6; }
6142 if test $ac_cv_type_long_long_int = yes; then
6144 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6150 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6151 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6153 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6156 test $ac_cv_type_long_long_int = yes \
6157 && ac_type
='long long int' \
6158 || ac_type
='long int'
6160 cat >>confdefs.h
<<_ACEOF
6161 #define intmax_t $ac_type
6168 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6169 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6171 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6174 for ac_type
in 'int' 'long int' 'long long int'; do
6175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177 $ac_includes_default
6181 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6188 if ac_fn_cxx_try_compile
"$LINENO"; then :
6190 cat >>confdefs.h
<<_ACEOF
6191 #define intptr_t $ac_type
6196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6197 test -z "$ac_type" && break
6202 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6203 case $ac_cv_c_uint8_t in #(
6207 $as_echo "#define _UINT8_T 1" >>confdefs.h
6210 cat >>confdefs.h
<<_ACEOF
6211 #define uint8_t $ac_cv_c_uint8_t
6216 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6217 case $ac_cv_c_uint16_t in #(
6222 cat >>confdefs.h
<<_ACEOF
6223 #define uint16_t $ac_cv_c_uint16_t
6228 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6229 case $ac_cv_c_uint32_t in #(
6233 $as_echo "#define _UINT32_T 1" >>confdefs.h
6236 cat >>confdefs.h
<<_ACEOF
6237 #define uint32_t $ac_cv_c_uint32_t
6242 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6243 case $ac_cv_c_uint64_t in #(
6247 $as_echo "#define _UINT64_T 1" >>confdefs.h
6250 cat >>confdefs.h
<<_ACEOF
6251 #define uint64_t $ac_cv_c_uint64_t
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6258 $as_echo_n "checking for unsigned long long int... " >&6; }
6259 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6260 $as_echo_n "(cached) " >&6
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6265 /* For now, do not test the preprocessor; as of 2007 there are too many
6266 implementations with broken preprocessors. Perhaps this can
6267 be revisited in 2012. In the meantime, code should not expect
6268 #if to work with literals wider than 32 bits. */
6269 /* Test literals. */
6270 long long int ll = 9223372036854775807ll;
6271 long long int nll = -9223372036854775807LL;
6272 unsigned long long int ull = 18446744073709551615ULL;
6273 /* Test constant expressions. */
6274 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6276 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6282 /* Test availability of runtime routines for shift and division. */
6283 long long int llmax = 9223372036854775807ll;
6284 unsigned long long int ullmax = 18446744073709551615ull;
6285 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6286 | (llmax / ll) | (llmax % ll)
6287 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6288 | (ullmax / ull) | (ullmax % ull));
6294 if ac_fn_cxx_try_link
"$LINENO"; then :
6295 ac_cv_type_unsigned_long_long_int
=yes
6297 ac_cv_type_unsigned_long_long_int
=no
6299 rm -f core conftest.err conftest.
$ac_objext \
6300 conftest
$ac_exeext conftest.
$ac_ext
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6303 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6304 if test $ac_cv_type_unsigned_long_long_int = yes; then
6306 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6312 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6313 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6315 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6318 test $ac_cv_type_unsigned_long_long_int = yes \
6319 && ac_type
='unsigned long long int' \
6320 || ac_type
='unsigned long int'
6322 cat >>confdefs.h
<<_ACEOF
6323 #define uintmax_t $ac_type
6330 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6331 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6333 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6336 for ac_type
in 'unsigned int' 'unsigned long int' \
6337 'unsigned long long int'; do
6338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6340 $ac_includes_default
6344 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6351 if ac_fn_cxx_try_compile
"$LINENO"; then :
6353 cat >>confdefs.h
<<_ACEOF
6354 #define uintptr_t $ac_type
6359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6360 test -z "$ac_type" && break
6377 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6378 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6381 # check what underlying integer type int64_t uses
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6383 $as_echo_n "checking for int64_t underlying type... " >&6; }
6384 if test "${ac_cv_int64_t_type+set}" = set; then :
6385 $as_echo_n "(cached) " >&6
6388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6391 #ifdef HAVE_STDINT_H
6394 template <typename T> struct X { };
6396 struct X<long> { typedef long t; };
6406 if ac_fn_cxx_try_compile
"$LINENO"; then :
6407 ac_cv_int64_t_type
=long
6409 ac_cv_int64_t_type
="long long"
6411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6414 $as_echo "$ac_cv_int64_t_type" >&6; }
6415 if test "$ac_cv_int64_t_type" = "long"; then
6417 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6423 #ifdef HAVE_STDINT_H
6426 template <typename T> struct X { };
6428 struct X<long long> { typedef long long t; };
6438 if ac_fn_cxx_try_compile
"$LINENO"; then :
6441 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6449 # ---------------------
6450 # Warnings and checking
6451 # ---------------------
6453 # Check $CC warning features (if it's GCC).
6454 # We want to use -pedantic, but we don't want warnings about
6457 # * overlong strings
6458 # * C++11 narrowing conversions in { }
6459 # So, we only use -pedantic if we can disable those warnings.
6461 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6462 # Check whether --enable-build-format-warnings was given.
6463 if test "${enable_build_format_warnings+set}" = set; then :
6464 enableval
=$enable_build_format_warnings;
6466 enable_build_format_warnings
=yes
6469 if test $enable_build_format_warnings = no
; then :
6475 ac_cpp
='$CXXCPP $CPPFLAGS'
6476 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6477 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6478 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6481 save_CXXFLAGS
="$CXXFLAGS"
6482 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6483 # Do the check with the no- prefix removed since gcc silently
6484 # accepts any -Wno-* option on purpose
6485 case $real_option in
6486 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6487 *) option
=$real_option ;;
6489 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6492 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6493 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6494 $as_echo_n "(cached) " >&6
6497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6508 if ac_fn_cxx_try_compile
"$LINENO"; then :
6509 eval "$as_acx_Woption=yes"
6511 eval "$as_acx_Woption=no"
6513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6516 eval ac_res
=\$
$as_acx_Woption
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6518 $as_echo "$ac_res" >&6; }
6519 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6520 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6523 CXXFLAGS
="$save_CXXFLAGS"
6525 ac_cpp
='$CXXCPP $CPPFLAGS'
6526 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6527 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6528 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6533 ac_cpp
='$CPP $CPPFLAGS'
6534 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6535 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6536 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6539 save_CFLAGS
="$CFLAGS"
6540 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6541 # Do the check with the no- prefix removed since gcc silently
6542 # accepts any -Wno-* option on purpose
6543 case $real_option in
6544 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6545 *) option
=$real_option ;;
6547 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6550 $as_echo_n "checking whether $CC supports $option... " >&6; }
6551 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6552 $as_echo_n "(cached) " >&6
6555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6566 if ac_fn_c_try_compile
"$LINENO"; then :
6567 eval "$as_acx_Woption=yes"
6569 eval "$as_acx_Woption=no"
6571 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6574 eval ac_res
=\$
$as_acx_Woption
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6576 $as_echo "$ac_res" >&6; }
6577 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6578 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6581 CFLAGS
="$save_CFLAGS"
6583 ac_cpp
='$CXXCPP $CPPFLAGS'
6584 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6590 ac_cpp
='$CXXCPP $CPPFLAGS'
6591 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6592 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6593 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6596 save_CXXFLAGS
="$CXXFLAGS"
6597 for real_option
in -Wmissing-format-attribute; do
6598 # Do the check with the no- prefix removed since gcc silently
6599 # accepts any -Wno-* option on purpose
6600 case $real_option in
6601 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6602 *) option
=$real_option ;;
6604 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6607 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6608 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6609 $as_echo_n "(cached) " >&6
6612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6623 if ac_fn_cxx_try_compile
"$LINENO"; then :
6624 eval "$as_acx_Woption=yes"
6626 eval "$as_acx_Woption=no"
6628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6631 eval ac_res
=\$
$as_acx_Woption
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6633 $as_echo "$ac_res" >&6; }
6634 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6635 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6638 CXXFLAGS
="$save_CXXFLAGS"
6640 ac_cpp
='$CXXCPP $CPPFLAGS'
6641 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6647 ac_cpp
='$CXXCPP $CPPFLAGS'
6648 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6649 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6650 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6652 save_CXXFLAGS
="$CXXFLAGS"
6653 for real_option
in -Woverloaded-virtual; do
6654 # Do the check with the no- prefix removed since gcc silently
6655 # accepts any -Wno-* option on purpose
6656 case $real_option in
6657 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6658 *) option
=$real_option ;;
6660 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6663 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6664 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6665 $as_echo_n "(cached) " >&6
6668 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6679 if ac_fn_cxx_try_compile
"$LINENO"; then :
6680 eval "$as_acx_Woption=yes"
6682 eval "$as_acx_Woption=no"
6684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6687 eval ac_res
=\$
$as_acx_Woption
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6689 $as_echo "$ac_res" >&6; }
6690 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6691 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6694 CXXFLAGS
="$save_CXXFLAGS"
6696 ac_cpp
='$CXXCPP $CPPFLAGS'
6697 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6703 ac_cpp
='$CPP $CPPFLAGS'
6704 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6709 save_CFLAGS
="$CFLAGS"
6710 for real_option
in -Wold-style-definition -Wc++-compat; do
6711 # Do the check with the no- prefix removed since gcc silently
6712 # accepts any -Wno-* option on purpose
6713 case $real_option in
6714 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6715 *) option
=$real_option ;;
6717 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6720 $as_echo_n "checking whether $CC supports $option... " >&6; }
6721 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6722 $as_echo_n "(cached) " >&6
6725 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6736 if ac_fn_c_try_compile
"$LINENO"; then :
6737 eval "$as_acx_Woption=yes"
6739 eval "$as_acx_Woption=no"
6741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6744 eval ac_res
=\$
$as_acx_Woption
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6746 $as_echo "$ac_res" >&6; }
6747 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6748 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6751 CFLAGS
="$save_CFLAGS"
6753 ac_cpp
='$CXXCPP $CPPFLAGS'
6754 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6760 ac_cpp
='$CXXCPP $CPPFLAGS'
6761 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6765 # Do the check with the no- prefix removed from the warning options
6766 # since gcc silently accepts any -Wno-* option on purpose
6767 if test "$GXX" = yes; then :
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6769 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6770 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6771 $as_echo_n "(cached) " >&6
6773 save_CXXFLAGS
="$CXXFLAGS"
6774 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6786 if ac_fn_cxx_try_compile
"$LINENO"; then :
6787 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6789 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6792 CXXFLAGS
="$save_CXXFLAGS"
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6795 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6796 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6797 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6802 ac_cpp
='$CXXCPP $CPPFLAGS'
6803 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6804 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6809 ac_cpp
='$CXXCPP $CPPFLAGS'
6810 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6814 # Check whether --enable-werror-always was given.
6815 if test "${enable_werror_always+set}" = set; then :
6816 enableval
=$enable_werror_always;
6818 enable_werror_always
=no
6821 if test $enable_werror_always = yes; then :
6822 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6826 ac_cpp
='$CXXCPP $CPPFLAGS'
6827 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6833 # The above macros do nothing if the compiler is not GCC. However, the
6834 # Makefile has more goo to add other flags, so these variables are used
6835 # to enable warnings only for GCC.
6838 if test "x$GCC" = "xyes"; then
6839 warn_cflags
='$(GCC_WARN_CFLAGS)'
6840 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6845 # Disable exceptions and RTTI if building with g++
6847 ac_cpp
='$CPP $CPPFLAGS'
6848 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6849 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6850 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6853 save_CFLAGS
="$CFLAGS"
6854 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6855 # Do the check with the no- prefix removed since gcc silently
6856 # accepts any -Wno-* option on purpose
6857 case $real_option in
6858 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6859 *) option
=$real_option ;;
6861 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6864 $as_echo_n "checking whether $CC supports $option... " >&6; }
6865 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6866 $as_echo_n "(cached) " >&6
6869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6880 if ac_fn_c_try_compile
"$LINENO"; then :
6881 eval "$as_acx_Woption=yes"
6883 eval "$as_acx_Woption=no"
6885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6888 eval ac_res
=\$
$as_acx_Woption
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6890 $as_echo "$ac_res" >&6; }
6891 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6892 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6895 CFLAGS
="$save_CFLAGS"
6897 ac_cpp
='$CXXCPP $CPPFLAGS'
6898 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6899 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6904 # Enable expensive internal checks
6906 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6910 # Check whether --enable-checking was given.
6911 if test "${enable_checking+set}" = set; then :
6912 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6915 # Determine the default checks.
6916 if test x
$is_release = x
; then
6917 ac_checking_flags
=yes
6919 ac_checking_flags
=release
6923 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6924 for check
in release
$ac_checking_flags
6927 # these set all the flags to specific states
6928 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6929 ac_fold_checking
= ; ac_gc_checking
=1 ;
6930 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6931 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6932 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6933 ac_types_checking
=1 ;;
6934 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6935 ac_fold_checking
= ; ac_gc_checking
= ;
6936 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6937 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6938 ac_tree_checking
= ; ac_valgrind_checking
= ;
6939 ac_types_checking
= ;;
6940 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6941 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6942 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6943 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6944 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6945 ac_types_checking
=1 ;;
6946 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6947 ac_fold_checking
= ; ac_gc_checking
= ;
6948 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6949 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6950 ac_tree_checking
= ; ac_valgrind_checking
= ;
6951 ac_types_checking
= ;;
6952 # these enable particular checks
6953 assert
) ac_assert_checking
=1 ;;
6954 df
) ac_df_checking
=1 ;;
6955 fold) ac_fold_checking
=1 ;;
6956 gc
) ac_gc_checking
=1 ;;
6957 gcac
) ac_gc_always_collect
=1 ;;
6958 gimple
) ac_gimple_checking
=1 ;;
6959 misc
) ac_checking
=1 ;;
6960 rtl
) ac_rtl_checking
=1 ;;
6961 rtlflag
) ac_rtlflag_checking
=1 ;;
6962 runtime
) ac_runtime_checking
=1 ;;
6963 tree
) ac_tree_checking
=1 ;;
6964 types
) ac_types_checking
=1 ;;
6965 valgrind
) ac_valgrind_checking
=1 ;;
6966 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6972 if test x
$ac_checking != x
; then
6974 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6976 nocommon_flag
=-fno-common
6979 if test x
$ac_df_checking != x
; then
6981 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6984 if test x
$ac_assert_checking != x
; then
6986 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6989 if test x
$ac_gimple_checking != x
; then
6991 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6995 if test x
$ac_runtime_checking != x
; then
6997 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7000 if test x
$ac_tree_checking != x
; then
7002 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7004 TREEBROWSER
=tree-browser.o
7007 if test x
$ac_types_checking != x
; then
7009 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7014 if test x
$ac_rtl_checking != x
; then
7016 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7019 if test x
$ac_rtlflag_checking != x
; then
7021 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7024 if test x
$ac_gc_checking != x
; then
7026 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7029 if test x
$ac_gc_always_collect != x
; then
7031 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7034 if test x
$ac_fold_checking != x
; then
7036 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7039 valgrind_path_defines
=
7042 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7043 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7051 # It is certainly possible that there's valgrind but no valgrind.h.
7052 # GCC relies on making annotations so we must have both.
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7054 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7055 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 #include <valgrind/memcheck.h>
7058 #ifndef VALGRIND_DISCARD
7059 #error VALGRIND_DISCARD not defined
7062 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7063 gcc_cv_header_valgrind_memcheck_h
=yes
7065 gcc_cv_header_valgrind_memcheck_h
=no
7067 rm -f conftest.err conftest.
$ac_ext
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7069 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7071 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074 #include <memcheck.h>
7075 #ifndef VALGRIND_DISCARD
7076 #error VALGRIND_DISCARD not defined
7079 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7080 gcc_cv_header_memcheck_h
=yes
7082 gcc_cv_header_memcheck_h
=no
7084 rm -f conftest.err conftest.
$ac_ext
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7086 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7087 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7089 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7092 if test $gcc_cv_header_memcheck_h = yes; then
7094 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7098 if test x
$ac_valgrind_checking != x
; then
7100 # Prepare PATH_SEPARATOR.
7101 # The user is always right.
7102 if test "${PATH_SEPARATOR+set}" != set; then
7103 echo "#! /bin/sh" >conf$$.sh
7104 echo "exit 0" >>conf$$.sh
7106 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7114 # Find out how to test for executable files. Don't use a zero-byte file,
7115 # as systems may use methods other than mode bits to determine executability.
7116 cat >conf$$.
file <<_ASEOF
7120 chmod +x conf$$.
file
7121 if test -x conf$$.
file >/dev
/null
2>&1; then
7122 ac_executable_p
="test -x"
7124 ac_executable_p
="test -f"
7128 # Extract the first word of "valgrind", so it can be a program name with args.
7129 set dummy valgrind
; ac_word
=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7135 case "$valgrind_path" in
7137 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7140 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7141 for ac_dir
in $PATH; do
7143 test -z "$ac_dir" && ac_dir
=.
7144 for ac_exec_ext
in '' $ac_executable_extensions; do
7145 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7146 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7147 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7157 valgrind_path
="$ac_cv_path_valgrind_path"
7158 if test -n "$valgrind_path"; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7160 $as_echo "$valgrind_path" >&6; }
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7163 $as_echo "no" >&6; }
7166 if test "x$valgrind_path" = "x" \
7167 ||
(test $have_valgrind_h = no \
7168 && test $gcc_cv_header_memcheck_h = no \
7169 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7170 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7172 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7173 valgrind_command
="$valgrind_path -q"
7175 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7181 # Enable code coverage collection
7182 # Check whether --enable-coverage was given.
7183 if test "${enable_coverage+set}" = set; then :
7184 enableval
=$enable_coverage; case "${enableval}" in
7186 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7189 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7192 # a.k.a. --disable-coverage
7196 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7205 # Check whether --enable-gather-detailed-mem-stats was given.
7206 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7207 enableval
=$enable_gather_detailed_mem_stats;
7209 enable_gather_detailed_mem_stats
=no
7212 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7214 cat >>confdefs.h
<<_ACEOF
7215 #define GATHER_STATISTICS $gather_stats
7219 # Check whether --enable-valgrind-annotations was given.
7220 if test "${enable_valgrind_annotations+set}" = set; then :
7221 enableval
=$enable_valgrind_annotations;
7223 enable_valgrind_annotations
=no
7226 if test x
$enable_valgrind_annotations != xno \
7227 ||
test x
$ac_valgrind_checking != x
; then
7228 if (test $have_valgrind_h = no \
7229 && test $gcc_cv_header_memcheck_h = no \
7230 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7231 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7234 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7238 # -------------------------------
7239 # Miscenalleous configure options
7240 # -------------------------------
7244 # Check whether --with-stabs was given.
7245 if test "${with_stabs+set}" = set; then :
7246 withval
=$with_stabs; stabs
="$with_stabs"
7252 # Determine whether or not multilibs are enabled.
7253 # Check whether --enable-multilib was given.
7254 if test "${enable_multilib+set}" = set; then :
7255 enableval
=$enable_multilib;
7262 # Determine whether or not multiarch is enabled.
7263 # Check whether --enable-multiarch was given.
7264 if test "${enable_multiarch+set}" = set; then :
7265 enableval
=$enable_multiarch; case "${enableval}" in
7266 yes|no|auto
) enable_multiarch
=$enableval;;
7267 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7270 enable_multiarch
=auto
7273 if test x
${enable_multiarch} = xauto
; then
7274 if test x
${with_native_system_header_dir} != x
; then
7275 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7278 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7279 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7284 $as_echo_n "checking for multiarch configuration... " >&6; }
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7287 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7289 # needed for setting the multiarch name for soft-float/hard-float ABIs
7293 # Enable __cxa_atexit for C++.
7294 # Check whether --enable-__cxa_atexit was given.
7295 if test "${enable___cxa_atexit+set}" = set; then :
7296 enableval
=$enable___cxa_atexit;
7300 # Enable C extension for decimal float if target supports it.
7302 # Check whether --enable-decimal-float was given.
7303 if test "${enable_decimal_float+set}" = set; then :
7304 enableval
=$enable_decimal_float;
7305 case $enable_decimal_float in
7306 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7307 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7308 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7314 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7316 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7317 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7318 enable_decimal_float
=yes
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7322 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7323 enable_decimal_float
=no
7330 # x86's use BID format instead of DPD
7331 case x
$enable_decimal_float in
7334 i?
86*-*-* | x86_64
*-*-*)
7335 enable_decimal_float
=bid
7338 enable_decimal_float
=dpd
7341 default_decimal_float
=$enable_decimal_float
7344 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7345 # dependency on libdecnumber.
7346 default_decimal_float
=dpd
7353 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7355 cat >>confdefs.h
<<_ACEOF
7356 #define ENABLE_DECIMAL_FLOAT $dfp
7360 # Use default_decimal_float for dependency.
7361 enable_decimal_float
=$default_decimal_float
7363 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7365 cat >>confdefs.h
<<_ACEOF
7366 #define ENABLE_DECIMAL_BID_FORMAT $bid
7370 # Enable C extension for fixed-point arithmetic.
7371 # Check whether --enable-fixed-point was given.
7372 if test "${enable_fixed_point+set}" = set; then :
7373 enableval
=$enable_fixed_point;
7378 enable_fixed_point
=yes
7382 enable_fixed_point
=yes
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7386 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7387 enable_fixed_point
=no
7395 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7397 cat >>confdefs.h
<<_ACEOF
7398 #define ENABLE_FIXED_POINT $fixedpoint
7403 # Pass with no value to take the default
7404 # Pass with a value to specify a thread package
7405 # Check whether --enable-threads was given.
7406 if test "${enable_threads+set}" = set; then :
7407 enableval
=$enable_threads;
7413 # Check whether --enable-tls was given.
7414 if test "${enable_tls+set}" = set; then :
7415 enableval
=$enable_tls;
7418 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7419 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7427 # Check whether --enable-objc-gc was given.
7428 if test "${enable_objc_gc+set}" = set; then :
7429 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7440 # Check whether --with-dwarf2 was given.
7441 if test "${with_dwarf2+set}" = set; then :
7442 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7448 # Check whether --enable-shared was given.
7449 if test "${enable_shared+set}" = set; then :
7450 enableval
=$enable_shared;
7451 case $enable_shared in
7455 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7456 for pkg
in $enableval; do
7457 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7472 # Check whether --with-native-system-header-dir was given.
7473 if test "${with_native_system_header_dir+set}" = set; then :
7474 withval
=$with_native_system_header_dir;
7475 case ${with_native_system_header_dir} in
7476 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7477 /* |
[A-Za-z
]:[\\/]*) ;;
7478 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7480 configured_native_system_header_dir
="${withval}"
7483 configured_native_system_header_dir
=
7488 # Check whether --with-build-sysroot was given.
7489 if test "${with_build_sysroot+set}" = set; then :
7490 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7491 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7494 SYSROOT_CFLAGS_FOR_TARGET
=
7499 if test "x$prefix" = xNONE
; then
7500 test_prefix
=/usr
/local
7504 if test "x$exec_prefix" = xNONE
; then
7505 test_exec_prefix
=$test_prefix
7507 test_exec_prefix
=$exec_prefix
7511 # Check whether --with-sysroot was given.
7512 if test "${with_sysroot+set}" = set; then :
7513 withval
=$with_sysroot;
7514 case ${with_sysroot} in
7515 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7516 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7519 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7520 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7522 case ${TARGET_SYSTEM_ROOT} in
7523 "${test_prefix}"|
"${test_prefix}/"*|\
7524 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7525 '${prefix}'|
'${prefix}/'*|\
7526 '${exec_prefix}'|
'${exec_prefix}/'*)
7527 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7528 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7535 TARGET_SYSTEM_ROOT_DEFINE
=
7536 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7545 # Check whether --with-specs was given.
7546 if test "${with_specs+set}" = set; then :
7547 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7557 # Check whether --with-pkgversion was given.
7558 if test "${with_pkgversion+set}" = set; then :
7559 withval
=$with_pkgversion; case "$withval" in
7560 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7562 *) PKGVERSION
="($withval) " ;;
7573 # Check whether --with-bugurl was given.
7574 if test "${with_bugurl+set}" = set; then :
7575 withval
=$with_bugurl; case "$withval" in
7576 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7579 *) BUGURL
="$withval"
7583 BUGURL
="http://gcc.gnu.org/bugs.html"
7593 REPORT_BUGS_TO
="<$BUGURL>"
7594 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7601 # Sanity check enable_languages in case someone does not run the toplevel
7602 # configure # script.
7603 # Check whether --enable-languages was given.
7604 if test "${enable_languages+set}" = set; then :
7605 enableval
=$enable_languages; case ,${enable_languages}, in
7607 # go safe -- we cannot be much sure without the toplevel
7609 # analysis of which target libs are present and usable
7613 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7618 enable_languages
=c
,${enable_languages}
7626 if test x
"$enable_as_accelerator_for" != x
; then
7628 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7630 enable_as_accelerator
=yes
7633 # In this case we expect offload compiler to be built as native, so we
7634 # need to rename the driver to avoid clashes with host's drivers.
7635 program_transform_name
="s&^&${target}-&" ;;
7637 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7638 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7639 accel_dir_suffix
=/accel
/${target_noncanonical}
7640 real_target_noncanonical
=${enable_as_accelerator_for}
7646 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7647 tgt
=`echo $tgt | sed 's/=.*//'`
7648 if test x
"$offload_targets" = x
; then
7649 offload_targets
=$tgt
7651 offload_targets
="$offload_targets:$tgt"
7655 cat >>confdefs.h
<<_ACEOF
7656 #define OFFLOAD_TARGETS "$offload_targets"
7659 if test x
"$offload_targets" != x
; then
7661 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7666 # Check whether --with-multilib-list was given.
7667 if test "${with_multilib_list+set}" = set; then :
7668 withval
=$with_multilib_list; :
7670 with_multilib_list
=default
7674 # -------------------------
7675 # Checks for other programs
7676 # -------------------------
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7679 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7681 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7682 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7683 $as_echo_n "(cached) " >&6
7685 cat >conftest.
make <<\_ACEOF
7688 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7691 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7693 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7695 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7699 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7701 $as_echo "yes" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7706 SET_MAKE
="MAKE=${MAKE-make}"
7710 # Find some useful tools
7711 for ac_prog
in gawk mawk nawk
awk
7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
7714 set dummy
$ac_prog; ac_word
=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if test "${ac_cv_prog_AWK+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
7720 if test -n "$AWK"; then
7721 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7727 test -z "$as_dir" && as_dir
=.
7728 for ac_exec_ext
in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730 ac_cv_prog_AWK
="$ac_prog"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 if test -n "$AWK"; then
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7743 $as_echo "$AWK" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7750 test -n "$AWK" && break
7753 # We need awk to create options.c and options.h.
7754 # Bail out if it's missing.
7756 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7760 $as_echo_n "checking whether ln -s works... " >&6; }
7761 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7764 rm -f conftestdata_t
7765 echo >conftestdata_f
7766 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7768 gcc_cv_prog_LN_S
="ln -s"
7770 if ln conftestdata_f conftestdata_t
2>/dev
/null
7774 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7776 gcc_cv_prog_LN_S
="cp -p"
7782 rm -f conftestdata_f conftestdata_t
7785 LN_S
="$gcc_cv_prog_LN_S"
7786 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7788 $as_echo "yes" >&6; }
7790 if test "$gcc_cv_prog_LN_S" = "ln"; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7792 $as_echo "no, using ln" >&6; }
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7795 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7800 $as_echo_n "checking whether ln works... " >&6; }
7801 if test "${acx_cv_prog_LN+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7804 rm -f conftestdata_t
7805 echo >conftestdata_f
7806 if ln conftestdata_f conftestdata_t
2>/dev
/null
7812 rm -f conftestdata_f conftestdata_t
7815 if test $acx_cv_prog_LN = no
; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7818 $as_echo "no, using $LN" >&6; }
7820 LN
="$acx_cv_prog_LN"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7822 $as_echo "yes" >&6; }
7825 if test -n "$ac_tool_prefix"; then
7826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7827 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7833 if test -n "$RANLIB"; then
7834 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7840 test -z "$as_dir" && as_dir
=.
7841 for ac_exec_ext
in '' $ac_executable_extensions; do
7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7843 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7853 RANLIB
=$ac_cv_prog_RANLIB
7854 if test -n "$RANLIB"; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7856 $as_echo "$RANLIB" >&6; }
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859 $as_echo "no" >&6; }
7864 if test -z "$ac_cv_prog_RANLIB"; then
7865 ac_ct_RANLIB
=$RANLIB
7866 # Extract the first word of "ranlib", so it can be a program name with args.
7867 set dummy ranlib
; ac_word
=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7871 $as_echo_n "(cached) " >&6
7873 if test -n "$ac_ct_RANLIB"; then
7874 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir
=.
7881 for ac_exec_ext
in '' $ac_executable_extensions; do
7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7883 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7894 if test -n "$ac_ct_RANLIB"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7896 $as_echo "$ac_ct_RANLIB" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7902 if test "x$ac_ct_RANLIB" = x
; then
7905 case $cross_compiling:$ac_tool_warned in
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7909 ac_tool_warned
=yes ;;
7911 RANLIB
=$ac_ct_RANLIB
7914 RANLIB
="$ac_cv_prog_RANLIB"
7920 # Find a good install program. We prefer a C program (faster),
7921 # so one script is as good as another. But avoid the broken or
7922 # incompatible versions:
7923 # SysV /etc/install, /usr/sbin/install
7924 # SunOS /usr/etc/install
7925 # IRIX /sbin/install
7927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7929 # ./install, which can be erroneously created by make from ./install.sh.
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7931 $as_echo_n "checking for a BSD compatible install... " >&6; }
7932 if test -z "$INSTALL"; then
7933 if test "${ac_cv_path_install+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7936 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7937 for ac_dir
in $PATH; do
7938 # Account for people who put trailing slashes in PATH elements.
7940 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7942 # OSF1 and SCO ODT 3.0 have their own names for install.
7943 for ac_prog
in ginstall scoinst
install; do
7944 if test -f $ac_dir/$ac_prog; then
7945 if test $ac_prog = install &&
7946 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7947 # AIX install. It has an incompatible calling convention.
7948 # OSF/1 installbsd also uses dspmsg, but is usable.
7951 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7962 if test "${ac_cv_path_install+set}" = set; then
7963 INSTALL
="$ac_cv_path_install"
7965 # As a last resort, use the slow shell script. We don't cache a
7966 # path for INSTALL within a source directory, because that will
7967 # break other packages using the cache if that directory is
7968 # removed, or if the path is relative.
7969 INSTALL
="$ac_install_sh"
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7973 $as_echo "$INSTALL" >&6; }
7975 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7976 # It thinks the first close brace ends the variable substitution.
7977 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7979 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7982 # See if cmp has --ignore-initial.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7984 $as_echo_n "checking for cmp's capabilities... " >&6; }
7985 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
7990 gcc_cv_prog_cmp_skip
=slowcompare
7991 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7992 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7995 gcc_cv_prog_cmp_skip
=gnucompare
7998 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7999 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8000 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8003 gcc_cv_prog_cmp_skip
=fastcompare
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8011 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8012 make_compare_target
=$gcc_cv_prog_cmp_skip
8016 # See if we have the mktemp command.
8017 # Extract the first word of "mktemp", so it can be a program name with args.
8018 set dummy mktemp
; ac_word
=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
8024 if test -n "$have_mktemp_command"; then
8025 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8031 test -z "$as_dir" && as_dir
=.
8032 for ac_exec_ext
in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8034 ac_cv_prog_have_mktemp_command
="yes"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8042 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8045 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8046 if test -n "$have_mktemp_command"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8048 $as_echo "$have_mktemp_command" >&6; }
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8056 # See if makeinfo has been installed and is modern enough
8057 # that we can use it.
8059 # Extract the first word of "makeinfo", so it can be a program name with args.
8060 set dummy makeinfo
; ac_word
=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8066 if test -n "$MAKEINFO"; then
8067 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8069 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir
=.
8074 for ac_exec_ext
in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_prog_MAKEINFO
="makeinfo"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086 MAKEINFO
=$ac_cv_prog_MAKEINFO
8087 if test -n "$MAKEINFO"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8089 $as_echo "$MAKEINFO" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8096 if test -n "$MAKEINFO"; then
8097 # Found it, now check the version.
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8099 $as_echo_n "checking for modern makeinfo... " >&6; }
8100 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8103 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8104 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8106 case $ac_prog_version in
8107 '') gcc_cv_prog_makeinfo_modern
=no
;;
8108 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8109 *) gcc_cv_prog_makeinfo_modern
=no
;;
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8114 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8116 gcc_cv_prog_makeinfo_modern
=no
8118 if test $gcc_cv_prog_makeinfo_modern = no
; then
8119 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8122 if test $gcc_cv_prog_makeinfo_modern = no
; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8124 *** Makeinfo is missing or too old.
8125 *** Info documentation will not be built." >&5
8126 $as_echo "$as_me: WARNING:
8127 *** Makeinfo is missing or too old.
8128 *** Info documentation will not be built." >&2;}
8135 # Is pod2man recent enough to regenerate manpages?
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8137 $as_echo_n "checking for recent Pod::Man... " >&6; }
8138 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8140 $as_echo "yes" >&6; }
8141 GENERATED_MANPAGES
=generated-manpages
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8149 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8154 # Extract the first word of "$ac_prog", so it can be a program name with args.
8155 set dummy
$ac_prog; ac_word
=$2
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157 $as_echo_n "checking for $ac_word... " >&6; }
8158 if test "${ac_cv_prog_FLEX+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8161 if test -n "$FLEX"; then
8162 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8168 test -z "$as_dir" && as_dir
=.
8169 for ac_exec_ext
in '' $ac_executable_extensions; do
8170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171 ac_cv_prog_FLEX
="$ac_prog"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 FLEX
=$ac_cv_prog_FLEX
8182 if test -n "$FLEX"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8184 $as_echo "$FLEX" >&6; }
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8191 test -n "$FLEX" && break
8193 test -n "$FLEX" || FLEX
="$MISSING flex"
8197 for ac_prog
in bison
8199 # Extract the first word of "$ac_prog", so it can be a program name with args.
8200 set dummy
$ac_prog; ac_word
=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_BISON+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8206 if test -n "$BISON"; then
8207 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8213 test -z "$as_dir" && as_dir
=.
8214 for ac_exec_ext
in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_BISON
="$ac_prog"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 BISON
=$ac_cv_prog_BISON
8227 if test -n "$BISON"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8229 $as_echo "$BISON" >&6; }
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8236 test -n "$BISON" && break
8238 test -n "$BISON" || BISON
="$MISSING bison"
8241 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8242 # check for build == host before using them.
8245 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8246 && test -d ..
/binutils
; then
8247 NM
='${objdir}/../binutils/nm-new'
8249 # Extract the first word of "nm", so it can be a program name with args.
8250 set dummy nm
; ac_word
=$2
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8252 $as_echo_n "checking for $ac_word... " >&6; }
8253 if test "${ac_cv_prog_NM+set}" = set; then :
8254 $as_echo_n "(cached) " >&6
8256 if test -n "$NM"; then
8257 ac_cv_prog_NM
="$NM" # Let the user override the test.
8259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8263 test -z "$as_dir" && as_dir
=.
8264 for ac_exec_ext
in '' $ac_executable_extensions; do
8265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8278 if test -n "$NM"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8280 $as_echo "$NM" >&6; }
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8290 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8291 && test -d ..
/binutils
; then
8292 AR
='${objdir}/../binutils/ar'
8294 # Extract the first word of "ar", so it can be a program name with args.
8295 set dummy
ar; ac_word
=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_AR+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$AR"; then
8302 ac_cv_prog_AR
="$AR" # Let the user override the test.
8304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir
=.
8309 for ac_exec_ext
in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8323 if test -n "$AR"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8325 $as_echo "$AR" >&6; }
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8334 # The jit documentation looks better if built with sphinx, but can be
8335 # built with texinfo if sphinx is not available.
8336 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8337 # Extract the first word of "sphinx-build", so it can be a program name with args.
8338 set dummy sphinx-build
; ac_word
=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
8344 if test -n "$doc_build_sys"; then
8345 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir
=.
8352 for ac_exec_ext
in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_doc_build_sys
="sphinx"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8365 doc_build_sys
=$ac_cv_prog_doc_build_sys
8366 if test -n "$doc_build_sys"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8368 $as_echo "$doc_build_sys" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8376 # --------------------
8377 # Checks for C headers
8378 # --------------------
8380 # Need to reject headers which give warnings, so that the -Werror bootstrap
8381 # works later. *sigh* This needs to come before all header checks.
8383 ac_c_preproc_warn_flag
=yes
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8386 $as_echo_n "checking for ANSI C header files... " >&6; }
8387 if test "${ac_cv_header_stdc+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8405 if ac_fn_cxx_try_compile
"$LINENO"; then :
8406 ac_cv_header_stdc
=yes
8408 ac_cv_header_stdc
=no
8410 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8412 if test $ac_cv_header_stdc = yes; then
8413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8415 /* end confdefs.h. */
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "memchr" >/dev
/null
2>&1; then :
8423 ac_cv_header_stdc
=no
8429 if test $ac_cv_header_stdc = yes; then
8430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8437 $EGREP "free" >/dev
/null
2>&1; then :
8440 ac_cv_header_stdc
=no
8446 if test $ac_cv_header_stdc = yes; then
8447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8448 if test "$cross_compiling" = yes; then :
8451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h. */
8455 #if ((' ' & 0x0FF) == 0x020)
8456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8459 # define ISLOWER(c) \
8460 (('a' <= (c) && (c) <= 'i') \
8461 || ('j' <= (c) && (c) <= 'r') \
8462 || ('s' <= (c) && (c) <= 'z'))
8463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8471 for (i = 0; i < 256; i++)
8472 if (XOR (islower (i), ISLOWER (i))
8473 || toupper (i) != TOUPPER (i))
8478 if ac_fn_cxx_try_run
"$LINENO"; then :
8481 ac_cv_header_stdc
=no
8483 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8484 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8490 $as_echo "$ac_cv_header_stdc" >&6; }
8491 if test $ac_cv_header_stdc = yes; then
8493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8498 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8499 if test "${ac_cv_header_time+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 #include <sys/types.h>
8505 #include <sys/time.h>
8511 if ((struct tm *) 0)
8517 if ac_fn_cxx_try_compile
"$LINENO"; then :
8518 ac_cv_header_time
=yes
8520 ac_cv_header_time
=no
8522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8525 $as_echo "$ac_cv_header_time" >&6; }
8526 if test $ac_cv_header_time = yes; then
8528 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8533 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8534 if test "${gcc_cv_header_string+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8540 #include <strings.h>
8549 if ac_fn_cxx_try_compile
"$LINENO"; then :
8550 gcc_cv_header_string
=yes
8552 gcc_cv_header_string
=no
8554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8557 $as_echo "$gcc_cv_header_string" >&6; }
8558 if test $gcc_cv_header_string = yes; then
8560 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8565 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8566 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8571 #include <sys/types.h>
8572 #include <sys/wait.h>
8574 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8577 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8585 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8590 if ac_fn_cxx_try_compile
"$LINENO"; then :
8591 ac_cv_header_sys_wait_h
=yes
8593 ac_cv_header_sys_wait_h
=no
8595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8598 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8599 if test $ac_cv_header_sys_wait_h = yes; then
8601 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8606 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8607 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 #include <sys/types.h>
8613 #include <termios.h>
8619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8620 $EGREP "yes" >/dev
/null
2>&1; then :
8621 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8623 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8629 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8631 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8633 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8634 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8637 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 #include <sys/types.h>
8640 #include <sys/ioctl.h>
8646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8647 $EGREP "yes" >/dev
/null
2>&1; then :
8648 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8650 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8656 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8658 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8660 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8665 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8666 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8667 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8668 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8670 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8671 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8672 eval as_val
=\$
$as_ac_Header
8673 if test "x$as_val" = x
""yes; then :
8674 cat >>confdefs.h
<<_ACEOF
8675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8682 # Check for thread headers.
8683 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8684 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8690 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8691 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8698 # These tests can't be done till we know if we have limits.h.
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8700 $as_echo_n "checking for CHAR_BIT... " >&6; }
8701 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
8704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706 #ifdef HAVE_LIMITS_H
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 $EGREP "found" >/dev
/null
2>&1; then :
8715 gcc_cv_decl_char_bit
=yes
8717 gcc_cv_decl_char_bit
=no
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8724 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8725 if test $gcc_cv_decl_char_bit = no
; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8727 $as_echo_n "checking number of bits in a byte... " >&6; }
8728 if test "${gcc_cv_c_nbby+set}" = set; then :
8729 $as_echo_n "(cached) " >&6
8733 while test $i -lt 65; do
8734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8741 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8742 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8748 if ac_fn_cxx_try_compile
"$LINENO"; then :
8749 gcc_cv_c_nbby
=$i; break
8751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8754 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8758 $as_echo "$gcc_cv_c_nbby" >&6; }
8759 if test $gcc_cv_c_nbby = failed
; then
8760 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8763 cat >>confdefs.h
<<_ACEOF
8764 #define CHAR_BIT $gcc_cv_c_nbby
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8770 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8771 if test "${ac_cv_c_bigendian+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
8774 ac_cv_c_bigendian
=unknown
8775 # See if we're dealing with a universal compiler.
8776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778 #ifndef __APPLE_CC__
8779 not a universal capable compiler
8784 if ac_fn_cxx_try_compile
"$LINENO"; then :
8786 # Check for potential -arch flags. It is not universal unless
8787 # there are at least two -arch flags with different values.
8790 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8791 if test -n "$ac_prev"; then
8793 i?
86 | x86_64 | ppc | ppc64
)
8794 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8797 ac_cv_c_bigendian
=universal
8803 elif test "x$ac_word" = "x-arch"; then
8808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8809 if test $ac_cv_c_bigendian = unknown
; then
8810 # See if sys/param.h defines the BYTE_ORDER macro.
8811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8813 #include <sys/types.h>
8814 #include <sys/param.h>
8819 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8820 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8829 if ac_fn_cxx_try_compile
"$LINENO"; then :
8830 # It does; now see whether it defined to BIG_ENDIAN or not.
8831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #include <sys/types.h>
8834 #include <sys/param.h>
8839 #if BYTE_ORDER != BIG_ENDIAN
8847 if ac_fn_cxx_try_compile
"$LINENO"; then :
8848 ac_cv_c_bigendian
=yes
8850 ac_cv_c_bigendian
=no
8852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8856 if test $ac_cv_c_bigendian = unknown
; then
8857 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8865 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8873 if ac_fn_cxx_try_compile
"$LINENO"; then :
8874 # It does; now see whether it defined to _BIG_ENDIAN or not.
8875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8876 /* end confdefs.h. */
8890 if ac_fn_cxx_try_compile
"$LINENO"; then :
8891 ac_cv_c_bigendian
=yes
8893 ac_cv_c_bigendian
=no
8895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8899 if test $ac_cv_c_bigendian = unknown
; then
8900 # Compile a test program.
8901 if test "$cross_compiling" = yes; then :
8902 # Try to guess by grepping values from an object file.
8903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 short int ascii_mm[] =
8906 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8907 short int ascii_ii[] =
8908 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8909 int use_ascii (int i) {
8910 return ascii_mm[i] + ascii_ii[i];
8912 short int ebcdic_ii[] =
8913 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8914 short int ebcdic_mm[] =
8915 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8916 int use_ebcdic (int i) {
8917 return ebcdic_mm[i] + ebcdic_ii[i];
8924 return use_ascii (foo) == use_ebcdic (foo);
8929 if ac_fn_cxx_try_compile
"$LINENO"; then :
8930 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8931 ac_cv_c_bigendian
=yes
8933 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8934 if test "$ac_cv_c_bigendian" = unknown
; then
8935 ac_cv_c_bigendian
=no
8937 # finding both strings is unlikely to happen, but who knows?
8938 ac_cv_c_bigendian
=unknown
8942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946 $ac_includes_default
8951 /* Are we little or big endian? From Harbison&Steele. */
8955 char c[sizeof (long int)];
8958 return u.c[sizeof (long int) - 1] == 1;
8964 if ac_fn_cxx_try_run
"$LINENO"; then :
8965 ac_cv_c_bigendian
=no
8967 ac_cv_c_bigendian
=yes
8969 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8970 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8976 $as_echo "$ac_cv_c_bigendian" >&6; }
8977 case $ac_cv_c_bigendian in #(
8979 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8985 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8989 as_fn_error
"unknown endianness
8990 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8994 # ----------------------
8995 # Checks for C++ headers
8996 # ----------------------
8999 ac_cpp
='$CXXCPP $CPPFLAGS'
9000 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9001 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9002 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9004 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9005 if test -z "$CXXCPP"; then
9006 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9009 # Double quotes because CXXCPP needs to be expanded
9010 for CXXCPP
in "$CXX -E" "/lib/cpp"
9013 for ac_cxx_preproc_warn_flag
in '' yes
9015 # Use a header file that comes with gcc, so configuring glibc
9016 # with a fresh cross-compiler works.
9017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9018 # <limits.h> exists even on freestanding compilers.
9019 # On the NeXT, cc -E runs the code through the compiler's parser,
9020 # not just through cpp. "Syntax error" is here to catch this case.
9021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9024 # include <limits.h>
9026 # include <assert.h>
9030 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9033 # Broken: fails on valid input.
9036 rm -f conftest.err conftest.
$ac_ext
9038 # OK, works on sane cases. Now check whether nonexistent headers
9039 # can be detected and how.
9040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 #include <ac_nonexistent.h>
9044 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9045 # Broken: success on invalid input.
9048 # Passes both tests.
9052 rm -f conftest.err conftest.
$ac_ext
9055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9056 rm -f conftest.err conftest.
$ac_ext
9057 if $ac_preproc_ok; then :
9062 ac_cv_prog_CXXCPP
=$CXXCPP
9065 CXXCPP
=$ac_cv_prog_CXXCPP
9067 ac_cv_prog_CXXCPP
=$CXXCPP
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9070 $as_echo "$CXXCPP" >&6; }
9072 for ac_cxx_preproc_warn_flag
in '' yes
9074 # Use a header file that comes with gcc, so configuring glibc
9075 # with a fresh cross-compiler works.
9076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9077 # <limits.h> exists even on freestanding compilers.
9078 # On the NeXT, cc -E runs the code through the compiler's parser,
9079 # not just through cpp. "Syntax error" is here to catch this case.
9080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9083 # include <limits.h>
9085 # include <assert.h>
9089 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9092 # Broken: fails on valid input.
9095 rm -f conftest.err conftest.
$ac_ext
9097 # OK, works on sane cases. Now check whether nonexistent headers
9098 # can be detected and how.
9099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101 #include <ac_nonexistent.h>
9103 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9104 # Broken: success on invalid input.
9107 # Passes both tests.
9111 rm -f conftest.err conftest.
$ac_ext
9114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9115 rm -f conftest.err conftest.
$ac_ext
9116 if $ac_preproc_ok; then :
9119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9122 See \`config.log' for more details." >&5
9123 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9124 See \`config.log' for more details." >&2;}; }
9128 ac_cpp
='$CXXCPP $CPPFLAGS'
9129 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9130 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9131 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9134 for ac_header
in unordered_map
9136 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9137 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9138 cat >>confdefs.h
<<_ACEOF
9139 #define HAVE_UNORDERED_MAP 1
9145 for ac_header
in tr1/unordered_map
9147 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9148 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9149 cat >>confdefs.h
<<_ACEOF
9150 #define HAVE_TR1_UNORDERED_MAP 1
9156 for ac_header
in ext
/hash_map
9158 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9159 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9160 cat >>confdefs.h
<<_ACEOF
9161 #define HAVE_EXT_HASH_MAP 1
9169 # Dependency checking.
9172 rm -rf .tst
2>/dev
/null
9173 mkdir .tst
2>/dev
/null
9174 if test -d .tst
; then
9179 rmdir .tst
2>/dev
/null
9181 DEPDIR
="${am__leading_dot}deps"
9183 ac_config_commands
="$ac_config_commands depdir"
9186 ac_config_commands
="$ac_config_commands gccdepdir"
9189 depcc
="$CXX" am_compiler_list
=
9191 am_depcomp
=$ac_aux_dir/depcomp
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9193 $as_echo_n "checking dependency style of $depcc... " >&6; }
9194 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9197 if test -f "$am_depcomp"; then
9198 # We make a subdir and do the tests there. Otherwise we can end up
9199 # making bogus files that we don't know about and never remove. For
9200 # instance it was reported that on HP-UX the gcc test will end up
9201 # making a dummy file named `D' -- because `-MD' means `put the output
9204 # Copy depcomp to subdir because otherwise we won't find it if we're
9205 # using a relative directory.
9206 cp "$am_depcomp" conftest.dir
9208 # We will build objects and dependencies in a subdirectory because
9209 # it helps to detect inapplicable dependency modes. For instance
9210 # both Tru64's cc and ICC support -MD to output dependencies as a
9211 # side effect of compilation, but ICC will put the dependencies in
9212 # the current directory while Tru64 will put them in the object
9216 am_cv_CXX_dependencies_compiler_type
=none
9217 if test "$am_compiler_list" = ""; then
9218 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9220 for depmode
in $am_compiler_list; do
9221 if test $depmode = none
; then break; fi
9223 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9224 # Setup a source with many dependencies, because some compilers
9225 # like to wrap large dependency lists on column 80 (with \), and
9226 # we should not choose a depcomp mode which is confused by this.
9228 # We need to recreate these files for each test, as the compiler may
9229 # overwrite some of them when testing with obscure command lines.
9230 # This happens at least with the AIX C compiler.
9232 for i
in 1 2 3 4 5 6; do
9233 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9234 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9235 # Solaris 8's {/usr,}/bin/sh.
9236 touch sub
/conftst
$i.h
9238 echo "include sub/conftest.Po" > confmf
9240 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9241 # mode. It turns out that the SunPro C++ compiler does not properly
9242 # handle `-M -o', and we need to detect this.
9243 depcmd
="depmode=$depmode \
9244 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9245 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9246 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9247 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9248 if env
$depcmd > conftest.err
2>&1 &&
9249 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9250 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9251 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9252 # icc doesn't choke on unknown options, it will just issue warnings
9253 # or remarks (even with -Werror). So we grep stderr for any message
9254 # that says an option was ignored or not supported.
9255 # When given -MP, icc 7.0 and 7.1 complain thusly:
9256 # icc: Command line warning: ignoring option '-M'; no argument required
9257 # The diagnosis changed in icc 8.0:
9258 # icc: Command line remark: option '-MP' not supported
9259 if (grep 'ignoring option' conftest.err ||
9260 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9261 am_cv_CXX_dependencies_compiler_type
=$depmode
9262 $as_echo "$as_me:$LINENO: success" >&5
9266 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9267 sed -e 's/^/| /' < conftest.err
>&5
9273 am_cv_CXX_dependencies_compiler_type
=none
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9278 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9279 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9280 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9281 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9291 # These libraries may be used by collect2.
9292 # We may need a special search path to get them linked.
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9294 $as_echo_n "checking for collect2 libraries... " >&6; }
9295 if test "${gcc_cv_collect2_libs+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9299 for libs
in '' -lld -lmld \
9300 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9301 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9307 /* Override any GCC internal prototype to avoid an error.
9308 Use char because int might match the return type of a GCC
9309 builtin and then its argument prototype would still apply. */
9322 if ac_fn_cxx_try_link
"$LINENO"; then :
9323 gcc_cv_collect2_libs
="$libs"; break
9325 rm -f core conftest.err conftest.
$ac_objext \
9326 conftest
$ac_exeext conftest.
$ac_ext
9329 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9332 $as_echo "$gcc_cv_collect2_libs" >&6; }
9333 case $gcc_cv_collect2_libs in
9335 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9339 # When building Ada code on Alpha, we need exc_resume which is usually in
9340 # -lexc. So test for it.
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9344 $as_echo_n "checking for library containing exc_resume... " >&6; }
9345 if test "${ac_cv_search_exc_resume+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9348 ac_func_search_save_LIBS
=$LIBS
9349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9362 return exc_resume ();
9367 for ac_lib
in '' exc
; do
9368 if test -z "$ac_lib"; then
9369 ac_res
="none required"
9372 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9374 if ac_fn_cxx_try_link
"$LINENO"; then :
9375 ac_cv_search_exc_resume
=$ac_res
9377 rm -f core conftest.err conftest.
$ac_objext \
9379 if test "${ac_cv_search_exc_resume+set}" = set; then :
9383 if test "${ac_cv_search_exc_resume+set}" = set; then :
9386 ac_cv_search_exc_resume
=no
9389 LIBS
=$ac_func_search_save_LIBS
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9392 $as_echo "$ac_cv_search_exc_resume" >&6; }
9393 ac_res
=$ac_cv_search_exc_resume
9394 if test "$ac_res" != no
; then :
9395 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9403 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9407 $as_echo_n "checking for library containing kstat_open... " >&6; }
9408 if test "${ac_cv_search_kstat_open+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
9411 ac_func_search_save_LIBS
=$LIBS
9412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9415 /* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
9425 return kstat_open ();
9430 for ac_lib
in '' kstat
; do
9431 if test -z "$ac_lib"; then
9432 ac_res
="none required"
9435 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9437 if ac_fn_cxx_try_link
"$LINENO"; then :
9438 ac_cv_search_kstat_open
=$ac_res
9440 rm -f core conftest.err conftest.
$ac_objext \
9442 if test "${ac_cv_search_kstat_open+set}" = set; then :
9446 if test "${ac_cv_search_kstat_open+set}" = set; then :
9449 ac_cv_search_kstat_open
=no
9452 LIBS
=$ac_func_search_save_LIBS
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9455 $as_echo "$ac_cv_search_kstat_open" >&6; }
9456 ac_res
=$ac_cv_search_kstat_open
9457 if test "$ac_res" != no
; then :
9458 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9462 EXTRA_GCC_LIBS
="$LIBS"
9466 # Some systems put ldexp and frexp in libm instead of libc; assume
9467 # they're both in the same place. jcf-dump needs them.
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9471 $as_echo_n "checking for library containing ldexp... " >&6; }
9472 if test "${ac_cv_search_ldexp+set}" = set; then :
9473 $as_echo_n "(cached) " >&6
9475 ac_func_search_save_LIBS
=$LIBS
9476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9479 /* Override any GCC internal prototype to avoid an error.
9480 Use char because int might match the return type of a GCC
9481 builtin and then its argument prototype would still apply. */
9494 for ac_lib
in '' m
; do
9495 if test -z "$ac_lib"; then
9496 ac_res
="none required"
9499 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9501 if ac_fn_cxx_try_link
"$LINENO"; then :
9502 ac_cv_search_ldexp
=$ac_res
9504 rm -f core conftest.err conftest.
$ac_objext \
9506 if test "${ac_cv_search_ldexp+set}" = set; then :
9510 if test "${ac_cv_search_ldexp+set}" = set; then :
9513 ac_cv_search_ldexp
=no
9516 LIBS
=$ac_func_search_save_LIBS
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9519 $as_echo "$ac_cv_search_ldexp" >&6; }
9520 ac_res
=$ac_cv_search_ldexp
9521 if test "$ac_res" != no
; then :
9522 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9530 # Use <inttypes.h> only if it exists,
9531 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9534 $as_echo_n "checking for inttypes.h... " >&6; }
9535 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540 #define __STDC_FORMAT_MACROS
9541 #include <sys/types.h>
9542 #include <inttypes.h>
9554 if ac_fn_cxx_try_compile
"$LINENO"; then :
9555 gcc_cv_header_inttypes_h
=yes
9557 gcc_cv_header_inttypes_h
=no
9559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9563 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9564 if test $gcc_cv_header_inttypes_h = yes; then
9566 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9572 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9573 popen sysconf strsignal getrusage nl_langinfo \
9574 gettimeofday mbstowcs wcswidth mmap setlocale \
9575 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
9577 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9578 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9579 eval as_val
=\$
$as_ac_var
9580 if test "x$as_val" = x
""yes; then :
9581 cat >>confdefs.h
<<_ACEOF
9582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9589 if test x
$ac_cv_func_mbstowcs = xyes
; then
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9591 $as_echo_n "checking whether mbstowcs works... " >&6; }
9592 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9593 $as_echo_n "(cached) " >&6
9595 if test "$cross_compiling" = yes; then :
9596 gcc_cv_func_mbstowcs_works
=yes
9598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9607 if ac_fn_cxx_try_run
"$LINENO"; then :
9608 gcc_cv_func_mbstowcs_works
=yes
9610 gcc_cv_func_mbstowcs_works
=no
9612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9618 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9619 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9621 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9626 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9627 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9631 cat >>confdefs.h
<<_ACEOF
9637 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9638 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9642 cat >>confdefs.h
<<_ACEOF
9643 #define caddr_t char *
9650 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9651 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9652 gcc_header_sys_mman_h
=yes
9654 gcc_header_sys_mman_h
=no
9657 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9658 if test "x$ac_cv_func_mmap" = x
""yes; then :
9664 if test "$gcc_header_sys_mman_h" != yes \
9665 ||
test "$gcc_func_mmap" != yes; then
9666 gcc_cv_func_mmap_file
=no
9667 gcc_cv_func_mmap_dev_zero
=no
9668 gcc_cv_func_mmap_anon
=no
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9671 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9672 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9675 # Add a system to this blacklist if
9676 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9677 # memory area containing the same data that you'd get if you applied
9678 # read() to the same fd. The only system known to have a problem here
9679 # is VMS, where text files have record structure.
9682 gcc_cv_func_mmap_file
=no
;;
9684 gcc_cv_func_mmap_file
=yes;;
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9688 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9690 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9691 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9694 # Add a system to this blacklist if it has mmap() but /dev/zero
9695 # does not exist, or if mmapping /dev/zero does not give anonymous
9696 # zeroed pages with both the following properties:
9697 # 1. If you map N consecutive pages in with one call, and then
9698 # unmap any subset of those pages, the pages that were not
9699 # explicitly unmapped remain accessible.
9700 # 2. If you map two adjacent blocks of memory and then unmap them
9701 # both at once, they must both go away.
9702 # Systems known to be in this category are Windows (all variants),
9705 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9706 gcc_cv_func_mmap_dev_zero
=no
;;
9708 gcc_cv_func_mmap_dev_zero
=yes;;
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9712 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9714 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9716 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9717 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9721 /* end confdefs.h. */
9722 #include <sys/types.h>
9723 #include <sys/mman.h>
9726 #ifndef MAP_ANONYMOUS
9727 #define MAP_ANONYMOUS MAP_ANON
9733 int n = MAP_ANONYMOUS;
9738 if ac_fn_cxx_try_compile
"$LINENO"; then :
9739 gcc_cv_decl_map_anon
=yes
9741 gcc_cv_decl_map_anon
=no
9743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9746 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9748 if test $gcc_cv_decl_map_anon = no
; then
9749 gcc_cv_func_mmap_anon
=no
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9752 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9753 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9756 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9757 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9758 # doesn't give anonymous zeroed pages with the same properties listed
9759 # above for use of /dev/zero.
9760 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9762 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9763 gcc_cv_func_mmap_anon
=no
;;
9765 gcc_cv_func_mmap_anon
=yes;;
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9769 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9773 if test $gcc_cv_func_mmap_file = yes; then
9775 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9778 if test $gcc_cv_func_mmap_dev_zero = yes; then
9780 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9783 if test $gcc_cv_func_mmap_anon = yes; then
9785 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9792 # Under VMS, vfork works very differently than on Unix. The standard test
9793 # won't work, and it isn't easily adaptable. It makes more sense to
9795 ac_cv_func_vfork_works
=yes
9798 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9799 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9803 cat >>confdefs.h
<<_ACEOF
9809 for ac_header
in vfork.h
9811 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9812 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9813 cat >>confdefs.h
<<_ACEOF
9814 #define HAVE_VFORK_H 1
9820 for ac_func
in fork vfork
9822 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9823 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9824 eval as_val
=\$
$as_ac_var
9825 if test "x$as_val" = x
""yes; then :
9826 cat >>confdefs.h
<<_ACEOF
9827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9833 if test "x$ac_cv_func_fork" = xyes
; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9835 $as_echo_n "checking for working fork... " >&6; }
9836 if test "${ac_cv_func_fork_works+set}" = set; then :
9837 $as_echo_n "(cached) " >&6
9839 if test "$cross_compiling" = yes; then :
9840 ac_cv_func_fork_works
=cross
9842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9844 $ac_includes_default
9849 /* By Ruediger Kuhlmann. */
9856 if ac_fn_cxx_try_run
"$LINENO"; then :
9857 ac_cv_func_fork_works
=yes
9859 ac_cv_func_fork_works
=no
9861 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9862 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9867 $as_echo "$ac_cv_func_fork_works" >&6; }
9870 ac_cv_func_fork_works
=$ac_cv_func_fork
9872 if test "x$ac_cv_func_fork_works" = xcross
; then
9874 *-*-amigaos* |
*-*-msdosdjgpp*)
9875 # Override, as these systems have only a dummy fork() stub
9876 ac_cv_func_fork_works
=no
9879 ac_cv_func_fork_works
=yes
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9883 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9885 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9886 if test "x$ac_cv_func_vfork" = xyes
; then
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9888 $as_echo_n "checking for working vfork... " >&6; }
9889 if test "${ac_cv_func_vfork_works+set}" = set; then :
9890 $as_echo_n "(cached) " >&6
9892 if test "$cross_compiling" = yes; then :
9893 ac_cv_func_vfork_works
=cross
9895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9896 /* end confdefs.h. */
9897 /* Thanks to Paul Eggert for this test. */
9898 $ac_includes_default
9899 #include <sys/wait.h>
9903 /* On some sparc systems, changes by the child to local and incoming
9904 argument registers are propagated back to the parent. The compiler
9905 is told about this with #include <vfork.h>, but some compilers
9906 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9907 static variable whose address is put into a register that is
9908 clobbered by the vfork. */
9911 sparc_address_test (int arg)
9913 sparc_address_test (arg) int arg;
9934 pid_t parent = getpid ();
9937 sparc_address_test (0);
9942 /* Here is another test for sparc vfork register problems. This
9943 test uses lots of local variables, at least as many local
9944 variables as main has allocated so far including compiler
9945 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9946 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9947 reuse the register of parent for one of the local variables,
9948 since it will think that parent can't possibly be used any more
9949 in this routine. Assigning to the local variable will thus
9950 munge parent in the parent process. */
9952 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9953 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9954 /* Convince the compiler that p..p7 are live; otherwise, it might
9955 use the same hardware register for all 8 local variables. */
9956 if (p != p1 || p != p2 || p != p3 || p != p4
9957 || p != p5 || p != p6 || p != p7)
9960 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9961 from child file descriptors. If the child closes a descriptor
9962 before it execs or exits, this munges the parent's descriptor
9963 as well. Test for this by closing stdout in the child. */
9964 _exit(close(fileno(stdout)) != 0);
9969 while (wait(&status) != child)
9972 /* Was there some problem with vforking? */
9975 /* Did the child fail? (This shouldn't happen.) */
9978 /* Did the vfork/compiler bug occur? */
9979 || parent != getpid()
9981 /* Did the file descriptor bug occur? */
9982 || fstat(fileno(stdout), &st) != 0
9987 if ac_fn_cxx_try_run
"$LINENO"; then :
9988 ac_cv_func_vfork_works
=yes
9990 ac_cv_func_vfork_works
=no
9992 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9993 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9998 $as_echo "$ac_cv_func_vfork_works" >&6; }
10001 if test "x$ac_cv_func_fork_works" = xcross
; then
10002 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10004 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10007 if test "x$ac_cv_func_vfork_works" = xyes
; then
10009 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10013 $as_echo "#define vfork fork" >>confdefs.h
10016 if test "x$ac_cv_func_fork_works" = xyes
; then
10018 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10024 if test "X$prefix" = "XNONE"; then
10025 acl_final_prefix
="$ac_default_prefix"
10027 acl_final_prefix
="$prefix"
10029 if test "X$exec_prefix" = "XNONE"; then
10030 acl_final_exec_prefix
='${prefix}'
10032 acl_final_exec_prefix
="$exec_prefix"
10034 acl_save_prefix
="$prefix"
10035 prefix
="$acl_final_prefix"
10036 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10037 prefix
="$acl_save_prefix"
10040 # Check whether --with-gnu-ld was given.
10041 if test "${with_gnu_ld+set}" = set; then :
10042 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10047 # Prepare PATH_SEPARATOR.
10048 # The user is always right.
10049 if test "${PATH_SEPARATOR+set}" != set; then
10050 echo "#! /bin/sh" >conf$$.sh
10051 echo "exit 0" >>conf$$.sh
10053 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10061 if test "$GCC" = yes; then
10062 # Check if gcc -print-prog-name=ld gives a path.
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10064 $as_echo_n "checking for ld used by GCC... " >&6; }
10067 # gcc leaves a trailing carriage return which upsets mingw
10068 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10070 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10073 # Accept absolute paths.
10074 [\\/]* |
[A-Za-z
]:[\\/]*)
10075 re_direlt
='/[^/][^/]*/\.\./'
10076 # Canonicalize the path of ld
10077 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10078 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10079 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10081 test -z "$LD" && LD
="$ac_prog"
10084 # If it fails, then pretend we aren't using GCC.
10088 # If it is relative, then search for the first ld in PATH.
10089 with_gnu_ld
=unknown
10092 elif test "$with_gnu_ld" = yes; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10094 $as_echo_n "checking for GNU ld... " >&6; }
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10097 $as_echo_n "checking for non-GNU ld... " >&6; }
10099 if test "${acl_cv_path_LD+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
10102 if test -z "$LD"; then
10103 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10104 for ac_dir
in $PATH; do
10105 test -z "$ac_dir" && ac_dir
=.
10106 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10107 acl_cv_path_LD
="$ac_dir/$ac_prog"
10108 # Check to see if the program is GNU ld. I'd rather use --version,
10109 # but apparently some GNU ld's only accept -v.
10110 # Break only if it was the GNU/non-GNU ld that we prefer.
10111 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10112 test "$with_gnu_ld" != no
&& break
10114 test "$with_gnu_ld" != yes && break
10120 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10124 LD
="$acl_cv_path_LD"
10125 if test -n "$LD"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10127 $as_echo "$LD" >&6; }
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10132 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10134 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10135 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10136 $as_echo_n "(cached) " >&6
10138 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10139 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10140 acl_cv_prog_gnu_ld
=yes
10142 acl_cv_prog_gnu_ld
=no
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10146 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10147 with_gnu_ld
=$acl_cv_prog_gnu_ld
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10152 $as_echo_n "checking for shared library run path origin... " >&6; }
10153 if test "${acl_cv_rpath+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10157 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10158 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10160 rm -f .
/conftest.sh
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10165 $as_echo "$acl_cv_rpath" >&6; }
10167 libext
="$acl_cv_libext"
10168 shlibext
="$acl_cv_shlibext"
10169 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10170 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10171 hardcode_direct
="$acl_cv_hardcode_direct"
10172 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10173 # Check whether --enable-rpath was given.
10174 if test "${enable_rpath+set}" = set; then :
10175 enableval
=$enable_rpath; :
10189 acl_save_prefix
="$prefix"
10190 prefix
="$acl_final_prefix"
10191 acl_save_exec_prefix
="$exec_prefix"
10192 exec_prefix
="$acl_final_exec_prefix"
10194 eval additional_includedir
=\"$includedir\"
10195 eval additional_libdir
=\"$libdir\"
10197 exec_prefix
="$acl_save_exec_prefix"
10198 prefix
="$acl_save_prefix"
10201 # Check whether --with-libiconv-prefix was given.
10202 if test "${with_libiconv_prefix+set}" = set; then :
10203 withval
=$with_libiconv_prefix;
10204 if test "X$withval" = "Xno"; then
10207 if test "X$withval" = "X"; then
10209 acl_save_prefix
="$prefix"
10210 prefix
="$acl_final_prefix"
10211 acl_save_exec_prefix
="$exec_prefix"
10212 exec_prefix
="$acl_final_exec_prefix"
10214 eval additional_includedir
=\"$includedir\"
10215 eval additional_libdir
=\"$libdir\"
10217 exec_prefix
="$acl_save_exec_prefix"
10218 prefix
="$acl_save_prefix"
10221 additional_includedir
="$withval/include"
10222 additional_libdir
="$withval/lib"
10233 names_already_handled
=
10234 names_next_round
='iconv '
10235 while test -n "$names_next_round"; do
10236 names_this_round
="$names_next_round"
10238 for name
in $names_this_round; do
10240 for n
in $names_already_handled; do
10241 if test "$n" = "$name"; then
10242 already_handled
=yes
10246 if test -z "$already_handled"; then
10247 names_already_handled
="$names_already_handled $name"
10248 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10249 eval value
=\"\
$HAVE_LIB$uppername\"
10250 if test -n "$value"; then
10251 if test "$value" = yes; then
10252 eval value
=\"\
$LIB$uppername\"
10253 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10254 eval value
=\"\
$LTLIB$uppername\"
10255 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10264 if test $use_additional = yes; then
10265 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10266 found_dir
="$additional_libdir"
10267 found_so
="$additional_libdir/lib$name.$shlibext"
10268 if test -f "$additional_libdir/lib$name.la"; then
10269 found_la
="$additional_libdir/lib$name.la"
10272 if test -f "$additional_libdir/lib$name.$libext"; then
10273 found_dir
="$additional_libdir"
10274 found_a
="$additional_libdir/lib$name.$libext"
10275 if test -f "$additional_libdir/lib$name.la"; then
10276 found_la
="$additional_libdir/lib$name.la"
10281 if test "X$found_dir" = "X"; then
10282 for x
in $LDFLAGS $LTLIBICONV; do
10284 acl_save_prefix
="$prefix"
10285 prefix
="$acl_final_prefix"
10286 acl_save_exec_prefix
="$exec_prefix"
10287 exec_prefix
="$acl_final_exec_prefix"
10289 exec_prefix
="$acl_save_exec_prefix"
10290 prefix
="$acl_save_prefix"
10294 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10295 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10297 found_so
="$dir/lib$name.$shlibext"
10298 if test -f "$dir/lib$name.la"; then
10299 found_la
="$dir/lib$name.la"
10302 if test -f "$dir/lib$name.$libext"; then
10304 found_a
="$dir/lib$name.$libext"
10305 if test -f "$dir/lib$name.la"; then
10306 found_la
="$dir/lib$name.la"
10312 if test "X$found_dir" != "X"; then
10317 if test "X$found_dir" != "X"; then
10318 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10319 if test "X$found_so" != "X"; then
10320 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10321 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10324 for x
in $ltrpathdirs; do
10325 if test "X$x" = "X$found_dir"; then
10330 if test -z "$haveit"; then
10331 ltrpathdirs
="$ltrpathdirs $found_dir"
10333 if test "$hardcode_direct" = yes; then
10334 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10336 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10337 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10339 for x
in $rpathdirs; do
10340 if test "X$x" = "X$found_dir"; then
10345 if test -z "$haveit"; then
10346 rpathdirs
="$rpathdirs $found_dir"
10350 for x
in $LDFLAGS $LIBICONV; do
10352 acl_save_prefix
="$prefix"
10353 prefix
="$acl_final_prefix"
10354 acl_save_exec_prefix
="$exec_prefix"
10355 exec_prefix
="$acl_final_exec_prefix"
10357 exec_prefix
="$acl_save_exec_prefix"
10358 prefix
="$acl_save_prefix"
10360 if test "X$x" = "X-L$found_dir"; then
10365 if test -z "$haveit"; then
10366 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10368 if test "$hardcode_minus_L" != no
; then
10369 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10371 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10377 if test "X$found_a" != "X"; then
10378 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10380 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10383 additional_includedir
=
10384 case "$found_dir" in
10386 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10387 additional_includedir
="$basedir/include"
10390 if test "X$additional_includedir" != "X"; then
10391 if test "X$additional_includedir" != "X/usr/include"; then
10393 if test "X$additional_includedir" = "X/usr/local/include"; then
10394 if test -n "$GCC"; then
10396 linux
*) haveit
=yes;;
10400 if test -z "$haveit"; then
10401 for x
in $CPPFLAGS $INCICONV; do
10403 acl_save_prefix
="$prefix"
10404 prefix
="$acl_final_prefix"
10405 acl_save_exec_prefix
="$exec_prefix"
10406 exec_prefix
="$acl_final_exec_prefix"
10408 exec_prefix
="$acl_save_exec_prefix"
10409 prefix
="$acl_save_prefix"
10411 if test "X$x" = "X-I$additional_includedir"; then
10416 if test -z "$haveit"; then
10417 if test -d "$additional_includedir"; then
10418 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10424 if test -n "$found_la"; then
10425 save_libdir
="$libdir"
10426 case "$found_la" in
10427 */* |
*\\*) .
"$found_la" ;;
10428 *) .
"./$found_la" ;;
10430 libdir
="$save_libdir"
10431 for dep
in $dependency_libs; do
10434 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10435 if test "X$additional_libdir" != "X/usr/lib"; then
10437 if test "X$additional_libdir" = "X/usr/local/lib"; then
10438 if test -n "$GCC"; then
10440 linux
*) haveit
=yes;;
10444 if test -z "$haveit"; then
10446 for x
in $LDFLAGS $LIBICONV; do
10448 acl_save_prefix
="$prefix"
10449 prefix
="$acl_final_prefix"
10450 acl_save_exec_prefix
="$exec_prefix"
10451 exec_prefix
="$acl_final_exec_prefix"
10453 exec_prefix
="$acl_save_exec_prefix"
10454 prefix
="$acl_save_prefix"
10456 if test "X$x" = "X-L$additional_libdir"; then
10461 if test -z "$haveit"; then
10462 if test -d "$additional_libdir"; then
10463 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10467 for x
in $LDFLAGS $LTLIBICONV; do
10469 acl_save_prefix
="$prefix"
10470 prefix
="$acl_final_prefix"
10471 acl_save_exec_prefix
="$exec_prefix"
10472 exec_prefix
="$acl_final_exec_prefix"
10474 exec_prefix
="$acl_save_exec_prefix"
10475 prefix
="$acl_save_prefix"
10477 if test "X$x" = "X-L$additional_libdir"; then
10482 if test -z "$haveit"; then
10483 if test -d "$additional_libdir"; then
10484 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10491 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10492 if test "$enable_rpath" != no
; then
10494 for x
in $rpathdirs; do
10495 if test "X$x" = "X$dir"; then
10500 if test -z "$haveit"; then
10501 rpathdirs
="$rpathdirs $dir"
10504 for x
in $ltrpathdirs; do
10505 if test "X$x" = "X$dir"; then
10510 if test -z "$haveit"; then
10511 ltrpathdirs
="$ltrpathdirs $dir"
10516 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10519 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10522 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10523 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10529 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10530 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10536 if test "X$rpathdirs" != "X"; then
10537 if test -n "$hardcode_libdir_separator"; then
10539 for found_dir
in $rpathdirs; do
10540 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10542 acl_save_libdir
="$libdir"
10544 eval flag
=\"$hardcode_libdir_flag_spec\"
10545 libdir
="$acl_save_libdir"
10546 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10548 for found_dir
in $rpathdirs; do
10549 acl_save_libdir
="$libdir"
10550 libdir
="$found_dir"
10551 eval flag
=\"$hardcode_libdir_flag_spec\"
10552 libdir
="$acl_save_libdir"
10553 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10557 if test "X$ltrpathdirs" != "X"; then
10558 for found_dir
in $ltrpathdirs; do
10559 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10569 am_save_CPPFLAGS
="$CPPFLAGS"
10571 for element
in $INCICONV; do
10573 for x
in $CPPFLAGS; do
10575 acl_save_prefix
="$prefix"
10576 prefix
="$acl_final_prefix"
10577 acl_save_exec_prefix
="$exec_prefix"
10578 exec_prefix
="$acl_final_exec_prefix"
10580 exec_prefix
="$acl_save_exec_prefix"
10581 prefix
="$acl_save_prefix"
10583 if test "X$x" = "X$element"; then
10588 if test -z "$haveit"; then
10589 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10595 $as_echo_n "checking for iconv... " >&6; }
10596 if test "${am_cv_func_iconv+set}" = set; then :
10597 $as_echo_n "(cached) " >&6
10600 am_cv_func_iconv
="no, consider installing GNU libiconv"
10602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10604 #include <stdlib.h>
10609 iconv_t cd = iconv_open("","");
10610 iconv(cd,NULL,NULL,NULL,NULL);
10616 if ac_fn_cxx_try_link
"$LINENO"; then :
10617 am_cv_func_iconv
=yes
10619 rm -f core conftest.err conftest.
$ac_objext \
10620 conftest
$ac_exeext conftest.
$ac_ext
10621 if test "$am_cv_func_iconv" != yes; then
10622 am_save_LIBS
="$LIBS"
10623 LIBS
="$LIBS $LIBICONV"
10624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 #include <stdlib.h>
10631 iconv_t cd = iconv_open("","");
10632 iconv(cd,NULL,NULL,NULL,NULL);
10638 if ac_fn_cxx_try_link
"$LINENO"; then :
10639 am_cv_lib_iconv
=yes
10640 am_cv_func_iconv
=yes
10642 rm -f core conftest.err conftest.
$ac_objext \
10643 conftest
$ac_exeext conftest.
$ac_ext
10644 LIBS
="$am_save_LIBS"
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10649 $as_echo "$am_cv_func_iconv" >&6; }
10650 if test "$am_cv_func_iconv" = yes; then
10652 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10655 if test "$am_cv_lib_iconv" = yes; then
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10657 $as_echo_n "checking how to link with libiconv... " >&6; }
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10659 $as_echo "$LIBICONV" >&6; }
10661 CPPFLAGS
="$am_save_CPPFLAGS"
10668 if test "$am_cv_func_iconv" = yes; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10670 $as_echo_n "checking for iconv declaration... " >&6; }
10671 if test "${am_cv_proto_iconv+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
10675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10678 #include <stdlib.h>
10684 #if defined(__STDC__) || defined(__cplusplus)
10685 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10698 if ac_fn_cxx_try_compile
"$LINENO"; then :
10699 am_cv_proto_iconv_arg1
=""
10701 am_cv_proto_iconv_arg1
="const"
10703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10704 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);"
10707 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10709 }$am_cv_proto_iconv" >&5
10711 }$am_cv_proto_iconv" >&6; }
10713 cat >>confdefs.h
<<_ACEOF
10714 #define ICONV_CONST $am_cv_proto_iconv_arg1
10720 # Until we have in-tree GNU iconv:
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10726 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10727 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732 #include <locale.h>
10741 if ac_fn_cxx_try_link
"$LINENO"; then :
10742 am_cv_val_LC_MESSAGES
=yes
10744 am_cv_val_LC_MESSAGES
=no
10746 rm -f core conftest.err conftest.
$ac_objext \
10747 conftest
$ac_exeext conftest.
$ac_ext
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10750 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10751 if test $am_cv_val_LC_MESSAGES = yes; then
10753 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10760 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10761 if test "${am_cv_langinfo_codeset+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
10764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 #include <langinfo.h>
10770 char* cs = nl_langinfo(CODESET);
10775 if ac_fn_cxx_try_link
"$LINENO"; then :
10776 am_cv_langinfo_codeset
=yes
10778 am_cv_langinfo_codeset
=no
10780 rm -f core conftest.err conftest.
$ac_objext \
10781 conftest
$ac_exeext conftest.
$ac_ext
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10785 $as_echo "$am_cv_langinfo_codeset" >&6; }
10786 if test $am_cv_langinfo_codeset = yes; then
10788 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10793 # We will need to find libiberty.h and ansidecl.h
10794 saved_CFLAGS
="$CFLAGS"
10795 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10796 saved_CXXFLAGS
="$CXXFLAGS"
10797 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10799 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10800 # normal autoconf function for these. But force definition of
10801 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10802 # basename handling in libiberty.h.
10803 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10804 #undef HAVE_DECL_BASENAME
10805 #define HAVE_DECL_BASENAME 1
10806 #include \"ansidecl.h\"
10807 #include \"system.h\"
10809 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10815 cat >>confdefs.h
<<_ACEOF
10816 #define HAVE_DECL_BASENAME $ac_have_decl
10818 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10819 #undef HAVE_DECL_BASENAME
10820 #define HAVE_DECL_BASENAME 1
10821 #include \"ansidecl.h\"
10822 #include \"system.h\"
10824 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10830 cat >>confdefs.h
<<_ACEOF
10831 #define HAVE_DECL_STRSTR $ac_have_decl
10835 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10836 madvise stpcpy strnlen strsignal strverscmp \
10837 strtol strtoul strtoll strtoull \
10838 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10839 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
10841 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10843 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10844 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10845 $as_echo_n "(cached) " >&6
10847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10850 #define $ac_tr_decl 1
10852 #include "ansidecl.h"
10853 #include "system.h"
10859 char *(*pfn) = (char *(*)) $ac_func ;
10865 if ac_fn_cxx_try_compile
"$LINENO"; then :
10866 eval "gcc_cv_have_decl_$ac_func=yes"
10868 eval "gcc_cv_have_decl_$ac_func=no"
10870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10873 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10875 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10876 #define $ac_tr_decl 1
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10881 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10882 #define $ac_tr_decl 0
10890 for ac_func
in getrlimit setrlimit getrusage
10892 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10894 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10895 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10896 $as_echo_n "(cached) " >&6
10898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h. */
10901 #define $ac_tr_decl 1
10903 #include "ansidecl.h"
10904 #include "system.h"
10905 #ifdef HAVE_SYS_RESOURCE_H
10906 #include <sys/resource.h>
10914 char *(*pfn) = (char *(*)) $ac_func ;
10920 if ac_fn_cxx_try_compile
"$LINENO"; then :
10921 eval "gcc_cv_have_decl_$ac_func=yes"
10923 eval "gcc_cv_have_decl_$ac_func=no"
10925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10928 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10930 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10931 #define $ac_tr_decl 1
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10937 #define $ac_tr_decl 0
10945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10948 #include "ansidecl.h"
10949 #include "system.h"
10950 #ifdef HAVE_SYS_RESOURCE_H
10951 #include <sys/resource.h>
10962 if ac_fn_cxx_try_compile
"$LINENO"; then :
10966 $as_echo "#define rlim_t long" >>confdefs.h
10969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10971 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10972 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10973 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10974 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10975 for ac_func
in ldgetname
10977 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10979 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10980 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10981 $as_echo_n "(cached) " >&6
10983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10984 /* end confdefs.h. */
10986 #define $ac_tr_decl 1
10988 #include "ansidecl.h"
10989 #include "system.h"
10990 #ifdef HAVE_LDFCN_H
11001 char *(*pfn) = (char *(*)) $ac_func ;
11007 if ac_fn_cxx_try_compile
"$LINENO"; then :
11008 eval "gcc_cv_have_decl_$ac_func=yes"
11010 eval "gcc_cv_have_decl_$ac_func=no"
11012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11015 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11018 #define $ac_tr_decl 1
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11024 #define $ac_tr_decl 0
11032 for ac_func
in times
11034 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11036 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11037 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11038 $as_echo_n "(cached) " >&6
11040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11043 #define $ac_tr_decl 1
11045 #include "ansidecl.h"
11046 #include "system.h"
11047 #ifdef HAVE_SYS_TIMES_H
11048 #include <sys/times.h>
11056 char *(*pfn) = (char *(*)) $ac_func ;
11062 if ac_fn_cxx_try_compile
"$LINENO"; then :
11063 eval "gcc_cv_have_decl_$ac_func=yes"
11065 eval "gcc_cv_have_decl_$ac_func=no"
11067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11070 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11072 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11073 #define $ac_tr_decl 1
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11079 #define $ac_tr_decl 0
11087 for ac_func
in sigaltstack
11089 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11091 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11092 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11093 $as_echo_n "(cached) " >&6
11095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h. */
11098 #define $ac_tr_decl 1
11100 #include "ansidecl.h"
11101 #include "system.h"
11102 #include <signal.h>
11109 char *(*pfn) = (char *(*)) $ac_func ;
11115 if ac_fn_cxx_try_compile
"$LINENO"; then :
11116 eval "gcc_cv_have_decl_$ac_func=yes"
11118 eval "gcc_cv_have_decl_$ac_func=no"
11120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11123 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11125 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11126 #define $ac_tr_decl 1
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11132 #define $ac_tr_decl 0
11140 # More time-related stuff.
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11142 $as_echo_n "checking for struct tms... " >&6; }
11143 if test "${ac_cv_struct_tms+set}" = set; then :
11144 $as_echo_n "(cached) " >&6
11147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11148 /* end confdefs.h. */
11150 #include "ansidecl.h"
11151 #include "system.h"
11152 #ifdef HAVE_SYS_TIMES_H
11153 #include <sys/times.h>
11164 if ac_fn_cxx_try_compile
"$LINENO"; then :
11165 ac_cv_struct_tms
=yes
11167 ac_cv_struct_tms
=no
11169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11172 $as_echo "$ac_cv_struct_tms" >&6; }
11173 if test $ac_cv_struct_tms = yes; then
11175 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11179 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11180 # revisit after autoconf 2.50.
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11182 $as_echo_n "checking for clock_t... " >&6; }
11183 if test "${gcc_cv_type_clock_t+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
11187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11190 #include "ansidecl.h"
11191 #include "system.h"
11201 if ac_fn_cxx_try_compile
"$LINENO"; then :
11202 gcc_cv_type_clock_t
=yes
11204 gcc_cv_type_clock_t
=no
11206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11209 $as_echo "$gcc_cv_type_clock_t" >&6; }
11210 if test $gcc_cv_type_clock_t = yes; then
11212 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11216 # Check if F_SETLKW is supported by fcntl.
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11218 $as_echo_n "checking for F_SETLKW... " >&6; }
11219 if test "${ac_cv_f_setlkw+set}" = set; then :
11220 $as_echo_n "(cached) " >&6
11223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11236 return fcntl (1, F_SETLKW, &fl);
11241 if ac_fn_cxx_try_compile
"$LINENO"; then :
11246 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11249 $as_echo "$ac_cv_f_setlkw" >&6; }
11250 if test $ac_cv_f_setlkw = yes; then
11252 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11256 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11257 CFLAGS
="$saved_CFLAGS"
11258 CXXFLAGS
="$saved_CXXFLAGS"
11260 # mkdir takes a single argument on some systems.
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11262 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11263 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11264 $as_echo_n "(cached) " >&6
11266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11269 #include <sys/types.h>
11270 #ifdef HAVE_SYS_STAT_H
11271 # include <sys/stat.h>
11273 #ifdef HAVE_UNISTD_H
11274 # include <unistd.h>
11276 #ifdef HAVE_DIRECT_H
11277 # include <direct.h>
11287 if ac_fn_cxx_try_compile
"$LINENO"; then :
11288 gcc_cv_mkdir_takes_one_arg
=no
11290 gcc_cv_mkdir_takes_one_arg
=yes
11292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11295 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11296 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11298 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11309 # With Setjmp/Longjmp based exception handling.
11310 # Check whether --enable-sjlj-exceptions was given.
11311 if test "${enable_sjlj_exceptions+set}" = set; then :
11312 enableval
=$enable_sjlj_exceptions; case $target in
11314 if test $enableval != yes; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11316 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11321 force_sjlj_exceptions
=yes
11325 force_sjlj_exceptions
=yes
11329 force_sjlj_exceptions
=yes
11333 force_sjlj_exceptions
=no
11338 if test $force_sjlj_exceptions = yes; then
11339 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11341 cat >>confdefs.h
<<_ACEOF
11342 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11347 # --------------------------------------------------------
11348 # Build, host, and target specific configuration fragments
11349 # --------------------------------------------------------
11351 # Collect build-machine-specific information.
11352 .
${srcdir}/config.build
11354 # Collect host-machine-specific information.
11355 .
${srcdir}/config.
host
11359 # Collect target-machine-specific information.
11360 .
${srcdir}/config.gcc
11362 extra_objs
="${host_extra_objs} ${extra_objs}"
11363 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11365 # Default the target-machine variables that were not explicitly set.
11366 if test x
"$tm_file" = x
11367 then tm_file
=$cpu_type/$cpu_type.h
; fi
11369 if test x
"$extra_headers" = x
11370 then extra_headers
=; fi
11372 if test x
$md_file = x
11373 then md_file
=$cpu_type/$cpu_type.md
; fi
11375 if test x
$out_file = x
11376 then out_file
=$cpu_type/$cpu_type.c
; fi
11378 if test x
"$tmake_file" = x
11379 then tmake_file
=$cpu_type/t-
$cpu_type
11382 # Support --enable-initfini-array.
11383 if test x
$enable_initfini_array != xno
; then
11384 tm_file
="${tm_file} initfini-array.h"
11387 if test x
"$dwarf2" = xyes
11388 then tm_file
="$tm_file tm-dwarf2.h"
11391 # Say what files are being used for the output code and MD file.
11392 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11393 echo "Using \`$srcdir/config/$md_file' as machine description file."
11395 # If any of the xm_file variables contain nonexistent files, warn
11396 # about them and drop them.
11399 for x
in $build_xm_file; do
11400 if test -f $srcdir/config
/$x
11402 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11403 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11406 build_xm_file
="$bx"
11409 for x
in $host_xm_file; do
11410 if test -f $srcdir/config
/$x
11412 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11413 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11419 for x
in $xm_file; do
11420 if test -f $srcdir/config
/$x
11422 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11423 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11429 for f
in $tm_file; do
11432 if test $count = ax
; then
11433 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11435 echo "Using the following target machine macro files:"
11436 for f
in $tm_file; do
11437 echo " $srcdir/config/$f"
11441 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11443 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11447 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11449 cat >>confdefs.h
<<_ACEOF
11450 #define HAVE_GNU_LD $gnu_ld_bool
11454 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11456 cat >>confdefs.h
<<_ACEOF
11457 #define HAVE_GNU_AS $gnu_as_bool
11462 for f
in $host_xm_file; do
11465 if test $count = a
; then
11467 elif test $count = ax
; then
11468 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11470 echo "Using the following host machine macro files:"
11471 for f
in $host_xm_file; do
11472 echo " $srcdir/config/$f"
11475 echo "Using ${out_host_hook_obj} for host machine hooks."
11477 if test "$host_xm_file" != "$build_xm_file"; then
11479 for f
in $build_xm_file; do
11482 if test $count = a
; then
11484 elif test $count = ax
; then
11485 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11487 echo "Using the following build machine macro files:"
11488 for f
in $build_xm_file; do
11489 echo " $srcdir/config/$f"
11494 if test -n "$configured_native_system_header_dir"; then
11495 native_system_header_dir
=$configured_native_system_header_dir
11497 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11501 powerpc
*-*-darwin*)
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11503 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11504 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11505 $as_echo_n "(cached) " >&6
11507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11510 #include <sys/cdefs.h>
11511 #include <sys/signal.h>
11512 #include <ucontext.h>
11513 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11516 if ac_fn_cxx_try_compile
"$LINENO"; then :
11517 gcc_cv_mcontext_underscores
=no
11519 gcc_cv_mcontext_underscores
=yes
11521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11524 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11525 if test $gcc_cv_mcontext_underscores = yes; then
11527 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11537 # Check if a valid thread package
11538 case ${enable_threads} in
11541 target_thread_file
='single'
11545 target_thread_file
='single'
11547 aix | dce | lynx | mipssde | posix | rtems | \
11548 single | tpf | vxworks | win32
)
11549 target_thread_file
=${enable_threads}
11552 echo "${enable_threads} is an unknown thread package" 1>&2
11557 if test x
${thread_file} = x
; then
11558 # No thread file set by target-specific clauses in config.gcc,
11559 # so use file chosen by default logic above
11560 thread_file
=${target_thread_file}
11568 if test x
$enable___cxa_atexit = xyes || \
11569 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11570 if test x
$host = x
$target; then
11572 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11573 # keyed to flag_use_cxa_atexit
11581 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11582 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11585 echo "__cxa_atexit can't be enabled on this target"
11591 # We can't check for __cxa_atexit when building a cross, so assume
11595 if test x
$use_cxa_atexit = xyes
; then
11597 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11602 # Look for a file containing extra machine modes.
11603 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11604 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11607 cat >>confdefs.h
<<_ACEOF
11608 #define EXTRA_MODES_FILE "config/$extra_modes"
11613 # Convert extra_options into a form suitable for Makefile use.
11616 for f
in $extra_options; do
11617 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11618 all_opt_files
="$all_opt_files $srcdir/config/$f"
11622 # auto-host.h is the file containing items generated by autoconf and is
11623 # the first file included by config.h.
11624 # If host=build, it is correct to have bconfig include auto-host.h
11625 # as well. If host!=build, we are in error and need to do more
11626 # work to find out the build config parameters.
11627 if test x
$host = x
$build
11629 build_auto
=auto-host.h
11631 # We create a subdir, then run autoconf in the subdir.
11632 # To prevent recursion we set host and build for the new
11633 # invocation of configure to the build for this invocation
11640 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11641 *) realsrcdir
=..
/${srcdir};;
11643 # Clearing GMPINC is necessary to prevent host headers being
11644 # used by the build compiler. Defining GENERATOR_FILE stops
11645 # system.h from including gmp.h.
11646 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11647 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11648 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11649 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11650 ${realsrcdir}/configure \
11651 --enable-languages=${enable_languages-all} \
11652 --target=$target_alias --host=$build_alias --build=$build_alias
11654 # We just finished tests for the build machine, so rename
11655 # the file auto-build.h in the gcc directory.
11656 mv auto-host.h ..
/auto-build.h
11659 build_auto
=auto-build.h
11663 tm_file
="${tm_file} defaults.h"
11664 tm_p_file
="${tm_p_file} tm-preds.h"
11665 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11666 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11667 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11668 # put this back in temporarily.
11669 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11675 # Compile in configure arguments.
11676 if test -f configargs.h
; then
11677 # Being re-configured.
11678 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11679 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11681 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11684 # Double all backslashes and backslash all quotes to turn
11685 # gcc_config_arguments into a C string.
11686 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11687 $gcc_config_arguments
11689 gcc_config_arguments_str
=`cat conftest.out`
11692 cat > configargs.h
<<EOF
11693 /* Generated automatically. */
11694 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11695 static const char thread_model[] = "$thread_file";
11697 static const struct {
11698 const char *name, *value;
11699 } configure_default_options[] = $configure_default_options;
11702 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11703 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11704 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11705 if test -f $srcdir/REVISION
; then
11706 gcc_REVISION
=`cat $srcdir/REVISION`
11710 cat > plugin-version.h
<<EOF
11711 #include "configargs.h"
11713 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11714 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11715 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11716 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11718 static char basever[] = "$gcc_BASEVER";
11719 static char datestamp[] = "$gcc_DATESTAMP";
11720 static char devphase[] = "$gcc_DEVPHASE";
11721 static char revision[] = "$gcc_REVISION";
11723 /* FIXME plugins: We should make the version information more precise.
11724 One way to do is to add a checksum. */
11726 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11727 devphase, revision,
11728 configuration_arguments};
11731 # Internationalization
11732 # If we haven't got the data from the intl directory,
11733 # assume NLS is disabled.
11742 if test -f ..
/intl
/config.intl
; then
11743 . ..
/intl
/config.intl
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11746 $as_echo_n "checking whether NLS is requested... " >&6; }
11747 if test x
"$USE_NLS" != xyes
; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752 $as_echo "yes" >&6; }
11754 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11758 $as_echo_n "checking for catalogs to be installed... " >&6; }
11759 # Look for .po and .gmo files in the source directory.
11762 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11763 # If there aren't any .gmo files the shell will give us the
11764 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11766 case "$cat" in *\
**)
11769 # The quadruple backslash is collapsed to a double backslash
11770 # by the backticks, then collapsed again by the double quotes,
11771 # leaving us with one backslash in the sed expression (right
11772 # before the dot that mustn't act as a wildcard).
11773 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11774 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11775 # The user is allowed to set LINGUAS to a list of languages to
11776 # install catalogs for. If it's empty that means "all of them."
11777 if test "x$LINGUAS" = x
; then
11778 CATALOGS
="$CATALOGS $cat"
11779 XLINGUAS
="$XLINGUAS $lang"
11781 case "$LINGUAS" in *$lang*)
11782 CATALOGS
="$CATALOGS $cat"
11783 XLINGUAS
="$XLINGUAS $lang"
11788 LINGUAS
="$XLINGUAS"
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11790 $as_echo "$LINGUAS" >&6; }
11803 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11804 # -liconv on the link line twice.
11805 case "$LIBINTL" in *$LIBICONV*)
11809 # Check whether --enable-secureplt was given.
11810 if test "${enable_secureplt+set}" = set; then :
11811 enableval
=$enable_secureplt;
11815 # Check whether --enable-leading-mingw64-underscores was given.
11816 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11817 enableval
=$enable_leading_mingw64_underscores;
11820 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11822 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11826 # Check whether --enable-cld was given.
11827 if test "${enable_cld+set}" = set; then :
11828 enableval
=$enable_cld;
11834 # Check whether --enable-frame-pointer was given.
11835 if test "${enable_frame_pointer+set}" = set; then :
11836 enableval
=$enable_frame_pointer;
11840 linux
* | darwin
[8912]*)
11841 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11843 enable_frame_pointer
=no
11846 enable_frame_pointer
=yes
11853 # Windows32 Registry support for specifying GCC installation paths.
11854 # Check whether --enable-win32-registry was given.
11855 if test "${enable_win32_registry+set}" = set; then :
11856 enableval
=$enable_win32_registry;
11861 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11862 if test "x$enable_win32_registry" != xno
; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11864 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11865 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11866 $as_echo_n "(cached) " >&6
11868 ac_func_search_save_LIBS
=$LIBS
11869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11870 /* end confdefs.h. */
11872 /* Override any GCC internal prototype to avoid an error.
11873 Use char because int might match the return type of a GCC
11874 builtin and then its argument prototype would still apply. */
11878 char RegOpenKeyExA ();
11882 return RegOpenKeyExA ();
11887 for ac_lib
in '' advapi32
; do
11888 if test -z "$ac_lib"; then
11889 ac_res
="none required"
11892 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11894 if ac_fn_cxx_try_link
"$LINENO"; then :
11895 ac_cv_search_RegOpenKeyExA
=$ac_res
11897 rm -f core conftest.err conftest.
$ac_objext \
11899 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11903 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11906 ac_cv_search_RegOpenKeyExA
=no
11908 rm conftest.
$ac_ext
11909 LIBS
=$ac_func_search_save_LIBS
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11912 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11913 ac_res
=$ac_cv_search_RegOpenKeyExA
11914 if test "$ac_res" != no
; then :
11915 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11918 enable_win32_registry
=no
11923 if test "x$enable_win32_registry" != xno
; then
11925 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11928 if test "x$enable_win32_registry" != xyes \
11929 && test "x$enable_win32_registry" != x
; then
11931 cat >>confdefs.h
<<_ACEOF
11932 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11940 # Get an absolute path to the GCC top-level source directory
11941 holddir
=`${PWDCMD-pwd}`
11943 topdir
=`${PWDCMD-pwd}`
11946 # Conditionalize the makefile for this host machine.
11948 for f
in ${host_xmake_file}
11950 if test -f ${srcdir}/config
/$f
11952 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11956 # Conditionalize the makefile for this target machine.
11958 for f
in ${tmake_file}
11960 if test -f ${srcdir}/config
/$f
11962 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11965 tmake_file
="${tmake_file_}"
11967 out_object_file
=`basename $out_file .c`.o
11968 common_out_object_file
=`basename $common_out_file .c`.o
11970 tm_file_list
="options.h"
11971 tm_include_list
="options.h insn-constants.h"
11972 for f
in $tm_file; do
11975 f
=`echo $f | sed 's/^..//'`
11976 tm_file_list
="${tm_file_list} $f"
11977 tm_include_list
="${tm_include_list} $f"
11980 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11981 tm_include_list
="${tm_include_list} $f"
11984 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11985 tm_include_list
="${tm_include_list} config/$f"
11992 for f
in $tm_p_file; do
11995 tm_p_file_list
="${tm_p_file_list} $f"
11996 tm_p_include_list
="${tm_p_include_list} $f"
11999 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12000 tm_p_include_list
="${tm_p_include_list} config/$f"
12006 for f
in $xm_file; do
12009 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12010 xm_include_list
="${xm_include_list} $f"
12013 xm_file_list
="${xm_file_list} $f"
12014 xm_include_list
="${xm_include_list} $f"
12017 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12018 xm_include_list
="${xm_include_list} config/$f"
12024 host_xm_include_list
=
12025 for f
in $host_xm_file; do
12028 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12029 host_xm_include_list
="${host_xm_include_list} $f"
12032 host_xm_file_list
="${host_xm_file_list} $f"
12033 host_xm_include_list
="${host_xm_include_list} $f"
12036 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12037 host_xm_include_list
="${host_xm_include_list} config/$f"
12042 build_xm_file_list
=
12043 for f
in $build_xm_file; do
12046 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12047 build_xm_include_list
="${build_xm_include_list} $f"
12049 auto-build.h | auto-host.h
)
12050 build_xm_file_list
="${build_xm_file_list} $f"
12051 build_xm_include_list
="${build_xm_include_list} $f"
12054 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12055 build_xm_include_list
="${build_xm_include_list} config/$f"
12060 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12061 # cross-compiler which does not use the native headers and libraries.
12062 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12065 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12067 if test "x$with_build_sysroot" != x
; then
12068 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12070 # This value is used, even on a native system, because
12071 # CROSS_SYSTEM_HEADER_DIR is just
12072 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12073 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12076 if test x
$host != x
$target
12078 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12080 SYSTEM_HEADER_DIR
=$build_system_header_dir
12081 case "$host","$target" in
12082 # Darwin crosses can use the host system's libraries and headers,
12083 # because of the fat library support. Of course, it must be the
12084 # same version of Darwin on both sides. Allow the user to
12085 # just say --target=foo-darwin without a version number to mean
12086 # "the version on this system".
12087 *-*-darwin*,*-*-darwin*)
12088 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12089 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12090 if test $hostos = $targetos -o $targetos = darwin
; then
12092 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12097 i?
86-*-*,x86_64-
*-* \
12098 | powerpc
*-*-*,powerpc64
*-*-*)
12099 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12104 if test "x$with_headers" = x
; then
12111 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12112 SYSTEM_HEADER_DIR
=$build_system_header_dir
12115 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12116 if test "x$with_headers" != x
; then
12117 target_header_dir
=$with_headers
12118 elif test "x$with_sysroot" = x
; then
12119 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12120 elif test "x$with_build_sysroot" != "x"; then
12121 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12122 elif test "x$with_sysroot" = xyes
; then
12123 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12125 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12128 target_header_dir
=${native_system_header_dir}
12131 # If this is a cross-compiler that does not
12132 # have its own set of headers then define
12135 # If this is using newlib, without having the headers available now,
12136 # then define inhibit_libc in LIBGCC2_CFLAGS.
12137 # This prevents libgcc2 from containing any code which requires libc
12139 : ${inhibit_libc=false}
12140 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12141 test x
$with_newlib = xyes
; } &&
12142 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12147 # When building gcc with a cross-compiler, we need to adjust things so
12148 # that the generator programs are still built with the native compiler.
12149 # Also, we cannot run fixincludes.
12151 # These are the normal (build=host) settings:
12152 CC_FOR_BUILD
='$(CC)'
12153 CXX_FOR_BUILD
='$(CXX)'
12154 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12155 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12156 BUILD_LDFLAGS
='$(LDFLAGS)'
12157 STMP_FIXINC
=stmp-fixinc
12159 # And these apply if build != host, or we are generating coverage data
12160 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12162 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12163 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12164 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12167 # Expand extra_headers to include complete path.
12168 # This substitutes for lots of t-* files.
12169 extra_headers_list
=
12170 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12171 for file in ${extra_headers} ; do
12172 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12175 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12176 if test x
"$use_gcc_tgmath" = xyes
12177 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12180 # Define collect2 in Makefile.
12181 case $host_can_use_collect2 in
12183 *) collect2
='collect2$(exeext)' ;;
12187 # Add a definition of USE_COLLECT2 if system wants one.
12188 case $use_collect2 in
12189 no
) use_collect2
= ;;
12192 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12193 xm_defines
="${xm_defines} USE_COLLECT2"
12194 case $host_can_use_collect2 in
12196 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12203 cat >>confdefs.h
<<_ACEOF
12204 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12208 # ---------------------------
12209 # Assembler & linker features
12210 # ---------------------------
12212 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12213 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12214 # However when ld-new is first executed from the build tree, libtool will
12215 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12216 # to the build tree. While doing this we need to use the previous-stage
12217 # linker, or we have an infinite loop. The presence of a shell script as
12218 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12219 # the gcc/collect-ld script. So we need to know how libtool works, or
12220 # exec-tool will fail.
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12226 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12231 macro_version
='2.2.7a'
12232 macro_revision
='1.3134'
12246 ltmain
="$ac_aux_dir/ltmain.sh"
12248 # Backslashify metacharacters that are still active within
12249 # double-quoted strings.
12250 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12252 # Same as above, but do not quote variable references.
12253 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12255 # Sed substitution to delay expansion of an escaped shell variable in a
12256 # double_quote_subst'ed string.
12257 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12259 # Sed substitution to delay expansion of an escaped single quote.
12260 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12262 # Sed substitution to avoid accidental globbing in evaled expressions
12263 no_glob_subst
='s/\*/\\\*/g'
12265 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12266 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12267 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12270 $as_echo_n "checking how to print strings... " >&6; }
12271 # Test print first, because it will be a builtin if present.
12272 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12273 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12275 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12278 # Use this function as a fallback that always works.
12279 func_fallback_echo ()
12281 eval 'cat <<_LTECHO_EOF
12285 ECHO='func_fallback_echo
'
12288 # func_echo_all arg...
12289 # Invoke $ECHO with all args, space-separated.
12296 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12297 $as_echo "printf" >&6; } ;;
12298 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12299 $as_echo "print -r" >&6; } ;;
12300 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12301 $as_echo "cat" >&6; } ;;
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12318 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12319 if test "${ac_cv_path_SED+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12322 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12323 for ac_i in 1 2 3 4 5 6 7; do
12324 ac_script="$ac_script$as_nl$ac_script"
12326 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12327 { ac_script=; unset ac_script;}
12328 if test -z "$SED"; then
12329 ac_path_SED_found=false
12330 # Loop through the user's path and
test for each of PROGNAME-LIST
12331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12332 for as_dir
in $PATH
12335 test -z "$as_dir" && as_dir
=.
12336 for ac_prog
in sed gsed
; do
12337 for ac_exec_ext
in '' $ac_executable_extensions; do
12338 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12339 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12340 # Check for GNU ac_path_SED and select it if it is found.
12341 # Check for GNU $ac_path_SED
12342 case `"$ac_path_SED" --version 2>&1` in
12344 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12347 $as_echo_n 0123456789 >"conftest.in"
12350 cat "conftest.in" "conftest.in" >"conftest.tmp"
12351 mv "conftest.tmp" "conftest.in"
12352 cp "conftest.in" "conftest.nl"
12353 $as_echo '' >> "conftest.nl"
12354 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12355 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12356 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12357 if test $ac_count -gt ${ac_path_SED_max-0}; then
12358 # Best one so far, save it but keep looking for a better one
12359 ac_cv_path_SED
="$ac_path_SED"
12360 ac_path_SED_max
=$ac_count
12362 # 10*(2^10) chars as input seems more than enough
12363 test $ac_count -gt 10 && break
12365 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12368 $ac_path_SED_found && break 3
12373 if test -z "$ac_cv_path_SED"; then
12374 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12377 ac_cv_path_SED
=$SED
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12382 $as_echo "$ac_cv_path_SED" >&6; }
12383 SED
="$ac_cv_path_SED"
12386 test -z "$SED" && SED
=sed
12387 Xsed
="$SED -e 1s/^X//"
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12400 $as_echo_n "checking for fgrep... " >&6; }
12401 if test "${ac_cv_path_FGREP+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12404 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12405 then ac_cv_path_FGREP
="$GREP -F"
12407 if test -z "$FGREP"; then
12408 ac_path_FGREP_found
=false
12409 # Loop through the user's path and test for each of PROGNAME-LIST
12410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12411 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12414 test -z "$as_dir" && as_dir
=.
12415 for ac_prog
in fgrep
; do
12416 for ac_exec_ext
in '' $ac_executable_extensions; do
12417 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12418 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12419 # Check for GNU ac_path_FGREP and select it if it is found.
12420 # Check for GNU $ac_path_FGREP
12421 case `"$ac_path_FGREP" --version 2>&1` in
12423 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12426 $as_echo_n 0123456789 >"conftest.in"
12429 cat "conftest.in" "conftest.in" >"conftest.tmp"
12430 mv "conftest.tmp" "conftest.in"
12431 cp "conftest.in" "conftest.nl"
12432 $as_echo 'FGREP' >> "conftest.nl"
12433 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12434 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12435 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12436 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12437 # Best one so far, save it but keep looking for a better one
12438 ac_cv_path_FGREP
="$ac_path_FGREP"
12439 ac_path_FGREP_max
=$ac_count
12441 # 10*(2^10) chars as input seems more than enough
12442 test $ac_count -gt 10 && break
12444 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12447 $ac_path_FGREP_found && break 3
12452 if test -z "$ac_cv_path_FGREP"; then
12453 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12456 ac_cv_path_FGREP
=$FGREP
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12462 $as_echo "$ac_cv_path_FGREP" >&6; }
12463 FGREP
="$ac_cv_path_FGREP"
12466 test -z "$GREP" && GREP
=grep
12486 # Check whether --with-gnu-ld was given.
12487 if test "${with_gnu_ld+set}" = set; then :
12488 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12494 if test "$GCC" = yes; then
12495 # Check if gcc -print-prog-name=ld gives a path.
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12497 $as_echo_n "checking for ld used by $CC... " >&6; }
12500 # gcc leaves a trailing carriage return which upsets mingw
12501 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12503 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12506 # Accept absolute paths.
12508 re_direlt
='/[^/][^/]*/\.\./'
12509 # Canonicalize the pathname of ld
12510 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12511 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12512 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12514 test -z "$LD" && LD
="$ac_prog"
12517 # If it fails, then pretend we aren't using GCC.
12521 # If it is relative, then search for the first ld in PATH.
12522 with_gnu_ld
=unknown
12525 elif test "$with_gnu_ld" = yes; then
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12527 $as_echo_n "checking for GNU ld... " >&6; }
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12530 $as_echo_n "checking for non-GNU ld... " >&6; }
12532 if test "${lt_cv_path_LD+set}" = set; then :
12533 $as_echo_n "(cached) " >&6
12535 if test -z "$LD"; then
12536 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12537 for ac_dir
in $PATH; do
12539 test -z "$ac_dir" && ac_dir
=.
12540 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12541 lt_cv_path_LD
="$ac_dir/$ac_prog"
12542 # Check to see if the program is GNU ld. I'd rather use --version,
12543 # but apparently some variants of GNU ld only accept -v.
12544 # Break only if it was the GNU/non-GNU ld that we prefer.
12545 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12546 *GNU
* |
*'with BFD'*)
12547 test "$with_gnu_ld" != no
&& break
12550 test "$with_gnu_ld" != yes && break
12557 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12561 LD
="$lt_cv_path_LD"
12562 if test -n "$LD"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12564 $as_echo "$LD" >&6; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567 $as_echo "no" >&6; }
12569 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12571 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12572 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12573 $as_echo_n "(cached) " >&6
12575 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12576 case `$LD -v 2>&1 </dev/null` in
12577 *GNU
* |
*'with BFD'*)
12578 lt_cv_prog_gnu_ld
=yes
12581 lt_cv_prog_gnu_ld
=no
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12586 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12587 with_gnu_ld
=$lt_cv_prog_gnu_ld
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12598 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12599 if test "${lt_cv_path_NM+set}" = set; then :
12600 $as_echo_n "(cached) " >&6
12602 if test -n "$NM"; then
12603 # Let the user override the test.
12604 lt_cv_path_NM
="$NM"
12606 lt_nm_to_check
="${ac_tool_prefix}nm"
12607 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12608 lt_nm_to_check
="$lt_nm_to_check nm"
12610 for lt_tmp_nm
in $lt_nm_to_check; do
12611 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12612 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12614 test -z "$ac_dir" && ac_dir
=.
12615 tmp_nm
="$ac_dir/$lt_tmp_nm"
12616 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12617 # Check to see if the nm accepts a BSD-compat flag.
12618 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12619 # nm: unknown option "B" ignored
12620 # Tru64's nm complains that /dev/null is an invalid object file
12621 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12622 */dev
/null
* |
*'Invalid file or object type'*)
12623 lt_cv_path_NM
="$tmp_nm -B"
12627 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12629 lt_cv_path_NM
="$tmp_nm -p"
12633 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12634 continue # so that we can try to find one that supports BSD flags
12643 : ${lt_cv_path_NM=no}
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12647 $as_echo "$lt_cv_path_NM" >&6; }
12648 if test "$lt_cv_path_NM" != "no"; then
12649 NM
="$lt_cv_path_NM"
12651 # Didn't find any BSD compatible name lister, look for dumpbin.
12652 if test -n "$DUMPBIN"; then :
12653 # Let the user override the test.
12655 if test -n "$ac_tool_prefix"; then
12656 for ac_prog
in dumpbin
"link -dump"
12658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12659 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12663 $as_echo_n "(cached) " >&6
12665 if test -n "$DUMPBIN"; then
12666 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12669 for as_dir
in $PATH
12672 test -z "$as_dir" && as_dir
=.
12673 for ac_exec_ext
in '' $ac_executable_extensions; do
12674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12675 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12685 DUMPBIN
=$ac_cv_prog_DUMPBIN
12686 if test -n "$DUMPBIN"; then
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12688 $as_echo "$DUMPBIN" >&6; }
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691 $as_echo "no" >&6; }
12695 test -n "$DUMPBIN" && break
12698 if test -z "$DUMPBIN"; then
12699 ac_ct_DUMPBIN
=$DUMPBIN
12700 for ac_prog
in dumpbin
"link -dump"
12702 # Extract the first word of "$ac_prog", so it can be a program name with args.
12703 set dummy
$ac_prog; ac_word
=$2
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 $as_echo_n "checking for $ac_word... " >&6; }
12706 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12707 $as_echo_n "(cached) " >&6
12709 if test -n "$ac_ct_DUMPBIN"; then
12710 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12713 for as_dir
in $PATH
12716 test -z "$as_dir" && as_dir
=.
12717 for ac_exec_ext
in '' $ac_executable_extensions; do
12718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12719 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12729 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12730 if test -n "$ac_ct_DUMPBIN"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12732 $as_echo "$ac_ct_DUMPBIN" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12739 test -n "$ac_ct_DUMPBIN" && break
12742 if test "x$ac_ct_DUMPBIN" = x
; then
12745 case $cross_compiling:$ac_tool_warned in
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12749 ac_tool_warned
=yes ;;
12751 DUMPBIN
=$ac_ct_DUMPBIN
12755 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12757 DUMPBIN
="$DUMPBIN -symbols"
12765 if test "$DUMPBIN" != ":"; then
12769 test -z "$NM" && NM
=nm
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12777 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12778 if test "${lt_cv_nm_interface+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12781 lt_cv_nm_interface
="BSD nm"
12782 echo "int some_variable = 0;" > conftest.
$ac_ext
12783 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12784 (eval "$ac_compile" 2>conftest.err
)
12785 cat conftest.err
>&5
12786 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12787 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12788 cat conftest.err
>&5
12789 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12790 cat conftest.out
>&5
12791 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12792 lt_cv_nm_interface
="MS dumpbin"
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12797 $as_echo "$lt_cv_nm_interface" >&6; }
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12800 $as_echo_n "checking whether ln -s works... " >&6; }
12802 if test "$LN_S" = "ln -s"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12804 $as_echo "yes" >&6; }
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12807 $as_echo "no, using $LN_S" >&6; }
12810 # find the maximum length of command line arguments
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12812 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12813 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12814 $as_echo_n "(cached) " >&6
12821 # On DJGPP, this test can blow up pretty badly due to problems in libc
12822 # (any single argument exceeding 2000 bytes causes a buffer overrun
12823 # during glob expansion). Even if it were fixed, the result of this
12824 # check would be larger than it should be.
12825 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12829 # Under GNU Hurd, this test is not required because there is
12830 # no limit to the length of command line arguments.
12831 # Libtool will interpret -1 as no limit whatsoever
12832 lt_cv_sys_max_cmd_len
=-1;
12835 cygwin
* | mingw
* | cegcc
*)
12836 # On Win9x/ME, this test blows up -- it succeeds, but takes
12837 # about 5 minutes as the teststring grows exponentially.
12838 # Worse, since 9x/ME are not pre-emptively multitasking,
12839 # you end up with a "frozen" computer, even though with patience
12840 # the test eventually succeeds (with a max line length of 256k).
12841 # Instead, let's just punt: use the minimum linelength reported by
12842 # all of the supported platforms: 8192 (on NT/2K/XP).
12843 lt_cv_sys_max_cmd_len
=8192;
12847 # On MiNT this can take a long time and run out of memory.
12848 lt_cv_sys_max_cmd_len
=8192;
12852 # On AmigaOS with pdksh, this test takes hours, literally.
12853 # So we just punt and use a minimum line length of 8192.
12854 lt_cv_sys_max_cmd_len
=8192;
12857 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12858 # This has been around since 386BSD, at least. Likely further.
12859 if test -x /sbin
/sysctl
; then
12860 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12861 elif test -x /usr
/sbin
/sysctl
; then
12862 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12864 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12866 # And add a safety zone
12867 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12868 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12872 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12873 lt_cv_sys_max_cmd_len
=196608
12877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12879 # nice to cause kernel panics so lets avoid the loop below.
12880 # First set a reasonable default.
12881 lt_cv_sys_max_cmd_len
=16384
12883 if test -x /sbin
/sysconfig
; then
12884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12885 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12890 lt_cv_sys_max_cmd_len
=102400
12892 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12893 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12894 if test -n "$kargmax"; then
12895 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12897 lt_cv_sys_max_cmd_len
=32768
12901 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12902 if test -n "$lt_cv_sys_max_cmd_len"; then
12903 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12904 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12906 # Make teststring a little bigger before we do anything with it.
12907 # a 1K string should be a reasonable start.
12908 for i
in 1 2 3 4 5 6 7 8 ; do
12909 teststring
=$teststring$teststring
12911 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12912 # If test is not a shell built-in, we'll probably end up computing a
12913 # maximum length that is only half of the actual maximum length, but
12915 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12916 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12917 test $i != 17 # 1/2 MB should be enough
12920 teststring
=$teststring$teststring
12922 # Only check the string length outside the loop.
12923 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12925 # Add a significant safety factor because C++ compilers can tack on
12926 # massive amounts of additional arguments before passing them to the
12927 # linker. It appears as though 1/2 is a usable value.
12928 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12935 if test -n $lt_cv_sys_max_cmd_len ; then
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12937 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12940 $as_echo "none" >&6; }
12942 max_cmd_len
=$lt_cv_sys_max_cmd_len
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12954 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12955 # Try some XSI features
12957 ( _lt_dummy
="a/b/c"
12958 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12960 && eval 'test $(( 1 + 1 )) -eq 2 \
12961 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12964 $as_echo "$xsi_shell" >&6; }
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12968 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12970 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12972 && lt_shell_append=yes
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12974 $as_echo "$lt_shell_append" >&6; }
12977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12987 # test EBCDIC or ASCII
12988 case `echo X|tr X '\101'` in
12989 A) # ASCII based system
12990 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12991 lt_SP2NL='tr \040 \012'
12992 lt_NL2SP='tr \015\012 \040\040'
12994 *) # EBCDIC based system
12995 lt_SP2NL='tr \100 \n'
12996 lt_NL2SP='tr \r\n \100\100'
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13009 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13010 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13011 $as_echo_n "(cached
) " >&6
13013 lt_cv_ld_reload_flag='-r'
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13016 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13017 reload_flag=$lt_cv_ld_reload_flag
13018 case $reload_flag in
13020 *) reload_flag=" $reload_flag" ;;
13022 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13025 if test "$GCC" = yes; then
13026 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13028 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13041 if test -n "$ac_tool_prefix"; then
13042 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13043 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13045 $as_echo_n "checking
for $ac_word...
" >&6; }
13046 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13047 $as_echo_n "(cached
) " >&6
13049 if test -n "$OBJDUMP"; then
13050 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053 for as_dir in $PATH
13056 test -z "$as_dir" && as_dir=.
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13059 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13069 OBJDUMP=$ac_cv_prog_OBJDUMP
13070 if test -n "$OBJDUMP"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13072 $as_echo "$OBJDUMP" >&6; }
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13075 $as_echo "no
" >&6; }
13080 if test -z "$ac_cv_prog_OBJDUMP"; then
13081 ac_ct_OBJDUMP=$OBJDUMP
13082 # Extract the first word of "objdump
", so it can be a program name with args.
13083 set dummy objdump; ac_word=$2
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13085 $as_echo_n "checking
for $ac_word...
" >&6; }
13086 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13087 $as_echo_n "(cached
) " >&6
13089 if test -n "$ac_ct_OBJDUMP"; then
13090 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093 for as_dir in $PATH
13096 test -z "$as_dir" && as_dir=.
13097 for ac_exec_ext in '' $ac_executable_extensions; do
13098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13099 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13109 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13110 if test -n "$ac_ct_OBJDUMP"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13112 $as_echo "$ac_ct_OBJDUMP" >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13115 $as_echo "no
" >&6; }
13118 if test "x
$ac_ct_OBJDUMP" = x; then
13121 case $cross_compiling:$ac_tool_warned in
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13124 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13125 ac_tool_warned=yes ;;
13127 OBJDUMP=$ac_ct_OBJDUMP
13130 OBJDUMP="$ac_cv_prog_OBJDUMP"
13133 test -z "$OBJDUMP" && OBJDUMP=objdump
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13144 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13145 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13146 $as_echo_n "(cached
) " >&6
13148 lt_cv_file_magic_cmd='$MAGIC_CMD'
13149 lt_cv_file_magic_test_file=
13150 lt_cv_deplibs_check_method='unknown'
13151 # Need to set the preceding variable on all platforms that support
13152 # interlibrary dependencies.
13153 # 'none' -- dependencies not supported.
13154 # `unknown' -- same as none, but documents that we really don't know.
13155 # 'pass_all' -- all dependencies passed with no checks.
13156 # 'test_compile' -- check by making test program.
13157 # 'file_magic [[regex]]' -- check by looking for files in library path
13158 # which responds to the $file_magic_cmd with a given extended regex.
13159 # If you have `file' or equivalent on your system and you're not sure
13160 # whether `pass_all' will *always* work, you probably want this one.
13164 lt_cv_deplibs_check_method=pass_all
13168 lt_cv_deplibs_check_method=pass_all
13172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13173 lt_cv_file_magic_cmd='/usr/bin/file -L'
13174 lt_cv_file_magic_test_file=/shlib/libc.so
13178 # func_win32_libid is a shell function defined in ltmain.sh
13179 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13180 lt_cv_file_magic_cmd='func_win32_libid'
13184 # Base MSYS/MinGW do not provide the 'file' command needed by
13185 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13186 # unless we find 'file', for example because we are cross-compiling.
13187 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13188 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13190 lt_cv_file_magic_cmd='func_win32_libid'
13192 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13193 lt_cv_file_magic_cmd='$OBJDUMP -f'
13198 # use the weaker test based on 'objdump'. See mingw*.
13199 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13200 lt_cv_file_magic_cmd='$OBJDUMP -f'
13203 darwin* | rhapsody*)
13204 lt_cv_deplibs_check_method=pass_all
13207 freebsd* | dragonfly*)
13208 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13211 # Not sure whether the presence of OpenBSD here was a mistake.
13212 # Let's accept both of them until this is cleared up.
13213 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13214 lt_cv_file_magic_cmd=/usr/bin/file
13215 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13219 lt_cv_deplibs_check_method=pass_all
13224 lt_cv_deplibs_check_method=pass_all
13228 lt_cv_deplibs_check_method=pass_all
13231 hpux10.20* | hpux11*)
13232 lt_cv_file_magic_cmd=/usr/bin/file
13235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13236 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13239 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]'
13240 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13243 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13244 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13250 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13251 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13254 irix5* | irix6* | nonstopux*)
13256 *-32|*"-32 ") libmagic=32-bit;;
13257 *-n32|*"-n32 ") libmagic=N32;;
13258 *-64|*"-64 ") libmagic=64-bit;;
13259 *) libmagic=never-match;;
13261 lt_cv_deplibs_check_method=pass_all
13264 # This must be Linux ELF.
13265 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13266 lt_cv_deplibs_check_method=pass_all
13270 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13278 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13279 lt_cv_file_magic_cmd=/usr/bin/file
13280 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13284 lt_cv_deplibs_check_method=pass_all
13288 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13291 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13295 osf3* | osf4* | osf5*)
13296 lt_cv_deplibs_check_method=pass_all
13300 lt_cv_deplibs_check_method=pass_all
13304 lt_cv_deplibs_check_method=pass_all
13307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13308 lt_cv_deplibs_check_method=pass_all
13312 case $host_vendor in
13314 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]'
13315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13318 lt_cv_deplibs_check_method=pass_all
13321 lt_cv_file_magic_cmd='/bin/file'
13322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13325 lt_cv_file_magic_cmd='/bin/file'
13326 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13327 lt_cv_file_magic_test_file=/lib/libc.so
13330 lt_cv_deplibs_check_method=pass_all
13333 lt_cv_deplibs_check_method=pass_all
13339 lt_cv_deplibs_check_method=pass_all
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13345 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13346 file_magic_cmd=$lt_cv_file_magic_cmd
13347 deplibs_check_method=$lt_cv_deplibs_check_method
13348 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13361 if test -n "$ac_tool_prefix"; then
13362 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13363 set dummy ${ac_tool_prefix}ar; ac_word=$2
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13365 $as_echo_n "checking
for $ac_word...
" >&6; }
13366 if test "${ac_cv_prog_AR+set}" = set; then :
13367 $as_echo_n "(cached
) " >&6
13369 if test -n "$AR"; then
13370 ac_cv_prog_AR="$AR" # Let the user override the test.
13372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13376 test -z "$as_dir" && as_dir=.
13377 for ac_exec_ext in '' $ac_executable_extensions; do
13378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13379 ac_cv_prog_AR="${ac_tool_prefix}ar"
13380 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13390 if test -n "$AR"; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13392 $as_echo "$AR" >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13395 $as_echo "no
" >&6; }
13400 if test -z "$ac_cv_prog_AR"; then
13402 # Extract the first word of "ar", so it can be a program name with args.
13403 set dummy ar; ac_word=$2
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13405 $as_echo_n "checking
for $ac_word...
" >&6; }
13406 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13407 $as_echo_n "(cached
) " >&6
13409 if test -n "$ac_ct_AR"; then
13410 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413 for as_dir in $PATH
13416 test -z "$as_dir" && as_dir=.
13417 for ac_exec_ext in '' $ac_executable_extensions; do
13418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13419 ac_cv_prog_ac_ct_AR="ar"
13420 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13429 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13430 if test -n "$ac_ct_AR"; then
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13432 $as_echo "$ac_ct_AR" >&6; }
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13435 $as_echo "no
" >&6; }
13438 if test "x
$ac_ct_AR" = x; then
13441 case $cross_compiling:$ac_tool_warned in
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13444 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13445 ac_tool_warned=yes ;;
13450 AR="$ac_cv_prog_AR"
13453 test -z "$AR" && AR=ar
13454 test -z "$AR_FLAGS" && AR_FLAGS=cru
13466 if test -n "$ac_tool_prefix"; then
13467 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13468 set dummy ${ac_tool_prefix}strip; ac_word=$2
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13470 $as_echo_n "checking
for $ac_word...
" >&6; }
13471 if test "${ac_cv_prog_STRIP+set}" = set; then :
13472 $as_echo_n "(cached
) " >&6
13474 if test -n "$STRIP"; then
13475 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478 for as_dir in $PATH
13481 test -z "$as_dir" && as_dir=.
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13484 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13494 STRIP=$ac_cv_prog_STRIP
13495 if test -n "$STRIP"; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13497 $as_echo "$STRIP" >&6; }
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13500 $as_echo "no
" >&6; }
13505 if test -z "$ac_cv_prog_STRIP"; then
13507 # Extract the first word of "strip
", so it can be a program name with args.
13508 set dummy strip; ac_word=$2
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13510 $as_echo_n "checking
for $ac_word...
" >&6; }
13511 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13512 $as_echo_n "(cached
) " >&6
13514 if test -n "$ac_ct_STRIP"; then
13515 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in $PATH
13521 test -z "$as_dir" && as_dir=.
13522 for ac_exec_ext in '' $ac_executable_extensions; do
13523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13524 ac_cv_prog_ac_ct_STRIP="strip
"
13525 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13534 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13535 if test -n "$ac_ct_STRIP"; then
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13537 $as_echo "$ac_ct_STRIP" >&6; }
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13540 $as_echo "no
" >&6; }
13543 if test "x
$ac_ct_STRIP" = x; then
13546 case $cross_compiling:$ac_tool_warned in
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13549 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13550 ac_tool_warned=yes ;;
13555 STRIP="$ac_cv_prog_STRIP"
13558 test -z "$STRIP" && STRIP=:
13565 if test -n "$ac_tool_prefix"; then
13566 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13567 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13569 $as_echo_n "checking
for $ac_word...
" >&6; }
13570 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13571 $as_echo_n "(cached
) " >&6
13573 if test -n "$RANLIB"; then
13574 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577 for as_dir in $PATH
13580 test -z "$as_dir" && as_dir=.
13581 for ac_exec_ext in '' $ac_executable_extensions; do
13582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13583 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13584 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13593 RANLIB=$ac_cv_prog_RANLIB
13594 if test -n "$RANLIB"; then
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13596 $as_echo "$RANLIB" >&6; }
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13599 $as_echo "no
" >&6; }
13604 if test -z "$ac_cv_prog_RANLIB"; then
13605 ac_ct_RANLIB=$RANLIB
13606 # Extract the first word of "ranlib
", so it can be a program name with args.
13607 set dummy ranlib; ac_word=$2
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13609 $as_echo_n "checking
for $ac_word...
" >&6; }
13610 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13611 $as_echo_n "(cached
) " >&6
13613 if test -n "$ac_ct_RANLIB"; then
13614 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
13622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13623 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13633 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13634 if test -n "$ac_ct_RANLIB"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13636 $as_echo "$ac_ct_RANLIB" >&6; }
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13639 $as_echo "no
" >&6; }
13642 if test "x
$ac_ct_RANLIB" = x; then
13645 case $cross_compiling:$ac_tool_warned in
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13648 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13649 ac_tool_warned=yes ;;
13651 RANLIB=$ac_ct_RANLIB
13654 RANLIB="$ac_cv_prog_RANLIB"
13657 test -z "$RANLIB" && RANLIB=:
13664 # Determine commands to create old-style static archives.
13665 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13666 old_postinstall_cmds='chmod 644 $oldlib'
13667 old_postuninstall_cmds=
13669 if test -n "$RANLIB"; then
13672 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13675 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13678 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13683 lock_old_archive_extraction=yes ;;
13685 lock_old_archive_extraction=no ;;
13726 # If no C compiler was specified, use CC.
13729 # If no C compiler flags were specified, use CFLAGS.
13730 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13732 # Allow CC to be a program name with arguments.
13736 # Check for command to grab the raw symbol name followed by C symbol from nm.
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13738 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13739 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13740 $as_echo_n "(cached
) " >&6
13743 # These are sane defaults that work on at least a few old systems.
13744 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13746 # Character class describing NM global symbol codes.
13747 symcode='[BCDEGRST]'
13749 # Regexp to match symbols that can be accessed directly from C.
13750 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13752 # Define system-specific variables.
13757 cygwin* | mingw* | pw32* | cegcc*)
13758 symcode='[ABCDGISTW]'
13761 if test "$host_cpu" = ia64; then
13762 symcode='[ABCDEGRST]'
13765 irix* | nonstopux*)
13766 symcode='[BCDEGRST]'
13769 symcode='[BCDEGQRST]'
13780 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13788 # If we're using GNU nm, then use its standard symbol codes.
13789 case `$NM -V 2>&1` in
13790 *GNU* | *'with BFD'*)
13791 symcode='[ABCDGIRSTW]' ;;
13794 # Transform an extracted symbol line into a proper C declaration.
13795 # Some systems (esp. on ia64) link data and code symbols differently,
13796 # so use this general approach.
13797 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13799 # Transform an extracted symbol line into symbol name and symbol address
13800 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13801 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'"
13803 # Handle CRLF in mingw tool chain
13807 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13811 # Try without a prefix underscore, then with it.
13812 for ac_symprfx in "" "_
"; do
13814 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13815 symxfrm="\\1 $ac_symprfx\\2 \\2"
13817 # Write the raw and C identifiers.
13818 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13819 # Fake it for dumpbin and say T for any non-static function
13820 # and D for any global variable.
13821 # Also find C++ and __fastcall symbols from MSVC++,
13822 # which start with @ or ?.
13823 lt_cv_sys_global_symbol_pipe="$AWK '"\
13824 " {last_section=section; section=\$ 3};"\
13825 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13826 " \$ 0!~/External *\|/{next};"\
13827 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13828 " {if(hide[section]) next};"\
13829 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13830 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13831 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13832 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13833 " ' prfx
=^
$ac_symprfx"
13835 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13838 # Check to see that the pipe works correctly.
13842 cat > conftest.$ac_ext <<_LT_EOF
13847 void nm_test_func(void);
13848 void nm_test_func(void){}
13852 int main(){nm_test_var='a';nm_test_func();return(0);}
13855 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13856 (eval $ac_compile) 2>&5
13858 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13859 test $ac_status = 0; }; then
13860 # Now try to grab the symbols.
13862 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13863 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13865 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13866 test $ac_status = 0; } && test -s "$nlist"; then
13867 # Try sorting and uniquifying the output.
13868 if sort "$nlist" | uniq > "$nlist"T; then
13869 mv -f "$nlist"T "$nlist"
13874 # Make sure that we snagged all the symbols we need.
13875 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13876 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13877 cat <<_LT_EOF > conftest.$ac_ext
13883 # Now generate the symbol file.
13884 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13886 cat <<_LT_EOF >> conftest.$ac_ext
13888 /* The mapping between symbol names and symbols. */
13893 lt__PROGRAM__LTX_preloaded_symbols[] =
13895 { "@PROGRAM@
", (void *) 0 },
13897 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13898 cat <<\_LT_EOF >> conftest.$ac_ext
13902 /* This works around a problem in FreeBSD linker */
13903 #ifdef FREEBSD_WORKAROUND
13904 static const void *lt_preloaded_setup() {
13905 return lt__PROGRAM__LTX_preloaded_symbols;
13913 # Now try linking the two files.
13914 mv conftest.$ac_objext conftstm.$ac_objext
13915 lt_save_LIBS="$LIBS"
13916 lt_save_CFLAGS="$CFLAGS"
13917 LIBS="conftstm.
$ac_objext"
13918 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13919 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13920 (eval $ac_link) 2>&5
13922 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13923 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13926 LIBS="$lt_save_LIBS"
13927 CFLAGS="$lt_save_CFLAGS"
13929 echo "cannot
find nm_test_func
in $nlist" >&5
13932 echo "cannot
find nm_test_var
in $nlist" >&5
13935 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13938 echo "$progname: failed program was
:" >&5
13939 cat conftest.$ac_ext >&5
13941 rm -rf conftest* conftst*
13943 # Do not use the global_symbol_pipe unless it works.
13944 if test "$pipe_works" = yes; then
13947 lt_cv_sys_global_symbol_pipe=
13953 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13954 lt_cv_sys_global_symbol_to_cdecl=
13956 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13958 $as_echo "failed
" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13961 $as_echo "ok
" >&6; }
13985 # Check whether --enable-libtool-lock was given.
13986 if test "${enable_libtool_lock+set}" = set; then :
13987 enableval=$enable_libtool_lock;
13990 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13992 # Some flags need to be propagated to the compiler or linker for good
13996 # Find out which ABI we are using.
13997 echo 'int i;' > conftest.$ac_ext
13998 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13999 (eval $ac_compile) 2>&5
14001 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14002 test $ac_status = 0; }; then
14003 case `/usr/bin/file conftest.$ac_objext` in
14005 HPUX_IA64_MODE="32"
14008 HPUX_IA64_MODE="64"
14015 # Find out which ABI we are using.
14016 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14017 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14018 (eval $ac_compile) 2>&5
14020 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14021 test $ac_status = 0; }; then
14022 if test "$lt_cv_prog_gnu_ld" = yes; then
14023 case `/usr/bin/file conftest.$ac_objext` in
14025 LD="${LD-ld} -melf32bsmip"
14028 LD="${LD-ld} -melf32bmipn32"
14031 LD="${LD-ld} -melf64bmip"
14035 case `/usr/bin/file conftest.$ac_objext` in
14051 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14052 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14053 # Find out which ABI we are using.
14054 echo 'int i;' > conftest.$ac_ext
14055 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14056 (eval $ac_compile) 2>&5
14058 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14059 test $ac_status = 0; }; then
14060 case `/usr/bin/file conftest.o` in
14063 x86_64-*kfreebsd*-gnu)
14064 LD="${LD-ld} -m elf_i386_fbsd
"
14067 case `/usr/bin/file conftest.o` in
14069 LD="${LD-ld} -m elf32_x86_64
"
14072 LD="${LD-ld} -m elf_i386
"
14076 powerpc64le-*linux*)
14077 LD="${LD-ld} -m elf32lppclinux
"
14080 LD="${LD-ld} -m elf32ppclinux
"
14083 LD="${LD-ld} -m elf_s390
"
14086 LD="${LD-ld} -m elf32_sparc
"
14092 x86_64-*kfreebsd*-gnu)
14093 LD="${LD-ld} -m elf_x86_64_fbsd
"
14096 LD="${LD-ld} -m elf_x86_64
"
14099 LD="${LD-ld} -m elf64lppc
"
14102 LD="${LD-ld} -m elf64ppc
"
14104 s390*-*linux*|s390*-*tpf*)
14105 LD="${LD-ld} -m elf64_s390
"
14108 LD="${LD-ld} -m elf64_sparc
"
14118 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14119 SAVE_CFLAGS="$CFLAGS"
14120 CFLAGS="$CFLAGS -belf"
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14122 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14123 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14124 $as_echo_n "(cached
) " >&6
14127 ac_cpp='$CPP $CPPFLAGS'
14128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14143 if ac_fn_c_try_link "$LINENO"; then :
14144 lt_cv_cc_needs_belf=yes
14146 lt_cv_cc_needs_belf=no
14148 rm -f core conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14151 ac_cpp='$CPP $CPPFLAGS'
14152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14158 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14159 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14160 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14161 CFLAGS="$SAVE_CFLAGS"
14165 # Find out which ABI we are using.
14166 echo 'int i;' > conftest.$ac_ext
14167 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14168 (eval $ac_compile) 2>&5
14170 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14171 test $ac_status = 0; }; then
14172 case `/usr/bin/file conftest.o` in
14174 case $lt_cv_prog_gnu_ld in
14175 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14177 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14189 need_locks="$enable_libtool_lock"
14193 rhapsody* | darwin*)
14194 if test -n "$ac_tool_prefix"; then
14195 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14196 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14198 $as_echo_n "checking
for $ac_word...
" >&6; }
14199 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14200 $as_echo_n "(cached
) " >&6
14202 if test -n "$DSYMUTIL"; then
14203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14206 for as_dir in $PATH
14209 test -z "$as_dir" && as_dir=.
14210 for ac_exec_ext in '' $ac_executable_extensions; do
14211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14213 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14222 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14223 if test -n "$DSYMUTIL"; then
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14225 $as_echo "$DSYMUTIL" >&6; }
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14228 $as_echo "no
" >&6; }
14233 if test -z "$ac_cv_prog_DSYMUTIL"; then
14234 ac_ct_DSYMUTIL=$DSYMUTIL
14235 # Extract the first word of "dsymutil
", so it can be a program name with args.
14236 set dummy dsymutil; ac_word=$2
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14238 $as_echo_n "checking
for $ac_word...
" >&6; }
14239 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14240 $as_echo_n "(cached
) " >&6
14242 if test -n "$ac_ct_DSYMUTIL"; then
14243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14246 for as_dir in $PATH
14249 test -z "$as_dir" && as_dir=.
14250 for ac_exec_ext in '' $ac_executable_extensions; do
14251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14253 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14262 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14263 if test -n "$ac_ct_DSYMUTIL"; then
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14265 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14268 $as_echo "no
" >&6; }
14271 if test "x
$ac_ct_DSYMUTIL" = x; then
14274 case $cross_compiling:$ac_tool_warned in
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14277 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14278 ac_tool_warned=yes ;;
14280 DSYMUTIL=$ac_ct_DSYMUTIL
14283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14286 if test -n "$ac_tool_prefix"; then
14287 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14288 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14290 $as_echo_n "checking
for $ac_word...
" >&6; }
14291 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14292 $as_echo_n "(cached
) " >&6
14294 if test -n "$NMEDIT"; then
14295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14298 for as_dir in $PATH
14301 test -z "$as_dir" && as_dir=.
14302 for ac_exec_ext in '' $ac_executable_extensions; do
14303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14305 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14314 NMEDIT=$ac_cv_prog_NMEDIT
14315 if test -n "$NMEDIT"; then
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14317 $as_echo "$NMEDIT" >&6; }
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14320 $as_echo "no
" >&6; }
14325 if test -z "$ac_cv_prog_NMEDIT"; then
14326 ac_ct_NMEDIT=$NMEDIT
14327 # Extract the first word of "nmedit
", so it can be a program name with args.
14328 set dummy nmedit; ac_word=$2
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14330 $as_echo_n "checking
for $ac_word...
" >&6; }
14331 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14332 $as_echo_n "(cached
) " >&6
14334 if test -n "$ac_ct_NMEDIT"; then
14335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14338 for as_dir in $PATH
14341 test -z "$as_dir" && as_dir=.
14342 for ac_exec_ext in '' $ac_executable_extensions; do
14343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14344 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14345 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14354 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14355 if test -n "$ac_ct_NMEDIT"; then
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14357 $as_echo "$ac_ct_NMEDIT" >&6; }
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14360 $as_echo "no
" >&6; }
14363 if test "x
$ac_ct_NMEDIT" = x; then
14366 case $cross_compiling:$ac_tool_warned in
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14369 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14370 ac_tool_warned=yes ;;
14372 NMEDIT=$ac_ct_NMEDIT
14375 NMEDIT="$ac_cv_prog_NMEDIT"
14378 if test -n "$ac_tool_prefix"; then
14379 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14380 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14382 $as_echo_n "checking
for $ac_word...
" >&6; }
14383 if test "${ac_cv_prog_LIPO+set}" = set; then :
14384 $as_echo_n "(cached
) " >&6
14386 if test -n "$LIPO"; then
14387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14390 for as_dir in $PATH
14393 test -z "$as_dir" && as_dir=.
14394 for ac_exec_ext in '' $ac_executable_extensions; do
14395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14397 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14406 LIPO=$ac_cv_prog_LIPO
14407 if test -n "$LIPO"; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14409 $as_echo "$LIPO" >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14412 $as_echo "no
" >&6; }
14417 if test -z "$ac_cv_prog_LIPO"; then
14419 # Extract the first word of "lipo
", so it can be a program name with args.
14420 set dummy lipo; ac_word=$2
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14422 $as_echo_n "checking
for $ac_word...
" >&6; }
14423 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14424 $as_echo_n "(cached
) " >&6
14426 if test -n "$ac_ct_LIPO"; then
14427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14430 for as_dir in $PATH
14433 test -z "$as_dir" && as_dir=.
14434 for ac_exec_ext in '' $ac_executable_extensions; do
14435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14436 ac_cv_prog_ac_ct_LIPO="lipo
"
14437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14446 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14447 if test -n "$ac_ct_LIPO"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14449 $as_echo "$ac_ct_LIPO" >&6; }
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14452 $as_echo "no
" >&6; }
14455 if test "x
$ac_ct_LIPO" = x; then
14458 case $cross_compiling:$ac_tool_warned in
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14461 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14462 ac_tool_warned=yes ;;
14467 LIPO="$ac_cv_prog_LIPO"
14470 if test -n "$ac_tool_prefix"; then
14471 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14472 set dummy ${ac_tool_prefix}otool; 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_OTOOL+set}" = set; then :
14476 $as_echo_n "(cached
) " >&6
14478 if test -n "$OTOOL"; then
14479 ac_cv_prog_OTOOL="$OTOOL" # 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_OTOOL="${ac_tool_prefix}otool
"
14489 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14498 OTOOL=$ac_cv_prog_OTOOL
14499 if test -n "$OTOOL"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14501 $as_echo "$OTOOL" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14504 $as_echo "no
" >&6; }
14509 if test -z "$ac_cv_prog_OTOOL"; then
14511 # Extract the first word of "otool
", so it can be a program name with args.
14512 set dummy otool; ac_word=$2
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14514 $as_echo_n "checking
for $ac_word...
" >&6; }
14515 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14516 $as_echo_n "(cached
) " >&6
14518 if test -n "$ac_ct_OTOOL"; then
14519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14522 for as_dir in $PATH
14525 test -z "$as_dir" && as_dir=.
14526 for ac_exec_ext in '' $ac_executable_extensions; do
14527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14528 ac_cv_prog_ac_ct_OTOOL="otool
"
14529 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14538 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14539 if test -n "$ac_ct_OTOOL"; then
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14541 $as_echo "$ac_ct_OTOOL" >&6; }
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14544 $as_echo "no
" >&6; }
14547 if test "x
$ac_ct_OTOOL" = x; then
14550 case $cross_compiling:$ac_tool_warned in
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14553 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14554 ac_tool_warned=yes ;;
14559 OTOOL="$ac_cv_prog_OTOOL"
14562 if test -n "$ac_tool_prefix"; then
14563 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14564 set dummy ${ac_tool_prefix}otool64; 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_OTOOL64+set}" = set; then :
14568 $as_echo_n "(cached
) " >&6
14570 if test -n "$OTOOL64"; then
14571 ac_cv_prog_OTOOL64="$OTOOL64" # 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_OTOOL64="${ac_tool_prefix}otool64
"
14581 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14590 OTOOL64=$ac_cv_prog_OTOOL64
14591 if test -n "$OTOOL64"; then
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14593 $as_echo "$OTOOL64" >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14596 $as_echo "no
" >&6; }
14601 if test -z "$ac_cv_prog_OTOOL64"; then
14602 ac_ct_OTOOL64=$OTOOL64
14603 # Extract the first word of "otool64
", so it can be a program name with args.
14604 set dummy otool64; ac_word=$2
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14606 $as_echo_n "checking
for $ac_word...
" >&6; }
14607 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14608 $as_echo_n "(cached
) " >&6
14610 if test -n "$ac_ct_OTOOL64"; then
14611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14620 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14621 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14630 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14631 if test -n "$ac_ct_OTOOL64"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14633 $as_echo "$ac_ct_OTOOL64" >&6; }
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14636 $as_echo "no
" >&6; }
14639 if test "x
$ac_ct_OTOOL64" = x; then
14642 case $cross_compiling:$ac_tool_warned in
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14645 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14646 ac_tool_warned=yes ;;
14648 OTOOL64=$ac_ct_OTOOL64
14651 OTOOL64="$ac_cv_prog_OTOOL64"
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14681 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14682 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14683 $as_echo_n "(cached
) " >&6
14685 lt_cv_apple_cc_single_mod=no
14686 if test -z "${LT_MULTI_MODULE}"; then
14687 # By default we will add the -single_module flag. You can override
14688 # by either setting the environment variable LT_MULTI_MODULE
14689 # non-empty at configure time, or by adding -multi_module to the
14691 rm -rf libconftest.dylib*
14692 echo "int foo
(void
){return 1;}" > conftest.c
14693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14694 -dynamiclib -Wl,-single_module conftest.c
" >&5
14695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14698 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14699 lt_cv_apple_cc_single_mod=yes
14701 cat conftest.err >&5
14703 rm -rf libconftest.dylib*
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14708 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14710 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14711 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14712 $as_echo_n "(cached
) " >&6
14714 lt_cv_ld_exported_symbols_list=no
14715 save_LDFLAGS=$LDFLAGS
14716 echo "_main
" > conftest.sym
14717 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h. */
14729 if ac_fn_c_try_link "$LINENO"; then :
14730 lt_cv_ld_exported_symbols_list=yes
14732 lt_cv_ld_exported_symbols_list=no
14734 rm -f core conftest.err conftest.$ac_objext \
14735 conftest$ac_exeext conftest.$ac_ext
14736 LDFLAGS="$save_LDFLAGS"
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14740 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14742 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14743 if test "${lt_cv_ld_force_load+set}" = set; then :
14744 $as_echo_n "(cached
) " >&6
14746 lt_cv_ld_force_load=no
14747 cat > conftest.c << _LT_EOF
14748 int forced_loaded() { return 2;}
14750 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14751 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14752 echo "$AR cru libconftest.a conftest.o
" >&5
14753 $AR cru libconftest.a conftest.o 2>&5
14754 cat > conftest.c << _LT_EOF
14755 int main() { return 0;}
14757 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14758 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14760 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14761 lt_cv_ld_force_load=yes
14763 cat conftest.err >&5
14765 rm -f conftest.err libconftest.a conftest conftest.c
14766 rm -rf conftest.dSYM
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14770 $as_echo "$lt_cv_ld_force_load" >&6; }
14772 rhapsody* | darwin1.[012])
14773 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14775 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14776 darwin*) # darwin 5.x on
14777 # if running on 10.5 or later, the deployment target defaults
14778 # to the OS version, if on x86, and 10.4, the deployment
14779 # target defaults to 10.4. Don't you love it?
14780 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14781 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14782 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14784 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14786 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14790 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14791 _lt_dar_single_mod='$single_module'
14793 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14794 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14796 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14798 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14799 _lt_dsymutil='~$DSYMUTIL $lib || :'
14807 for ac_header in dlfcn.h
14809 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14810 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14811 cat >>confdefs.h <<_ACEOF
14812 #define HAVE_DLFCN_H 1
14829 enable_win32_dll=no
14832 # Check whether --enable-shared was given.
14833 if test "${enable_shared+set}" = set; then :
14834 enableval=$enable_shared; p=${PACKAGE-default}
14836 yes) enable_shared=yes ;;
14837 no) enable_shared=no ;;
14840 # Look at the argument we got. We use all the common list separators.
14841 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14842 for pkg in $enableval; do
14844 if test "X
$pkg" = "X
$p"; then
14863 # Check whether --enable-static was given.
14864 if test "${enable_static+set}" = set; then :
14865 enableval=$enable_static; p=${PACKAGE-default}
14867 yes) enable_static=yes ;;
14868 no) enable_static=no ;;
14871 # Look at the argument we got. We use all the common list separators.
14872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14873 for pkg in $enableval; do
14875 if test "X
$pkg" = "X
$p"; then
14895 # Check whether --with-pic was given.
14896 if test "${with_pic+set}" = set; then :
14897 withval=$with_pic; pic_mode="$withval"
14903 test -z "$pic_mode" && pic_mode=default
14911 # Check whether --enable-fast-install was given.
14912 if test "${enable_fast_install+set}" = set; then :
14913 enableval=$enable_fast_install; p=${PACKAGE-default}
14915 yes) enable_fast_install=yes ;;
14916 no) enable_fast_install=no ;;
14918 enable_fast_install=no
14919 # Look at the argument we got. We use all the common list separators.
14920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14921 for pkg in $enableval; do
14923 if test "X
$pkg" = "X
$p"; then
14924 enable_fast_install=yes
14931 enable_fast_install=yes
14944 # This can be used to rebuild libtool when needed
14945 LIBTOOL_DEPS="$ltmain"
14947 # Always use our own libtool.
14948 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14975 test -z "$LN_S" && LN_S="ln -s"
14990 if test -n "${ZSH_VERSION+set}" ; then
14991 setopt NO_GLOB_SUBST
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14995 $as_echo_n "checking
for objdir...
" >&6; }
14996 if test "${lt_cv_objdir+set}" = set; then :
14997 $as_echo_n "(cached
) " >&6
14999 rm -f .libs 2>/dev/null
15000 mkdir .libs 2>/dev/null
15001 if test -d .libs; then
15004 # MS-DOS does not allow filenames that begin with a dot.
15007 rmdir .libs 2>/dev/null
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15010 $as_echo "$lt_cv_objdir" >&6; }
15011 objdir=$lt_cv_objdir
15017 cat >>confdefs.h <<_ACEOF
15018 #define LT_OBJDIR "$lt_cv_objdir/"
15026 # AIX sometimes has problems with the GCC collect2 program. For some
15027 # reason, if we set the COLLECT_NAMES environment variable, the problems
15028 # vanish in a puff of smoke.
15029 if test "X
${COLLECT_NAMES+set}" != Xset; then
15031 export COLLECT_NAMES
15036 # Global variables:
15038 can_build_shared=yes
15040 # All known linkers require a `.a' archive for static linking (except MSVC,
15041 # which needs '.lib').
15044 with_gnu_ld="$lt_cv_prog_gnu_ld"
15047 old_CFLAGS="$CFLAGS"
15049 # Set sane defaults for various variables
15050 test -z "$CC" && CC=cc
15051 test -z "$LTCC" && LTCC=$CC
15052 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15053 test -z "$LD" && LD=ld
15054 test -z "$ac_objext" && ac_objext=o
15056 for cc_temp in $compiler""; do
15058 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15059 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15064 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15067 # Only perform the check for file, if the check method requires it
15068 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15069 case $deplibs_check_method in
15071 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15073 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15074 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15075 $as_echo_n "(cached
) " >&6
15079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15082 lt_save_MAGIC_CMD="$MAGIC_CMD"
15083 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15084 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15085 for ac_dir in $ac_dummy; do
15087 test -z "$ac_dir" && ac_dir=.
15088 if test -f $ac_dir/${ac_tool_prefix}file; then
15089 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15090 if test -n "$file_magic_test_file"; then
15091 case $deplibs_check_method in
15093 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15096 $EGREP "$file_magic_regex" > /dev/null; then
15101 *** Warning: the command libtool uses to detect shared libraries,
15102 *** $file_magic_cmd, produces output that libtool cannot recognize.
15103 *** The result is that libtool may fail to recognize shared libraries
15104 *** as such. This will affect the creation of libtool libraries that
15105 *** depend on shared libraries, but programs linked with such libtool
15106 *** libraries will work regardless of this problem. Nevertheless, you
15107 *** may want to report the problem to your system manager and/or to
15108 *** bug-libtool@gnu.org
15118 MAGIC_CMD="$lt_save_MAGIC_CMD"
15123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15124 if test -n "$MAGIC_CMD"; then
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15126 $as_echo "$MAGIC_CMD" >&6; }
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15129 $as_echo "no
" >&6; }
15136 if test -z "$lt_cv_path_MAGIC_CMD"; then
15137 if test -n "$ac_tool_prefix"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15139 $as_echo_n "checking
for file...
" >&6; }
15140 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15141 $as_echo_n "(cached
) " >&6
15145 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15148 lt_save_MAGIC_CMD="$MAGIC_CMD"
15149 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15150 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15151 for ac_dir in $ac_dummy; do
15153 test -z "$ac_dir" && ac_dir=.
15154 if test -f $ac_dir/file; then
15155 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15156 if test -n "$file_magic_test_file"; then
15157 case $deplibs_check_method in
15159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15162 $EGREP "$file_magic_regex" > /dev/null; then
15167 *** Warning: the command libtool uses to detect shared libraries,
15168 *** $file_magic_cmd, produces output that libtool cannot recognize.
15169 *** The result is that libtool may fail to recognize shared libraries
15170 *** as such. This will affect the creation of libtool libraries that
15171 *** depend on shared libraries, but programs linked with such libtool
15172 *** libraries will work regardless of this problem. Nevertheless, you
15173 *** may want to report the problem to your system manager and/or to
15174 *** bug-libtool@gnu.org
15184 MAGIC_CMD="$lt_save_MAGIC_CMD"
15189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15190 if test -n "$MAGIC_CMD"; then
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15192 $as_echo "$MAGIC_CMD" >&6; }
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15195 $as_echo "no
" >&6; }
15208 # Use C for the default configuration in the libtool script
15212 ac_cpp='$CPP $CPPFLAGS'
15213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15218 # Source file extension for C test sources.
15221 # Object file extension for compiled C test sources.
15225 # Code to be used in simple compile tests
15226 lt_simple_compile_test_code="int some_variable
= 0;"
15228 # Code to be used in simple link tests
15229 lt_simple_link_test_code='int main(){return(0);}'
15237 # If no C compiler was specified, use CC.
15240 # If no C compiler flags were specified, use CFLAGS.
15241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15243 # Allow CC to be a program name with arguments.
15246 # Save the default compiler, since it gets overwritten when the other
15247 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15248 compiler_DEFAULT=$CC
15250 # save warnings/boilerplate of simple test code
15251 ac_outfile=conftest.$ac_objext
15252 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15253 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15254 _lt_compiler_boilerplate=`cat conftest.err`
15257 ac_outfile=conftest.$ac_objext
15258 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15259 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15260 _lt_linker_boilerplate=`cat conftest.err`
15265 ## There is no encapsulation within the following macros, do not change
15266 ## the running order or otherwise move them around unless you know exactly
15267 ## what you are doing...
15268 if test -n "$compiler"; then
15270 lt_prog_compiler_no_builtin_flag=
15272 if test "$GCC" = yes; then
15273 case $cc_basename in
15275 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15277 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15281 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15282 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15283 $as_echo_n "(cached
) " >&6
15285 lt_cv_prog_compiler_rtti_exceptions=no
15286 ac_outfile=conftest.$ac_objext
15287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15288 lt_compiler_flag="-fno-rtti -fno-exceptions"
15289 # Insert the option either (1) after the last *FLAGS variable, or
15290 # (2) before a word containing "conftest.
", or (3) at the end.
15291 # Note that $ac_compile itself does not contain backslashes and begins
15292 # with a dollar sign (not a hyphen), so the echo should work correctly.
15293 # The option is referenced via a variable to avoid confusing sed.
15294 lt_compile=`echo "$ac_compile" | $SED \
15295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15297 -e 's:$: $lt_compiler_flag:'`
15298 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15299 (eval "$lt_compile" 2>conftest.err)
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15303 if (exit $ac_status) && test -s "$ac_outfile"; then
15304 # The compiler can only warn and ignore the option if not recognized
15305 # So say no if there are warnings other than the usual output.
15306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15308 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15309 lt_cv_prog_compiler_rtti_exceptions=yes
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15316 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15318 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15319 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15331 lt_prog_compiler_wl=
15332 lt_prog_compiler_pic=
15333 lt_prog_compiler_static=
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15336 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15338 if test "$GCC" = yes; then
15339 lt_prog_compiler_wl='-Wl,'
15340 lt_prog_compiler_static='-static'
15344 # All AIX code is PIC.
15345 if test "$host_cpu" = ia64; then
15346 # AIX 5 now supports IA64 processor
15347 lt_prog_compiler_static='-Bstatic'
15349 lt_prog_compiler_pic='-fPIC'
15355 # see comment about AmigaOS4 .so support
15356 lt_prog_compiler_pic='-fPIC'
15359 # FIXME: we need at least 68020 code to build shared libraries, but
15360 # adding the `-m68020' flag to GCC prevents building anything better,
15362 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15367 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15368 # PIC is the default for these OSes.
15371 mingw* | cygwin* | pw32* | os2* | cegcc*)
15372 # This hack is so that the source file can tell whether it is being
15373 # built for inclusion in a dll (and should export symbols for example).
15374 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15375 # (--disable-auto-import) libraries
15376 lt_prog_compiler_pic='-DDLL_EXPORT'
15379 darwin* | rhapsody*)
15380 # PIC is the default on this platform
15381 # Common symbols not allowed in MH_DYLIB files
15382 lt_prog_compiler_pic='-fno-common'
15386 # PIC is the default for Haiku.
15387 # The "-static" flag exists, but is broken.
15388 lt_prog_compiler_static=
15392 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15393 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15394 # sets the default TLS model and affects inlining.
15400 lt_prog_compiler_pic='-fPIC'
15406 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15407 # Instead, we relocate shared libraries at runtime.
15411 # Just because we use GCC doesn't mean we suddenly get shared libraries
15412 # on systems that don't support them.
15413 lt_prog_compiler_can_build_shared=no
15418 # QNX uses GNU C++, but need to define -shared option too, otherwise
15419 # it will coredump.
15420 lt_prog_compiler_pic='-fPIC -shared'
15424 if test -d /usr/nec; then
15425 lt_prog_compiler_pic=-Kconform_pic
15430 lt_prog_compiler_pic='-fPIC'
15434 case $cc_basename in
15435 nvcc*) # Cuda Compiler Driver 2.2
15436 lt_prog_compiler_wl='-Xlinker '
15437 lt_prog_compiler_pic='-Xcompiler -fPIC'
15441 # PORTME Check for flag to pass linker flags through the system compiler.
15444 lt_prog_compiler_wl='-Wl,'
15445 if test "$host_cpu" = ia64; then
15446 # AIX 5 now supports IA64 processor
15447 lt_prog_compiler_static='-Bstatic'
15449 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15453 mingw* | cygwin* | pw32* | os2* | cegcc*)
15454 # This hack is so that the source file can tell whether it is being
15455 # built for inclusion in a dll (and should export symbols for example).
15456 lt_prog_compiler_pic='-DDLL_EXPORT'
15459 hpux9* | hpux10* | hpux11*)
15460 lt_prog_compiler_wl='-Wl,'
15461 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15462 # not for PA HP-UX.
15468 lt_prog_compiler_pic='+Z'
15471 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15472 lt_prog_compiler_static='${wl}-a ${wl}archive'
15475 irix5* | irix6* | nonstopux*)
15476 lt_prog_compiler_wl='-Wl,'
15477 # PIC (with -KPIC) is the default.
15478 lt_prog_compiler_static='-non_shared'
15481 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15482 case $cc_basename in
15483 # old Intel for x86_64 which still supported -KPIC.
15485 lt_prog_compiler_wl='-Wl,'
15486 lt_prog_compiler_pic='-KPIC'
15487 lt_prog_compiler_static='-static'
15489 # icc used to be incompatible with GCC.
15490 # ICC 10 doesn't accept -KPIC any more.
15492 lt_prog_compiler_wl='-Wl,'
15493 lt_prog_compiler_pic='-fPIC'
15494 lt_prog_compiler_static='-static'
15496 # Lahey Fortran 8.1.
15498 lt_prog_compiler_wl='-Wl,'
15499 lt_prog_compiler_pic='--shared'
15500 lt_prog_compiler_static='--static'
15502 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15503 # Portland Group compilers (*not* the Pentium gcc compiler,
15504 # which looks to be a dead project)
15505 lt_prog_compiler_wl='-Wl,'
15506 lt_prog_compiler_pic='-fpic'
15507 lt_prog_compiler_static='-Bstatic'
15510 lt_prog_compiler_wl='-Wl,'
15511 # All Alpha code is PIC.
15512 lt_prog_compiler_static='-non_shared'
15514 xl* | bgxl* | bgf* | mpixl*)
15515 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15516 lt_prog_compiler_wl='-Wl,'
15517 lt_prog_compiler_pic='-qpic'
15518 lt_prog_compiler_static='-qstaticlink'
15521 case `$CC -V 2>&1 | sed 5q` in
15522 *Sun\ F* | *Sun*Fortran*)
15523 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15524 lt_prog_compiler_pic='-KPIC'
15525 lt_prog_compiler_static='-Bstatic'
15526 lt_prog_compiler_wl=''
15530 lt_prog_compiler_pic='-KPIC'
15531 lt_prog_compiler_static='-Bstatic'
15532 lt_prog_compiler_wl='-Wl,'
15540 lt_prog_compiler_pic='-KPIC'
15541 lt_prog_compiler_static='-Bstatic'
15545 # QNX uses GNU C++, but need to define -shared option too, otherwise
15546 # it will coredump.
15547 lt_prog_compiler_pic='-fPIC -shared'
15550 osf3* | osf4* | osf5*)
15551 lt_prog_compiler_wl='-Wl,'
15552 # All OSF/1 code is PIC.
15553 lt_prog_compiler_static='-non_shared'
15557 lt_prog_compiler_static='-non_shared'
15561 lt_prog_compiler_pic='-KPIC'
15562 lt_prog_compiler_static='-Bstatic'
15563 case $cc_basename in
15564 f77* | f90* | f95*)
15565 lt_prog_compiler_wl='-Qoption ld ';;
15567 lt_prog_compiler_wl='-Wl,';;
15572 lt_prog_compiler_wl='-Qoption ld '
15573 lt_prog_compiler_pic='-PIC'
15574 lt_prog_compiler_static='-Bstatic'
15577 sysv4 | sysv4.2uw2* | sysv4.3*)
15578 lt_prog_compiler_wl='-Wl,'
15579 lt_prog_compiler_pic='-KPIC'
15580 lt_prog_compiler_static='-Bstatic'
15584 if test -d /usr/nec ;then
15585 lt_prog_compiler_pic='-Kconform_pic'
15586 lt_prog_compiler_static='-Bstatic'
15590 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15591 lt_prog_compiler_wl='-Wl,'
15592 lt_prog_compiler_pic='-KPIC'
15593 lt_prog_compiler_static='-Bstatic'
15597 lt_prog_compiler_wl='-Wl,'
15598 lt_prog_compiler_can_build_shared=no
15602 lt_prog_compiler_pic='-pic'
15603 lt_prog_compiler_static='-Bstatic'
15607 lt_prog_compiler_can_build_shared=no
15613 # For platforms which do not support PIC, -DPIC is meaningless:
15615 lt_prog_compiler_pic=
15618 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15622 $as_echo "$lt_prog_compiler_pic" >&6; }
15630 # Check to make sure the PIC flag actually works.
15632 if test -n "$lt_prog_compiler_pic"; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15634 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15635 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15636 $as_echo_n "(cached
) " >&6
15638 lt_cv_prog_compiler_pic_works=no
15639 ac_outfile=conftest.$ac_objext
15640 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15641 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15642 # Insert the option either (1) after the last *FLAGS variable, or
15643 # (2) before a word containing "conftest.
", or (3) at the end.
15644 # Note that $ac_compile itself does not contain backslashes and begins
15645 # with a dollar sign (not a hyphen), so the echo should work correctly.
15646 # The option is referenced via a variable to avoid confusing sed.
15647 lt_compile=`echo "$ac_compile" | $SED \
15648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15650 -e 's:$: $lt_compiler_flag:'`
15651 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15652 (eval "$lt_compile" 2>conftest.err)
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15656 if (exit $ac_status) && test -s "$ac_outfile"; then
15657 # The compiler can only warn and ignore the option if not recognized
15658 # So say no if there are warnings other than the usual output.
15659 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15662 lt_cv_prog_compiler_pic_works=yes
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15669 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15671 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15672 case $lt_prog_compiler_pic in
15674 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15677 lt_prog_compiler_pic=
15678 lt_prog_compiler_can_build_shared=no
15689 # Check to make sure the static flag actually works.
15691 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15693 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15694 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15695 $as_echo_n "(cached
) " >&6
15697 lt_cv_prog_compiler_static_works=no
15698 save_LDFLAGS="$LDFLAGS"
15699 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15700 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15702 # The linker can only warn and ignore the option if not recognized
15703 # So say no if there are warnings
15704 if test -s conftest.err; then
15705 # Append any errors to the config.log.
15706 cat conftest.err 1>&5
15707 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15709 if diff conftest.exp conftest.er2 >/dev/null; then
15710 lt_cv_prog_compiler_static_works=yes
15713 lt_cv_prog_compiler_static_works=yes
15717 LDFLAGS="$save_LDFLAGS"
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15721 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15723 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15726 lt_prog_compiler_static=
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15736 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15737 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15738 $as_echo_n "(cached
) " >&6
15740 lt_cv_prog_compiler_c_o=no
15741 $RM -r conftest 2>/dev/null
15745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15747 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15748 # Insert the option either (1) after the last *FLAGS variable, or
15749 # (2) before a word containing "conftest.
", or (3) at the end.
15750 # Note that $ac_compile itself does not contain backslashes and begins
15751 # with a dollar sign (not a hyphen), so the echo should work correctly.
15752 lt_compile=`echo "$ac_compile" | $SED \
15753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15755 -e 's:$: $lt_compiler_flag:'`
15756 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15757 (eval "$lt_compile" 2>out/conftest.err)
15759 cat out/conftest.err >&5
15760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15761 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15763 # The compiler can only warn and ignore the option if not recognized
15764 # So say no if there are warnings
15765 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15766 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15767 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15768 lt_cv_prog_compiler_c_o=yes
15773 # SGI C++ compiler will create directory out/ii_files/ for
15774 # template instantiation
15775 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15776 $RM out/* && rmdir out
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15783 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15791 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15792 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15793 $as_echo_n "(cached
) " >&6
15795 lt_cv_prog_compiler_c_o=no
15796 $RM -r conftest 2>/dev/null
15800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15802 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15803 # Insert the option either (1) after the last *FLAGS variable, or
15804 # (2) before a word containing "conftest.
", or (3) at the end.
15805 # Note that $ac_compile itself does not contain backslashes and begins
15806 # with a dollar sign (not a hyphen), so the echo should work correctly.
15807 lt_compile=`echo "$ac_compile" | $SED \
15808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15810 -e 's:$: $lt_compiler_flag:'`
15811 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15812 (eval "$lt_compile" 2>out/conftest.err)
15814 cat out/conftest.err >&5
15815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15818 # The compiler can only warn and ignore the option if not recognized
15819 # So say no if there are warnings
15820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15823 lt_cv_prog_compiler_c_o=yes
15828 # SGI C++ compiler will create directory out/ii_files/ for
15829 # template instantiation
15830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15831 $RM out/* && rmdir out
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15838 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15843 hard_links="nottested
"
15844 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15845 # do not overwrite the value of need_locks provided by the user
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15847 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15852 ln conftest.a conftest.b 2>&5 || hard_links=no
15853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15855 $as_echo "$hard_links" >&6; }
15856 if test "$hard_links" = no; then
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15858 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15871 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15874 allow_undefined_flag=
15875 always_export_symbols=no
15877 archive_expsym_cmds=
15878 compiler_needs_object=no
15879 enable_shared_with_static_runtimes=no
15880 export_dynamic_flag_spec=
15881 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15882 hardcode_automatic=no
15884 hardcode_direct_absolute=no
15885 hardcode_libdir_flag_spec=
15886 hardcode_libdir_flag_spec_ld=
15887 hardcode_libdir_separator=
15888 hardcode_minus_L=no
15889 hardcode_shlibpath_var=unsupported
15891 link_all_deplibs=unknown
15893 module_expsym_cmds=
15894 old_archive_from_new_cmds=
15895 old_archive_from_expsyms_cmds=
15896 thread_safe_flag_spec=
15897 whole_archive_flag_spec=
15898 # include_expsyms should be a list of space-separated symbols to be *always*
15899 # included in the symbol list
15901 # exclude_expsyms can be an extended regexp of symbols to exclude
15902 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15903 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15904 # as well as any symbol that contains `d'.
15905 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15907 # platforms (ab)use it in PIC code, but their linkers get confused if
15908 # the symbol is explicitly referenced. Since portable code cannot
15909 # rely on this symbol name, it's probably fine to never include it in
15910 # preloaded symbol tables.
15911 # Exclude shared library initialization/finalization symbols.
15912 extract_expsyms_cmds=
15915 cygwin* | mingw* | pw32* | cegcc*)
15916 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15917 # When not using gcc, we currently assume that we are using
15918 # Microsoft Visual C++.
15919 if test "$GCC" != yes; then
15924 # we just hope/assume this is gcc and not c89 (= MSVC++)
15934 # On some targets, GNU ld is compatible enough with the native linker
15935 # that we're better off using the native interface for both.
15936 lt_use_gnu_ld_interface=no
15937 if test "$with_gnu_ld" = yes; then
15940 # The AIX port of GNU ld has always aspired to compatibility
15941 # with the native linker. However, as the warning in the GNU ld
15942 # block says, versions before 2.19.5* couldn't really create working
15943 # shared libraries, regardless of the interface used.
15944 case `$LD -v 2>&1` in
15945 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15946 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15947 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15949 lt_use_gnu_ld_interface=yes
15954 lt_use_gnu_ld_interface=yes
15959 if test "$lt_use_gnu_ld_interface" = yes; then
15960 # If archive_cmds runs LD, not CC, wlarc should be empty
15963 # Set some defaults for GNU ld with shared library support. These
15964 # are reset later if shared libraries are not supported. Putting them
15965 # here allows them to be overridden if necessary.
15966 runpath_var=LD_RUN_PATH
15967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15968 export_dynamic_flag_spec='${wl}--export-dynamic'
15969 # ancient GNU ld didn't support --whole-archive et. al.
15970 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15971 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15973 whole_archive_flag_spec=
15975 supports_anon_versioning=no
15976 case `$LD -v 2>&1` in
15977 *GNU\ gold*) supports_anon_versioning=yes ;;
15978 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15979 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15980 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15981 *\ 2.11.*) ;; # other 2.11 versions
15982 *) supports_anon_versioning=yes ;;
15985 # See if GNU ld supports shared libraries.
15988 # On AIX/PPC, the GNU linker is very broken
15989 if test "$host_cpu" != ia64; then
15993 *** Warning: the GNU linker, at least up to release 2.19, is reported
15994 *** to be unable to reliably create shared libraries on AIX.
15995 *** Therefore, libtool is disabling shared libraries support. If you
15996 *** really care for shared libraries, you may want to install binutils
15997 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15998 *** You will then need to restart the configuration process.
16007 # see comment about AmigaOS4 .so support
16008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009 archive_expsym_cmds=''
16012 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)'
16013 hardcode_libdir_flag_spec
='-L$libdir'
16014 hardcode_minus_L
=yes
16020 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16021 allow_undefined_flag
=unsupported
16022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16023 # support --undefined. This deserves some investigation. FIXME
16024 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16030 cygwin
* | mingw
* | pw32
* | cegcc
*)
16031 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16032 # as there is no search path for DLLs.
16033 hardcode_libdir_flag_spec
='-L$libdir'
16034 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16035 allow_undefined_flag
=unsupported
16036 always_export_symbols
=no
16037 enable_shared_with_static_runtimes
=yes
16038 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16040 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16041 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16042 # If the export-symbols file already is a .def file (1st line
16043 # is EXPORTS), use it as is; otherwise, prepend...
16044 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16045 cp $export_symbols $output_objdir/$soname.def;
16047 echo EXPORTS > $output_objdir/$soname.def;
16048 cat $export_symbols >> $output_objdir/$soname.def;
16050 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16057 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16058 link_all_deplibs
=yes
16063 hardcode_shlibpath_var
=no
16064 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16065 export_dynamic_flag_spec
='${wl}-E'
16066 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16067 # Instead, shared libraries are loaded at an image base (0x10000000 by
16068 # default) and relocated if they conflict, which is a slow very memory
16069 # consuming and fragmenting process. To avoid this, we pick a random,
16070 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16071 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16072 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16073 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'
16076 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16078 if test "$host_os" = linux-dietlibc
; then
16079 case $cc_basename in
16080 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16083 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16084 && test "$tmp_diet" = no
16086 tmp_addflag
=' $pic_flag'
16087 tmp_sharedflag
='-shared'
16088 case $cc_basename,$host_cpu in
16089 pgcc
*) # Portland Group C compiler
16090 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'
16091 tmp_addflag
=' $pic_flag'
16093 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16094 # Portland Group f77 and f90 compilers
16095 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'
16096 tmp_addflag
=' $pic_flag -Mnomain' ;;
16097 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16098 tmp_addflag
=' -i_dynamic' ;;
16099 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16100 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16101 ifc
* | ifort
*) # Intel Fortran compiler
16102 tmp_addflag
=' -nofor_main' ;;
16103 lf95
*) # Lahey Fortran 8.1
16104 whole_archive_flag_spec
=
16105 tmp_sharedflag
='--shared' ;;
16106 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16107 tmp_sharedflag
='-qmkshrobj'
16109 nvcc
*) # Cuda Compiler Driver 2.2
16110 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'
16111 compiler_needs_object
=yes
16114 case `$CC -V 2>&1 | sed 5q` in
16115 *Sun\ C
*) # Sun C 5.9
16116 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'
16117 compiler_needs_object
=yes
16118 tmp_sharedflag
='-G' ;;
16119 *Sun\ F
*) # Sun Fortran 8.3
16120 tmp_sharedflag
='-G' ;;
16122 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16124 if test "x$supports_anon_versioning" = xyes
; then
16125 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16127 echo "local: *; };" >> $output_objdir/$libname.ver~
16128 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16131 case $cc_basename in
16132 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16133 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16134 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16135 hardcode_libdir_flag_spec
=
16136 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16137 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16138 if test "x$supports_anon_versioning" = xyes
; then
16139 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16141 echo "local: *; };" >> $output_objdir/$libname.ver~
16142 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16152 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16153 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16156 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16157 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16162 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16166 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16167 *** create shared libraries on Solaris systems. Therefore, libtool
16168 *** is disabling shared libraries support. We urge you to upgrade GNU
16169 *** binutils to release 2.9.1 or newer. Another option is to modify
16170 *** your PATH or compiler configuration so that the native linker is
16171 *** used, and then restart.
16174 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16175 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16176 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16182 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16183 case `$LD -v 2>&1` in
16184 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16188 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16189 *** reliably create shared libraries on SCO systems. Therefore, libtool
16190 *** is disabling shared libraries support. We urge you to upgrade GNU
16191 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16192 *** your PATH or compiler configuration so that the native linker is
16193 *** used, and then restart.
16198 # For security reasons, it is highly recommended that you always
16199 # use absolute paths for naming shared libraries, and exclude the
16200 # DT_RUNPATH tag from executables and libraries. But doing so
16201 # requires that you compile everything twice, which is a pain.
16202 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16203 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16204 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16214 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_direct
=yes
16217 hardcode_shlibpath_var
=no
16221 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16222 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16223 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16230 if test "$ld_shlibs" = no
; then
16232 hardcode_libdir_flag_spec
=
16233 export_dynamic_flag_spec
=
16234 whole_archive_flag_spec
=
16237 # PORTME fill in a description of your system's linker (not GNU ld)
16240 allow_undefined_flag
=unsupported
16241 always_export_symbols
=yes
16242 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'
16243 # Note: this linker hardcodes the directories in LIBPATH if there
16244 # are no directories specified by -L.
16245 hardcode_minus_L
=yes
16246 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16247 # Neither direct hardcoding nor static linking is supported with a
16249 hardcode_direct
=unsupported
16254 if test "$host_cpu" = ia64
; then
16255 # On IA64, the linker does run time linking by default, so we don't
16256 # have to do anything special.
16257 aix_use_runtimelinking
=no
16258 exp_sym_flag
='-Bexport'
16261 # If we're using GNU nm, then we don't want the "-C" option.
16262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16263 # Also, AIX nm treats weak defined symbols like other global
16264 # defined symbols, whereas GNU nm marks them as "W".
16265 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16266 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'
16268 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16270 aix_use_runtimelinking
=no
16272 # Test if we are trying to use run time linking or normal
16273 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16274 # need to do runtime linking.
16275 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16276 for ld_flag
in $LDFLAGS; do
16277 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16278 aix_use_runtimelinking
=yes
16285 exp_sym_flag
='-bexport'
16286 no_entry_flag
='-bnoentry'
16289 # When large executables or shared objects are built, AIX ld can
16290 # have problems creating the table of contents. If linking a library
16291 # or program results in "error TOC overflow" add -mminimal-toc to
16292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16296 hardcode_direct
=yes
16297 hardcode_direct_absolute
=yes
16298 hardcode_libdir_separator
=':'
16299 link_all_deplibs
=yes
16300 file_list_spec
='${wl}-f,'
16302 if test "$GCC" = yes; then
16303 case $host_os in aix4.
[012]|aix4.
[012].
*)
16304 # We only want to do this on AIX 4.2 and lower, the check
16305 # below for broken collect2 doesn't work under 4.3+
16306 collect2name
=`${CC} -print-prog-name=collect2`
16307 if test -f "$collect2name" &&
16308 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16310 # We have reworked collect2
16313 # We have old collect2
16314 hardcode_direct
=unsupported
16315 # It fails to find uninstalled libraries when the uninstalled
16316 # path is not listed in the libpath. Setting hardcode_minus_L
16317 # to unsupported forces relinking
16318 hardcode_minus_L
=yes
16319 hardcode_libdir_flag_spec
='-L$libdir'
16320 hardcode_libdir_separator
=
16324 shared_flag
='-shared'
16325 if test "$aix_use_runtimelinking" = yes; then
16326 shared_flag
="$shared_flag "'${wl}-G'
16330 if test "$host_cpu" = ia64
; then
16331 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16332 # chokes on -Wl,-G. The following line is correct:
16335 if test "$aix_use_runtimelinking" = yes; then
16336 shared_flag
='${wl}-G'
16338 shared_flag
='${wl}-bM:SRE'
16343 export_dynamic_flag_spec
='${wl}-bexpall'
16344 # It seems that -bexpall does not export symbols beginning with
16345 # underscore (_), so it is better to generate a list of symbols to export.
16346 always_export_symbols
=yes
16347 if test "$aix_use_runtimelinking" = yes; then
16348 # Warning - without using the other runtime loading flags (-brtl),
16349 # -berok will link without error, but may produce a broken library.
16350 allow_undefined_flag
='-berok'
16351 # Determine the default libpath from the value encoded in an
16352 # empty executable.
16353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16364 if ac_fn_c_try_link
"$LINENO"; then :
16366 lt_aix_libpath_sed
='
16367 /Import File Strings/,/^$/ {
16373 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16374 # Check for a 64-bit object if we didn't find anything.
16375 if test -z "$aix_libpath"; then
16376 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16379 rm -f core conftest.err conftest.
$ac_objext \
16380 conftest
$ac_exeext conftest.
$ac_ext
16381 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16383 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16384 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"
16386 if test "$host_cpu" = ia64
; then
16387 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16388 allow_undefined_flag
="-z nodefs"
16389 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"
16391 # Determine the default libpath from the value encoded in an
16392 # empty executable.
16393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16394 /* end confdefs.h. */
16404 if ac_fn_c_try_link
"$LINENO"; then :
16406 lt_aix_libpath_sed
='
16407 /Import File Strings/,/^$/ {
16413 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16414 # Check for a 64-bit object if we didn't find anything.
16415 if test -z "$aix_libpath"; then
16416 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16419 rm -f core conftest.err conftest.
$ac_objext \
16420 conftest
$ac_exeext conftest.
$ac_ext
16421 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16423 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16424 # Warning - without using the other run time loading flags,
16425 # -berok will link without error, but may produce a broken library.
16426 no_undefined_flag
=' ${wl}-bernotok'
16427 allow_undefined_flag
=' ${wl}-berok'
16428 if test "$with_gnu_ld" = yes; then
16429 # We only use this code for GNU lds that support --whole-archive.
16430 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16432 # Exported symbols can be pulled into shared objects from archives
16433 whole_archive_flag_spec
='$convenience'
16435 archive_cmds_need_lc
=yes
16436 # This is similar to how AIX traditionally builds its shared libraries.
16437 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'
16445 # see comment about AmigaOS4 .so support
16446 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16447 archive_expsym_cmds
=''
16450 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)'
16451 hardcode_libdir_flag_spec
='-L$libdir'
16452 hardcode_minus_L
=yes
16458 export_dynamic_flag_spec
=-rdynamic
16461 cygwin
* | mingw
* | pw32
* | cegcc
*)
16462 # When not using gcc, we currently assume that we are using
16463 # Microsoft Visual C++.
16464 # hardcode_libdir_flag_spec is actually meaningless, as there is
16465 # no search path for DLLs.
16466 hardcode_libdir_flag_spec
=' '
16467 allow_undefined_flag
=unsupported
16468 # Tell ltmain to make .lib files, not .a files.
16470 # Tell ltmain to make .dll files, not .so files.
16472 # FIXME: Setting linknames here is a bad hack.
16473 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16474 # The linker will automatically build a .lib file if we build a DLL.
16475 old_archive_from_new_cmds
='true'
16476 # FIXME: Should let the user specify the lib program.
16477 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16478 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16479 enable_shared_with_static_runtimes
=yes
16482 darwin
* | rhapsody
*)
16485 archive_cmds_need_lc
=no
16487 hardcode_automatic
=yes
16488 hardcode_shlibpath_var
=unsupported
16489 if test "$lt_cv_ld_force_load" = "yes"; then
16490 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\"`'
16492 whole_archive_flag_spec
=''
16494 link_all_deplibs
=yes
16495 allow_undefined_flag
="$_lt_dar_allow_undefined"
16496 case $cc_basename in
16497 ifort
*) _lt_dar_can_shared
=yes ;;
16498 *) _lt_dar_can_shared
=$GCC ;;
16500 if test "$_lt_dar_can_shared" = "yes"; then
16501 output_verbose_link_cmd
=func_echo_all
16502 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16503 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16504 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}"
16505 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}"
16514 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16515 hardcode_libdir_flag_spec
='-L$libdir'
16516 hardcode_shlibpath_var
=no
16519 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16520 # support. Future versions do this automatically, but an explicit c++rt0.o
16521 # does not break anything, and helps significantly (at the cost of a little
16524 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16525 hardcode_libdir_flag_spec
='-R$libdir'
16526 hardcode_direct
=yes
16527 hardcode_shlibpath_var
=no
16530 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16532 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16533 hardcode_direct
=yes
16534 hardcode_minus_L
=yes
16535 hardcode_shlibpath_var
=no
16538 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16539 freebsd
* | dragonfly
*)
16540 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16541 hardcode_libdir_flag_spec
='-R$libdir'
16542 hardcode_direct
=yes
16543 hardcode_shlibpath_var
=no
16547 if test "$GCC" = yes; then
16548 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'
16550 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'
16552 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16553 hardcode_libdir_separator
=:
16554 hardcode_direct
=yes
16556 # hardcode_minus_L: Not really in the search PATH,
16557 # but as the default location of the library.
16558 hardcode_minus_L
=yes
16559 export_dynamic_flag_spec
='${wl}-E'
16563 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16564 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16568 if test "$with_gnu_ld" = no
; then
16569 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16570 hardcode_libdir_flag_spec_ld
='+b $libdir'
16571 hardcode_libdir_separator
=:
16572 hardcode_direct
=yes
16573 hardcode_direct_absolute
=yes
16574 export_dynamic_flag_spec
='${wl}-E'
16575 # hardcode_minus_L: Not really in the search PATH,
16576 # but as the default location of the library.
16577 hardcode_minus_L
=yes
16582 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16585 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16588 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16591 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16597 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16604 # Older versions of the 11.00 compiler do not understand -b yet
16605 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16607 $as_echo_n "checking if $CC understands -b... " >&6; }
16608 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16609 $as_echo_n "(cached) " >&6
16611 lt_cv_prog_compiler__b
=no
16612 save_LDFLAGS
="$LDFLAGS"
16613 LDFLAGS
="$LDFLAGS -b"
16614 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16615 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16616 # The linker can only warn and ignore the option if not recognized
16617 # So say no if there are warnings
16618 if test -s conftest.err
; then
16619 # Append any errors to the config.log.
16620 cat conftest.err
1>&5
16621 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16622 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16623 if diff conftest.exp conftest.er2
>/dev
/null
; then
16624 lt_cv_prog_compiler__b
=yes
16627 lt_cv_prog_compiler__b
=yes
16631 LDFLAGS
="$save_LDFLAGS"
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16635 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16637 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16638 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16640 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16646 if test "$with_gnu_ld" = no
; then
16647 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16648 hardcode_libdir_separator
=:
16653 hardcode_shlibpath_var
=no
16656 hardcode_direct
=yes
16657 hardcode_direct_absolute
=yes
16658 export_dynamic_flag_spec
='${wl}-E'
16660 # hardcode_minus_L: Not really in the search PATH,
16661 # but as the default location of the library.
16662 hardcode_minus_L
=yes
16668 irix5
* | irix6
* | nonstopux
*)
16669 if test "$GCC" = yes; then
16670 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'
16671 # Try to use the -exported_symbol ld option, if it does not
16672 # work, assume that -exports_file does not work either and
16673 # implicitly export all symbols.
16674 save_LDFLAGS
="$LDFLAGS"
16675 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16680 if ac_fn_c_try_link
"$LINENO"; then :
16681 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'
16684 rm -f core conftest.err conftest.
$ac_objext \
16685 conftest
$ac_exeext conftest.
$ac_ext
16686 LDFLAGS
="$save_LDFLAGS"
16688 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'
16689 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'
16691 archive_cmds_need_lc
='no'
16692 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16693 hardcode_libdir_separator
=:
16695 link_all_deplibs
=yes
16699 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16700 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16702 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16704 hardcode_libdir_flag_spec
='-R$libdir'
16705 hardcode_direct
=yes
16706 hardcode_shlibpath_var
=no
16710 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_direct
=yes
16712 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16713 hardcode_libdir_separator
=:
16714 hardcode_shlibpath_var
=no
16721 if test -f /usr
/libexec
/ld.so
; then
16722 hardcode_direct
=yes
16723 hardcode_shlibpath_var
=no
16724 hardcode_direct_absolute
=yes
16725 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16726 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16727 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16728 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16729 export_dynamic_flag_spec
='${wl}-E'
16732 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16733 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16734 hardcode_libdir_flag_spec
='-R$libdir'
16737 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16738 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16748 hardcode_libdir_flag_spec
='-L$libdir'
16749 hardcode_minus_L
=yes
16750 allow_undefined_flag
=unsupported
16751 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'
16752 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16756 if test "$GCC" = yes; then
16757 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16758 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'
16760 allow_undefined_flag
=' -expect_unresolved \*'
16761 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'
16763 archive_cmds_need_lc
='no'
16764 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16765 hardcode_libdir_separator
=:
16768 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16769 if test "$GCC" = yes; then
16770 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16771 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'
16772 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16774 allow_undefined_flag
=' -expect_unresolved \*'
16775 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'
16776 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~
16777 $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'
16779 # Both c and cxx compiler support -rpath directly
16780 hardcode_libdir_flag_spec
='-rpath $libdir'
16782 archive_cmds_need_lc
='no'
16783 hardcode_libdir_separator
=:
16787 no_undefined_flag
=' -z defs'
16788 if test "$GCC" = yes; then
16790 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16791 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16792 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16794 case `$CC -V 2>&1` in
16797 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16798 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16799 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16803 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16804 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16805 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16809 hardcode_libdir_flag_spec
='-R$libdir'
16810 hardcode_shlibpath_var
=no
16812 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16814 # The compiler driver will combine and reorder linker options,
16815 # but understands `-z linker_flag'. GCC discards it without `$wl',
16816 # but is careful enough not to reorder.
16817 # Supported since Solaris 2.6 (maybe 2.5.1?)
16818 if test "$GCC" = yes; then
16819 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16821 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16825 link_all_deplibs
=yes
16829 if test "x$host_vendor" = xsequent
; then
16830 # Use $CC to link under sequent, because it throws in some extra .o
16831 # files that make .init and .fini sections work.
16832 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16834 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16836 hardcode_libdir_flag_spec
='-L$libdir'
16837 hardcode_direct
=yes
16838 hardcode_minus_L
=yes
16839 hardcode_shlibpath_var
=no
16843 case $host_vendor in
16845 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16846 hardcode_direct
=yes # is this really true???
16849 ## LD is ld it makes a PLAMLIB
16850 ## CC just makes a GrossModule.
16851 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16852 reload_cmds
='$CC -r -o $output$reload_objs'
16856 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16857 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16860 runpath_var
='LD_RUN_PATH'
16861 hardcode_shlibpath_var
=no
16865 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866 hardcode_shlibpath_var
=no
16867 export_dynamic_flag_spec
='-Bexport'
16871 if test -d /usr
/nec
; then
16872 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16873 hardcode_shlibpath_var
=no
16874 runpath_var
=LD_RUN_PATH
16875 hardcode_runpath_var
=yes
16880 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16881 no_undefined_flag
='${wl}-z,text'
16882 archive_cmds_need_lc
=no
16883 hardcode_shlibpath_var
=no
16884 runpath_var
='LD_RUN_PATH'
16886 if test "$GCC" = yes; then
16887 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16888 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16890 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16891 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16895 sysv5
* | sco3.2v5
* | sco5v6
*)
16896 # Note: We can NOT use -z defs as we might desire, because we do not
16897 # link with -lc, and that would cause any symbols used from libc to
16898 # always be unresolved, which means just about no library would
16899 # ever link correctly. If we're not using GNU ld we use -z text
16900 # though, which does catch some bad symbols but isn't as heavy-handed
16902 no_undefined_flag
='${wl}-z,text'
16903 allow_undefined_flag
='${wl}-z,nodefs'
16904 archive_cmds_need_lc
=no
16905 hardcode_shlibpath_var
=no
16906 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16907 hardcode_libdir_separator
=':'
16908 link_all_deplibs
=yes
16909 export_dynamic_flag_spec
='${wl}-Bexport'
16910 runpath_var
='LD_RUN_PATH'
16912 if test "$GCC" = yes; then
16913 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16914 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16916 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16917 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16922 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16923 hardcode_libdir_flag_spec
='-L$libdir'
16924 hardcode_shlibpath_var
=no
16932 if test x
$host_vendor = xsni
; then
16934 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16935 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16942 $as_echo "$ld_shlibs" >&6; }
16943 test "$ld_shlibs" = no
&& can_build_shared
=no
16945 with_gnu_ld
=$with_gnu_ld
16962 # Do we need to explicitly link libc?
16964 case "x$archive_cmds_need_lc" in
16966 # Assume -lc should be added
16967 archive_cmds_need_lc
=yes
16969 if test "$enable_shared" = yes && test "$GCC" = yes; then
16970 case $archive_cmds in
16972 # FIXME: we may have to deal with multi-command sequences.
16975 # Test whether the compiler implicitly links with -lc since on some
16976 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16977 # to ld, don't add -lc before -lgcc.
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16979 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16980 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16981 $as_echo_n "(cached) " >&6
16984 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16987 (eval $ac_compile) 2>&5
16989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16990 test $ac_status = 0; } 2>conftest.err
; then
16993 libobjs
=conftest.
$ac_objext
16995 wl
=$lt_prog_compiler_wl
16996 pic_flag
=$lt_prog_compiler_pic
17002 lt_save_allow_undefined_flag
=$allow_undefined_flag
17003 allow_undefined_flag
=
17004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17005 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17008 test $ac_status = 0; }
17010 lt_cv_archive_cmds_need_lc
=no
17012 lt_cv_archive_cmds_need_lc
=yes
17014 allow_undefined_flag
=$lt_save_allow_undefined_flag
17016 cat conftest.err
1>&5
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17022 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17023 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17187 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17189 if test "$GCC" = yes; then
17191 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17192 *) lt_awk_arg
="/^libraries:/" ;;
17195 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17196 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17198 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17199 case $lt_search_path_spec in
17201 # if the path contains ";" then we assume it to be the separator
17202 # otherwise default to the standard path separator (i.e. ":") - it is
17203 # assumed that no part of a normal pathname contains ";" but that should
17204 # okay in the real world where ";" in dirpaths is itself problematic.
17205 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17208 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17211 # Ok, now we have the path, separated by spaces, we can step through it
17212 # and add multilib dir if necessary.
17213 lt_tmp_lt_search_path_spec
=
17214 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17215 for lt_sys_path
in $lt_search_path_spec; do
17216 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17217 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17219 test -d "$lt_sys_path" && \
17220 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17223 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17224 BEGIN {RS=" "; FS="/|\n";} {
17227 for (lt_i = NF; lt_i > 0; lt_i--) {
17228 if ($lt_i != "" && $lt_i != ".") {
17229 if ($lt_i == "..") {
17232 if (lt_count == 0) {
17233 lt_foo="/" $lt_i lt_foo;
17240 if (lt_foo != "") { lt_freq[lt_foo]++; }
17241 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17243 # AWK program above erroneously prepends '/' to C:/dos/paths
17246 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17247 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17249 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17251 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17253 library_names_spec
=
17254 libname_spec
='lib$name'
17258 postuninstall_cmds
=
17262 shlibpath_overrides_runpath
=unknown
17264 dynamic_linker
="$host_os ld.so"
17265 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17266 need_lib_prefix
=unknown
17267 hardcode_into_libs
=no
17269 # when you set need_version to no, make sure it does not cause -set_version
17270 # flags to be left without arguments
17271 need_version
=unknown
17276 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17277 shlibpath_var
=LIBPATH
17279 # AIX 3 has no versioning support, so we append a major version to the name.
17280 soname_spec
='${libname}${release}${shared_ext}$major'
17287 hardcode_into_libs
=yes
17288 if test "$host_cpu" = ia64
; then
17289 # AIX 5 supports IA64
17290 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17291 shlibpath_var
=LD_LIBRARY_PATH
17293 # With GCC up to 2.95.x, collect2 would create an import file
17294 # for dependence libraries. The import file would start with
17295 # the line `#! .'. This would cause the generated library to
17296 # depend on `.', always an invalid library. This was fixed in
17297 # development snapshots of GCC prior to 3.0.
17299 aix4 | aix4.
[01] | aix4.
[01].
*)
17300 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17302 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17305 can_build_shared
=no
17309 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17310 # soname into executable. Probably we can add versioning support to
17311 # collect2, so additional links can be useful in future.
17312 if test "$aix_use_runtimelinking" = yes; then
17313 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17314 # instead of lib<name>.a to let people know that these are not
17315 # typical AIX shared libraries.
17316 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318 # We preserve .a as extension for shared libraries through AIX4.2
17319 # and later when we are not doing run time linking.
17320 library_names_spec
='${libname}${release}.a $libname.a'
17321 soname_spec
='${libname}${release}${shared_ext}$major'
17323 shlibpath_var
=LIBPATH
17330 # Since July 2007 AmigaOS4 officially supports .so libraries.
17331 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17332 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 library_names_spec
='$libname.ixlibrary $libname.a'
17336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17337 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'
17343 library_names_spec
='${libname}${shared_ext}'
17344 dynamic_linker
="$host_os ld.so"
17345 shlibpath_var
=LIBRARY_PATH
17351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352 soname_spec
='${libname}${release}${shared_ext}$major'
17353 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17354 shlibpath_var
=LD_LIBRARY_PATH
17355 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17356 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17357 # the default ld.so.conf also contains /usr/contrib/lib and
17358 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17359 # libtool to hard-code these into programs
17362 cygwin
* | mingw
* | pw32
* | cegcc
*)
17363 version_type
=windows
17368 case $GCC,$host_os in
17369 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17370 library_names_spec
='$libname.dll.a'
17371 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17372 postinstall_cmds
='base_file=`basename \${file}`~
17373 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17374 dldir=$destdir/`dirname \$dlpath`~
17375 test -d \$dldir || mkdir -p \$dldir~
17376 $install_prog $dir/$dlname \$dldir/$dlname~
17377 chmod a+x \$dldir/$dlname~
17378 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17379 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17381 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17382 dlpath=$dir/\$dldll~
17384 shlibpath_overrides_runpath
=yes
17388 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17389 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17391 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17394 # MinGW DLLs use traditional 'lib' prefix
17395 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17398 # pw32 DLLs use 'pw' prefix rather than 'lib'
17399 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17405 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17408 dynamic_linker
='Win32 ld.exe'
17409 # FIXME: first we should search . and the directory the executable is in
17413 darwin
* | rhapsody
*)
17414 dynamic_linker
="$host_os dyld"
17415 version_type
=darwin
17418 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17419 soname_spec
='${libname}${release}${major}$shared_ext'
17420 shlibpath_overrides_runpath
=yes
17421 shlibpath_var
=DYLD_LIBRARY_PATH
17422 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17424 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17425 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17433 soname_spec
='${libname}${release}${shared_ext}$major'
17434 shlibpath_var
=LD_LIBRARY_PATH
17437 freebsd
* | dragonfly
*)
17438 # DragonFly does not have aout. When/if they implement a new
17439 # versioning mechanism, adjust this.
17440 if test -x /usr
/bin
/objformat
; then
17441 objformat
=`/usr/bin/objformat`
17444 freebsd
[23].
*) objformat
=aout
;;
17445 *) objformat
=elf
;;
17448 version_type
=freebsd-
$objformat
17449 case $version_type in
17451 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17456 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17460 shlibpath_var
=LD_LIBRARY_PATH
17463 shlibpath_overrides_runpath
=yes
17465 freebsd3.
[01]* | freebsdelf3.
[01]*)
17466 shlibpath_overrides_runpath
=yes
17467 hardcode_into_libs
=yes
17469 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17470 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17471 shlibpath_overrides_runpath
=no
17472 hardcode_into_libs
=yes
17474 *) # from 4.6 on, and DragonFly
17475 shlibpath_overrides_runpath
=yes
17476 hardcode_into_libs
=yes
17485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17486 soname_spec
='${libname}${release}${shared_ext}$major'
17487 shlibpath_var
=LD_LIBRARY_PATH
17488 hardcode_into_libs
=yes
17495 dynamic_linker
="$host_os runtime_loader"
17496 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17497 soname_spec
='${libname}${release}${shared_ext}$major'
17498 shlibpath_var
=LIBRARY_PATH
17499 shlibpath_overrides_runpath
=yes
17500 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17501 hardcode_into_libs
=yes
17504 hpux9
* | hpux10
* | hpux11
*)
17505 # Give a soname corresponding to the major version so that dld.sl refuses to
17506 # link against other versions.
17513 hardcode_into_libs
=yes
17514 dynamic_linker
="$host_os dld.so"
17515 shlibpath_var
=LD_LIBRARY_PATH
17516 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17517 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 soname_spec
='${libname}${release}${shared_ext}$major'
17519 if test "X$HPUX_IA64_MODE" = X32
; then
17520 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17522 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17524 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17528 hardcode_into_libs
=yes
17529 dynamic_linker
="$host_os dld.sl"
17530 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17531 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17533 soname_spec
='${libname}${release}${shared_ext}$major'
17534 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17535 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17539 dynamic_linker
="$host_os dld.sl"
17540 shlibpath_var
=SHLIB_PATH
17541 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17542 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17543 soname_spec
='${libname}${release}${shared_ext}$major'
17546 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17547 postinstall_cmds
='chmod 555 $lib'
17548 # or fails outright, so override atomically:
17549 install_override_mode
=555
17556 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17557 soname_spec
='${libname}${release}${shared_ext}$major'
17558 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17559 shlibpath_var
=LD_LIBRARY_PATH
17560 shlibpath_overrides_runpath
=no
17561 hardcode_into_libs
=yes
17564 irix5
* | irix6
* | nonstopux
*)
17566 nonstopux
*) version_type
=nonstopux
;;
17568 if test "$lt_cv_prog_gnu_ld" = yes; then
17576 soname_spec
='${libname}${release}${shared_ext}$major'
17577 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17579 irix5
* | nonstopux
*)
17580 libsuff
= shlibsuff
=
17583 case $LD in # libtool.m4 will add one of these switches to LD
17584 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17585 libsuff
= shlibsuff
= libmagic
=32-bit;;
17586 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17587 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17588 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17589 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17590 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17594 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17595 shlibpath_overrides_runpath
=no
17596 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17597 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17598 hardcode_into_libs
=yes
17601 # No shared lib support for Linux oldld, aout, or coff.
17602 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17606 # This must be Linux ELF.
17607 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17611 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17612 soname_spec
='${libname}${release}${shared_ext}$major'
17613 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17614 shlibpath_var
=LD_LIBRARY_PATH
17615 shlibpath_overrides_runpath
=no
17617 # Some binutils ld are patched to set DT_RUNPATH
17618 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17619 $as_echo_n "(cached) " >&6
17621 lt_cv_shlibpath_overrides_runpath
=no
17622 save_LDFLAGS
=$LDFLAGS
17623 save_libdir
=$libdir
17624 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17625 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17626 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17627 /* end confdefs.h. */
17637 if ac_fn_c_try_link
"$LINENO"; then :
17638 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17639 lt_cv_shlibpath_overrides_runpath
=yes
17642 rm -f core conftest.err conftest.
$ac_objext \
17643 conftest
$ac_exeext conftest.
$ac_ext
17644 LDFLAGS
=$save_LDFLAGS
17645 libdir
=$save_libdir
17649 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17651 # This implies no fast_install, which is unacceptable.
17652 # Some rework will be needed to allow for fast_install
17653 # before this can be enabled.
17654 hardcode_into_libs
=yes
17656 # Append ld.so.conf contents to the search path
17657 if test -f /etc
/ld.so.conf
; then
17658 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' ' '`
17659 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17662 # We used to test for /lib/ld.so.1 and disable shared libraries on
17663 # powerpc, because MkLinux only supported shared libraries with the
17664 # GNU dynamic linker. Since this was broken with cross compilers,
17665 # most powerpc-linux boxes support dynamic linking these days and
17666 # people can always --disable-shared, the test was removed, and we
17667 # assume the GNU/Linux dynamic linker is in use.
17668 dynamic_linker
='GNU/Linux ld.so'
17675 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17676 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17677 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17678 dynamic_linker
='NetBSD (a.out) ld.so'
17680 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17681 soname_spec
='${libname}${release}${shared_ext}$major'
17682 dynamic_linker
='NetBSD ld.elf_so'
17684 shlibpath_var
=LD_LIBRARY_PATH
17685 shlibpath_overrides_runpath
=yes
17686 hardcode_into_libs
=yes
17691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17692 shlibpath_var
=LD_LIBRARY_PATH
17693 shlibpath_overrides_runpath
=yes
17700 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17701 soname_spec
='${libname}${release}${shared_ext}$major'
17702 shlibpath_var
=LD_LIBRARY_PATH
17703 shlibpath_overrides_runpath
=no
17704 hardcode_into_libs
=yes
17705 dynamic_linker
='ldqnx.so'
17710 sys_lib_dlsearch_path_spec
="/usr/lib"
17712 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17714 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17715 *) need_version
=no
;;
17717 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17718 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17719 shlibpath_var
=LD_LIBRARY_PATH
17720 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17722 openbsd2.
[89] | openbsd2.
[89].
*)
17723 shlibpath_overrides_runpath
=no
17726 shlibpath_overrides_runpath
=yes
17730 shlibpath_overrides_runpath
=yes
17735 libname_spec
='$name'
17738 library_names_spec
='$libname${shared_ext} $libname.a'
17739 dynamic_linker
='OS/2 ld.exe'
17740 shlibpath_var
=LIBPATH
17743 osf3
* | osf4
* | osf5
*)
17747 soname_spec
='${libname}${release}${shared_ext}$major'
17748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 shlibpath_var
=LD_LIBRARY_PATH
17750 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17751 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17762 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17763 soname_spec
='${libname}${release}${shared_ext}$major'
17764 shlibpath_var
=LD_LIBRARY_PATH
17765 shlibpath_overrides_runpath
=yes
17766 hardcode_into_libs
=yes
17767 # ldd complains unless libraries are executable
17768 postinstall_cmds
='chmod +x $lib'
17773 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17774 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17775 shlibpath_var
=LD_LIBRARY_PATH
17776 shlibpath_overrides_runpath
=yes
17777 if test "$with_gnu_ld" = yes; then
17785 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786 soname_spec
='${libname}${release}${shared_ext}$major'
17787 shlibpath_var
=LD_LIBRARY_PATH
17788 case $host_vendor in
17790 shlibpath_overrides_runpath
=no
17792 runpath_var
=LD_RUN_PATH
17800 shlibpath_overrides_runpath
=no
17801 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17807 if test -d /usr
/nec
;then
17809 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17810 soname_spec
='$libname${shared_ext}.$major'
17811 shlibpath_var
=LD_LIBRARY_PATH
17815 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17816 version_type
=freebsd-elf
17819 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17820 soname_spec
='${libname}${release}${shared_ext}$major'
17821 shlibpath_var
=LD_LIBRARY_PATH
17822 shlibpath_overrides_runpath
=yes
17823 hardcode_into_libs
=yes
17824 if test "$with_gnu_ld" = yes; then
17825 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17827 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17830 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17834 sys_lib_dlsearch_path_spec
='/usr/lib'
17838 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17842 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17843 shlibpath_var
=LD_LIBRARY_PATH
17844 shlibpath_overrides_runpath
=no
17845 hardcode_into_libs
=yes
17850 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17851 soname_spec
='${libname}${release}${shared_ext}$major'
17852 shlibpath_var
=LD_LIBRARY_PATH
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17860 $as_echo "$dynamic_linker" >&6; }
17861 test "$dynamic_linker" = no
&& can_build_shared
=no
17863 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17864 if test "$GCC" = yes; then
17865 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17868 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17869 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17871 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17872 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17967 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17969 if test -n "$hardcode_libdir_flag_spec" ||
17970 test -n "$runpath_var" ||
17971 test "X$hardcode_automatic" = "Xyes" ; then
17973 # We can hardcode non-existent directories.
17974 if test "$hardcode_direct" != no
&&
17975 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17976 # have to relink, otherwise we might link with an installed library
17977 # when we should be linking with a yet-to-be-installed one
17978 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17979 test "$hardcode_minus_L" != no
; then
17980 # Linking always hardcodes the temporary library directory.
17981 hardcode_action
=relink
17983 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17984 hardcode_action
=immediate
17987 # We cannot hardcode anything, or else we can only hardcode existing
17989 hardcode_action
=unsupported
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17992 $as_echo "$hardcode_action" >&6; }
17994 if test "$hardcode_action" = relink ||
17995 test "$inherit_rpath" = yes; then
17996 # Fast installation is not supported
17997 enable_fast_install
=no
17998 elif test "$shlibpath_overrides_runpath" = yes ||
17999 test "$enable_shared" = no
; then
18000 # Fast installation is not necessary
18001 enable_fast_install
=needless
18009 if test "x$enable_dlopen" != xyes
; then
18010 enable_dlopen
=unknown
18011 enable_dlopen_self
=unknown
18012 enable_dlopen_self_static
=unknown
18019 lt_cv_dlopen
="load_add_on"
18021 lt_cv_dlopen_self
=yes
18024 mingw
* | pw32
* | cegcc
*)
18025 lt_cv_dlopen
="LoadLibrary"
18030 lt_cv_dlopen
="dlopen"
18035 # if libdl is installed we need to link against it
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18037 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18039 $as_echo_n "(cached) " >&6
18041 ac_check_lib_save_LIBS
=$LIBS
18043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18044 /* end confdefs.h. */
18046 /* Override any GCC internal prototype to avoid an error.
18047 Use char because int might match the return type of a GCC
18048 builtin and then its argument prototype would still apply. */
18061 if ac_fn_c_try_link
"$LINENO"; then :
18062 ac_cv_lib_dl_dlopen
=yes
18064 ac_cv_lib_dl_dlopen
=no
18066 rm -f core conftest.err conftest.
$ac_objext \
18067 conftest
$ac_exeext conftest.
$ac_ext
18068 LIBS
=$ac_check_lib_save_LIBS
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18071 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18072 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18073 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18076 lt_cv_dlopen
="dyld"
18078 lt_cv_dlopen_self
=yes
18085 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18086 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18087 lt_cv_dlopen
="shl_load"
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18090 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18091 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18092 $as_echo_n "(cached) " >&6
18094 ac_check_lib_save_LIBS
=$LIBS
18096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h. */
18099 /* Override any GCC internal prototype to avoid an error.
18100 Use char because int might match the return type of a GCC
18101 builtin and then its argument prototype would still apply. */
18109 return shl_load ();
18114 if ac_fn_c_try_link
"$LINENO"; then :
18115 ac_cv_lib_dld_shl_load
=yes
18117 ac_cv_lib_dld_shl_load
=no
18119 rm -f core conftest.err conftest.
$ac_objext \
18120 conftest
$ac_exeext conftest.
$ac_ext
18121 LIBS
=$ac_check_lib_save_LIBS
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18124 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18125 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18126 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18128 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18129 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18130 lt_cv_dlopen
="dlopen"
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18133 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18134 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18135 $as_echo_n "(cached) " >&6
18137 ac_check_lib_save_LIBS
=$LIBS
18139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18140 /* end confdefs.h. */
18142 /* Override any GCC internal prototype to avoid an error.
18143 Use char because int might match the return type of a GCC
18144 builtin and then its argument prototype would still apply. */
18157 if ac_fn_c_try_link
"$LINENO"; then :
18158 ac_cv_lib_dl_dlopen
=yes
18160 ac_cv_lib_dl_dlopen
=no
18162 rm -f core conftest.err conftest.
$ac_objext \
18163 conftest
$ac_exeext conftest.
$ac_ext
18164 LIBS
=$ac_check_lib_save_LIBS
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18167 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18168 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18169 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18172 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18173 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18174 $as_echo_n "(cached) " >&6
18176 ac_check_lib_save_LIBS
=$LIBS
18177 LIBS
="-lsvld $LIBS"
18178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18181 /* Override any GCC internal prototype to avoid an error.
18182 Use char because int might match the return type of a GCC
18183 builtin and then its argument prototype would still apply. */
18196 if ac_fn_c_try_link
"$LINENO"; then :
18197 ac_cv_lib_svld_dlopen
=yes
18199 ac_cv_lib_svld_dlopen
=no
18201 rm -f core conftest.err conftest.
$ac_objext \
18202 conftest
$ac_exeext conftest.
$ac_ext
18203 LIBS
=$ac_check_lib_save_LIBS
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18206 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18207 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18208 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18211 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18212 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18213 $as_echo_n "(cached) " >&6
18215 ac_check_lib_save_LIBS
=$LIBS
18217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18218 /* end confdefs.h. */
18220 /* Override any GCC internal prototype to avoid an error.
18221 Use char because int might match the return type of a GCC
18222 builtin and then its argument prototype would still apply. */
18230 return dld_link ();
18235 if ac_fn_c_try_link
"$LINENO"; then :
18236 ac_cv_lib_dld_dld_link
=yes
18238 ac_cv_lib_dld_dld_link
=no
18240 rm -f core conftest.err conftest.
$ac_objext \
18241 conftest
$ac_exeext conftest.
$ac_ext
18242 LIBS
=$ac_check_lib_save_LIBS
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18245 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18246 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18247 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18268 if test "x$lt_cv_dlopen" != xno
; then
18274 case $lt_cv_dlopen in
18276 save_CPPFLAGS
="$CPPFLAGS"
18277 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18279 save_LDFLAGS
="$LDFLAGS"
18280 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18283 LIBS
="$lt_cv_dlopen_libs $LIBS"
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18286 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18287 if test "${lt_cv_dlopen_self+set}" = set; then :
18288 $as_echo_n "(cached) " >&6
18290 if test "$cross_compiling" = yes; then :
18291 lt_cv_dlopen_self
=cross
18293 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18294 lt_status
=$lt_dlunknown
18295 cat > conftest.
$ac_ext <<_LT_EOF
18296 #line 18296 "configure"
18297 #include "confdefs.h"
18306 # define LT_DLGLOBAL RTLD_GLOBAL
18309 # define LT_DLGLOBAL DL_GLOBAL
18311 # define LT_DLGLOBAL 0
18315 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18316 find out it does not work in some platform. */
18317 #ifndef LT_DLLAZY_OR_NOW
18319 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18322 # define LT_DLLAZY_OR_NOW DL_LAZY
18325 # define LT_DLLAZY_OR_NOW RTLD_NOW
18328 # define LT_DLLAZY_OR_NOW DL_NOW
18330 # define LT_DLLAZY_OR_NOW 0
18337 /* When -fvisbility=hidden is used, assume the code has been annotated
18338 correspondingly for the symbols needed. */
18339 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18340 void fnord () __attribute__((visibility("default")));
18343 void fnord () { int i=42; }
18346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18347 int status = $lt_dlunknown;
18351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18354 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18355 else puts (dlerror ());
18357 /* dlclose (self); */
18365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18366 (eval $ac_link) 2>&5
18368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18369 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18370 (.
/conftest
; exit; ) >&5 2>/dev
/null
18372 case x
$lt_status in
18373 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18374 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18375 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18378 # compilation failed
18379 lt_cv_dlopen_self
=no
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18387 $as_echo "$lt_cv_dlopen_self" >&6; }
18389 if test "x$lt_cv_dlopen_self" = xyes
; then
18390 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18392 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18393 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18394 $as_echo_n "(cached) " >&6
18396 if test "$cross_compiling" = yes; then :
18397 lt_cv_dlopen_self_static
=cross
18399 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18400 lt_status
=$lt_dlunknown
18401 cat > conftest.
$ac_ext <<_LT_EOF
18402 #line 18402 "configure"
18403 #include "confdefs.h"
18412 # define LT_DLGLOBAL RTLD_GLOBAL
18415 # define LT_DLGLOBAL DL_GLOBAL
18417 # define LT_DLGLOBAL 0
18421 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18422 find out it does not work in some platform. */
18423 #ifndef LT_DLLAZY_OR_NOW
18425 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18428 # define LT_DLLAZY_OR_NOW DL_LAZY
18431 # define LT_DLLAZY_OR_NOW RTLD_NOW
18434 # define LT_DLLAZY_OR_NOW DL_NOW
18436 # define LT_DLLAZY_OR_NOW 0
18443 /* When -fvisbility=hidden is used, assume the code has been annotated
18444 correspondingly for the symbols needed. */
18445 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18446 void fnord () __attribute__((visibility("default")));
18449 void fnord () { int i=42; }
18452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18453 int status = $lt_dlunknown;
18457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18460 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18461 else puts (dlerror ());
18463 /* dlclose (self); */
18471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18472 (eval $ac_link) 2>&5
18474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18475 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18476 (.
/conftest
; exit; ) >&5 2>/dev
/null
18478 case x
$lt_status in
18479 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18480 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18481 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18484 # compilation failed
18485 lt_cv_dlopen_self_static
=no
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18493 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18496 CPPFLAGS
="$save_CPPFLAGS"
18497 LDFLAGS
="$save_LDFLAGS"
18502 case $lt_cv_dlopen_self in
18503 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18504 *) enable_dlopen_self
=unknown
;;
18507 case $lt_cv_dlopen_self_static in
18508 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18509 *) enable_dlopen_self_static
=unknown
;;
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18532 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18533 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18534 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18535 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18537 $as_echo "yes" >&6; }
18539 # FIXME - insert some real tests, host_os isn't really good enough
18542 if test -n "$STRIP" ; then
18543 striplib
="$STRIP -x"
18544 old_striplib
="$STRIP -S"
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18546 $as_echo "yes" >&6; }
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18549 $as_echo "no" >&6; }
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18554 $as_echo "no" >&6; }
18570 # Report which library types will actually be built
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18572 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18574 $as_echo "$can_build_shared" >&6; }
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18577 $as_echo_n "checking whether to build shared libraries... " >&6; }
18578 test "$can_build_shared" = "no" && enable_shared
=no
18580 # On AIX, shared libraries and static libraries use the same namespace, and
18581 # are all built from PIC.
18584 test "$enable_shared" = yes && enable_static
=no
18585 if test -n "$RANLIB"; then
18586 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18587 postinstall_cmds
='$RANLIB $lib'
18592 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18593 test "$enable_shared" = yes && enable_static
=no
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18598 $as_echo "$enable_shared" >&6; }
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18601 $as_echo_n "checking whether to build static libraries... " >&6; }
18602 # Make sure either enable_shared or enable_static is yes.
18603 test "$enable_shared" = yes || enable_static
=yes
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18605 $as_echo "$enable_static" >&6; }
18612 ac_cpp
='$CXXCPP $CPPFLAGS'
18613 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18614 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18615 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18619 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18620 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18621 (test "X$CXX" != "Xg++"))) ; then
18623 ac_cpp
='$CXXCPP $CPPFLAGS'
18624 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18625 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18626 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18628 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18629 if test -z "$CXXCPP"; then
18630 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18631 $as_echo_n "(cached) " >&6
18633 # Double quotes because CXXCPP needs to be expanded
18634 for CXXCPP
in "$CXX -E" "/lib/cpp"
18636 ac_preproc_ok
=false
18637 for ac_cxx_preproc_warn_flag
in '' yes
18639 # Use a header file that comes with gcc, so configuring glibc
18640 # with a fresh cross-compiler works.
18641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18642 # <limits.h> exists even on freestanding compilers.
18643 # On the NeXT, cc -E runs the code through the compiler's parser,
18644 # not just through cpp. "Syntax error" is here to catch this case.
18645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18646 /* end confdefs.h. */
18648 # include <limits.h>
18650 # include <assert.h>
18654 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18657 # Broken: fails on valid input.
18660 rm -f conftest.err conftest.
$ac_ext
18662 # OK, works on sane cases. Now check whether nonexistent headers
18663 # can be detected and how.
18664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18665 /* end confdefs.h. */
18666 #include <ac_nonexistent.h>
18668 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18669 # Broken: success on invalid input.
18672 # Passes both tests.
18676 rm -f conftest.err conftest.
$ac_ext
18679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18680 rm -f conftest.err conftest.
$ac_ext
18681 if $ac_preproc_ok; then :
18686 ac_cv_prog_CXXCPP
=$CXXCPP
18689 CXXCPP
=$ac_cv_prog_CXXCPP
18691 ac_cv_prog_CXXCPP
=$CXXCPP
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18694 $as_echo "$CXXCPP" >&6; }
18695 ac_preproc_ok
=false
18696 for ac_cxx_preproc_warn_flag
in '' yes
18698 # Use a header file that comes with gcc, so configuring glibc
18699 # with a fresh cross-compiler works.
18700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18701 # <limits.h> exists even on freestanding compilers.
18702 # On the NeXT, cc -E runs the code through the compiler's parser,
18703 # not just through cpp. "Syntax error" is here to catch this case.
18704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18705 /* end confdefs.h. */
18707 # include <limits.h>
18709 # include <assert.h>
18713 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18716 # Broken: fails on valid input.
18719 rm -f conftest.err conftest.
$ac_ext
18721 # OK, works on sane cases. Now check whether nonexistent headers
18722 # can be detected and how.
18723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18724 /* end confdefs.h. */
18725 #include <ac_nonexistent.h>
18727 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18728 # Broken: success on invalid input.
18731 # Passes both tests.
18735 rm -f conftest.err conftest.
$ac_ext
18738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18739 rm -f conftest.err conftest.
$ac_ext
18740 if $ac_preproc_ok; then :
18743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18745 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18746 See \`config.log' for more details." "$LINENO" 5; }
18750 ac_cpp
='$CXXCPP $CPPFLAGS'
18751 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18752 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18753 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18756 _lt_caught_CXX_error
=yes
18760 ac_cpp
='$CXXCPP $CPPFLAGS'
18761 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18762 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18763 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18765 archive_cmds_need_lc_CXX
=no
18766 allow_undefined_flag_CXX
=
18767 always_export_symbols_CXX
=no
18768 archive_expsym_cmds_CXX
=
18769 compiler_needs_object_CXX
=no
18770 export_dynamic_flag_spec_CXX
=
18771 hardcode_direct_CXX
=no
18772 hardcode_direct_absolute_CXX
=no
18773 hardcode_libdir_flag_spec_CXX
=
18774 hardcode_libdir_flag_spec_ld_CXX
=
18775 hardcode_libdir_separator_CXX
=
18776 hardcode_minus_L_CXX
=no
18777 hardcode_shlibpath_var_CXX
=unsupported
18778 hardcode_automatic_CXX
=no
18779 inherit_rpath_CXX
=no
18781 module_expsym_cmds_CXX
=
18782 link_all_deplibs_CXX
=unknown
18783 old_archive_cmds_CXX
=$old_archive_cmds
18784 reload_flag_CXX
=$reload_flag
18785 reload_cmds_CXX
=$reload_cmds
18786 no_undefined_flag_CXX
=
18787 whole_archive_flag_spec_CXX
=
18788 enable_shared_with_static_runtimes_CXX
=no
18790 # Source file extension for C++ test sources.
18793 # Object file extension for compiled C++ test sources.
18797 # No sense in running all these tests if we already determined that
18798 # the CXX compiler isn't working. Some variables (like enable_shared)
18799 # are currently assumed to apply to all compilers on this platform,
18800 # and will be corrupted by setting them based on a non-working compiler.
18801 if test "$_lt_caught_CXX_error" != yes; then
18802 # Code to be used in simple compile tests
18803 lt_simple_compile_test_code
="int some_variable = 0;"
18805 # Code to be used in simple link tests
18806 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18808 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18815 # If no C compiler was specified, use CC.
18818 # If no C compiler flags were specified, use CFLAGS.
18819 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18821 # Allow CC to be a program name with arguments.
18825 # save warnings/boilerplate of simple test code
18826 ac_outfile
=conftest.
$ac_objext
18827 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18828 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18829 _lt_compiler_boilerplate
=`cat conftest.err`
18832 ac_outfile
=conftest.
$ac_objext
18833 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18834 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18835 _lt_linker_boilerplate
=`cat conftest.err`
18839 # Allow CC to be a program name with arguments.
18844 lt_save_with_gnu_ld
=$with_gnu_ld
18845 lt_save_path_LD
=$lt_cv_path_LD
18846 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18847 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18849 $as_unset lt_cv_prog_gnu_ld
18851 if test -n "${lt_cv_path_LDCXX+set}"; then
18852 lt_cv_path_LD
=$lt_cv_path_LDCXX
18854 $as_unset lt_cv_path_LD
18856 test -z "${LDCXX+set}" || LD
=$LDCXX
18860 for cc_temp
in $compiler""; do
18862 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18863 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18868 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18871 if test -n "$compiler"; then
18872 # We don't want -fno-exception when compiling C++ code, so set the
18873 # no_builtin_flag separately
18874 if test "$GXX" = yes; then
18875 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18877 lt_prog_compiler_no_builtin_flag_CXX
=
18880 if test "$GXX" = yes; then
18881 # Set up default GNU C++ configuration
18885 # Check whether --with-gnu-ld was given.
18886 if test "${with_gnu_ld+set}" = set; then :
18887 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18893 if test "$GCC" = yes; then
18894 # Check if gcc -print-prog-name=ld gives a path.
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18896 $as_echo_n "checking for ld used by $CC... " >&6; }
18899 # gcc leaves a trailing carriage return which upsets mingw
18900 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18902 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18905 # Accept absolute paths.
18907 re_direlt
='/[^/][^/]*/\.\./'
18908 # Canonicalize the pathname of ld
18909 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18910 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18911 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18913 test -z "$LD" && LD
="$ac_prog"
18916 # If it fails, then pretend we aren't using GCC.
18920 # If it is relative, then search for the first ld in PATH.
18921 with_gnu_ld
=unknown
18924 elif test "$with_gnu_ld" = yes; then
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18926 $as_echo_n "checking for GNU ld... " >&6; }
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18929 $as_echo_n "checking for non-GNU ld... " >&6; }
18931 if test "${lt_cv_path_LD+set}" = set; then :
18932 $as_echo_n "(cached) " >&6
18934 if test -z "$LD"; then
18935 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18936 for ac_dir
in $PATH; do
18938 test -z "$ac_dir" && ac_dir
=.
18939 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18940 lt_cv_path_LD
="$ac_dir/$ac_prog"
18941 # Check to see if the program is GNU ld. I'd rather use --version,
18942 # but apparently some variants of GNU ld only accept -v.
18943 # Break only if it was the GNU/non-GNU ld that we prefer.
18944 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18945 *GNU
* |
*'with BFD'*)
18946 test "$with_gnu_ld" != no
&& break
18949 test "$with_gnu_ld" != yes && break
18956 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18960 LD
="$lt_cv_path_LD"
18961 if test -n "$LD"; then
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18963 $as_echo "$LD" >&6; }
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18966 $as_echo "no" >&6; }
18968 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18970 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18971 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18972 $as_echo_n "(cached) " >&6
18974 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18975 case `$LD -v 2>&1 </dev/null` in
18976 *GNU
* |
*'with BFD'*)
18977 lt_cv_prog_gnu_ld
=yes
18980 lt_cv_prog_gnu_ld
=no
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18985 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18986 with_gnu_ld
=$lt_cv_prog_gnu_ld
18994 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18995 # archiving commands below assume that GNU ld is being used.
18996 if test "$with_gnu_ld" = yes; then
18997 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18998 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'
19000 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19001 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19003 # If archive_cmds runs LD, not CC, wlarc should be empty
19004 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19005 # investigate it a little bit more. (MM)
19008 # ancient GNU ld didn't support --whole-archive et. al.
19009 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19010 $GREP 'no-whole-archive' > /dev
/null
; then
19011 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19013 whole_archive_flag_spec_CXX
=
19019 # A generic and very simple default shared library creation
19020 # command for GNU C++ for the case where it uses the native
19021 # linker, instead of GNU ld. If possible, this setting should
19022 # overridden to take advantage of the native linker features on
19023 # the platform it is being used on.
19024 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19027 # Commands to make compiler produce verbose output that lists
19028 # what "hidden" libraries, object files and flags are used when
19029 # linking a shared library.
19030 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19038 # PORTME: fill in a description of your system's C++ link characteristics
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19040 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19044 # FIXME: insert proper C++ library support
19048 if test "$host_cpu" = ia64
; then
19049 # On IA64, the linker does run time linking by default, so we don't
19050 # have to do anything special.
19051 aix_use_runtimelinking
=no
19052 exp_sym_flag
='-Bexport'
19055 aix_use_runtimelinking
=no
19057 # Test if we are trying to use run time linking or normal
19058 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19059 # need to do runtime linking.
19060 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19061 for ld_flag
in $LDFLAGS; do
19064 aix_use_runtimelinking
=yes
19072 exp_sym_flag
='-bexport'
19073 no_entry_flag
='-bnoentry'
19076 # When large executables or shared objects are built, AIX ld can
19077 # have problems creating the table of contents. If linking a library
19078 # or program results in "error TOC overflow" add -mminimal-toc to
19079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19082 archive_cmds_CXX
=''
19083 hardcode_direct_CXX
=yes
19084 hardcode_direct_absolute_CXX
=yes
19085 hardcode_libdir_separator_CXX
=':'
19086 link_all_deplibs_CXX
=yes
19087 file_list_spec_CXX
='${wl}-f,'
19089 if test "$GXX" = yes; then
19090 case $host_os in aix4.
[012]|aix4.
[012].
*)
19091 # We only want to do this on AIX 4.2 and lower, the check
19092 # below for broken collect2 doesn't work under 4.3+
19093 collect2name
=`${CC} -print-prog-name=collect2`
19094 if test -f "$collect2name" &&
19095 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19097 # We have reworked collect2
19100 # We have old collect2
19101 hardcode_direct_CXX
=unsupported
19102 # It fails to find uninstalled libraries when the uninstalled
19103 # path is not listed in the libpath. Setting hardcode_minus_L
19104 # to unsupported forces relinking
19105 hardcode_minus_L_CXX
=yes
19106 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19107 hardcode_libdir_separator_CXX
=
19110 shared_flag
='-shared'
19111 if test "$aix_use_runtimelinking" = yes; then
19112 shared_flag
="$shared_flag "'${wl}-G'
19116 if test "$host_cpu" = ia64
; then
19117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19118 # chokes on -Wl,-G. The following line is correct:
19121 if test "$aix_use_runtimelinking" = yes; then
19122 shared_flag
='${wl}-G'
19124 shared_flag
='${wl}-bM:SRE'
19129 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19130 # It seems that -bexpall does not export symbols beginning with
19131 # underscore (_), so it is better to generate a list of symbols to
19133 always_export_symbols_CXX
=yes
19134 if test "$aix_use_runtimelinking" = yes; then
19135 # Warning - without using the other runtime loading flags (-brtl),
19136 # -berok will link without error, but may produce a broken library.
19137 allow_undefined_flag_CXX
='-berok'
19138 # Determine the default libpath from the value encoded in an empty
19140 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19141 /* end confdefs.h. */
19151 if ac_fn_cxx_try_link
"$LINENO"; then :
19153 lt_aix_libpath_sed
='
19154 /Import File Strings/,/^$/ {
19160 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19161 # Check for a 64-bit object if we didn't find anything.
19162 if test -z "$aix_libpath"; then
19163 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19166 rm -f core conftest.err conftest.
$ac_objext \
19167 conftest
$ac_exeext conftest.
$ac_ext
19168 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19170 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19172 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"
19174 if test "$host_cpu" = ia64
; then
19175 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19176 allow_undefined_flag_CXX
="-z nodefs"
19177 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"
19179 # Determine the default libpath from the value encoded in an
19180 # empty executable.
19181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19182 /* end confdefs.h. */
19192 if ac_fn_cxx_try_link
"$LINENO"; then :
19194 lt_aix_libpath_sed
='
19195 /Import File Strings/,/^$/ {
19201 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19202 # Check for a 64-bit object if we didn't find anything.
19203 if test -z "$aix_libpath"; then
19204 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19207 rm -f core conftest.err conftest.
$ac_objext \
19208 conftest
$ac_exeext conftest.
$ac_ext
19209 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19211 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19212 # Warning - without using the other run time loading flags,
19213 # -berok will link without error, but may produce a broken library.
19214 no_undefined_flag_CXX
=' ${wl}-bernotok'
19215 allow_undefined_flag_CXX
=' ${wl}-berok'
19216 if test "$with_gnu_ld" = yes; then
19217 # We only use this code for GNU lds that support --whole-archive.
19218 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19220 # Exported symbols can be pulled into shared objects from archives
19221 whole_archive_flag_spec_CXX
='$convenience'
19223 archive_cmds_need_lc_CXX
=yes
19224 # This is similar to how AIX traditionally builds its shared
19226 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'
19232 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19233 allow_undefined_flag_CXX
=unsupported
19234 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19235 # support --undefined. This deserves some investigation. FIXME
19236 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19243 case $cc_basename in
19245 # FIXME: insert proper C++ library support
19251 cygwin
* | mingw
* | pw32
* | cegcc
*)
19252 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19253 # as there is no search path for DLLs.
19254 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19255 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19256 allow_undefined_flag_CXX
=unsupported
19257 always_export_symbols_CXX
=no
19258 enable_shared_with_static_runtimes_CXX
=yes
19260 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19261 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'
19262 # If the export-symbols file already is a .def file (1st line
19263 # is EXPORTS), use it as is; otherwise, prepend...
19264 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19265 cp $export_symbols $output_objdir/$soname.def;
19267 echo EXPORTS > $output_objdir/$soname.def;
19268 cat $export_symbols >> $output_objdir/$soname.def;
19270 $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'
19275 darwin
* | rhapsody
*)
19278 archive_cmds_need_lc_CXX
=no
19279 hardcode_direct_CXX
=no
19280 hardcode_automatic_CXX
=yes
19281 hardcode_shlibpath_var_CXX
=unsupported
19282 if test "$lt_cv_ld_force_load" = "yes"; then
19283 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\"`'
19285 whole_archive_flag_spec_CXX
=''
19287 link_all_deplibs_CXX
=yes
19288 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19289 case $cc_basename in
19290 ifort
*) _lt_dar_can_shared
=yes ;;
19291 *) _lt_dar_can_shared
=$GCC ;;
19293 if test "$_lt_dar_can_shared" = "yes"; then
19294 output_verbose_link_cmd
=func_echo_all
19295 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}"
19296 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19297 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}"
19298 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}"
19299 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19300 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}"
19301 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}"
19311 case $cc_basename in
19313 # FIXME: insert proper C++ library support
19317 # Green Hills C++ Compiler
19318 # FIXME: insert proper C++ library support
19322 # FIXME: insert proper C++ library support
19329 # C++ shared libraries reported to be fairly broken before
19335 archive_cmds_need_lc_CXX
=no
19338 freebsd
* | dragonfly
*)
19339 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19348 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19349 link_all_deplibs_CXX
=yes
19353 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19354 hardcode_libdir_separator_CXX
=:
19355 export_dynamic_flag_spec_CXX
='${wl}-E'
19356 hardcode_direct_CXX
=yes
19357 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19358 # but as the default
19359 # location of the library.
19361 case $cc_basename in
19363 # FIXME: insert proper C++ library support
19367 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'
19368 # Commands to make compiler produce verbose output that lists
19369 # what "hidden" libraries, object files and flags are used when
19370 # linking a shared library.
19372 # There doesn't appear to be a way to prevent this compiler from
19373 # explicitly linking system object files so we need to strip them
19374 # from the output so that they don't get included in the library
19376 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"'
19379 if test "$GXX" = yes; then
19380 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'
19382 # FIXME: insert proper C++ library support
19390 if test $with_gnu_ld = no
; then
19391 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19392 hardcode_libdir_separator_CXX
=:
19398 export_dynamic_flag_spec_CXX
='${wl}-E'
19404 hardcode_direct_CXX
=no
19405 hardcode_shlibpath_var_CXX
=no
19408 hardcode_direct_CXX
=yes
19409 hardcode_direct_absolute_CXX
=yes
19410 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19411 # but as the default
19412 # location of the library.
19416 case $cc_basename in
19418 # FIXME: insert proper C++ library support
19424 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19427 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19430 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19433 # Commands to make compiler produce verbose output that lists
19434 # what "hidden" libraries, object files and flags are used when
19435 # linking a shared library.
19437 # There doesn't appear to be a way to prevent this compiler from
19438 # explicitly linking system object files so we need to strip them
19439 # from the output so that they don't get included in the library
19441 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"'
19444 if test "$GXX" = yes; then
19445 if test $with_gnu_ld = no
; then
19448 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19451 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19454 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'
19459 # FIXME: insert proper C++ library support
19467 hardcode_direct_CXX
=no
19468 hardcode_shlibpath_var_CXX
=no
19469 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19470 export_dynamic_flag_spec_CXX
='${wl}-E'
19471 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19472 # Instead, shared libraries are loaded at an image base (0x10000000 by
19473 # default) and relocated if they conflict, which is a slow very memory
19474 # consuming and fragmenting process. To avoid this, we pick a random,
19475 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19476 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19477 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'
19478 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'
19481 case $cc_basename in
19484 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'
19486 # Archives containing C++ object files must be created using
19487 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19488 # necessary to make sure instantiated templates are included
19490 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19493 if test "$GXX" = yes; then
19494 if test "$with_gnu_ld" = no
; then
19495 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'
19497 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'
19500 link_all_deplibs_CXX
=yes
19503 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19504 hardcode_libdir_separator_CXX
=:
19505 inherit_rpath_CXX
=yes
19508 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19509 case $cc_basename in
19511 # Kuck and Associates, Inc. (KAI) C++ Compiler
19513 # KCC will only create a shared library if the output file
19514 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19515 # to its proper name (with version) after linking.
19516 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'
19517 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'
19518 # Commands to make compiler produce verbose output that lists
19519 # what "hidden" libraries, object files and flags are used when
19520 # linking a shared library.
19522 # There doesn't appear to be a way to prevent this compiler from
19523 # explicitly linking system object files so we need to strip them
19524 # from the output so that they don't get included in the library
19526 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"'
19528 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19529 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19531 # Archives containing C++ object files must be created using
19532 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19533 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19538 # version 8.0 and above of icpc choke on multiply defined symbols
19539 # if we add $predep_objects and $postdep_objects, however 7.1 and
19540 # earlier do not add the objects themselves.
19541 case `$CC -V 2>&1` in
19543 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19544 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'
19546 *) # Version 8.0 or newer
19549 ia64
*) tmp_idyn
=' -i_dynamic';;
19551 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19552 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'
19555 archive_cmds_need_lc_CXX
=no
19556 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19557 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19558 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19561 # Portland Group C++ compiler
19563 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19564 prelink_cmds_CXX
='tpldir=Template.dir~
19566 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19567 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19568 old_archive_cmds_CXX
='tpldir=Template.dir~
19570 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19571 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19573 archive_cmds_CXX
='tpldir=Template.dir~
19575 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19576 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19577 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19579 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19580 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19582 *) # Version 6 and above use weak symbols
19583 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19584 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'
19588 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19589 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19590 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'
19594 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19595 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'
19597 runpath_var
=LD_RUN_PATH
19598 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19599 hardcode_libdir_separator_CXX
=:
19601 # Commands to make compiler produce verbose output that lists
19602 # what "hidden" libraries, object files and flags are used when
19603 # linking a shared library.
19605 # There doesn't appear to be a way to prevent this compiler from
19606 # explicitly linking system object files so we need to strip them
19607 # from the output so that they don't get included in the library
19609 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'
19611 xl
* | mpixl
* | bgxl
*)
19612 # IBM XL 8.0 on PPC, with GNU ld
19613 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19614 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19615 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19616 if test "x$supports_anon_versioning" = xyes
; then
19617 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19618 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19619 echo "local: *; };" >> $output_objdir/$libname.ver~
19620 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19624 case `$CC -V 2>&1 | sed 5q` in
19627 no_undefined_flag_CXX
=' -zdefs'
19628 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19629 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'
19630 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19631 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'
19632 compiler_needs_object_CXX
=yes
19634 # Not sure whether something based on
19635 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19637 output_verbose_link_cmd
='func_echo_all'
19639 # Archives containing C++ object files must be created using
19640 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19641 # necessary to make sure instantiated templates are included
19643 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19651 # FIXME: insert proper C++ library support
19656 # FIXME: insert proper C++ library support
19661 case $cc_basename in
19663 # FIXME: insert proper C++ library support
19667 # FIXME: insert proper C++ library support
19674 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19675 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19677 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19678 hardcode_direct_CXX
=yes
19679 hardcode_shlibpath_var_CXX
=no
19681 # Workaround some broken pre-1.5 toolchains
19682 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19690 # C++ shared libraries are fairly broken
19695 if test -f /usr
/libexec
/ld.so
; then
19696 hardcode_direct_CXX
=yes
19697 hardcode_shlibpath_var_CXX
=no
19698 hardcode_direct_absolute_CXX
=yes
19699 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19700 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19702 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19703 export_dynamic_flag_spec_CXX
='${wl}-E'
19704 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19706 output_verbose_link_cmd
=func_echo_all
19712 osf3
* | osf4
* | osf5
*)
19713 case $cc_basename in
19715 # Kuck and Associates, Inc. (KAI) C++ Compiler
19717 # KCC will only create a shared library if the output file
19718 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19719 # to its proper name (with version) after linking.
19720 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'
19722 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19723 hardcode_libdir_separator_CXX
=:
19725 # Archives containing C++ object files must be created using
19726 # the KAI C++ compiler.
19728 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19729 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19733 # Rational C++ 2.4.1
19734 # FIXME: insert proper C++ library support
19740 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19741 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'
19742 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19745 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19746 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'
19747 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19748 echo "-hidden">> $lib.exp~
19749 $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~
19751 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19755 hardcode_libdir_separator_CXX
=:
19757 # Commands to make compiler produce verbose output that lists
19758 # what "hidden" libraries, object files and flags are used when
19759 # linking a shared library.
19761 # There doesn't appear to be a way to prevent this compiler from
19762 # explicitly linking system object files so we need to strip them
19763 # from the output so that they don't get included in the library
19765 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"'
19768 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19769 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19772 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'
19775 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'
19779 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19780 hardcode_libdir_separator_CXX
=:
19782 # Commands to make compiler produce verbose output that lists
19783 # what "hidden" libraries, object files and flags are used when
19784 # linking a shared library.
19785 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19788 # FIXME: insert proper C++ library support
19796 # FIXME: insert proper C++ library support
19801 case $cc_basename in
19804 # FIXME: insert proper C++ library support
19809 # FIXME: insert proper C++ library support
19813 # FIXME: insert proper C++ library support
19820 case $cc_basename in
19822 # Sun C++ 4.2, 5.x and Centerline C++
19823 archive_cmds_need_lc_CXX
=yes
19824 no_undefined_flag_CXX
=' -zdefs'
19825 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19826 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19827 $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'
19829 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19830 hardcode_shlibpath_var_CXX
=no
19832 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19834 # The compiler driver will combine and reorder linker options,
19835 # but understands `-z linker_flag'.
19836 # Supported since Solaris 2.6 (maybe 2.5.1?)
19837 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19840 link_all_deplibs_CXX
=yes
19842 output_verbose_link_cmd
='func_echo_all'
19844 # Archives containing C++ object files must be created using
19845 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19846 # necessary to make sure instantiated templates are included
19848 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19851 # Green Hills C++ Compiler
19852 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19854 # The C++ compiler must be used to create the archive.
19855 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19858 # GNU C++ compiler with Solaris linker
19859 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19860 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19861 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19862 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19863 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19864 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19866 # Commands to make compiler produce verbose output that lists
19867 # what "hidden" libraries, object files and flags are used when
19868 # linking a shared library.
19869 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19871 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19873 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19874 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19875 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19877 # Commands to make compiler produce verbose output that lists
19878 # what "hidden" libraries, object files and flags are used when
19879 # linking a shared library.
19880 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19883 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19885 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19887 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19895 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19896 no_undefined_flag_CXX
='${wl}-z,text'
19897 archive_cmds_need_lc_CXX
=no
19898 hardcode_shlibpath_var_CXX
=no
19899 runpath_var
='LD_RUN_PATH'
19901 case $cc_basename in
19903 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19904 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19907 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19908 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19913 sysv5
* | sco3.2v5
* | sco5v6
*)
19914 # Note: We can NOT use -z defs as we might desire, because we do not
19915 # link with -lc, and that would cause any symbols used from libc to
19916 # always be unresolved, which means just about no library would
19917 # ever link correctly. If we're not using GNU ld we use -z text
19918 # though, which does catch some bad symbols but isn't as heavy-handed
19920 no_undefined_flag_CXX
='${wl}-z,text'
19921 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19922 archive_cmds_need_lc_CXX
=no
19923 hardcode_shlibpath_var_CXX
=no
19924 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19925 hardcode_libdir_separator_CXX
=':'
19926 link_all_deplibs_CXX
=yes
19927 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19928 runpath_var
='LD_RUN_PATH'
19930 case $cc_basename in
19932 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19933 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19934 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19935 '"$old_archive_cmds_CXX"
19936 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19937 '"$reload_cmds_CXX"
19940 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19941 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19947 case $cc_basename in
19949 # NonStop-UX NCC 3.20
19950 # FIXME: insert proper C++ library support
19954 # FIXME: insert proper C++ library support
19961 # FIXME: insert proper C++ library support
19966 # FIXME: insert proper C++ library support
19971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19972 $as_echo "$ld_shlibs_CXX" >&6; }
19973 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19979 ## There is no encapsulation within the following macros, do not change
19980 ## the running order or otherwise move them around unless you know exactly
19981 ## what you are doing...
19982 # Dependencies to place before and after the object being linked:
19983 predep_objects_CXX
=
19984 postdep_objects_CXX
=
19987 compiler_lib_search_path_CXX
=
19989 cat > conftest.
$ac_ext <<_LT_EOF
19993 Foo (void) { a = 0; }
19999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20000 (eval $ac_compile) 2>&5
20002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20003 test $ac_status = 0; }; then
20004 # Parse the compiler output and extract the necessary
20005 # objects, libraries and library flags.
20007 # Sentinel used to keep track of whether or not we are before
20008 # the conftest object file.
20009 pre_test_object_deps_done
=no
20011 for p
in `eval "$output_verbose_link_cmd"`; do
20015 # Some compilers place space between "-{L,R}" and the path.
20016 # Remove the space.
20017 if test $p = "-L" ||
20018 test $p = "-R"; then
20025 if test "$pre_test_object_deps_done" = no
; then
20028 # Internal compiler library paths should come after those
20029 # provided the user. The postdeps already come after the
20030 # user supplied libs so there is no need to process them.
20031 if test -z "$compiler_lib_search_path_CXX"; then
20032 compiler_lib_search_path_CXX
="${prev}${p}"
20034 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20037 # The "-l" case would never come before the object being
20038 # linked, so don't bother handling this case.
20041 if test -z "$postdeps_CXX"; then
20042 postdeps_CXX
="${prev}${p}"
20044 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20050 # This assumes that the test object file only shows up
20051 # once in the compiler output.
20052 if test "$p" = "conftest.$objext"; then
20053 pre_test_object_deps_done
=yes
20057 if test "$pre_test_object_deps_done" = no
; then
20058 if test -z "$predep_objects_CXX"; then
20059 predep_objects_CXX
="$p"
20061 predep_objects_CXX
="$predep_objects_CXX $p"
20064 if test -z "$postdep_objects_CXX"; then
20065 postdep_objects_CXX
="$p"
20067 postdep_objects_CXX
="$postdep_objects_CXX $p"
20072 *) ;; # Ignore the rest.
20080 echo "libtool.m4: error: problem compiling CXX test program"
20083 $RM -f confest.
$objext
20085 # PORTME: override above test on systems where it is broken
20088 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20089 # hack all around it, let's just trust "g++" to DTRT.
20090 predep_objects_CXX
=
20091 postdep_objects_CXX
=
20096 case `$CC -V 2>&1 | sed 5q` in
20100 # The more standards-conforming stlport4 library is
20101 # incompatible with the Cstd library. Avoid specifying
20102 # it if it's in CXXFLAGS. Ignore libCrun as
20103 # -library=stlport4 depends on it.
20104 case " $CXX $CXXFLAGS " in
20105 *" -library=stlport4 "*)
20106 solaris_use_stlport4
=yes
20110 if test "$solaris_use_stlport4" != yes; then
20111 postdeps_CXX
='-library=Cstd -library=Crun'
20118 case $cc_basename in
20120 # The more standards-conforming stlport4 library is
20121 # incompatible with the Cstd library. Avoid specifying
20122 # it if it's in CXXFLAGS. Ignore libCrun as
20123 # -library=stlport4 depends on it.
20124 case " $CXX $CXXFLAGS " in
20125 *" -library=stlport4 "*)
20126 solaris_use_stlport4
=yes
20130 # Adding this requires a known-good setup of shared libraries for
20131 # Sun compiler versions before 5.6, else PIC objects from an old
20132 # archive will be linked into the output, leading to subtle bugs.
20133 if test "$solaris_use_stlport4" != yes; then
20134 postdeps_CXX
='-library=Cstd -library=Crun'
20142 case " $postdeps_CXX " in
20143 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20145 compiler_lib_search_dirs_CXX
=
20146 if test -n "${compiler_lib_search_path_CXX}"; then
20147 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20180 lt_prog_compiler_wl_CXX
=
20181 lt_prog_compiler_pic_CXX
=
20182 lt_prog_compiler_static_CXX
=
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20185 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20187 # C++ specific cases for pic, static, wl, etc.
20188 if test "$GXX" = yes; then
20189 lt_prog_compiler_wl_CXX
='-Wl,'
20190 lt_prog_compiler_static_CXX
='-static'
20194 # All AIX code is PIC.
20195 if test "$host_cpu" = ia64
; then
20196 # AIX 5 now supports IA64 processor
20197 lt_prog_compiler_static_CXX
='-Bstatic'
20199 lt_prog_compiler_pic_CXX
='-fPIC'
20205 # see comment about AmigaOS4 .so support
20206 lt_prog_compiler_pic_CXX
='-fPIC'
20209 # FIXME: we need at least 68020 code to build shared libraries, but
20210 # adding the `-m68020' flag to GCC prevents building anything better,
20212 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20217 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20218 # PIC is the default for these OSes.
20220 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20221 # This hack is so that the source file can tell whether it is being
20222 # built for inclusion in a dll (and should export symbols for example).
20223 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20224 # (--disable-auto-import) libraries
20225 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20227 darwin
* | rhapsody
*)
20228 # PIC is the default on this platform
20229 # Common symbols not allowed in MH_DYLIB files
20230 lt_prog_compiler_pic_CXX
='-fno-common'
20233 # DJGPP does not support shared libraries at all
20234 lt_prog_compiler_pic_CXX
=
20237 # PIC is the default for Haiku.
20238 # The "-static" flag exists, but is broken.
20239 lt_prog_compiler_static_CXX
=
20242 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20243 # Instead, we relocate shared libraries at runtime.
20246 if test -d /usr
/nec
; then
20247 lt_prog_compiler_pic_CXX
=-Kconform_pic
20251 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20252 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20253 # sets the default TLS model and affects inlining.
20258 lt_prog_compiler_pic_CXX
='-fPIC'
20263 # QNX uses GNU C++, but need to define -shared option too, otherwise
20264 # it will coredump.
20265 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20268 lt_prog_compiler_pic_CXX
='-fPIC'
20274 # All AIX code is PIC.
20275 if test "$host_cpu" = ia64
; then
20276 # AIX 5 now supports IA64 processor
20277 lt_prog_compiler_static_CXX
='-Bstatic'
20279 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20283 case $cc_basename in
20285 # Green Hills C++ Compiler
20286 # _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"
20291 case $cc_basename in
20293 lt_prog_compiler_pic_CXX
='-KPIC'
20296 # Green Hills C++ Compiler
20297 lt_prog_compiler_pic_CXX
='-pic'
20303 freebsd
* | dragonfly
*)
20304 # FreeBSD uses GNU C++
20306 hpux9
* | hpux10
* | hpux11
*)
20307 case $cc_basename in
20309 lt_prog_compiler_wl_CXX
='-Wl,'
20310 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20311 if test "$host_cpu" != ia64
; then
20312 lt_prog_compiler_pic_CXX
='+Z'
20316 lt_prog_compiler_wl_CXX
='-Wl,'
20317 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20323 lt_prog_compiler_pic_CXX
='+Z'
20332 # This is c89, which is MS Visual C++ (no shared libs)
20333 # Anyone wants to do a port?
20335 irix5
* | irix6
* | nonstopux
*)
20336 case $cc_basename in
20338 lt_prog_compiler_wl_CXX
='-Wl,'
20339 lt_prog_compiler_static_CXX
='-non_shared'
20340 # CC pic flag -KPIC is the default.
20346 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20347 case $cc_basename in
20350 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20351 lt_prog_compiler_pic_CXX
='-fPIC'
20354 # old Intel C++ for x86_64 which still supported -KPIC.
20355 lt_prog_compiler_wl_CXX
='-Wl,'
20356 lt_prog_compiler_pic_CXX
='-KPIC'
20357 lt_prog_compiler_static_CXX
='-static'
20360 # Intel C++, used to be incompatible with GCC.
20361 # ICC 10 doesn't accept -KPIC any more.
20362 lt_prog_compiler_wl_CXX
='-Wl,'
20363 lt_prog_compiler_pic_CXX
='-fPIC'
20364 lt_prog_compiler_static_CXX
='-static'
20367 # Portland Group C++ compiler
20368 lt_prog_compiler_wl_CXX
='-Wl,'
20369 lt_prog_compiler_pic_CXX
='-fpic'
20370 lt_prog_compiler_static_CXX
='-Bstatic'
20374 # Make sure the PIC flag is empty. It appears that all Alpha
20375 # Linux and Compaq Tru64 Unix objects are PIC.
20376 lt_prog_compiler_pic_CXX
=
20377 lt_prog_compiler_static_CXX
='-non_shared'
20379 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20380 # IBM XL 8.0, 9.0 on PPC and BlueGene
20381 lt_prog_compiler_wl_CXX
='-Wl,'
20382 lt_prog_compiler_pic_CXX
='-qpic'
20383 lt_prog_compiler_static_CXX
='-qstaticlink'
20386 case `$CC -V 2>&1 | sed 5q` in
20389 lt_prog_compiler_pic_CXX
='-KPIC'
20390 lt_prog_compiler_static_CXX
='-Bstatic'
20391 lt_prog_compiler_wl_CXX
='-Qoption ld '
20402 case $cc_basename in
20404 lt_prog_compiler_pic_CXX
='-W c,exportall'
20413 # QNX uses GNU C++, but need to define -shared option too, otherwise
20414 # it will coredump.
20415 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20417 osf3
* | osf4
* | osf5
*)
20418 case $cc_basename in
20420 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20423 # Rational C++ 2.4.1
20424 lt_prog_compiler_pic_CXX
='-pic'
20427 # Digital/Compaq C++
20428 lt_prog_compiler_wl_CXX
='-Wl,'
20429 # Make sure the PIC flag is empty. It appears that all Alpha
20430 # Linux and Compaq Tru64 Unix objects are PIC.
20431 lt_prog_compiler_pic_CXX
=
20432 lt_prog_compiler_static_CXX
='-non_shared'
20441 case $cc_basename in
20443 # Sun C++ 4.2, 5.x and Centerline C++
20444 lt_prog_compiler_pic_CXX
='-KPIC'
20445 lt_prog_compiler_static_CXX
='-Bstatic'
20446 lt_prog_compiler_wl_CXX
='-Qoption ld '
20449 # Green Hills C++ Compiler
20450 lt_prog_compiler_pic_CXX
='-PIC'
20457 case $cc_basename in
20460 lt_prog_compiler_pic_CXX
='-pic'
20461 lt_prog_compiler_static_CXX
='-Bstatic'
20465 lt_prog_compiler_pic_CXX
='-pic'
20471 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20472 case $cc_basename in
20474 lt_prog_compiler_wl_CXX
='-Wl,'
20475 lt_prog_compiler_pic_CXX
='-KPIC'
20476 lt_prog_compiler_static_CXX
='-Bstatic'
20481 case $cc_basename in
20483 # NonStop-UX NCC 3.20
20484 lt_prog_compiler_pic_CXX
='-KPIC'
20493 lt_prog_compiler_can_build_shared_CXX
=no
20499 # For platforms which do not support PIC, -DPIC is meaningless:
20501 lt_prog_compiler_pic_CXX
=
20504 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20508 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20513 # Check to make sure the PIC flag actually works.
20515 if test -n "$lt_prog_compiler_pic_CXX"; then
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20517 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20518 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20519 $as_echo_n "(cached) " >&6
20521 lt_cv_prog_compiler_pic_works_CXX
=no
20522 ac_outfile
=conftest.
$ac_objext
20523 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20524 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20525 # Insert the option either (1) after the last *FLAGS variable, or
20526 # (2) before a word containing "conftest.", or (3) at the end.
20527 # Note that $ac_compile itself does not contain backslashes and begins
20528 # with a dollar sign (not a hyphen), so the echo should work correctly.
20529 # The option is referenced via a variable to avoid confusing sed.
20530 lt_compile
=`echo "$ac_compile" | $SED \
20531 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20532 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20533 -e 's:$: $lt_compiler_flag:'`
20534 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20535 (eval "$lt_compile" 2>conftest.err
)
20537 cat conftest.err
>&5
20538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20539 if (exit $ac_status) && test -s "$ac_outfile"; then
20540 # The compiler can only warn and ignore the option if not recognized
20541 # So say no if there are warnings other than the usual output.
20542 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20543 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20544 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20545 lt_cv_prog_compiler_pic_works_CXX
=yes
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20552 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20554 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20555 case $lt_prog_compiler_pic_CXX in
20557 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20560 lt_prog_compiler_pic_CXX
=
20561 lt_prog_compiler_can_build_shared_CXX
=no
20569 # Check to make sure the static flag actually works.
20571 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20573 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20574 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20575 $as_echo_n "(cached) " >&6
20577 lt_cv_prog_compiler_static_works_CXX
=no
20578 save_LDFLAGS
="$LDFLAGS"
20579 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20580 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20581 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20582 # The linker can only warn and ignore the option if not recognized
20583 # So say no if there are warnings
20584 if test -s conftest.err
; then
20585 # Append any errors to the config.log.
20586 cat conftest.err
1>&5
20587 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20588 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20589 if diff conftest.exp conftest.er2
>/dev
/null
; then
20590 lt_cv_prog_compiler_static_works_CXX
=yes
20593 lt_cv_prog_compiler_static_works_CXX
=yes
20597 LDFLAGS
="$save_LDFLAGS"
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20601 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20603 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20606 lt_prog_compiler_static_CXX
=
20612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20613 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20614 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20615 $as_echo_n "(cached) " >&6
20617 lt_cv_prog_compiler_c_o_CXX
=no
20618 $RM -r conftest
2>/dev
/null
20622 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20624 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20625 # Insert the option either (1) after the last *FLAGS variable, or
20626 # (2) before a word containing "conftest.", or (3) at the end.
20627 # Note that $ac_compile itself does not contain backslashes and begins
20628 # with a dollar sign (not a hyphen), so the echo should work correctly.
20629 lt_compile
=`echo "$ac_compile" | $SED \
20630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20632 -e 's:$: $lt_compiler_flag:'`
20633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20634 (eval "$lt_compile" 2>out
/conftest.err
)
20636 cat out
/conftest.err
>&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20640 # The compiler can only warn and ignore the option if not recognized
20641 # So say no if there are warnings
20642 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20643 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20644 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20645 lt_cv_prog_compiler_c_o_CXX
=yes
20650 # SGI C++ compiler will create directory out/ii_files/ for
20651 # template instantiation
20652 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20653 $RM out
/* && rmdir out
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20660 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20665 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20666 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20667 $as_echo_n "(cached) " >&6
20669 lt_cv_prog_compiler_c_o_CXX
=no
20670 $RM -r conftest
2>/dev
/null
20674 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20676 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20677 # Insert the option either (1) after the last *FLAGS variable, or
20678 # (2) before a word containing "conftest.", or (3) at the end.
20679 # Note that $ac_compile itself does not contain backslashes and begins
20680 # with a dollar sign (not a hyphen), so the echo should work correctly.
20681 lt_compile
=`echo "$ac_compile" | $SED \
20682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20684 -e 's:$: $lt_compiler_flag:'`
20685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20686 (eval "$lt_compile" 2>out
/conftest.err
)
20688 cat out
/conftest.err
>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20692 # The compiler can only warn and ignore the option if not recognized
20693 # So say no if there are warnings
20694 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20695 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20696 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20697 lt_cv_prog_compiler_c_o_CXX
=yes
20702 # SGI C++ compiler will create directory out/ii_files/ for
20703 # template instantiation
20704 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20705 $RM out
/* && rmdir out
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20712 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20717 hard_links
="nottested"
20718 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20719 # do not overwrite the value of need_locks provided by the user
20720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20721 $as_echo_n "checking if we can lock with hard links... " >&6; }
20724 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20726 ln conftest.a conftest.b
2>&5 || hard_links
=no
20727 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20729 $as_echo "$hard_links" >&6; }
20730 if test "$hard_links" = no
; then
20731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20732 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20742 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20744 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20747 # If we're using GNU nm, then we don't want the "-C" option.
20748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20749 # Also, AIX nm treats weak defined symbols like other global defined
20750 # symbols, whereas GNU nm marks them as "W".
20751 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20752 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'
20754 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20758 export_symbols_cmds_CXX
="$ltdll_cmds"
20760 cygwin
* | mingw
* | cegcc
*)
20761 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'
20764 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20767 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20770 $as_echo "$ld_shlibs_CXX" >&6; }
20771 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20773 with_gnu_ld_CXX
=$with_gnu_ld
20781 # Do we need to explicitly link libc?
20783 case "x$archive_cmds_need_lc_CXX" in
20785 # Assume -lc should be added
20786 archive_cmds_need_lc_CXX
=yes
20788 if test "$enable_shared" = yes && test "$GCC" = yes; then
20789 case $archive_cmds_CXX in
20791 # FIXME: we may have to deal with multi-command sequences.
20794 # Test whether the compiler implicitly links with -lc since on some
20795 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20796 # to ld, don't add -lc before -lgcc.
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20798 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20799 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20800 $as_echo_n "(cached) " >&6
20803 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20806 (eval $ac_compile) 2>&5
20808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20809 test $ac_status = 0; } 2>conftest.err
; then
20812 libobjs
=conftest.
$ac_objext
20814 wl
=$lt_prog_compiler_wl_CXX
20815 pic_flag
=$lt_prog_compiler_pic_CXX
20821 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20822 allow_undefined_flag_CXX
=
20823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20824 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20827 test $ac_status = 0; }
20829 lt_cv_archive_cmds_need_lc_CXX
=no
20831 lt_cv_archive_cmds_need_lc_CXX
=yes
20833 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20835 cat conftest.err
1>&5
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20841 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20842 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20913 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20915 library_names_spec
=
20916 libname_spec
='lib$name'
20920 postuninstall_cmds
=
20924 shlibpath_overrides_runpath
=unknown
20926 dynamic_linker
="$host_os ld.so"
20927 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20928 need_lib_prefix
=unknown
20929 hardcode_into_libs
=no
20931 # when you set need_version to no, make sure it does not cause -set_version
20932 # flags to be left without arguments
20933 need_version
=unknown
20938 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20939 shlibpath_var
=LIBPATH
20941 # AIX 3 has no versioning support, so we append a major version to the name.
20942 soname_spec
='${libname}${release}${shared_ext}$major'
20949 hardcode_into_libs
=yes
20950 if test "$host_cpu" = ia64
; then
20951 # AIX 5 supports IA64
20952 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20953 shlibpath_var
=LD_LIBRARY_PATH
20955 # With GCC up to 2.95.x, collect2 would create an import file
20956 # for dependence libraries. The import file would start with
20957 # the line `#! .'. This would cause the generated library to
20958 # depend on `.', always an invalid library. This was fixed in
20959 # development snapshots of GCC prior to 3.0.
20961 aix4 | aix4.
[01] | aix4.
[01].
*)
20962 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20964 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20967 can_build_shared
=no
20971 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20972 # soname into executable. Probably we can add versioning support to
20973 # collect2, so additional links can be useful in future.
20974 if test "$aix_use_runtimelinking" = yes; then
20975 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20976 # instead of lib<name>.a to let people know that these are not
20977 # typical AIX shared libraries.
20978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20980 # We preserve .a as extension for shared libraries through AIX4.2
20981 # and later when we are not doing run time linking.
20982 library_names_spec
='${libname}${release}.a $libname.a'
20983 soname_spec
='${libname}${release}${shared_ext}$major'
20985 shlibpath_var
=LIBPATH
20992 # Since July 2007 AmigaOS4 officially supports .so libraries.
20993 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20994 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20997 library_names_spec
='$libname.ixlibrary $libname.a'
20998 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20999 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'
21005 library_names_spec
='${libname}${shared_ext}'
21006 dynamic_linker
="$host_os ld.so"
21007 shlibpath_var
=LIBRARY_PATH
21013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21014 soname_spec
='${libname}${release}${shared_ext}$major'
21015 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21016 shlibpath_var
=LD_LIBRARY_PATH
21017 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21018 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21019 # the default ld.so.conf also contains /usr/contrib/lib and
21020 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21021 # libtool to hard-code these into programs
21024 cygwin
* | mingw
* | pw32
* | cegcc
*)
21025 version_type
=windows
21030 case $GCC,$host_os in
21031 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21032 library_names_spec
='$libname.dll.a'
21033 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21034 postinstall_cmds
='base_file=`basename \${file}`~
21035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21036 dldir=$destdir/`dirname \$dlpath`~
21037 test -d \$dldir || mkdir -p \$dldir~
21038 $install_prog $dir/$dlname \$dldir/$dlname~
21039 chmod a+x \$dldir/$dlname~
21040 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21041 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21043 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21044 dlpath=$dir/\$dldll~
21046 shlibpath_overrides_runpath
=yes
21050 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21051 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21055 # MinGW DLLs use traditional 'lib' prefix
21056 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21059 # pw32 DLLs use 'pw' prefix rather than 'lib'
21060 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21066 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21069 dynamic_linker
='Win32 ld.exe'
21070 # FIXME: first we should search . and the directory the executable is in
21074 darwin
* | rhapsody
*)
21075 dynamic_linker
="$host_os dyld"
21076 version_type
=darwin
21079 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21080 soname_spec
='${libname}${release}${major}$shared_ext'
21081 shlibpath_overrides_runpath
=yes
21082 shlibpath_var
=DYLD_LIBRARY_PATH
21083 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21085 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21093 soname_spec
='${libname}${release}${shared_ext}$major'
21094 shlibpath_var
=LD_LIBRARY_PATH
21097 freebsd
* | dragonfly
*)
21098 # DragonFly does not have aout. When/if they implement a new
21099 # versioning mechanism, adjust this.
21100 if test -x /usr
/bin
/objformat
; then
21101 objformat
=`/usr/bin/objformat`
21104 freebsd
[23].
*) objformat
=aout
;;
21105 *) objformat
=elf
;;
21108 version_type
=freebsd-
$objformat
21109 case $version_type in
21111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21116 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21120 shlibpath_var
=LD_LIBRARY_PATH
21123 shlibpath_overrides_runpath
=yes
21125 freebsd3.
[01]* | freebsdelf3.
[01]*)
21126 shlibpath_overrides_runpath
=yes
21127 hardcode_into_libs
=yes
21129 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21130 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21131 shlibpath_overrides_runpath
=no
21132 hardcode_into_libs
=yes
21134 *) # from 4.6 on, and DragonFly
21135 shlibpath_overrides_runpath
=yes
21136 hardcode_into_libs
=yes
21145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21146 soname_spec
='${libname}${release}${shared_ext}$major'
21147 shlibpath_var
=LD_LIBRARY_PATH
21148 hardcode_into_libs
=yes
21155 dynamic_linker
="$host_os runtime_loader"
21156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21157 soname_spec
='${libname}${release}${shared_ext}$major'
21158 shlibpath_var
=LIBRARY_PATH
21159 shlibpath_overrides_runpath
=yes
21160 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21161 hardcode_into_libs
=yes
21164 hpux9
* | hpux10
* | hpux11
*)
21165 # Give a soname corresponding to the major version so that dld.sl refuses to
21166 # link against other versions.
21173 hardcode_into_libs
=yes
21174 dynamic_linker
="$host_os dld.so"
21175 shlibpath_var
=LD_LIBRARY_PATH
21176 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21177 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21178 soname_spec
='${libname}${release}${shared_ext}$major'
21179 if test "X$HPUX_IA64_MODE" = X32
; then
21180 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21182 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21184 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21188 hardcode_into_libs
=yes
21189 dynamic_linker
="$host_os dld.sl"
21190 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21191 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21193 soname_spec
='${libname}${release}${shared_ext}$major'
21194 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21195 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21199 dynamic_linker
="$host_os dld.sl"
21200 shlibpath_var
=SHLIB_PATH
21201 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21203 soname_spec
='${libname}${release}${shared_ext}$major'
21206 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21207 postinstall_cmds
='chmod 555 $lib'
21208 # or fails outright, so override atomically:
21209 install_override_mode
=555
21216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21217 soname_spec
='${libname}${release}${shared_ext}$major'
21218 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21219 shlibpath_var
=LD_LIBRARY_PATH
21220 shlibpath_overrides_runpath
=no
21221 hardcode_into_libs
=yes
21224 irix5
* | irix6
* | nonstopux
*)
21226 nonstopux
*) version_type
=nonstopux
;;
21228 if test "$lt_cv_prog_gnu_ld" = yes; then
21236 soname_spec
='${libname}${release}${shared_ext}$major'
21237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21239 irix5
* | nonstopux
*)
21240 libsuff
= shlibsuff
=
21243 case $LD in # libtool.m4 will add one of these switches to LD
21244 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21245 libsuff
= shlibsuff
= libmagic
=32-bit;;
21246 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21247 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21248 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21249 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21250 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21254 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21255 shlibpath_overrides_runpath
=no
21256 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21257 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21258 hardcode_into_libs
=yes
21261 # No shared lib support for Linux oldld, aout, or coff.
21262 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21266 # This must be Linux ELF.
21267 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21272 soname_spec
='${libname}${release}${shared_ext}$major'
21273 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21274 shlibpath_var
=LD_LIBRARY_PATH
21275 shlibpath_overrides_runpath
=no
21277 # Some binutils ld are patched to set DT_RUNPATH
21278 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21279 $as_echo_n "(cached) " >&6
21281 lt_cv_shlibpath_overrides_runpath
=no
21282 save_LDFLAGS
=$LDFLAGS
21283 save_libdir
=$libdir
21284 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21285 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21287 /* end confdefs.h. */
21297 if ac_fn_cxx_try_link
"$LINENO"; then :
21298 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21299 lt_cv_shlibpath_overrides_runpath
=yes
21302 rm -f core conftest.err conftest.
$ac_objext \
21303 conftest
$ac_exeext conftest.
$ac_ext
21304 LDFLAGS
=$save_LDFLAGS
21305 libdir
=$save_libdir
21309 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21311 # This implies no fast_install, which is unacceptable.
21312 # Some rework will be needed to allow for fast_install
21313 # before this can be enabled.
21314 hardcode_into_libs
=yes
21316 # Append ld.so.conf contents to the search path
21317 if test -f /etc
/ld.so.conf
; then
21318 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' ' '`
21319 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21322 # We used to test for /lib/ld.so.1 and disable shared libraries on
21323 # powerpc, because MkLinux only supported shared libraries with the
21324 # GNU dynamic linker. Since this was broken with cross compilers,
21325 # most powerpc-linux boxes support dynamic linking these days and
21326 # people can always --disable-shared, the test was removed, and we
21327 # assume the GNU/Linux dynamic linker is in use.
21328 dynamic_linker
='GNU/Linux ld.so'
21335 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21336 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21337 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21338 dynamic_linker
='NetBSD (a.out) ld.so'
21340 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21341 soname_spec
='${libname}${release}${shared_ext}$major'
21342 dynamic_linker
='NetBSD ld.elf_so'
21344 shlibpath_var
=LD_LIBRARY_PATH
21345 shlibpath_overrides_runpath
=yes
21346 hardcode_into_libs
=yes
21351 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21352 shlibpath_var
=LD_LIBRARY_PATH
21353 shlibpath_overrides_runpath
=yes
21360 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21361 soname_spec
='${libname}${release}${shared_ext}$major'
21362 shlibpath_var
=LD_LIBRARY_PATH
21363 shlibpath_overrides_runpath
=no
21364 hardcode_into_libs
=yes
21365 dynamic_linker
='ldqnx.so'
21370 sys_lib_dlsearch_path_spec
="/usr/lib"
21372 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21374 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21375 *) need_version
=no
;;
21377 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21378 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21379 shlibpath_var
=LD_LIBRARY_PATH
21380 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21382 openbsd2.
[89] | openbsd2.
[89].
*)
21383 shlibpath_overrides_runpath
=no
21386 shlibpath_overrides_runpath
=yes
21390 shlibpath_overrides_runpath
=yes
21395 libname_spec
='$name'
21398 library_names_spec
='$libname${shared_ext} $libname.a'
21399 dynamic_linker
='OS/2 ld.exe'
21400 shlibpath_var
=LIBPATH
21403 osf3
* | osf4
* | osf5
*)
21407 soname_spec
='${libname}${release}${shared_ext}$major'
21408 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21409 shlibpath_var
=LD_LIBRARY_PATH
21410 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21411 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21422 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21423 soname_spec
='${libname}${release}${shared_ext}$major'
21424 shlibpath_var
=LD_LIBRARY_PATH
21425 shlibpath_overrides_runpath
=yes
21426 hardcode_into_libs
=yes
21427 # ldd complains unless libraries are executable
21428 postinstall_cmds
='chmod +x $lib'
21433 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21434 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21435 shlibpath_var
=LD_LIBRARY_PATH
21436 shlibpath_overrides_runpath
=yes
21437 if test "$with_gnu_ld" = yes; then
21445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21446 soname_spec
='${libname}${release}${shared_ext}$major'
21447 shlibpath_var
=LD_LIBRARY_PATH
21448 case $host_vendor in
21450 shlibpath_overrides_runpath
=no
21452 runpath_var
=LD_RUN_PATH
21460 shlibpath_overrides_runpath
=no
21461 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21467 if test -d /usr
/nec
;then
21469 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21470 soname_spec
='$libname${shared_ext}.$major'
21471 shlibpath_var
=LD_LIBRARY_PATH
21475 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21476 version_type
=freebsd-elf
21479 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21480 soname_spec
='${libname}${release}${shared_ext}$major'
21481 shlibpath_var
=LD_LIBRARY_PATH
21482 shlibpath_overrides_runpath
=yes
21483 hardcode_into_libs
=yes
21484 if test "$with_gnu_ld" = yes; then
21485 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21487 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21490 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21494 sys_lib_dlsearch_path_spec
='/usr/lib'
21498 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21503 shlibpath_var
=LD_LIBRARY_PATH
21504 shlibpath_overrides_runpath
=no
21505 hardcode_into_libs
=yes
21510 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21511 soname_spec
='${libname}${release}${shared_ext}$major'
21512 shlibpath_var
=LD_LIBRARY_PATH
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21520 $as_echo "$dynamic_linker" >&6; }
21521 test "$dynamic_linker" = no
&& can_build_shared
=no
21523 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21524 if test "$GCC" = yes; then
21525 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21528 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21529 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21531 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21532 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21573 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21574 hardcode_action_CXX
=
21575 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21576 test -n "$runpath_var_CXX" ||
21577 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21579 # We can hardcode non-existent directories.
21580 if test "$hardcode_direct_CXX" != no
&&
21581 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21582 # have to relink, otherwise we might link with an installed library
21583 # when we should be linking with a yet-to-be-installed one
21584 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21585 test "$hardcode_minus_L_CXX" != no
; then
21586 # Linking always hardcodes the temporary library directory.
21587 hardcode_action_CXX
=relink
21589 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21590 hardcode_action_CXX
=immediate
21593 # We cannot hardcode anything, or else we can only hardcode existing
21595 hardcode_action_CXX
=unsupported
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21598 $as_echo "$hardcode_action_CXX" >&6; }
21600 if test "$hardcode_action_CXX" = relink ||
21601 test "$inherit_rpath_CXX" = yes; then
21602 # Fast installation is not supported
21603 enable_fast_install
=no
21604 elif test "$shlibpath_overrides_runpath" = yes ||
21605 test "$enable_shared" = no
; then
21606 # Fast installation is not necessary
21607 enable_fast_install
=needless
21616 fi # test -n "$compiler"
21622 with_gnu_ld
=$lt_save_with_gnu_ld
21623 lt_cv_path_LDCXX
=$lt_cv_path_LD
21624 lt_cv_path_LD
=$lt_save_path_LD
21625 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21626 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21627 fi # test "$_lt_caught_CXX_error" != yes
21630 ac_cpp
='$CXXCPP $CPPFLAGS'
21631 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21632 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21633 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21650 # Only expand once:
21656 # Identify the assembler which will work hand-in-glove with the newly
21657 # built GCC, so that we can examine its features. This is the assembler
21658 # which will be driven by the driver program.
21660 # If build != host, and we aren't building gas in-tree, we identify a
21661 # build->target assembler and hope that it will have the same features
21662 # as the host->target assembler we'll be using.
21663 gcc_cv_gas_major_version
=
21664 gcc_cv_gas_minor_version
=
21665 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21667 if test "${gcc_cv_as+set}" = set; then :
21671 if test -x "$DEFAULT_ASSEMBLER"; then
21672 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21673 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21674 && test -f ..
/gas
/Makefile \
21675 && test x
$build = x
$host; then
21676 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21677 elif test -x as
$build_exeext; then
21678 # Build using assembler in the current directory.
21679 gcc_cv_as
=.
/as
$build_exeext
21680 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21681 gcc_cv_as
="$AS_FOR_TARGET"
21683 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21684 set dummy
$AS_FOR_TARGET; ac_word
=$2
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21686 $as_echo_n "checking for $ac_word... " >&6; }
21687 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21688 $as_echo_n "(cached) " >&6
21692 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21696 for as_dir
in $PATH
21699 test -z "$as_dir" && as_dir
=.
21700 for ac_exec_ext
in '' $ac_executable_extensions; do
21701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21702 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21713 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21714 if test -n "$gcc_cv_as"; then
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21716 $as_echo "$gcc_cv_as" >&6; }
21718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21719 $as_echo "no" >&6; }
21726 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21728 case "$ORIGINAL_AS_FOR_TARGET" in
21729 .
/as | .
/as
$build_exeext) ;;
21730 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21735 $as_echo_n "checking what assembler to use... " >&6; }
21736 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21737 # Single tree build which includes gas. We want to prefer it
21738 # over whatever linker top-level may have detected, since
21739 # we'll use what we're building after installation anyway.
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21741 $as_echo "newly built gas" >&6; }
21743 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21744 for f
in $gcc_cv_as_bfd_srcdir/configure \
21745 $gcc_cv_as_gas_srcdir/configure \
21746 $gcc_cv_as_gas_srcdir/configure.
in \
21747 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21748 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21749 if test x
$gcc_cv_gas_version != x
; then
21753 case $gcc_cv_gas_version in
21755 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21757 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21758 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21759 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21760 case $gcc_cv_gas_patch_version in
21761 "") gcc_cv_gas_patch_version
="0" ;;
21763 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21764 + $gcc_cv_gas_minor_version \) \* 1000 \
21765 + $gcc_cv_gas_patch_version`
21767 in_tree_gas_is_elf
=no
21768 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21769 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21770 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21772 in_tree_gas_is_elf
=yes
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21776 $as_echo "$gcc_cv_as" >&6; }
21781 # Check whether --enable-ld was given.
21782 if test "${enable_ld+set}" = set; then :
21783 enableval
=$enable_ld; case "${enableval}" in
21791 install_gold_as_default
=no
21792 # Check whether --enable-gold was given.
21793 if test "${enable_gold+set}" = set; then :
21794 enableval
=$enable_gold; case "${enableval}" in
21796 install_gold_as_default
=yes
21799 if test x
${default_ld} != x
; then
21800 install_gold_as_default
=yes
21806 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21812 # Identify the linker which will work hand-in-glove with the newly
21813 # built GCC, so that we can examine its features. This is the linker
21814 # which will be driven by the driver program.
21816 # If build != host, and we aren't building gas in-tree, we identify a
21817 # build->target linker and hope that it will have the same features
21818 # as the host->target linker we'll be using.
21819 gcc_cv_gld_major_version
=
21820 gcc_cv_gld_minor_version
=
21821 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21822 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21823 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21825 if test "${gcc_cv_ld+set}" = set; then :
21829 if test -x "$DEFAULT_LINKER"; then
21830 gcc_cv_ld
="$DEFAULT_LINKER"
21831 elif test $install_gold_as_default = yes \
21832 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21833 && test -f ..
/gold
/Makefile \
21834 && test x
$build = x
$host; then
21835 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21836 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21837 && test -f ..
/ld
/Makefile \
21838 && test x
$build = x
$host; then
21839 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21840 elif test -x collect-ld
$build_exeext; then
21841 # Build using linker in the current directory.
21842 gcc_cv_ld
=.
/collect-ld
$build_exeext
21843 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21844 gcc_cv_ld
="$LD_FOR_TARGET"
21846 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21847 set dummy
$LD_FOR_TARGET; ac_word
=$2
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21849 $as_echo_n "checking for $ac_word... " >&6; }
21850 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21851 $as_echo_n "(cached) " >&6
21855 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21859 for as_dir
in $PATH
21862 test -z "$as_dir" && as_dir
=.
21863 for ac_exec_ext
in '' $ac_executable_extensions; do
21864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21865 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21876 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21877 if test -n "$gcc_cv_ld"; then
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21879 $as_echo "$gcc_cv_ld" >&6; }
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21882 $as_echo "no" >&6; }
21889 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21890 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21891 # if the PLUGIN_LD is set ld-new, just have it as ld
21892 # as that is the installed named.
21893 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21894 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21895 PLUGIN_LD_SUFFIX
=ld
21898 # Check whether --with-plugin-ld was given.
21899 if test "${with_plugin_ld+set}" = set; then :
21900 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21901 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21902 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21908 cat >>confdefs.h
<<_ACEOF
21909 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21913 # Check to see if we are using gold instead of ld
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21915 $as_echo_n "checking whether we are using gold... " >&6; }
21917 if test x
$gcc_cv_ld != x
; then
21918 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21919 |
grep "GNU gold" > /dev
/null
; then
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21924 $as_echo "$ld_is_gold" >&6; }
21926 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21928 case "$ORIGINAL_LD_FOR_TARGET" in
21929 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21930 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21935 $as_echo_n "checking what linker to use... " >&6; }
21936 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21937 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21938 # Single tree build which includes ld. We want to prefer it
21939 # over whatever linker top-level may have detected, since
21940 # we'll use what we're building after installation anyway.
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21942 $as_echo "newly built ld" >&6; }
21944 in_tree_ld_is_elf
=no
21945 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21946 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21947 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21948 in_tree_ld_is_elf
=yes
21949 elif test "$ld_is_gold" = yes; then
21950 in_tree_ld_is_elf
=yes
21952 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.
in $gcc_cv_ld_gld_srcdir/Makefile.
in
21954 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21955 if test x
$gcc_cv_gld_version != x
; then
21959 case $gcc_cv_gld_version in
21961 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21963 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21964 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21965 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21966 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21969 $as_echo "$gcc_cv_ld" >&6; }
21971 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21972 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21973 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21979 # Figure out what nm we will be using.
21980 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21981 if test "${gcc_cv_nm+set}" = set; then :
21985 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21986 && test -f ..
/binutils
/Makefile \
21987 && test x
$build = x
$host; then
21988 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21989 elif test -x nm
$build_exeext; then
21990 gcc_cv_nm
=.
/nm
$build_exeext
21991 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21992 gcc_cv_nm
="$NM_FOR_TARGET"
21994 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21995 set dummy
$NM_FOR_TARGET; ac_word
=$2
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21997 $as_echo_n "checking for $ac_word... " >&6; }
21998 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21999 $as_echo_n "(cached) " >&6
22003 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22007 for as_dir
in $PATH
22010 test -z "$as_dir" && as_dir
=.
22011 for ac_exec_ext
in '' $ac_executable_extensions; do
22012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22013 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22024 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22025 if test -n "$gcc_cv_nm"; then
22026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22027 $as_echo "$gcc_cv_nm" >&6; }
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22030 $as_echo "no" >&6; }
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22038 $as_echo_n "checking what nm to use... " >&6; }
22039 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22040 # Single tree build which includes binutils.
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22042 $as_echo "newly built nm" >&6; }
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22046 $as_echo "$gcc_cv_nm" >&6; }
22050 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22052 case "$ORIGINAL_NM_FOR_TARGET" in
22053 .
/nm | .
/nm
$build_exeext) ;;
22054 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22059 # Figure out what objdump we will be using.
22060 if test "${gcc_cv_objdump+set}" = set; then :
22064 if test -f $gcc_cv_binutils_srcdir/configure.
in \
22065 && test -f ..
/binutils
/Makefile \
22066 && test x
$build = x
$host; then
22067 # Single tree build which includes binutils.
22068 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22069 elif test -x objdump
$build_exeext; then
22070 gcc_cv_objdump
=.
/objdump
$build_exeext
22071 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22072 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22074 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22075 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22077 $as_echo_n "checking for $ac_word... " >&6; }
22078 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22079 $as_echo_n "(cached) " >&6
22081 case $gcc_cv_objdump in
22083 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22086 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22087 for as_dir
in $PATH
22090 test -z "$as_dir" && as_dir
=.
22091 for ac_exec_ext
in '' $ac_executable_extensions; do
22092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22093 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22104 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22105 if test -n "$gcc_cv_objdump"; then
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22107 $as_echo "$gcc_cv_objdump" >&6; }
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22110 $as_echo "no" >&6; }
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22118 $as_echo_n "checking what objdump to use... " >&6; }
22119 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22120 # Single tree build which includes binutils.
22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22122 $as_echo "newly built objdump" >&6; }
22123 elif test x
$gcc_cv_objdump = x
; then
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22125 $as_echo "not found" >&6; }
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22128 $as_echo "$gcc_cv_objdump" >&6; }
22131 # Figure out what readelf we will be using.
22132 if test "${gcc_cv_readelf+set}" = set; then :
22136 if test -f $gcc_cv_binutils_srcdir/configure.
in \
22137 && test -f ..
/binutils
/Makefile \
22138 && test x
$build = x
$host; then
22139 # Single tree build which includes binutils.
22140 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22141 elif test -x readelf
$build_exeext; then
22142 gcc_cv_readelf
=.
/readelf
$build_exeext
22144 # Extract the first word of "readelf", so it can be a program name with args.
22145 set dummy readelf
; ac_word
=$2
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22147 $as_echo_n "checking for $ac_word... " >&6; }
22148 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22149 $as_echo_n "(cached) " >&6
22151 case $gcc_cv_readelf in
22153 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22156 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22157 for as_dir
in $PATH
22160 test -z "$as_dir" && as_dir
=.
22161 for ac_exec_ext
in '' $ac_executable_extensions; do
22162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22163 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22174 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22175 if test -n "$gcc_cv_readelf"; then
22176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22177 $as_echo "$gcc_cv_readelf" >&6; }
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22180 $as_echo "no" >&6; }
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22188 $as_echo_n "checking what readelf to use... " >&6; }
22189 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22190 # Single tree build which includes binutils.
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22192 $as_echo "newly built readelf" >&6; }
22193 elif test x
$gcc_cv_readelf = x
; then
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22195 $as_echo "not found" >&6; }
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22198 $as_echo "$gcc_cv_readelf" >&6; }
22201 # Figure out what assembler alignment features are present.
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22203 $as_echo_n "checking assembler flags... " >&6; }
22204 if test "${gcc_cv_as_flags+set}" = set; then :
22205 $as_echo_n "(cached) " >&6
22208 i
[34567]86-*-linux*)
22209 gcc_cv_as_flags
=--32
22211 x86_64-
*-linux-gnux32)
22212 gcc_cv_as_flags
=--x32
22215 gcc_cv_as_flags
=--64
22217 powerpc
*-*-darwin*)
22218 gcc_cv_as_flags
="-arch ppc"
22221 gcc_cv_as_flags
=" "
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22226 $as_echo "$gcc_cv_as_flags" >&6; }
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22229 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22230 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22231 $as_echo_n "(cached) " >&6
22233 gcc_cv_as_balign_and_p2align
=no
22234 if test $in_tree_gas = yes; then
22235 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22236 then gcc_cv_as_balign_and_p2align
=yes
22238 elif test x
$gcc_cv_as != x
; then
22239 $as_echo '.balign 4
22240 .p2align 2' > conftest.s
22241 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22243 (eval $ac_try) 2>&5
22245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22246 test $ac_status = 0; }; }
22248 gcc_cv_as_balign_and_p2align
=yes
22250 echo "configure: failed program was" >&5
22253 rm -f conftest.o conftest.s
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22257 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22258 if test $gcc_cv_as_balign_and_p2align = yes; then
22260 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22265 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22266 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22267 $as_echo_n "(cached) " >&6
22269 gcc_cv_as_max_skip_p2align
=no
22270 if test $in_tree_gas = yes; then
22271 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22272 then gcc_cv_as_max_skip_p2align
=yes
22274 elif test x
$gcc_cv_as != x
; then
22275 $as_echo '.p2align 4,,7' > conftest.s
22276 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22278 (eval $ac_try) 2>&5
22280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22281 test $ac_status = 0; }; }
22283 gcc_cv_as_max_skip_p2align
=yes
22285 echo "configure: failed program was" >&5
22288 rm -f conftest.o conftest.s
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22292 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22293 if test $gcc_cv_as_max_skip_p2align = yes; then
22295 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22300 $as_echo_n "checking assembler for .literal16... " >&6; }
22301 if test "${gcc_cv_as_literal16+set}" = set; then :
22302 $as_echo_n "(cached) " >&6
22304 gcc_cv_as_literal16
=no
22305 if test $in_tree_gas = yes; then
22306 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22307 then gcc_cv_as_literal16
=yes
22309 elif test x
$gcc_cv_as != x
; then
22310 $as_echo '.literal16' > conftest.s
22311 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22313 (eval $ac_try) 2>&5
22315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22316 test $ac_status = 0; }; }
22318 gcc_cv_as_literal16
=yes
22320 echo "configure: failed program was" >&5
22323 rm -f conftest.o conftest.s
22326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22327 $as_echo "$gcc_cv_as_literal16" >&6; }
22328 if test $gcc_cv_as_literal16 = yes; then
22330 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22335 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22336 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22337 $as_echo_n "(cached) " >&6
22339 gcc_cv_as_subsection_m1
=no
22340 if test $in_tree_gas = yes; then
22341 if test $in_tree_gas_is_elf = yes \
22342 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22343 then gcc_cv_as_subsection_m1
=yes
22345 elif test x
$gcc_cv_as != x
; then
22346 $as_echo 'conftest_label1: .word 0
22348 conftest_label2: .word 0
22349 .previous' > conftest.s
22350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22352 (eval $ac_try) 2>&5
22354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22355 test $ac_status = 0; }; }
22357 if test x
$gcc_cv_nm != x
; then
22358 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22359 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22360 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22362 else gcc_cv_as_subsection_m1
=yes
22364 rm -f conftest.nm1 conftest.nm2
22367 echo "configure: failed program was" >&5
22370 rm -f conftest.o conftest.s
22373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22374 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22375 if test $gcc_cv_as_subsection_m1 = yes; then
22377 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22382 $as_echo_n "checking assembler for .weak... " >&6; }
22383 if test "${gcc_cv_as_weak+set}" = set; then :
22384 $as_echo_n "(cached) " >&6
22387 if test $in_tree_gas = yes; then
22388 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22389 then gcc_cv_as_weak
=yes
22391 elif test x
$gcc_cv_as != x
; then
22392 $as_echo ' .weak foobar' > conftest.s
22393 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22395 (eval $ac_try) 2>&5
22397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22398 test $ac_status = 0; }; }
22402 echo "configure: failed program was" >&5
22405 rm -f conftest.o conftest.s
22408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22409 $as_echo "$gcc_cv_as_weak" >&6; }
22410 if test $gcc_cv_as_weak = yes; then
22412 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22417 $as_echo_n "checking assembler for .weakref... " >&6; }
22418 if test "${gcc_cv_as_weakref+set}" = set; then :
22419 $as_echo_n "(cached) " >&6
22421 gcc_cv_as_weakref
=no
22422 if test $in_tree_gas = yes; then
22423 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22424 then gcc_cv_as_weakref
=yes
22426 elif test x
$gcc_cv_as != x
; then
22427 $as_echo ' .weakref foobar, barfnot' > conftest.s
22428 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22430 (eval $ac_try) 2>&5
22432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22433 test $ac_status = 0; }; }
22435 gcc_cv_as_weakref
=yes
22437 echo "configure: failed program was" >&5
22440 rm -f conftest.o conftest.s
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22444 $as_echo "$gcc_cv_as_weakref" >&6; }
22445 if test $gcc_cv_as_weakref = yes; then
22447 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22452 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22453 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22454 $as_echo_n "(cached) " >&6
22456 gcc_cv_as_nsubspa_comdat
=no
22457 if test $in_tree_gas = yes; then
22458 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22459 then gcc_cv_as_nsubspa_comdat
=yes
22461 elif test x
$gcc_cv_as != x
; then
22462 $as_echo ' .SPACE $TEXT$
22463 .NSUBSPA $CODE$,COMDAT' > conftest.s
22464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22466 (eval $ac_try) 2>&5
22468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22469 test $ac_status = 0; }; }
22471 gcc_cv_as_nsubspa_comdat
=yes
22473 echo "configure: failed program was" >&5
22476 rm -f conftest.o conftest.s
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22480 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22481 if test $gcc_cv_as_nsubspa_comdat = yes; then
22483 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22487 # .hidden needs to be supported in both the assembler and the linker,
22488 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22489 # This is irritatingly difficult to feature test for; we have to check the
22490 # date string after the version number. If we've got an in-tree
22491 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22493 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22495 $as_echo_n "checking assembler for .hidden... " >&6; }
22496 if test "${gcc_cv_as_hidden+set}" = set; then :
22497 $as_echo_n "(cached) " >&6
22499 gcc_cv_as_hidden
=no
22500 if test $in_tree_gas = yes; then
22501 if test $in_tree_gas_is_elf = yes \
22502 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22503 then gcc_cv_as_hidden
=yes
22505 elif test x
$gcc_cv_as != x
; then
22506 $as_echo ' .hidden foobar
22507 foobar:' > conftest.s
22508 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22510 (eval $ac_try) 2>&5
22512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22513 test $ac_status = 0; }; }
22515 gcc_cv_as_hidden
=yes
22517 echo "configure: failed program was" >&5
22520 rm -f conftest.o conftest.s
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22524 $as_echo "$gcc_cv_as_hidden" >&6; }
22526 case "${target}" in
22528 # Darwin as has some visibility support, though with a different syntax.
22529 gcc_cv_as_hidden
=yes
22533 # gnu_indirect_function type is an extension proposed at
22534 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22535 # selection of function implementation
22536 # Check whether --enable-gnu-indirect-function was given.
22537 if test "${enable_gnu_indirect_function+set}" = set; then :
22538 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22540 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22541 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22544 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22548 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22550 cat >>confdefs.h
<<_ACEOF
22551 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22556 if test $in_tree_ld != yes ; then
22557 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22558 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22559 if test x
"$ld_is_gold" = xyes
; then
22560 # GNU gold --version looks like this:
22562 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22564 # We extract the binutils version which is more familiar and specific
22565 # than the gold version.
22566 ld_vers
=`echo $ld_ver | sed -n \
22567 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22569 # GNU ld --version looks like this:
22571 # GNU ld (GNU Binutils) 2.21.51.20110225
22572 ld_vers
=`echo $ld_ver | sed -n \
22573 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22575 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'`
22576 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22577 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22578 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22580 case "${target}" in
22582 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22585 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22586 # /usr/ccs/bin/ld has been configured.
22587 ld_ver
=`$gcc_cv_ld -V 2>&1`
22588 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22589 ld_vers
=`echo $ld_ver | sed -n \
22590 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22591 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22592 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22600 $as_echo_n "checking linker for .hidden support... " >&6; }
22601 if test "${gcc_cv_ld_hidden+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22604 if test $in_tree_ld = yes ; then
22605 gcc_cv_ld_hidden
=no
22606 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 \
22607 && test $in_tree_ld_is_elf = yes; then
22608 gcc_cv_ld_hidden
=yes
22611 gcc_cv_ld_hidden
=yes
22612 if test x
"$ld_is_gold" = xyes
; then
22614 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22615 case "${target}" in
22616 mmix-knuth-mmixware
)
22617 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22618 gcc_cv_ld_hidden
=no
22621 if test 0"$ld_date" -lt 20020404; then
22622 if test -n "$ld_date"; then
22623 # If there was date string, but was earlier than 2002-04-04, fail
22624 gcc_cv_ld_hidden
=no
22625 elif test -z "$ld_vers"; then
22626 # If there was no date string nor ld version number, something is wrong
22627 gcc_cv_ld_hidden
=no
22629 test -z "$ld_vers_patch" && ld_vers_patch
=0
22630 if test "$ld_vers_major" -lt 2; then
22631 gcc_cv_ld_hidden
=no
22632 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22633 gcc_cv_ld_hidden
="no"
22634 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22635 gcc_cv_ld_hidden
=no
22640 case "${target}" in
22642 # Darwin ld has some visibility support.
22643 gcc_cv_ld_hidden
=yes
22645 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22646 gcc_cv_ld_hidden
=yes
22648 *-*-solaris2.1
[0-9]*)
22649 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22650 # .symbolic was only added in Solaris 9 12/02.
22651 gcc_cv_ld_hidden
=yes
22654 gcc_cv_ld_hidden
=no
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22661 $as_echo "$gcc_cv_ld_hidden" >&6; }
22662 libgcc_visibility
=no
22665 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22666 libgcc_visibility
=yes
22668 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22673 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22674 gcc_cv_ld_ro_rw_mix
=unknown
22675 if test $in_tree_ld = yes ; then
22676 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 \
22677 && test $in_tree_ld_is_elf = yes; then
22678 gcc_cv_ld_ro_rw_mix
=read-write
22680 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22681 echo '.section myfoosect, "a"' > conftest1.s
22682 echo '.section myfoosect, "aw"' > conftest2.s
22683 echo '.byte 1' >> conftest2.s
22684 echo '.section myfoosect, "a"' > conftest3.s
22685 echo '.byte 0' >> conftest3.s
22686 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22687 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22688 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22689 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22690 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22691 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22692 | sed -e '/myfoosect/!d' -e N`
22693 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22694 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22695 gcc_cv_ld_ro_rw_mix
=read-only
22697 gcc_cv_ld_ro_rw_mix
=read-write
22701 rm -f conftest.
* conftest
[123].
*
22703 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22705 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22709 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22711 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22712 case "${target}" in
22715 # Solaris 2 ld -V output looks like this for a regular version:
22717 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22719 # but test versions add stuff at the end:
22721 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22723 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22724 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22725 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22726 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22727 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22728 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22734 # Check whether --enable-initfini-array was given.
22735 if test "${enable_initfini_array+set}" = set; then :
22736 enableval
=$enable_initfini_array;
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22740 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22741 if test "${gcc_cv_initfini_array+set}" = set; then :
22742 $as_echo_n "(cached) " >&6
22744 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22745 case "${target}" in
22747 if test "$cross_compiling" = yes; then :
22748 gcc_cv_initfini_array
=no
22750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22751 /* end confdefs.h. */
22754 #error Not an ELF OS
22756 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22757 if it can be used. */
22759 int main (void) { return x; }
22760 int foo (void) { x = 0; }
22761 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22764 if ac_fn_cxx_try_run
"$LINENO"; then :
22765 gcc_cv_initfini_array
=yes
22767 gcc_cv_initfini_array
=no
22769 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22770 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22774 gcc_cv_initfini_array
=no
22775 if test $in_tree_ld = yes ; then
22776 if test "$gcc_cv_gld_major_version" -eq 2 \
22777 -a "$gcc_cv_gld_minor_version" -ge 22 \
22778 -o "$gcc_cv_gld_major_version" -gt 2 \
22779 && test $in_tree_ld_is_elf = yes; then
22780 gcc_cv_initfini_array
=yes
22782 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22783 cat > conftest.s
<<\EOF
22784 .section .dtors
,"a",%progbits
22786 .byte
'A', 'A', 'A', 'A'
22787 .section .ctors
,"a",%progbits
22789 .byte
'B', 'B', 'B', 'B'
22790 .section .fini_array
.65530,"a",%progbits
22792 .byte
'C', 'C', 'C', 'C'
22793 .section .init_array
.65530,"a",%progbits
22795 .byte
'D', 'D', 'D', 'D'
22796 .section .dtors
.64528,"a",%progbits
22798 .byte
'E', 'E', 'E', 'E'
22799 .section .ctors
.64528,"a",%progbits
22801 .byte
'F', 'F', 'F', 'F'
22802 .section .fini_array
.01005,"a",%progbits
22804 .byte
'G', 'G', 'G', 'G'
22805 .section .init_array
.01005,"a",%progbits
22807 .byte
'H', 'H', 'H', 'H'
22812 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22813 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22814 && $gcc_cv_objdump -s -j .init_array conftest \
22815 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22816 && $gcc_cv_objdump -s -j .fini_array conftest \
22817 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22818 gcc_cv_initfini_array
=yes
22820 rm -f conftest conftest.
*
22822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22823 /* end confdefs.h. */
22826 # error Not an ELF OS
22828 #include <stdlib.h>
22829 #if defined __GLIBC_PREREQ
22830 # if __GLIBC_PREREQ (2, 4)
22832 # error GLIBC 2.4 required
22835 # if defined __sun__ && defined __svr4__
22836 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22838 # error The C library not known to support .init_array/.fini_array
22843 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22846 gcc_cv_initfini_array
=no
22848 rm -f conftest.err conftest.
$ac_ext;;
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22852 $as_echo_n "checking cross compile... guessing... " >&6; }
22853 gcc_cv_initfini_array
=no
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22857 $as_echo "$gcc_cv_initfini_array" >&6; }
22858 enable_initfini_array
=$gcc_cv_initfini_array
22862 if test $enable_initfini_array = yes; then
22864 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22868 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22870 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22871 if test "${gcc_cv_as_leb128+set}" = set; then :
22872 $as_echo_n "(cached) " >&6
22874 gcc_cv_as_leb128
=no
22875 if test $in_tree_gas = yes; then
22876 if test $in_tree_gas_is_elf = yes \
22877 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22878 then gcc_cv_as_leb128
=yes
22880 elif test x
$gcc_cv_as != x
; then
22887 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22889 (eval $ac_try) 2>&5
22891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22892 test $ac_status = 0; }; }
22894 # GAS versions before 2.11 do not support uleb128,
22895 # despite appearing to.
22896 # ??? There exists an elf-specific test that will crash
22897 # the assembler. Perhaps it's better to figure out whether
22898 # arbitrary sections are supported and try the test.
22899 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22900 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22901 as_vers
=`echo $as_ver | sed -n \
22902 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22903 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22904 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22905 if test $as_major -eq 2 && test $as_minor -lt 11
22907 else gcc_cv_as_leb128
=yes
22911 echo "configure: failed program was" >&5
22914 rm -f conftest.o conftest.s
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22918 $as_echo "$gcc_cv_as_leb128" >&6; }
22919 if test $gcc_cv_as_leb128 = yes; then
22921 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22925 # Check if we have assembler support for unwind directives.
22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22927 $as_echo_n "checking assembler for cfi directives... " >&6; }
22928 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22929 $as_echo_n "(cached) " >&6
22931 gcc_cv_as_cfi_directive
=no
22932 if test x
$gcc_cv_as != x
; then
22938 .cfi_escape 1, 2, 3, 4, 5
22939 .cfi_endproc' > conftest.s
22940 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22942 (eval $ac_try) 2>&5
22944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22945 test $ac_status = 0; }; }
22949 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22950 # read-only and read-write sections, we need to make sure that the
22951 # assembler used emits read-write .eh_frame sections.
22952 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22953 if test "x$gcc_cv_objdump" != x
; then
22954 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22955 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22956 gcc_cv_as_cfi_directive
=no
22959 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22960 # On Solaris/x86, make sure that GCC and assembler agree on using
22961 # read-only .eh_frame sections for 64-bit.
22962 if test x
$gas = xyes
; then
22963 as_ix86_64_opt
="--64"
22965 as_ix86_64_opt
="-xarch=amd64"
22967 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22968 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22969 sed -e /.eh_frame
/!d
-e N | \
22970 grep READONLY
> /dev
/null
; then
22971 gcc_cv_as_cfi_directive
=yes
22973 gcc_cv_as_cfi_directive
=no
22977 gcc_cv_as_cfi_directive
=yes
22982 # no objdump, err on the side of caution
22983 gcc_cv_as_cfi_directive
=no
22986 gcc_cv_as_cfi_directive
=yes
22990 gcc_cv_as_cfi_directive
=yes
22994 echo "configure: failed program was" >&5
22997 rm -f conftest.o conftest.s
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23001 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23003 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23005 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23006 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23007 $as_echo_n "(cached) " >&6
23009 gcc_cv_as_cfi_advance_working
=no
23010 if test x
$gcc_cv_as != x
; then
23013 .cfi_adjust_cfa_offset 64
23015 .cfi_adjust_cfa_offset 128
23016 .cfi_endproc' > conftest.s
23017 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23019 (eval $ac_try) 2>&5
23021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23022 test $ac_status = 0; }; }
23025 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23026 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23027 gcc_cv_as_cfi_advance_working
=yes
23031 echo "configure: failed program was" >&5
23034 rm -f conftest.o conftest.s
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23038 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23041 # no objdump, err on the side of caution
23042 gcc_cv_as_cfi_advance_working
=no
23046 cat >>confdefs.h
<<_ACEOF
23047 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23048 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23054 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23055 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23056 $as_echo_n "(cached) " >&6
23058 gcc_cv_as_cfi_personality_directive
=no
23059 if test x
$gcc_cv_as != x
; then
23062 .cfi_personality 0, symbol
23063 .cfi_endproc' > conftest.s
23064 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23066 (eval $ac_try) 2>&5
23068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23069 test $ac_status = 0; }; }
23071 gcc_cv_as_cfi_personality_directive
=yes
23073 echo "configure: failed program was" >&5
23076 rm -f conftest.o conftest.s
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23080 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23083 cat >>confdefs.h
<<_ACEOF
23084 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23085 then echo 1; else echo 0; fi`
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23090 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23091 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23092 $as_echo_n "(cached) " >&6
23094 gcc_cv_as_cfi_sections_directive
=no
23095 if test x
$gcc_cv_as != x
; then
23097 .cfi_sections .debug_frame, .eh_frame
23099 .cfi_endproc' > conftest.s
23100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23102 (eval $ac_try) 2>&5
23104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23105 test $ac_status = 0; }; }
23108 win32 | pe | cygwin
* | mingw32
* | uwin
*)
23109 # Need to check that we generated the correct relocation for the
23110 # .debug_frame section. This was fixed for binutils 2.21.
23111 gcc_cv_as_cfi_sections_directive
=no
23112 if test "x$gcc_cv_objdump" != x
; then
23113 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23114 grep secrel
> /dev
/null
; then
23115 gcc_cv_as_cfi_sections_directive
=yes
23120 gcc_cv_as_cfi_sections_directive
=yes
23124 echo "configure: failed program was" >&5
23127 rm -f conftest.o conftest.s
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23131 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23135 cat >>confdefs.h
<<_ACEOF
23136 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23137 then echo 1; else echo 0; fi`
23141 # GAS versions up to and including 2.11.0 may mis-optimize
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23144 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23145 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23146 $as_echo_n "(cached) " >&6
23148 gcc_cv_as_eh_frame
=no
23149 if test $in_tree_gas = yes; then
23150 if test $in_tree_gas_is_elf = yes \
23151 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23152 then gcc_cv_as_eh_frame
=yes
23154 elif test x
$gcc_cv_as != x
; then
23161 .section .eh_frame,"aw",@progbits
23163 .4byte .LECIE1-.LSCIE1
23177 .4byte .LEFDE1-.LASFDE1
23179 .4byte .LASFDE1-__FRAME_BEGIN__
23186 .LEFDE1:' > conftest.s
23187 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23189 (eval $ac_try) 2>&5
23191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23192 test $ac_status = 0; }; }
23194 cat > conftest.lit
<<EOF
23195 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23196 0010 01000000 12000000 18000000 00000000 ................
23197 0020 08000000 04080000 0044 .........D
23199 cat > conftest.big
<<EOF
23200 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23201 0010 00000001 00000012 00000018 00000000 ................
23202 0020 00000008 04000000 0844 .........D
23204 # If the assembler didn't choke, and we can objdump,
23205 # and we got the correct data, then succeed.
23206 # The text in the here-document typically retains its unix-style line
23207 # endings, while the output of objdump will use host line endings.
23208 # Therefore, use diff -b for the comparisons.
23209 if test x
$gcc_cv_objdump != x \
23210 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23211 |
tail -3 > conftest.got \
23212 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23213 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23215 gcc_cv_as_eh_frame
=yes
23216 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23218 (eval $ac_try) 2>&5
23220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23221 test $ac_status = 0; }; }; then
23222 gcc_cv_as_eh_frame
=buggy
23224 # Uh oh, what do we do now?
23225 gcc_cv_as_eh_frame
=no
23228 echo "configure: failed program was" >&5
23231 rm -f conftest.o conftest.s
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23235 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23238 if test $gcc_cv_as_eh_frame = buggy
; then
23240 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23245 $as_echo_n "checking assembler for section merging support... " >&6; }
23246 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23247 $as_echo_n "(cached) " >&6
23249 gcc_cv_as_shf_merge
=no
23250 if test $in_tree_gas = yes; then
23251 if test $in_tree_gas_is_elf = yes \
23252 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23253 then gcc_cv_as_shf_merge
=yes
23255 elif test x
$gcc_cv_as != x
; then
23256 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23257 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23259 (eval $ac_try) 2>&5
23261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23262 test $ac_status = 0; }; }
23264 gcc_cv_as_shf_merge
=yes
23266 echo "configure: failed program was" >&5
23269 rm -f conftest.o conftest.s
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23273 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23275 if test $gcc_cv_as_shf_merge = no
; then
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23277 $as_echo_n "checking assembler for section merging support... " >&6; }
23278 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23279 $as_echo_n "(cached) " >&6
23281 gcc_cv_as_shf_merge
=no
23282 if test $in_tree_gas = yes; then
23283 if test $in_tree_gas_is_elf = yes \
23284 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23285 then gcc_cv_as_shf_merge
=yes
23287 elif test x
$gcc_cv_as != x
; then
23288 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -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; }; }
23296 gcc_cv_as_shf_merge
=yes
23298 echo "configure: failed program was" >&5
23301 rm -f conftest.o conftest.s
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23305 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23309 cat >>confdefs.h
<<_ACEOF
23310 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23315 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23316 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23317 $as_echo_n "(cached) " >&6
23319 gcc_cv_as_comdat_group
=no
23320 if test $in_tree_gas = yes; then
23321 if test $in_tree_gas_is_elf = yes \
23322 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23323 then gcc_cv_as_comdat_group
=yes
23325 elif test x
$gcc_cv_as != x
; then
23326 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23327 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23329 (eval $ac_try) 2>&5
23331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23332 test $ac_status = 0; }; }
23334 gcc_cv_as_comdat_group
=yes
23336 echo "configure: failed program was" >&5
23339 rm -f conftest.o conftest.s
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23343 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23345 if test $gcc_cv_as_comdat_group = yes; then
23346 gcc_cv_as_comdat_group_percent
=no
23347 gcc_cv_as_comdat_group_group
=no
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23350 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23351 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23352 $as_echo_n "(cached) " >&6
23354 gcc_cv_as_comdat_group_percent
=no
23355 if test $in_tree_gas = yes; then
23356 if test $in_tree_gas_is_elf = yes \
23357 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23358 then gcc_cv_as_comdat_group_percent
=yes
23360 elif test x
$gcc_cv_as != x
; then
23361 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23364 (eval $ac_try) 2>&5
23366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23367 test $ac_status = 0; }; }
23369 gcc_cv_as_comdat_group_percent
=yes
23371 echo "configure: failed program was" >&5
23374 rm -f conftest.o conftest.s
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23378 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23380 if test $gcc_cv_as_comdat_group_percent = yes; then
23381 gcc_cv_as_comdat_group_group
=no
23383 case "${target}" in
23384 # Sun as uses a completely different syntax.
23386 case "${target}" in
23387 sparc
*-*-solaris2*)
23389 .group foo,".text%foo",#comdat
23390 .section ".text%foo", #alloc,#execinstr,#progbits
23395 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23397 .group foo,.text%foo,#comdat
23398 .section .text%foo, "ax", @progbits
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23405 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23406 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23407 $as_echo_n "(cached) " >&6
23409 gcc_cv_as_comdat_group_group
=no
23410 if test x
$gcc_cv_as != x
; then
23411 $as_echo "$conftest_s" > conftest.s
23412 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23414 (eval $ac_try) 2>&5
23416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23417 test $ac_status = 0; }; }
23419 gcc_cv_as_comdat_group_group
=yes
23421 echo "configure: failed program was" >&5
23424 rm -f conftest.o conftest.s
23427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23428 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23432 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23433 gcc_cv_as_comdat_group_group
=no
23437 if test x
"$ld_is_gold" = xyes
; then
23439 elif test $in_tree_ld = yes ; then
23441 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 \
23442 && test $in_tree_ld_is_elf = yes; then
23445 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23447 if test 0"$ld_date" -lt 20050308; then
23448 if test -n "$ld_date"; then
23449 # If there was date string, but was earlier than 2005-03-08, fail
23451 elif test "$ld_vers_major" -lt 2; then
23453 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23458 case "${target}" in
23459 *-*-solaris2.1
[1-9]*)
23461 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23462 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23465 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23466 # least ld version 1.2267.
23467 if test "$ld_vers_major" -gt 1; then
23469 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23471 elif test "$ld_vers_minor" -ge 2267; then
23476 # Assume linkers other than GNU ld don't support COMDAT group.
23481 # Allow overriding the automatic COMDAT group tests above.
23482 # Check whether --enable-comdat was given.
23483 if test "${enable_comdat+set}" = set; then :
23484 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23487 if test $comdat_group = no
; then
23488 gcc_cv_as_comdat_group
=no
23489 gcc_cv_as_comdat_group_percent
=no
23490 gcc_cv_as_comdat_group_group
=no
23493 cat >>confdefs.h
<<_ACEOF
23494 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23495 || test $gcc_cv_as_comdat_group_percent = yes \
23496 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23501 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23502 if test "${gcc_cv_as_discriminator+set}" = set; then :
23503 $as_echo_n "(cached) " >&6
23505 gcc_cv_as_discriminator
=no
23506 if test $in_tree_gas = yes; then
23507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23508 then gcc_cv_as_discriminator
=yes
23510 elif test x
$gcc_cv_as != x
; then
23513 .loc 1 1 0 discriminator 1' > conftest.s
23514 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23516 (eval $ac_try) 2>&5
23518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23519 test $ac_status = 0; }; }
23521 gcc_cv_as_discriminator
=yes
23523 echo "configure: failed program was" >&5
23526 rm -f conftest.o conftest.s
23529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23530 $as_echo "$gcc_cv_as_discriminator" >&6; }
23531 if test $gcc_cv_as_discriminator = yes; then
23533 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23537 # Thread-local storage - the check is heavily parameterized.
23545 .section ".tdata","awT",@progbits
23548 ldq $27,__tls_get_addr($29) !literal!1
23549 lda $16,foo($29) !tlsgd!1
23550 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23551 ldq $27,__tls_get_addr($29) !literal!2
23552 lda $16,foo($29) !tlsldm!2
23553 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23554 ldq $1,foo($29) !gotdtprel
23555 ldah $2,foo($29) !dtprelhi
23556 lda $3,foo($2) !dtprello
23557 lda $4,foo($29) !dtprel
23558 ldq $1,foo($29) !gottprel
23559 ldah $2,foo($29) !tprelhi
23560 lda $3,foo($2) !tprello
23561 lda $4,foo($29) !tprel'
23564 tls_as_opt
=--fatal-warnings
23566 cris-
*-*|crisv32-
*-*)
23568 .section ".tdata","awT",@progbits
23575 tls_as_opt
=--fatal-warnings
23579 .section ".tdata","awT",@progbits
23582 call #gettlsoff(x)'
23591 .section ".tdata","awT",@progbits
23595 addil LT%foo-$tls_gdidx$,gp
23596 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23599 addil LT%foo-$tls_ldidx$,gp
23601 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23602 addil LR%foo-$tls_dtpoff$,%ret0
23603 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23605 addil LT%foo-$tls_ieoff$,gp
23606 ldw RT%foo-$tls_ieoff$(%r1),%t2
23609 addil LR%foo-$tls_leoff$,%t1
23610 ldo RR%foo-$tls_leoff$(%r1),%t2'
23613 tls_as_opt
=--fatal-warnings
23617 .section ".tdata","awT",%progbits
23620 .word foo(gottpoff)
23628 i
[34567]86-*-* | x86_64-
*-*)
23630 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23637 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23639 .section .tdata,"awt",@progbits'
23644 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23648 .section ".tdata","awT",@progbits'
23652 tls_as_opt
="--fatal-warnings"
23656 conftest_s
="$conftest_s
23660 leal foo@tlsgd(,%ebx,1), %eax
23661 leal foo@tlsldm(%ebx), %eax
23662 leal foo@dtpoff(%eax), %edx
23663 movl foo@gottpoff(%ebx), %eax
23664 subl foo@gottpoff(%ebx), %eax
23665 addl foo@gotntpoff(%ebx), %eax
23666 movl foo@indntpoff, %eax
23667 movl \$foo@tpoff, %eax
23668 subl \$foo@tpoff, %eax
23669 leal foo@ntpoff(%ecx), %eax"
23672 if test x
$on_solaris = xyes
; then
23674 yes) tls_as_opt
="$tls_as_opt --64" ;;
23675 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23678 conftest_s
="$conftest_s
23682 leaq foo@tlsgd(%rip), %rdi
23683 leaq foo@tlsld(%rip), %rdi
23684 leaq foo@dtpoff(%rax), %rdx
23685 movq foo@gottpoff(%rip), %rax
23686 movq \$foo@tpoff, %rax"
23692 .section ".tdata","awT",@progbits
23695 addl r16 = @ltoff(@dtpmod(foo#)), gp
23696 addl r17 = @ltoff(@dtprel(foo#)), gp
23697 addl r18 = @ltoff(@tprel(foo#)), gp
23698 addl r19 = @dtprel(foo#), gp
23699 adds r21 = @dtprel(foo#), r13
23700 movl r23 = @dtprel(foo#)
23701 addl r20 = @tprel(foo#), gp
23702 adds r22 = @tprel(foo#), r13
23703 movl r24 = @tprel(foo#)'
23706 tls_as_opt
=--fatal-warnings
23710 .section .tdata,"awT",@progbits
23714 addik r5,r20,x@TLSGD
23715 addik r5,r20,x@TLSLDM'
23718 tls_as_opt
='--fatal-warnings'
23722 .section .tdata,"awT",@progbits
23726 addiu $4, $28, %tlsgd(x)
23727 addiu $4, $28, %tlsldm(x)
23728 lui $4, %dtprel_hi(x)
23729 addiu $4, $4, %dtprel_lo(x)
23730 lw $4, %gottprel(x)($28)
23731 lui $4, %tprel_hi(x)
23732 addiu $4, $4, %tprel_lo(x)'
23735 tls_as_opt
='-32 --fatal-warnings'
23739 .section .tdata,"awT",@progbits
23744 move.l x@TLSGD(%a5),%a0
23745 move.l x@TLSLDM(%a5),%a0
23746 move.l x@TLSLDO(%a5),%a0
23747 move.l x@TLSIE(%a5),%a0
23748 move.l x@TLSLE(%a5),%a0'
23751 tls_as_opt
='--fatal-warnings'
23755 .section ".tdata","awT",@progbits'
23758 tls_as_opt
="--fatal-warnings"
23762 .section ".tdata","awT",%progbits
23766 add x0, x0, #:tlsgd_lo12:x
23771 tls_as_opt
='--fatal-warnings'
23775 .extern __get_tpointer
23793 .section ".tdata","awT",@progbits
23801 addi 3,2,ld0@got@tlsgd
23807 addi 3,2,x1@got@tlsld
23813 addis 9,3,x2@dtprel@ha
23814 addi 9,9,x2@dtprel@l
23817 ld 9,x3@got@dtprel(2)
23823 tls_as_opt
="-a64 --fatal-warnings"
23827 .section ".tdata","awT",@progbits
23835 addi 3,31,ld0@got@tlsgd
23837 addi 3,31,x1@got@tlsld
23840 addis 9,3,x2@dtprel@ha
23841 addi 9,9,x2@dtprel@l
23842 lwz 9,x3@got@tprel(31)
23845 addis 9,2,x2@tprel@ha
23846 addi 9,9,x2@tprel@l'
23849 tls_as_opt
="-a32 --fatal-warnings"
23853 .section ".tdata","awT",@progbits
23860 .long foo@GOTNTPOFF
23861 .long foo@INDNTPOFF
23862 l %r1,foo@GOTNTPOFF(%r12)
23863 l %r1,0(%r1):tls_load:foo
23864 bas %r14,0(%r1,%r13):tls_gdcall:foo
23865 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23868 tls_as_opt
="-m31 --fatal-warnings"
23872 .section ".tdata","awT",@progbits
23879 .quad foo@GOTNTPOFF
23880 lg %r1,foo@GOTNTPOFF(%r12)
23881 larl %r1,foo@INDNTPOFF
23882 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23883 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23886 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23888 sh-
*-* | sh
[34]-*-*)
23890 .section ".tdata","awT",@progbits
23900 tls_as_opt
=--fatal-warnings
23904 sparc
*-sun-solaris2.
*)
23911 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23913 .section ".tdata",#alloc,#write,#tls'
23918 .section ".tdata","awT",@progbits'
23921 tls_as_opt
="-32 --fatal-warnings"
23923 conftest_s
="$conftest_s
23926 sethi %tgd_hi22(foo), %o0
23927 add %o0, %tgd_lo10(foo), %o1
23928 add %l7, %o1, %o0, %tgd_add(foo)
23929 call __tls_get_addr, %tgd_call(foo)
23930 sethi %tldm_hi22(foo), %l1
23931 add %l1, %tldm_lo10(foo), %l2
23932 add %l7, %l2, %o0, %tldm_add(foo)
23933 call __tls_get_addr, %tldm_call(foo)
23934 sethi %tldo_hix22(foo), %l3
23935 xor %l3, %tldo_lox10(foo), %l4
23936 add %o0, %l4, %l5, %tldo_add(foo)
23937 sethi %tie_hi22(foo), %o3
23938 add %o3, %tie_lo10(foo), %o3
23939 ld [%l7 + %o3], %o2, %tie_ld(foo)
23940 add %g7, %o2, %o4, %tie_add(foo)
23941 sethi %tle_hix22(foo), %l1
23942 xor %l1, %tle_lox10(foo), %o5
23943 ld [%g7 + %o5], %o1"
23947 .section ".tdata","awT",@progbits
23950 addli r0, zero, tls_gd(foo)
23951 auli r0, zero, tls_gd_ha16(foo)
23952 addli r0, r0, tls_gd_lo16(foo)
23954 addli r0, zero, tls_ie(foo)
23955 auli r0, r0, tls_ie_ha16(foo)
23956 addli r0, r0, tls_ie_lo16(foo)'
23959 tls_as_opt
="--fatal-warnings"
23963 .section ".tdata","awT",@progbits
23966 shl16insli r0, zero, hw0_last_tls_gd(foo)
23967 shl16insli r0, zero, hw1_last_tls_gd(foo)
23968 shl16insli r0, r0, hw0_tls_gd(foo)
23970 shl16insli r0, zero, hw1_last_tls_ie(foo)
23971 shl16insli r0, r0, hw0_tls_ie(foo)'
23974 tls_as_opt
="--fatal-warnings"
23978 .section ".tdata","awT",@progbits
23981 movi a8, foo@TLSFUNC
23982 movi a10, foo@TLSARG
23983 callx8.tls a8, foo@TLSCALL'
23989 if test "x$enable_tls" = xno
; then
23990 : # TLS explicitly disabled.
23991 elif test "x$enable_tls" = xyes
; then
23992 set_have_as_tls
=yes # TLS explicitly enabled.
23993 elif test -z "$tls_first_major"; then
23994 : # If we don't have a check, assume no support.
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23997 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23998 if test "${gcc_cv_as_tls+set}" = set; then :
23999 $as_echo_n "(cached) " >&6
24002 if test $in_tree_gas = yes; then
24003 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24004 then gcc_cv_as_tls
=yes
24006 elif test x
$gcc_cv_as != x
; then
24007 $as_echo "$conftest_s" > conftest.s
24008 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24010 (eval $ac_try) 2>&5
24012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24013 test $ac_status = 0; }; }
24017 echo "configure: failed program was" >&5
24020 rm -f conftest.o conftest.s
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24024 $as_echo "$gcc_cv_as_tls" >&6; }
24025 if test $gcc_cv_as_tls = yes; then
24026 set_have_as_tls
=yes
24029 if test $set_have_as_tls = yes ; then
24031 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24035 # Target-specific assembler checks.
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24038 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24039 gcc_cv_ld_static_dynamic
=no
24040 gcc_cv_ld_static_option
='-Bstatic'
24041 gcc_cv_ld_dynamic_option
='-Bdynamic'
24042 if test $in_tree_ld = yes ; then
24043 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
24044 gcc_cv_ld_static_dynamic
=yes
24046 elif test x
$gcc_cv_ld != x
; then
24047 # Check if linker supports -Bstatic/-Bdynamic option
24048 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24049 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24050 gcc_cv_ld_static_dynamic
=yes
24053 # AIX ld uses -b flags
24054 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24055 gcc_cv_ld_static_dynamic
=yes
24056 gcc_cv_ld_static_option
="-bstatic"
24057 gcc_cv_ld_dynamic_option
="-bdynamic"
24059 # HP-UX ld uses -a flags to select between shared and archive.
24061 if test x
"$gnu_ld" = xno
; then
24062 gcc_cv_ld_static_dynamic
=yes
24063 gcc_cv_ld_static_option
="-aarchive_shared"
24064 gcc_cv_ld_dynamic_option
="-adefault"
24067 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24069 gcc_cv_ld_static_dynamic
=yes
24074 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24076 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24079 cat >>confdefs.h
<<_ACEOF
24080 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24084 cat >>confdefs.h
<<_ACEOF
24085 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24090 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24092 if test x
"$demangler_in_ld" = xyes
; then
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24094 $as_echo_n "checking linker --demangle support... " >&6; }
24095 gcc_cv_ld_demangle
=no
24096 if test $in_tree_ld = yes; then
24097 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 \
24098 gcc_cv_ld_demangle
=yes
24100 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24101 # Check if the GNU linker supports --demangle option
24102 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24103 gcc_cv_ld_demangle
=yes
24106 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24108 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24112 $as_echo "$gcc_cv_ld_demangle" >&6; }
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24116 $as_echo_n "checking linker plugin support... " >&6; }
24117 gcc_cv_lto_plugin
=0
24118 if test -f liblto_plugin.la
; then
24119 save_ld_ver
="$ld_ver"
24120 save_ld_vers_major
="$ld_vers_major"
24121 save_ld_vers_minor
="$ld_vers_minor"
24122 save_ld_is_gold
="$ld_is_gold"
24126 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24128 # FIXME: ld_is_gold?
24129 ld_vers_major
="$gcc_cv_gld_major_version"
24130 ld_vers_minor
="$gcc_cv_gld_minor_version"
24132 # Determine plugin linker version.
24133 # FIXME: Partial duplicate from above, generalize.
24134 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24135 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24136 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24138 ld_vers
=`echo $ld_ver | sed -n \
24139 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24141 ld_vers
=`echo $ld_ver | sed -n \
24142 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24144 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24145 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24149 # Determine plugin support.
24150 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24151 # Require GNU ld or gold 2.21+ for plugin support by default.
24152 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24153 gcc_cv_lto_plugin
=2
24154 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24155 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24156 gcc_cv_lto_plugin
=1
24160 ld_ver
="$save_ld_ver"
24161 ld_vers_major
="$save_ld_vers_major"
24162 ld_vers_minor
="$save_ld_vers_minor"
24163 ld_is_gold
="$save_ld_is_gold"
24166 cat >>confdefs.h
<<_ACEOF
24167 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24171 $as_echo "$gcc_cv_lto_plugin" >&6; }
24175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24176 $as_echo_n "checking assembler for -mabi option... " >&6; }
24177 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24178 $as_echo_n "(cached) " >&6
24180 gcc_cv_as_aarch64_mabi
=no
24181 if test x
$gcc_cv_as != x
; then
24182 $as_echo '.text' > conftest.s
24183 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24185 (eval $ac_try) 2>&5
24187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24188 test $ac_status = 0; }; }
24190 gcc_cv_as_aarch64_mabi
=yes
24192 echo "configure: failed program was" >&5
24195 rm -f conftest.o conftest.s
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24199 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24201 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24203 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24206 if test x
$with_abi = xilp32
; then
24207 as_fn_error
"Assembler does not support -mabi=ilp32.\
24208 Upgrade the Assembler." "$LINENO" 5
24210 if test x
"$with_multilib_list" = xdefault
; then
24211 TM_MULTILIB_CONFIG
=lp64
24213 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24214 for aarch64_multilib
in ${aarch64_multilibs}; do
24215 case ${aarch64_multilib} in
24217 as_fn_error
"Assembler does not support -mabi=ilp32.\
24218 Upgrade the Assembler." "$LINENO" 5
24226 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24227 # Check whether --enable-fix-cortex-a53-835769 was given.
24228 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24229 enableval
=$enable_fix_cortex_a53_835769;
24232 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24237 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24238 Valid choices are 'yes' and 'no'." "$LINENO" 5
24245 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24246 # Check whether --enable-fix-cortex-a53-843419 was given.
24247 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24248 enableval
=$enable_fix_cortex_a53_843419;
24251 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24256 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24257 Valid choices are 'yes' and 'no'." "$LINENO" 5
24266 # All TARGET_ABI_OSF targets.
24267 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24269 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24270 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24273 gcc_cv_as_alpha_explicit_relocs
=no
24274 if test $in_tree_gas = yes; then
24275 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24276 then gcc_cv_as_alpha_explicit_relocs
=yes
24278 elif test x
$gcc_cv_as != x
; then
24279 $as_echo ' .set nomacro
24281 extbl $3, $2, $3 !lituse_bytoff!1
24282 ldq $2, a($29) !literal!1
24283 ldq $4, b($29) !literal!2
24284 ldq_u $3, 0($2) !lituse_base!1
24285 ldq $27, f($29) !literal!5
24286 jsr $26, ($27), f !lituse_jsr!5
24287 ldah $29, 0($26) !gpdisp!3
24288 lda $0, c($29) !gprel
24289 ldah $1, d($29) !gprelhigh
24290 lda $1, d($1) !gprellow
24291 lda $29, 0($29) !gpdisp!3' > conftest.s
24292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24294 (eval $ac_try) 2>&5
24296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24297 test $ac_status = 0; }; }
24299 gcc_cv_as_alpha_explicit_relocs
=yes
24301 echo "configure: failed program was" >&5
24304 rm -f conftest.o conftest.s
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24308 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24309 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24311 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24315 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24316 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24317 $as_echo_n "(cached) " >&6
24319 gcc_cv_as_alpha_jsrdirect_relocs
=no
24320 if test $in_tree_gas = yes; then
24321 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24322 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24324 elif test x
$gcc_cv_as != x
; then
24325 $as_echo ' .set nomacro
24327 ldq $27, a($29) !literal!1
24328 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24329 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24331 (eval $ac_try) 2>&5
24333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24334 test $ac_status = 0; }; }
24336 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24338 echo "configure: failed program was" >&5
24341 rm -f conftest.o conftest.s
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24345 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24346 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24348 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24355 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24356 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24357 $as_echo_n "(cached) " >&6
24359 gcc_cv_as_avr_mlink_relax
=no
24360 if test x
$gcc_cv_as != x
; then
24361 $as_echo '.text' > conftest.s
24362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24364 (eval $ac_try) 2>&5
24366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24367 test $ac_status = 0; }; }
24369 gcc_cv_as_avr_mlink_relax
=yes
24371 echo "configure: failed program was" >&5
24374 rm -f conftest.o conftest.s
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24378 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24379 if test $gcc_cv_as_avr_mlink_relax = yes; then
24381 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24386 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24387 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24388 $as_echo_n "(cached) " >&6
24390 gcc_cv_as_avr_mrmw
=no
24391 if test x
$gcc_cv_as != x
; then
24392 $as_echo '.text' > conftest.s
24393 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24395 (eval $ac_try) 2>&5
24397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24398 test $ac_status = 0; }; }
24400 gcc_cv_as_avr_mrmw
=yes
24402 echo "configure: failed program was" >&5
24405 rm -f conftest.o conftest.s
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24409 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24410 if test $gcc_cv_as_avr_mrmw = yes; then
24412 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24419 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24420 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24421 $as_echo_n "(cached) " >&6
24423 gcc_cv_as_cris_no_mul_bug
=no
24424 if test $in_tree_gas = yes; then
24425 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24426 then gcc_cv_as_cris_no_mul_bug
=yes
24428 elif test x
$gcc_cv_as != x
; then
24429 $as_echo '.text' > conftest.s
24430 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24432 (eval $ac_try) 2>&5
24434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24435 test $ac_status = 0; }; }
24437 gcc_cv_as_cris_no_mul_bug
=yes
24439 echo "configure: failed program was" >&5
24442 rm -f conftest.o conftest.s
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24446 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24447 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24449 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24456 $as_echo_n "checking assembler for .register... " >&6; }
24457 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24458 $as_echo_n "(cached) " >&6
24460 gcc_cv_as_sparc_register_op
=no
24461 if test x
$gcc_cv_as != x
; then
24462 $as_echo '.register %g2, #scratch' > conftest.s
24463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24465 (eval $ac_try) 2>&5
24467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24468 test $ac_status = 0; }; }
24470 gcc_cv_as_sparc_register_op
=yes
24472 echo "configure: failed program was" >&5
24475 rm -f conftest.o conftest.s
24478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24479 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24480 if test $gcc_cv_as_sparc_register_op = yes; then
24482 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24487 $as_echo_n "checking assembler for #nobits... " >&6; }
24488 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24489 $as_echo_n "(cached) " >&6
24491 gcc_cv_as_sparc_nobits
=no
24492 if test x
$gcc_cv_as != x
; then
24493 $as_echo '.section "nobits",#alloc,#write,#nobits
24494 .section "progbits",#alloc,#write,#progbits' > conftest.s
24495 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24497 (eval $ac_try) 2>&5
24499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24500 test $ac_status = 0; }; }
24502 gcc_cv_as_sparc_nobits
=yes
24504 echo "configure: failed program was" >&5
24507 rm -f conftest.o conftest.s
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24511 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24514 cat >>confdefs.h
<<_ACEOF
24515 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24520 $as_echo_n "checking assembler for -relax option... " >&6; }
24521 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24522 $as_echo_n "(cached) " >&6
24524 gcc_cv_as_sparc_relax
=no
24525 if test x
$gcc_cv_as != x
; then
24526 $as_echo '.text' > conftest.s
24527 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24529 (eval $ac_try) 2>&5
24531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24532 test $ac_status = 0; }; }
24534 gcc_cv_as_sparc_relax
=yes
24536 echo "configure: failed program was" >&5
24539 rm -f conftest.o conftest.s
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24543 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24544 if test $gcc_cv_as_sparc_relax = yes; then
24546 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24551 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24552 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24553 $as_echo_n "(cached) " >&6
24555 gcc_cv_as_sparc_gotdata_op
=no
24556 if test x
$gcc_cv_as != x
; then
24562 sethi %gdop_hix22(foo), %g1
24563 xor %g1, %gdop_lox10(foo), %g1
24564 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24567 (eval $ac_try) 2>&5
24569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24570 test $ac_status = 0; }; }
24572 if test x
$gcc_cv_ld != x \
24573 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24574 if test x
$gcc_cv_objdump != x
; then
24575 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24576 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24577 gcc_cv_as_sparc_gotdata_op
=no
24579 gcc_cv_as_sparc_gotdata_op
=yes
24585 echo "configure: failed program was" >&5
24588 rm -f conftest.o conftest.s
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24592 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24593 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24595 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24600 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24601 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24602 $as_echo_n "(cached) " >&6
24604 gcc_cv_as_sparc_ua_pcrel
=no
24605 if test x
$gcc_cv_as != x
; then
24612 .uaword %r_disp32(foo)' > conftest.s
24613 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24615 (eval $ac_try) 2>&5
24617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24618 test $ac_status = 0; }; }
24620 if test x
$gcc_cv_ld != x \
24621 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24622 gcc_cv_as_sparc_ua_pcrel
=yes
24626 echo "configure: failed program was" >&5
24629 rm -f conftest.o conftest.s
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24633 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24634 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24636 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24640 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24641 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24642 $as_echo_n "(cached) " >&6
24644 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24645 if test x
$gcc_cv_as != x
; then
24649 .uaword %r_disp32(foo)
24650 .byte 0x32, 0x33, 0x34
24654 .skip 4' > conftest.s
24655 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24657 (eval $ac_try) 2>&5
24659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24660 test $ac_status = 0; }; }
24662 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24663 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24664 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24665 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24666 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24667 |
grep 'DISP32' > /dev
/null
2>&1; then
24670 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24675 echo "configure: failed program was" >&5
24678 rm -f conftest.o conftest.s
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24682 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24683 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24685 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24689 fi # unaligned pcrel relocs
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24692 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24693 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24694 $as_echo_n "(cached) " >&6
24696 gcc_cv_as_sparc_offsetable_lo10
=no
24697 if test x
$gcc_cv_as != x
; then
24699 or %g1, %lo(ab) + 12, %g1
24700 or %g1, %lo(ab + 12), %g1' > conftest.s
24701 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24703 (eval $ac_try) 2>&5
24705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24706 test $ac_status = 0; }; }
24708 if test x
$gcc_cv_objdump != x \
24709 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24710 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24711 gcc_cv_as_sparc_offsetable_lo10
=yes
24714 echo "configure: failed program was" >&5
24717 rm -f conftest.o conftest.s
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24721 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24722 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24724 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24729 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24730 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24731 $as_echo_n "(cached) " >&6
24733 gcc_cv_as_sparc_fmaf
=no
24734 if test x
$gcc_cv_as != x
; then
24736 .register %g2, #scratch
24737 .register %g3, #scratch
24739 fmaddd %f0, %f2, %f4, %f6
24740 addxccc %g1, %g2, %g3
24741 fsrl32 %f2, %f4, %f8
24742 fnaddd %f10, %f12, %f14' > conftest.s
24743 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24745 (eval $ac_try) 2>&5
24747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24748 test $ac_status = 0; }; }
24750 gcc_cv_as_sparc_fmaf
=yes
24752 echo "configure: failed program was" >&5
24755 rm -f conftest.o conftest.s
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24759 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24760 if test $gcc_cv_as_sparc_fmaf = yes; then
24762 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24767 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24768 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24769 $as_echo_n "(cached) " >&6
24771 gcc_cv_as_sparc_sparc4
=no
24772 if test x
$gcc_cv_as != x
; then
24774 .register %g2, #scratch
24775 .register %g3, #scratch
24778 1: cwbneg %g2, %g3, 1f
24781 aes_kexpand0 %f4, %f6, %f8
24782 des_round %f38, %f40, %f42, %f44
24783 camellia_f %f54, %f56, %f58, %f60
24784 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24785 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24787 (eval $ac_try) 2>&5
24789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24790 test $ac_status = 0; }; }
24792 gcc_cv_as_sparc_sparc4
=yes
24794 echo "configure: failed program was" >&5
24797 rm -f conftest.o conftest.s
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24801 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24802 if test $gcc_cv_as_sparc_sparc4 = yes; then
24804 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24809 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24810 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24811 $as_echo_n "(cached) " >&6
24813 gcc_cv_as_sparc_leon
=no
24814 if test x
$gcc_cv_as != x
; then
24816 .register %g2, #scratch
24817 .register %g3, #scratch
24821 casa [%g2] 0xb, %g3, %g1' > conftest.s
24822 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24829 gcc_cv_as_sparc_leon
=yes
24831 echo "configure: failed program was" >&5
24834 rm -f conftest.o conftest.s
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24838 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24839 if test $gcc_cv_as_sparc_leon = yes; then
24841 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24846 i
[34567]86-*-* | x86_64-
*-*)
24849 # Full C++ conformance when using a shared libstdc++-v3 requires some
24850 # support from the Cygwin DLL, which in more recent versions exports
24851 # wrappers to aid in interposing and redirecting operators new, delete,
24852 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24853 # are configuring for a version of Cygwin that exports the wrappers.
24854 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24855 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24856 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24857 gcc_ac_cygwin_dll_wrappers
=yes
24859 gcc_ac_cygwin_dll_wrappers
=no
24863 # Can't check presence of libc functions during cross-compile, so
24864 # we just have to assume we're building for an up-to-date target.
24865 gcc_ac_cygwin_dll_wrappers
=yes
24868 cat >>confdefs.h
<<_ACEOF
24869 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24874 cygwin
* | pe | mingw32
* | interix
*)
24875 # Recent binutils allows the three-operand form of ".comm" on PE. This
24876 # definition is used unconditionally to initialise the default state of
24877 # the target option variable that governs usage of the feature.
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24879 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24880 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24881 $as_echo_n "(cached) " >&6
24883 gcc_cv_as_comm_has_align
=no
24884 if test $in_tree_gas = yes; then
24885 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24886 then gcc_cv_as_comm_has_align
=yes
24888 elif test x
$gcc_cv_as != x
; then
24889 $as_echo '.comm foo,1,32' > conftest.s
24890 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24892 (eval $ac_try) 2>&5
24894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24895 test $ac_status = 0; }; }
24897 gcc_cv_as_comm_has_align
=yes
24899 echo "configure: failed program was" >&5
24902 rm -f conftest.o conftest.s
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24906 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24909 cat >>confdefs.h
<<_ACEOF
24910 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24913 # Used for DWARF 2 in PE
24914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24915 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24916 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24917 $as_echo_n "(cached) " >&6
24919 gcc_cv_as_ix86_pe_secrel32
=no
24920 if test $in_tree_gas = yes; then
24921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24922 then gcc_cv_as_ix86_pe_secrel32
=yes
24924 elif test x
$gcc_cv_as != x
; then
24928 .secrel32 foo' > conftest.s
24929 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24931 (eval $ac_try) 2>&5
24933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24934 test $ac_status = 0; }; }
24936 if test x
$gcc_cv_ld != x \
24937 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24938 gcc_cv_as_ix86_pe_secrel32
=yes
24942 echo "configure: failed program was" >&5
24945 rm -f conftest.o conftest.s
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24949 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24950 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24952 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24955 # Test if the assembler supports the extended form of the .section
24956 # directive that specifies section alignment. LTO support uses this,
24957 # but normally only after installation, so we warn but don't fail the
24958 # configure if LTO is enabled but the assembler does not support it.
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24960 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24961 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24964 gcc_cv_as_section_has_align
=no
24965 if test $in_tree_gas = yes; then
24966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24967 then gcc_cv_as_section_has_align
=yes
24969 elif test x
$gcc_cv_as != x
; then
24970 $as_echo '.section lto_test,"dr0"' > conftest.s
24971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24973 (eval $ac_try) 2>&5
24975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24976 test $ac_status = 0; }; }
24978 gcc_cv_as_section_has_align
=yes
24980 echo "configure: failed program was" >&5
24983 rm -f conftest.o conftest.s
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24987 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24989 if test x
$gcc_cv_as_section_has_align != xyes
; then
24990 case ",$enable_languages," in
24992 { $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
24993 $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;}
25000 # Test if the assembler supports the section flag 'e' for specifying
25001 # an excluded section.
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25003 $as_echo_n "checking assembler for .section with e... " >&6; }
25004 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25005 $as_echo_n "(cached) " >&6
25007 gcc_cv_as_section_has_e
=no
25008 if test $in_tree_gas = yes; then
25009 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25010 then gcc_cv_as_section_has_e
=yes
25012 elif test x
$gcc_cv_as != x
; then
25013 $as_echo '.section foo1,"e"
25014 .byte 0,0,0,0' > conftest.s
25015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017 (eval $ac_try) 2>&5
25019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020 test $ac_status = 0; }; }
25022 gcc_cv_as_section_has_e
=yes
25024 echo "configure: failed program was" >&5
25027 rm -f conftest.o conftest.s
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25031 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25034 cat >>confdefs.h
<<_ACEOF
25035 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25040 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25041 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25042 $as_echo_n "(cached) " >&6
25044 gcc_cv_as_ix86_filds
=no
25045 if test x
$gcc_cv_as != x
; then
25046 $as_echo 'filds mem; fists mem' > conftest.s
25047 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25049 (eval $ac_try) 2>&5
25051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25052 test $ac_status = 0; }; }
25054 gcc_cv_as_ix86_filds
=yes
25056 echo "configure: failed program was" >&5
25059 rm -f conftest.o conftest.s
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25063 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25064 if test $gcc_cv_as_ix86_filds = yes; then
25066 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25071 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25072 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25073 $as_echo_n "(cached) " >&6
25075 gcc_cv_as_ix86_fildq
=no
25076 if test x
$gcc_cv_as != x
; then
25077 $as_echo 'fildq mem; fistpq mem' > conftest.s
25078 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25080 (eval $ac_try) 2>&5
25082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25083 test $ac_status = 0; }; }
25085 gcc_cv_as_ix86_fildq
=yes
25087 echo "configure: failed program was" >&5
25090 rm -f conftest.o conftest.s
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25094 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25095 if test $gcc_cv_as_ix86_fildq = yes; then
25097 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25102 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25103 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25104 $as_echo_n "(cached) " >&6
25106 gcc_cv_as_ix86_cmov_sun_syntax
=no
25107 if test x
$gcc_cv_as != x
; then
25108 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25109 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25111 (eval $ac_try) 2>&5
25113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25114 test $ac_status = 0; }; }
25116 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25118 echo "configure: failed program was" >&5
25121 rm -f conftest.o conftest.s
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25125 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25126 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25128 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25133 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25134 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25135 $as_echo_n "(cached) " >&6
25137 gcc_cv_as_ix86_ffreep
=no
25138 if test x
$gcc_cv_as != x
; then
25139 $as_echo 'ffreep %st(1)' > conftest.s
25140 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25142 (eval $ac_try) 2>&5
25144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25145 test $ac_status = 0; }; }
25147 gcc_cv_as_ix86_ffreep
=yes
25149 echo "configure: failed program was" >&5
25152 rm -f conftest.o conftest.s
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25156 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25157 if test $gcc_cv_as_ix86_ffreep = yes; then
25159 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25164 $as_echo_n "checking assembler for .quad directive... " >&6; }
25165 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25166 $as_echo_n "(cached) " >&6
25168 gcc_cv_as_ix86_quad
=no
25169 if test x
$gcc_cv_as != x
; then
25170 $as_echo '.quad 0' > conftest.s
25171 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25173 (eval $ac_try) 2>&5
25175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25176 test $ac_status = 0; }; }
25178 gcc_cv_as_ix86_quad
=yes
25180 echo "configure: failed program was" >&5
25183 rm -f conftest.o conftest.s
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25187 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25188 if test $gcc_cv_as_ix86_quad = yes; then
25190 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25195 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25196 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25199 gcc_cv_as_ix86_sahf
=no
25200 if test x
$gcc_cv_as != x
; then
25203 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25205 (eval $ac_try) 2>&5
25207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25208 test $ac_status = 0; }; }
25210 gcc_cv_as_ix86_sahf
=yes
25212 echo "configure: failed program was" >&5
25215 rm -f conftest.o conftest.s
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25219 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25220 if test $gcc_cv_as_ix86_sahf = yes; then
25222 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25227 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25228 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25229 $as_echo_n "(cached) " >&6
25231 gcc_cv_as_ix86_interunit_movq
=no
25232 if test x
$gcc_cv_as != x
; then
25235 movq %rax, %xmm0' > conftest.s
25236 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25238 (eval $ac_try) 2>&5
25240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25241 test $ac_status = 0; }; }
25243 gcc_cv_as_ix86_interunit_movq
=yes
25245 echo "configure: failed program was" >&5
25248 rm -f conftest.o conftest.s
25251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25252 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25255 cat >>confdefs.h
<<_ACEOF
25256 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25261 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25262 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25263 $as_echo_n "(cached) " >&6
25265 gcc_cv_as_ix86_hle
=no
25266 if test x
$gcc_cv_as != x
; then
25267 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25268 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25270 (eval $ac_try) 2>&5
25272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25273 test $ac_status = 0; }; }
25275 gcc_cv_as_ix86_hle
=yes
25277 echo "configure: failed program was" >&5
25280 rm -f conftest.o conftest.s
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25284 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25285 if test $gcc_cv_as_ix86_hle = yes; then
25287 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25292 $as_echo_n "checking assembler for swap suffix... " >&6; }
25293 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25294 $as_echo_n "(cached) " >&6
25296 gcc_cv_as_ix86_swap
=no
25297 if test x
$gcc_cv_as != x
; then
25298 $as_echo 'movl.s %esp, %ebp' > conftest.s
25299 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25301 (eval $ac_try) 2>&5
25303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25304 test $ac_status = 0; }; }
25306 gcc_cv_as_ix86_swap
=yes
25308 echo "configure: failed program was" >&5
25311 rm -f conftest.o conftest.s
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25315 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25316 if test $gcc_cv_as_ix86_swap = yes; then
25318 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25323 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25324 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25325 $as_echo_n "(cached) " >&6
25327 gcc_cv_as_ix86_diff_sect_delta
=no
25328 if test x
$gcc_cv_as != x
; then
25329 $as_echo '.section .rodata
25335 .L2: nop' > conftest.s
25336 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25338 (eval $ac_try) 2>&5
25340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25341 test $ac_status = 0; }; }
25343 gcc_cv_as_ix86_diff_sect_delta
=yes
25345 echo "configure: failed program was" >&5
25348 rm -f conftest.o conftest.s
25351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25352 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25353 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25355 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25359 # These two are used unconditionally by i386.[ch]; it is to be defined
25360 # to 1 if the feature is present, 0 otherwise.
25361 as_ix86_gotoff_in_data_opt
=
25362 if test x
$gas = xyes
; then
25363 as_ix86_gotoff_in_data_opt
="--32"
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25366 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25367 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25368 $as_echo_n "(cached) " >&6
25370 gcc_cv_as_ix86_gotoff_in_data
=no
25371 if test $in_tree_gas = yes; then
25372 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25373 then gcc_cv_as_ix86_gotoff_in_data
=yes
25375 elif test x
$gcc_cv_as != x
; then
25380 .long .L0@GOTOFF' > conftest.s
25381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25383 (eval $ac_try) 2>&5
25385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25386 test $ac_status = 0; }; }
25388 gcc_cv_as_ix86_gotoff_in_data
=yes
25390 echo "configure: failed program was" >&5
25393 rm -f conftest.o conftest.s
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25397 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25400 cat >>confdefs.h
<<_ACEOF
25401 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25406 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25407 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25408 $as_echo_n "(cached) " >&6
25410 gcc_cv_as_ix86_rep_lock_prefix
=no
25411 if test x
$gcc_cv_as != x
; then
25412 $as_echo 'rep movsl
25417 lock addl %edi, (%eax,%esi)
25418 lock orl $0, (%esp)' > conftest.s
25419 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25421 (eval $ac_try) 2>&5
25423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25424 test $ac_status = 0; }; }
25426 gcc_cv_as_ix86_rep_lock_prefix
=yes
25428 echo "configure: failed program was" >&5
25431 rm -f conftest.o conftest.s
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25435 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25436 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25438 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25443 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25444 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25445 $as_echo_n "(cached) " >&6
25447 gcc_cv_as_ix86_ud2
=no
25448 if test x
$gcc_cv_as != x
; then
25449 $as_echo 'ud2' > conftest.s
25450 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25452 (eval $ac_try) 2>&5
25454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25455 test $ac_status = 0; }; }
25457 gcc_cv_as_ix86_ud2
=yes
25459 echo "configure: failed program was" >&5
25462 rm -f conftest.o conftest.s
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25466 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25467 if test $gcc_cv_as_ix86_ud2 = yes; then
25469 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25474 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25475 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25476 $as_echo_n "(cached) " >&6
25478 gcc_cv_as_ix86_tlsgdplt
=no
25479 if test x
$gcc_cv_as != x
; then
25480 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25483 (eval $ac_try) 2>&5
25485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25486 test $ac_status = 0; }; }
25488 if test x
$gcc_cv_ld != x \
25489 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25490 gcc_cv_as_ix86_tlsgdplt
=yes
25494 echo "configure: failed program was" >&5
25497 rm -f conftest.o conftest.s
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25501 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25502 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25504 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25509 .section .tdata,"aw'$tls_section_flag'",@progbits
25511 .section .text,"ax",@progbits
25512 call tls_ld@tlsldmplt'
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25514 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25515 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25516 $as_echo_n "(cached) " >&6
25518 gcc_cv_as_ix86_tlsldmplt
=no
25519 if test x
$gcc_cv_as != x
; then
25520 $as_echo "$conftest_s" > conftest.s
25521 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25523 (eval $ac_try) 2>&5
25525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25526 test $ac_status = 0; }; }
25528 if test x
$gcc_cv_ld != x \
25529 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25530 gcc_cv_as_ix86_tlsldmplt
=yes
25534 echo "configure: failed program was" >&5
25537 rm -f conftest.o conftest.s
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25541 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25544 cat >>confdefs.h
<<_ACEOF
25545 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25549 # Enforce 32-bit output with gas and gld.
25550 if test x
$gas = xyes
; then
25551 as_ix86_tls_ldm_opt
="--32"
25553 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25554 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25555 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25557 ld_ix86_tls_ldm_opt
="-melf_i386"
25561 .section .text,"ax",@progbits
25563 .type _start, @function
25565 leal value@tlsldm(%ebx), %eax
25566 call ___tls_get_addr@plt
25568 .section .tdata,"aw'$tls_section_flag'",@progbits
25569 .type value, @object
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25572 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25573 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25574 $as_echo_n "(cached) " >&6
25576 gcc_cv_as_ix86_tlsldm
=no
25577 if test x
$gcc_cv_as != x
; then
25578 $as_echo "$conftest_s" > conftest.s
25579 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25581 (eval $ac_try) 2>&5
25583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25584 test $ac_status = 0; }; }
25586 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25587 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25588 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25589 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25590 gcc_cv_as_ix86_tlsldm
=yes
25595 echo "configure: failed program was" >&5
25598 rm -f conftest.o conftest.s
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25602 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25605 cat >>confdefs.h
<<_ACEOF
25606 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25614 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25615 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25616 $as_echo_n "(cached) " >&6
25618 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25619 if test $in_tree_gas = yes; then
25620 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25621 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25623 elif test x
$gcc_cv_as != x
; then
25625 addl r15 = @ltoffx(x#), gp
25627 ld8.mov r16 = [r15], x#' > conftest.s
25628 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25630 (eval $ac_try) 2>&5
25632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25633 test $ac_status = 0; }; }
25635 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25637 echo "configure: failed program was" >&5
25640 rm -f conftest.o conftest.s
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25644 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25645 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25647 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25655 *-*-aix*) conftest_s
=' .machine "pwr5"
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25660 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25661 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25662 $as_echo_n "(cached) " >&6
25664 gcc_cv_as_machine_directive
=no
25665 if test x
$gcc_cv_as != x
; then
25666 $as_echo ' .machine ppc7400' > conftest.s
25667 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25669 (eval $ac_try) 2>&5
25671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25672 test $ac_status = 0; }; }
25674 gcc_cv_as_machine_directive
=yes
25676 echo "configure: failed program was" >&5
25679 rm -f conftest.o conftest.s
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25683 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25685 if test x
$gcc_cv_as_machine_directive != xyes
; then
25686 echo "*** This target requires an assembler supporting \".machine\"" >&2
25687 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25688 test x
$build = x
$target && exit 1
25692 *) conftest_s
=' .machine power4
25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25698 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25699 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25700 $as_echo_n "(cached) " >&6
25702 gcc_cv_as_powerpc_mfcrf
=no
25703 if test $in_tree_gas = yes; then
25704 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25705 then gcc_cv_as_powerpc_mfcrf
=yes
25707 elif test x
$gcc_cv_as != x
; then
25708 $as_echo "$conftest_s" > conftest.s
25709 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25711 (eval $ac_try) 2>&5
25713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25714 test $ac_status = 0; }; }
25716 gcc_cv_as_powerpc_mfcrf
=yes
25718 echo "configure: failed program was" >&5
25721 rm -f conftest.o conftest.s
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25725 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25726 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25728 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25733 *-*-aix*) conftest_s
=' .machine "pwr5"
25736 *) conftest_s
=' .machine power5
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25742 $as_echo_n "checking assembler for popcntb support... " >&6; }
25743 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25744 $as_echo_n "(cached) " >&6
25746 gcc_cv_as_powerpc_popcntb
=no
25747 if test $in_tree_gas = yes; then
25748 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25749 then gcc_cv_as_powerpc_popcntb
=yes
25751 elif test x
$gcc_cv_as != x
; then
25752 $as_echo "$conftest_s" > conftest.s
25753 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25755 (eval $ac_try) 2>&5
25757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25758 test $ac_status = 0; }; }
25760 gcc_cv_as_powerpc_popcntb
=yes
25762 echo "configure: failed program was" >&5
25765 rm -f conftest.o conftest.s
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25769 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25770 if test $gcc_cv_as_powerpc_popcntb = yes; then
25772 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25777 *-*-aix*) conftest_s
=' .machine "pwr5x"
25780 *) conftest_s
=' .machine power5
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25786 $as_echo_n "checking assembler for fp round support... " >&6; }
25787 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25790 gcc_cv_as_powerpc_fprnd
=no
25791 if test $in_tree_gas = yes; then
25792 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25793 then gcc_cv_as_powerpc_fprnd
=yes
25795 elif test x
$gcc_cv_as != x
; then
25796 $as_echo "$conftest_s" > conftest.s
25797 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25799 (eval $ac_try) 2>&5
25801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25802 test $ac_status = 0; }; }
25804 gcc_cv_as_powerpc_fprnd
=yes
25806 echo "configure: failed program was" >&5
25809 rm -f conftest.o conftest.s
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25813 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25814 if test $gcc_cv_as_powerpc_fprnd = yes; then
25816 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25821 *-*-aix*) conftest_s
=' .machine "pwr6"
25824 *) conftest_s
=' .machine power6
25829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25830 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25831 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25832 $as_echo_n "(cached) " >&6
25834 gcc_cv_as_powerpc_mfpgpr
=no
25835 if test $in_tree_gas = yes; then
25836 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25837 then gcc_cv_as_powerpc_mfpgpr
=yes
25839 elif test x
$gcc_cv_as != x
; then
25840 $as_echo "$conftest_s" > conftest.s
25841 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25843 (eval $ac_try) 2>&5
25845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25846 test $ac_status = 0; }; }
25848 gcc_cv_as_powerpc_mfpgpr
=yes
25850 echo "configure: failed program was" >&5
25853 rm -f conftest.o conftest.s
25856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25857 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25858 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25860 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25865 *-*-aix*) conftest_s
=' .csect .text[PR]
25867 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25871 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25872 *) conftest_s
=' .text
25874 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25878 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25879 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25880 $as_echo_n "(cached) " >&6
25882 gcc_cv_as_powerpc_rel16
=no
25883 if test $in_tree_gas = yes; then
25884 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25885 then gcc_cv_as_powerpc_rel16
=yes
25887 elif test x
$gcc_cv_as != x
; then
25888 $as_echo "$conftest_s" > conftest.s
25889 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25891 (eval $ac_try) 2>&5
25893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25894 test $ac_status = 0; }; }
25896 gcc_cv_as_powerpc_rel16
=yes
25898 echo "configure: failed program was" >&5
25901 rm -f conftest.o conftest.s
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25905 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25906 if test $gcc_cv_as_powerpc_rel16 = yes; then
25908 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25913 *-*-aix*) conftest_s
=' .machine "pwr6"
25916 *) conftest_s
=' .machine power6
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25922 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25923 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25924 $as_echo_n "(cached) " >&6
25926 gcc_cv_as_powerpc_cmpb
=no
25927 if test $in_tree_gas = yes; then
25928 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25929 then gcc_cv_as_powerpc_cmpb
=yes
25931 elif test x
$gcc_cv_as != x
; then
25932 $as_echo "$conftest_s" > conftest.s
25933 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25935 (eval $ac_try) 2>&5
25937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25938 test $ac_status = 0; }; }
25940 gcc_cv_as_powerpc_cmpb
=yes
25942 echo "configure: failed program was" >&5
25945 rm -f conftest.o conftest.s
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25949 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25950 if test $gcc_cv_as_powerpc_cmpb = yes; then
25952 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25957 *-*-aix*) conftest_s
=' .machine "pwr6"
25960 *) conftest_s
=' .machine power6
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25966 $as_echo_n "checking assembler for decimal float support... " >&6; }
25967 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25968 $as_echo_n "(cached) " >&6
25970 gcc_cv_as_powerpc_dfp
=no
25971 if test $in_tree_gas = yes; then
25972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25973 then gcc_cv_as_powerpc_dfp
=yes
25975 elif test x
$gcc_cv_as != x
; then
25976 $as_echo "$conftest_s" > conftest.s
25977 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25979 (eval $ac_try) 2>&5
25981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25982 test $ac_status = 0; }; }
25984 gcc_cv_as_powerpc_dfp
=yes
25986 echo "configure: failed program was" >&5
25989 rm -f conftest.o conftest.s
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25993 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25994 if test $gcc_cv_as_powerpc_dfp = yes; then
25996 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26001 *-*-aix*) conftest_s
=' .machine "pwr7"
26004 *) conftest_s
=' .machine power7
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26010 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26011 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26012 $as_echo_n "(cached) " >&6
26014 gcc_cv_as_powerpc_vsx
=no
26015 if test $in_tree_gas = yes; then
26016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26017 then gcc_cv_as_powerpc_vsx
=yes
26019 elif test x
$gcc_cv_as != x
; then
26020 $as_echo "$conftest_s" > conftest.s
26021 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26023 (eval $ac_try) 2>&5
26025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26026 test $ac_status = 0; }; }
26028 gcc_cv_as_powerpc_vsx
=yes
26030 echo "configure: failed program was" >&5
26033 rm -f conftest.o conftest.s
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26037 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26038 if test $gcc_cv_as_powerpc_vsx = yes; then
26040 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26045 *-*-aix*) conftest_s
=' .machine "pwr7"
26048 *) conftest_s
=' .machine power7
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26054 $as_echo_n "checking assembler for popcntd support... " >&6; }
26055 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26056 $as_echo_n "(cached) " >&6
26058 gcc_cv_as_powerpc_popcntd
=no
26059 if test $in_tree_gas = yes; then
26060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26061 then gcc_cv_as_powerpc_popcntd
=yes
26063 elif test x
$gcc_cv_as != x
; then
26064 $as_echo "$conftest_s" > conftest.s
26065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26067 (eval $ac_try) 2>&5
26069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26070 test $ac_status = 0; }; }
26072 gcc_cv_as_powerpc_popcntd
=yes
26074 echo "configure: failed program was" >&5
26077 rm -f conftest.o conftest.s
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26081 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26082 if test $gcc_cv_as_powerpc_popcntd = yes; then
26084 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26089 *-*-aix*) conftest_s
=' .machine "pwr8"
26090 .csect .text[PR]';;
26091 *) conftest_s
=' .machine power8
26095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26096 $as_echo_n "checking assembler for power8 support... " >&6; }
26097 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26098 $as_echo_n "(cached) " >&6
26100 gcc_cv_as_powerpc_power8
=no
26101 if test $in_tree_gas = yes; then
26102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26103 then gcc_cv_as_powerpc_power8
=yes
26105 elif test x
$gcc_cv_as != x
; then
26106 $as_echo "$conftest_s" > conftest.s
26107 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26109 (eval $ac_try) 2>&5
26111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26112 test $ac_status = 0; }; }
26114 gcc_cv_as_powerpc_power8
=yes
26116 echo "configure: failed program was" >&5
26119 rm -f conftest.o conftest.s
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26123 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26124 if test $gcc_cv_as_powerpc_power8 = yes; then
26126 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26131 *-*-aix*) conftest_s
=' .csect .text[PR]
26133 *) conftest_s
=' .text
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26138 $as_echo_n "checking assembler for lwsync support... " >&6; }
26139 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26140 $as_echo_n "(cached) " >&6
26142 gcc_cv_as_powerpc_lwsync
=no
26143 if test $in_tree_gas = yes; then
26144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26145 then gcc_cv_as_powerpc_lwsync
=yes
26147 elif test x
$gcc_cv_as != x
; then
26148 $as_echo "$conftest_s" > conftest.s
26149 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26151 (eval $ac_try) 2>&5
26153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26154 test $ac_status = 0; }; }
26156 gcc_cv_as_powerpc_lwsync
=yes
26158 echo "configure: failed program was" >&5
26161 rm -f conftest.o conftest.s
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26165 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26166 if test $gcc_cv_as_powerpc_lwsync = yes; then
26168 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26173 *-*-aix*) conftest_s
=' .machine "476"
26176 *) conftest_s
=' .machine "476"
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26182 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26183 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26184 $as_echo_n "(cached) " >&6
26186 gcc_cv_as_powerpc_dci
=no
26187 if test $in_tree_gas = yes; then
26188 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26189 then gcc_cv_as_powerpc_dci
=yes
26191 elif test x
$gcc_cv_as != x
; then
26192 $as_echo "$conftest_s" > conftest.s
26193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26195 (eval $ac_try) 2>&5
26197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26198 test $ac_status = 0; }; }
26200 gcc_cv_as_powerpc_dci
=yes
26202 echo "configure: failed program was" >&5
26205 rm -f conftest.o conftest.s
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26209 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26210 if test $gcc_cv_as_powerpc_dci = yes; then
26212 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26217 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26218 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26219 $as_echo_n "(cached) " >&6
26221 gcc_cv_as_powerpc_gnu_attribute
=no
26222 if test $in_tree_gas = yes; then
26223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26224 then gcc_cv_as_powerpc_gnu_attribute
=yes
26226 elif test x
$gcc_cv_as != x
; then
26227 $as_echo '.gnu_attribute 4,1' > conftest.s
26228 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26230 (eval $ac_try) 2>&5
26232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26233 test $ac_status = 0; }; }
26235 gcc_cv_as_powerpc_gnu_attribute
=yes
26237 echo "configure: failed program was" >&5
26240 rm -f conftest.o conftest.s
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26244 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26245 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26247 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26252 $as_echo_n "checking assembler for tls marker support... " >&6; }
26253 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26254 $as_echo_n "(cached) " >&6
26256 gcc_cv_as_powerpc_tls_markers
=no
26257 if test $in_tree_gas = yes; then
26258 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26259 then gcc_cv_as_powerpc_tls_markers
=yes
26261 elif test x
$gcc_cv_as != x
; then
26262 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26263 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26265 (eval $ac_try) 2>&5
26267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26268 test $ac_status = 0; }; }
26270 gcc_cv_as_powerpc_tls_markers
=yes
26272 echo "configure: failed program was" >&5
26275 rm -f conftest.o conftest.s
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26279 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26280 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26282 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26289 $as_echo_n "checking assembler for .ref support... " >&6; }
26290 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26291 $as_echo_n "(cached) " >&6
26293 gcc_cv_as_aix_ref
=no
26294 if test $in_tree_gas = yes; then
26295 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26296 then gcc_cv_as_aix_ref
=yes
26298 elif test x
$gcc_cv_as != x
; then
26299 $as_echo ' .csect stuff[rw]
26305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26307 (eval $ac_try) 2>&5
26309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26310 test $ac_status = 0; }; }
26312 gcc_cv_as_aix_ref
=yes
26314 echo "configure: failed program was" >&5
26317 rm -f conftest.o conftest.s
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26321 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26322 if test $gcc_cv_as_aix_ref = yes; then
26324 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26333 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26334 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26335 $as_echo_n "(cached) " >&6
26337 gcc_cv_as_mips_explicit_relocs
=no
26338 if test $in_tree_gas = yes; then
26339 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26340 then gcc_cv_as_mips_explicit_relocs
=yes
26342 elif test x
$gcc_cv_as != x
; then
26343 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26344 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26346 (eval $ac_try) 2>&5
26348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26349 test $ac_status = 0; }; }
26351 gcc_cv_as_mips_explicit_relocs
=yes
26353 echo "configure: failed program was" >&5
26356 rm -f conftest.o conftest.s
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26360 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26361 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26362 if test x
$target_cpu_default = x
26363 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26364 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26368 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26369 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26370 $as_echo_n "(cached) " >&6
26372 gcc_cv_as_mips_no_shared
=no
26373 if test $in_tree_gas = yes; then
26374 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26375 then gcc_cv_as_mips_no_shared
=yes
26377 elif test x
$gcc_cv_as != x
; then
26378 $as_echo 'nop' > conftest.s
26379 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26381 (eval $ac_try) 2>&5
26383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26384 test $ac_status = 0; }; }
26386 gcc_cv_as_mips_no_shared
=yes
26388 echo "configure: failed program was" >&5
26391 rm -f conftest.o conftest.s
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26395 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26396 if test $gcc_cv_as_mips_no_shared = yes; then
26398 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26403 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26404 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26405 $as_echo_n "(cached) " >&6
26407 gcc_cv_as_mips_gnu_attribute
=no
26408 if test $in_tree_gas = yes; then
26409 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26410 then gcc_cv_as_mips_gnu_attribute
=yes
26412 elif test x
$gcc_cv_as != x
; then
26413 $as_echo '.gnu_attribute 4,1' > conftest.s
26414 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26416 (eval $ac_try) 2>&5
26418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26419 test $ac_status = 0; }; }
26421 gcc_cv_as_mips_gnu_attribute
=yes
26423 echo "configure: failed program was" >&5
26426 rm -f conftest.o conftest.s
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26430 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26431 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26433 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26438 $as_echo_n "checking assembler for .module support... " >&6; }
26439 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26440 $as_echo_n "(cached) " >&6
26442 gcc_cv_as_mips_dot_module
=no
26443 if test x
$gcc_cv_as != x
; then
26444 $as_echo '.module mips2
26445 .module fp=xx' > conftest.s
26446 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26448 (eval $ac_try) 2>&5
26450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26451 test $ac_status = 0; }; }
26453 gcc_cv_as_mips_dot_module
=yes
26455 echo "configure: failed program was" >&5
26458 rm -f conftest.o conftest.s
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26462 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26463 if test $gcc_cv_as_mips_dot_module = yes; then
26465 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26468 if test x
$gcc_cv_as_mips_dot_module = xno \
26469 && test x
$with_fp_32 != x
; then
26470 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26474 $as_echo_n "checking assembler for .micromips support... " >&6; }
26475 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26476 $as_echo_n "(cached) " >&6
26478 gcc_cv_as_micromips_support
=no
26479 if test x
$gcc_cv_as != x
; then
26480 $as_echo '.set micromips' > conftest.s
26481 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26483 (eval $ac_try) 2>&5
26485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26486 test $ac_status = 0; }; }
26488 gcc_cv_as_micromips_support
=yes
26490 echo "configure: failed program was" >&5
26493 rm -f conftest.o conftest.s
26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26497 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26498 if test $gcc_cv_as_micromips_support = yes; then
26500 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26505 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26506 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26507 $as_echo_n "(cached) " >&6
26509 gcc_cv_as_mips_dtprelword
=no
26510 if test $in_tree_gas = yes; then
26511 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26512 then gcc_cv_as_mips_dtprelword
=yes
26514 elif test x
$gcc_cv_as != x
; then
26515 $as_echo '.section .tdata,"awT",@progbits
26519 .dtprelword x+0x8000' > conftest.s
26520 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26522 (eval $ac_try) 2>&5
26524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26525 test $ac_status = 0; }; }
26527 gcc_cv_as_mips_dtprelword
=yes
26529 echo "configure: failed program was" >&5
26532 rm -f conftest.o conftest.s
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26536 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26537 if test $gcc_cv_as_mips_dtprelword = yes; then
26539 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26544 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26545 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26546 $as_echo_n "(cached) " >&6
26548 gcc_cv_as_mips_dspr1_mult
=no
26549 if test x
$gcc_cv_as != x
; then
26550 $as_echo ' .set mips32r2
26558 multu $ac3,$4,$5' > conftest.s
26559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26561 (eval $ac_try) 2>&5
26563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26564 test $ac_status = 0; }; }
26566 gcc_cv_as_mips_dspr1_mult
=yes
26568 echo "configure: failed program was" >&5
26571 rm -f conftest.o conftest.s
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26575 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26576 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26578 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26583 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26584 gcc_cv_as_ld_jalr_reloc
=no
26585 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26586 if test $in_tree_ld = yes ; then
26587 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 \
26588 && test $in_tree_ld_is_elf = yes; then
26589 gcc_cv_as_ld_jalr_reloc
=yes
26591 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26592 echo ' .ent x' > conftest.s
26593 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26594 echo ' lw $25,%call16(y)($28)' >> conftest.s
26595 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26596 echo '1: jalr $25' >> conftest.s
26597 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26598 echo '1: jalr $25' >> conftest.s
26599 echo ' .end x' >> conftest.s
26600 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26601 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26602 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26603 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26604 gcc_cv_as_ld_jalr_reloc
=yes
26610 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26611 if test x
$target_cpu_default = x
; then
26612 target_cpu_default
=MASK_RELAX_PIC_CALLS
26614 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26618 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26621 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26622 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26623 $as_echo_n "(cached) " >&6
26625 gcc_cv_ld_mips_personality_relaxation
=no
26626 if test $in_tree_ld = yes ; then
26627 if test "$gcc_cv_gld_major_version" -eq 2 \
26628 -a "$gcc_cv_gld_minor_version" -ge 21 \
26629 -o "$gcc_cv_gld_major_version" -gt 2; then
26630 gcc_cv_ld_mips_personality_relaxation
=yes
26632 elif test x
$gcc_cv_as != x \
26633 -a x
$gcc_cv_ld != x \
26634 -a x
$gcc_cv_readelf != x
; then
26635 cat > conftest.s
<<EOF
26637 .cfi_personality 0x80,indirect_ptr
26644 .section .data,"aw",@progbits
26648 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26649 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26650 if $gcc_cv_readelf -d conftest
2>&1 \
26651 |
grep TEXTREL
> /dev
/null
2>&1; then
26653 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26654 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26657 gcc_cv_ld_mips_personality_relaxation
=yes
26661 rm -f conftest.s conftest.o conftest
26663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26664 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26665 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26667 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26672 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26673 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26674 $as_echo_n "(cached) " >&6
26676 gcc_cv_as_mips_nan
=no
26677 if test x
$gcc_cv_as != x
; then
26678 $as_echo '' > conftest.s
26679 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; }
26686 gcc_cv_as_mips_nan
=yes
26688 echo "configure: failed program was" >&5
26691 rm -f conftest.o conftest.s
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26695 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26696 if test $gcc_cv_as_mips_nan = yes; then
26698 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26701 if test x
$gcc_cv_as_mips_nan = xno \
26702 && test x
$with_nan != x
; then
26703 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26708 # Mips and HP-UX need the GNU assembler.
26709 # Linux on IA64 might be able to use the Intel assembler.
26712 mips
*-*-* |
*-*-hpux* )
26713 if test x
$gas_flag = xyes \
26714 ||
test x
"$host" != x
"$build" \
26715 ||
test ! -x "$gcc_cv_as" \
26716 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26719 echo "*** This configuration requires the GNU assembler" >&2
26725 # ??? Not all targets support dwarf2 debug_line, even within a version
26726 # of gas. Moreover, we need to emit a valid instruction to trigger any
26727 # info to the output file. So, as supported targets are added to gas 2.11,
26728 # add some instruction here to (also) show we expect this might work.
26729 # ??? Once 2.11 is released, probably need to add first known working
26730 # version to the per-target configury.
26731 case "$cpu_type" in
26732 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26733 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26734 | visium | xstormy16 | xtensa
)
26744 if test x
"$insn" != x
; then
26746 .file 1 \"conftest.s\"
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26750 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26751 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26752 $as_echo_n "(cached) " >&6
26754 gcc_cv_as_dwarf2_debug_line
=no
26755 if test $in_tree_gas = yes; then
26756 if test $in_tree_gas_is_elf = yes \
26757 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26758 then gcc_cv_as_dwarf2_debug_line
=yes
26760 elif test x
$gcc_cv_as != x
; then
26761 $as_echo "$conftest_s" > conftest.s
26762 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26764 (eval $ac_try) 2>&5
26766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26767 test $ac_status = 0; }; }
26769 if test x
$gcc_cv_objdump != x \
26770 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26771 |
grep debug_line
> /dev
/null
2>&1; then
26772 gcc_cv_as_dwarf2_debug_line
=yes
26775 echo "configure: failed program was" >&5
26778 rm -f conftest.o conftest.s
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26782 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26785 # The .debug_line file table must be in the exact order that
26786 # we specified the files, since these indices are also used
26787 # by DW_AT_decl_file. Approximate this test by testing if
26788 # the assembler bitches if the same index is assigned twice.
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26790 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26791 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26792 $as_echo_n "(cached) " >&6
26794 gcc_cv_as_dwarf2_file_buggy
=no
26795 if test x
$gcc_cv_as != x
; then
26796 $as_echo ' .file 1 "foo.s"
26797 .file 1 "bar.s"' > conftest.s
26798 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26800 (eval $ac_try) 2>&5
26802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26803 test $ac_status = 0; }; }
26805 gcc_cv_as_dwarf2_file_buggy
=yes
26807 echo "configure: failed program was" >&5
26810 rm -f conftest.o conftest.s
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26814 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26817 if test $gcc_cv_as_dwarf2_debug_line = yes \
26818 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26820 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26825 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26826 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26827 $as_echo_n "(cached) " >&6
26829 gcc_cv_as_gdwarf2_flag
=no
26830 if test $in_tree_gas = yes; then
26831 if test $in_tree_gas_is_elf = yes \
26832 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26833 then gcc_cv_as_gdwarf2_flag
=yes
26835 elif test x
$gcc_cv_as != x
; then
26836 $as_echo "$insn" > conftest.s
26837 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26839 (eval $ac_try) 2>&5
26841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26842 test $ac_status = 0; }; }
26844 gcc_cv_as_gdwarf2_flag
=yes
26846 echo "configure: failed program was" >&5
26849 rm -f conftest.o conftest.s
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26853 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26854 if test $gcc_cv_as_gdwarf2_flag = yes; then
26856 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26861 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26862 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26863 $as_echo_n "(cached) " >&6
26865 gcc_cv_as_gstabs_flag
=no
26866 if test $in_tree_gas = yes; then
26867 if test $in_tree_gas_is_elf = yes \
26868 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26869 then gcc_cv_as_gstabs_flag
=yes
26871 elif test x
$gcc_cv_as != x
; then
26872 $as_echo "$insn" > conftest.s
26873 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26875 (eval $ac_try) 2>&5
26877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26878 test $ac_status = 0; }; }
26880 gcc_cv_as_gstabs_flag
=yes
26882 echo "configure: failed program was" >&5
26885 rm -f conftest.o conftest.s
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26889 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26890 if test $gcc_cv_as_gstabs_flag = yes; then
26892 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26897 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26898 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26899 $as_echo_n "(cached) " >&6
26901 gcc_cv_as_debug_prefix_map_flag
=no
26902 if test $in_tree_gas = yes; then
26903 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26904 then gcc_cv_as_debug_prefix_map_flag
=yes
26906 elif test x
$gcc_cv_as != x
; then
26907 $as_echo "$insn" > conftest.s
26908 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26910 (eval $ac_try) 2>&5
26912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26913 test $ac_status = 0; }; }
26915 gcc_cv_as_debug_prefix_map_flag
=yes
26917 echo "configure: failed program was" >&5
26920 rm -f conftest.o conftest.s
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26924 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26925 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26927 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26933 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26934 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26935 $as_echo_n "(cached) " >&6
26937 gcc_cv_as_compress_debug
=no
26938 if test x
$gcc_cv_as != x
; then
26939 $as_echo '' > conftest.s
26940 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26942 (eval $ac_try) 2>&5
26944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26945 test $ac_status = 0; }; }
26947 # gas compiled without zlib cannot compress debug sections and warns
26948 # about it, but still exits successfully. So check for this, too.
26949 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
26951 gcc_cv_as_compress_debug
=0
26952 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
26954 gcc_cv_as_compress_debug
=1
26955 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
26956 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
26958 gcc_cv_as_compress_debug
=0
26959 # FIXME: Future gas versions will support ELF gABI style via
26960 # --compress-debug-sections[=type].
26963 echo "configure: failed program was" >&5
26966 rm -f conftest.o conftest.s
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26970 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26973 cat >>confdefs.h
<<_ACEOF
26974 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26978 cat >>confdefs.h
<<_ACEOF
26979 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26983 cat >>confdefs.h
<<_ACEOF
26984 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26989 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26990 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26991 $as_echo_n "(cached) " >&6
26993 gcc_cv_as_lcomm_with_alignment
=no
26994 if test x
$gcc_cv_as != x
; then
26995 $as_echo '.lcomm bar,4,16' > conftest.s
26996 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26998 (eval $ac_try) 2>&5
27000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27001 test $ac_status = 0; }; }
27003 gcc_cv_as_lcomm_with_alignment
=yes
27005 echo "configure: failed program was" >&5
27008 rm -f conftest.o conftest.s
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27012 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27013 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27015 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27019 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27020 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27021 && test "$prefix" != "NONE"; then
27023 cat >>confdefs.h
<<_ACEOF
27024 #define PREFIX_INCLUDE_DIR "$prefix/include"
27029 # Determine the version of glibc, if any, used on the target.
27030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27031 $as_echo_n "checking for target glibc version... " >&6; }
27033 # Check whether --with-glibc-version was given.
27034 if test "${with_glibc_version+set}" = set; then :
27035 withval
=$with_glibc_version;
27036 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27037 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27038 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27040 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27044 glibc_version_major
=0
27045 glibc_version_minor
=0
27046 if test -f $target_header_dir/features.h \
27047 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27048 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27049 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27050 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27055 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27057 cat >>confdefs.h
<<_ACEOF
27058 #define TARGET_GLIBC_MAJOR $glibc_version_major
27062 cat >>confdefs.h
<<_ACEOF
27063 #define TARGET_GLIBC_MINOR $glibc_version_minor
27067 # Check whether --enable-gnu-unique-object was given.
27068 if test "${enable_gnu_unique_object+set}" = set; then :
27069 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27071 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27072 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27076 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27077 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27078 $as_echo_n "(cached) " >&6
27080 gcc_cv_as_gnu_unique_object
=no
27081 if test $in_tree_gas = yes; then
27082 if test $in_tree_gas_is_elf = yes \
27083 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27084 then gcc_cv_as_gnu_unique_object
=yes
27086 elif test x
$gcc_cv_as != x
; then
27087 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27088 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27090 (eval $ac_try) 2>&5
27092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27093 test $ac_status = 0; }; }
27095 gcc_cv_as_gnu_unique_object
=yes
27097 echo "configure: failed program was" >&5
27100 rm -f conftest.o conftest.s
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27104 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27105 if test $gcc_cv_as_gnu_unique_object = yes; then
27106 # We need to unquote above to to use the definition from config.gcc.
27107 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27109 if test $glibc_version_major -gt 2 \
27110 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27111 enable_gnu_unique_object
=yes
27117 if test x
$enable_gnu_unique_object = xyes
; then
27119 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27124 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27125 if test "${gcc_cv_as_line_zero+set}" = set; then :
27126 $as_echo_n "(cached) " >&6
27128 gcc_cv_as_line_zero
=no
27129 if test $in_tree_gas = yes; then
27130 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27131 then gcc_cv_as_line_zero
=yes
27133 elif test "x$gcc_cv_as" != x
; then
27134 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27135 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27137 (eval $ac_try) 2>&5
27139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27140 test $ac_status = 0; }; } &&
27141 test "x`cat conftest.out`" = x
27143 gcc_cv_as_line_zero
=yes
27145 echo "configure: failed program was" >&5
27147 echo "configure: error output was" >&5
27148 cat conftest.out
>&5
27150 rm -f conftest.o conftest.s conftest.out
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27154 $as_echo "$gcc_cv_as_line_zero" >&6; }
27155 if test "x$gcc_cv_as_line_zero" = xyes
; then
27157 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27162 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27163 gcc_cv_ld_eh_frame_hdr
=no
27164 if test $in_tree_ld = yes ; then
27165 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 \
27166 && test $in_tree_ld_is_elf = yes; then
27167 gcc_cv_ld_eh_frame_hdr
=yes
27169 elif test x
$gcc_cv_ld != x
; then
27170 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27171 # Check if linker supports --eh-frame-hdr option
27172 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27173 gcc_cv_ld_eh_frame_hdr
=yes
27178 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27179 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27180 gcc_cv_ld_eh_frame_hdr
=yes
27187 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27189 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27193 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27196 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27197 gcc_cv_ld_eh_frame_ciev3
=no
27198 if test $in_tree_ld = yes ; then
27199 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 \
27200 && test $in_tree_ld_is_elf = yes; then
27201 gcc_cv_ld_eh_frame_ciev3
=yes
27203 elif test x
$gcc_cv_ld != x
; then
27204 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27205 gcc_cv_ld_eh_frame_ciev3
=yes
27206 if test 0"$ld_date" -lt 20040513; then
27207 if test -n "$ld_date"; then
27208 # If there was date string, but was earlier than 2004-05-13, fail
27209 gcc_cv_ld_eh_frame_ciev3
=no
27210 elif test "$ld_vers_major" -lt 2; then
27211 gcc_cv_ld_eh_frame_ciev3
=no
27212 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27213 gcc_cv_ld_eh_frame_ciev3
=no
27219 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27220 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27221 gcc_cv_ld_eh_frame_ciev3
=yes
27228 cat >>confdefs.h
<<_ACEOF
27229 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27233 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27236 $as_echo_n "checking linker position independent executable support... " >&6; }
27238 if test $in_tree_ld = yes ; then
27239 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
27240 && test $in_tree_ld_is_elf = yes; then
27243 elif test x
$gcc_cv_ld != x
; then
27244 # Check if linker supports -pie option
27245 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27249 if test x
"$gcc_cv_ld_pie" = xyes
; then
27251 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27255 $as_echo "$gcc_cv_ld_pie" >&6; }
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27258 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27259 gcc_cv_ld_pie_copyreloc
=no
27260 if test $gcc_cv_ld_pie = yes ; then
27261 if test $in_tree_ld = yes ; then
27262 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
27263 gcc_cv_ld_pie_copyreloc
=yes
27265 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27266 # Check if linker supports -pie option with copy reloc
27268 i?
86-*-linux* | x86_64-
*-linux*)
27269 cat > conftest1.s
<<EOF
27272 .type a_glob, @object
27277 cat > conftest2.s
<<EOF
27280 .type main, @function
27282 movl %eax, a_glob(%rip)
27285 .section .data.rel,"aw",@progbits
27290 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27291 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27292 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27293 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27294 gcc_cv_ld_pie_copyreloc
=yes
27296 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27302 cat >>confdefs.h
<<_ACEOF
27303 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27307 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27310 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27311 gcc_cv_ld_eh_gc_sections
=no
27312 if test $in_tree_ld = yes ; then
27313 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 \
27314 && test $in_tree_ld_is_elf = yes; then
27315 gcc_cv_ld_eh_gc_sections
=yes
27317 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27318 cat > conftest.s
<<EOF
27321 .type _start, @function
27324 .size _start, .-_start
27325 .section .text.foo,"ax",@progbits
27326 .type foo, @function
27330 .section .gcc_except_table.foo,"a",@progbits
27333 .section .eh_frame,"a",@progbits
27336 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27337 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27338 |
grep "gc-sections option ignored" > /dev
/null
; then
27339 gcc_cv_ld_eh_gc_sections
=no
27340 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27341 |
grep gcc_except_table
> /dev
/null
; then
27342 gcc_cv_ld_eh_gc_sections
=yes
27343 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27344 if test x
$gcc_cv_as_comdat_group != xyes
; then
27345 gcc_cv_ld_eh_gc_sections
=no
27346 cat > conftest.s
<<EOF
27349 .type _start, @function
27352 .size _start, .-_start
27353 .section .gnu.linkonce.t.foo,"ax",@progbits
27354 .type foo, @function
27358 .section .gcc_except_table.foo,"a",@progbits
27361 .section .eh_frame,"a",@progbits
27364 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27365 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27366 |
grep "gc-sections option ignored" > /dev
/null
; then
27367 gcc_cv_ld_eh_gc_sections
=no
27368 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27369 |
grep gcc_except_table
> /dev
/null
; then
27370 gcc_cv_ld_eh_gc_sections
=yes
27376 rm -f conftest.s conftest.o conftest
27380 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27381 gcc_cv_ld_eh_gc_sections
=no
27384 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27386 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27390 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27393 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27394 gcc_cv_ld_eh_gc_sections_bug
=no
27395 if test $in_tree_ld = yes ; then
27396 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 \
27397 && test $in_tree_ld_is_elf = yes; then
27398 gcc_cv_ld_eh_gc_sections_bug
=yes
27400 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
27401 gcc_cv_ld_eh_gc_sections_bug
=yes
27402 cat > conftest.s
<<EOF
27405 .type _start, @function
27408 .size _start, .-_start
27409 .section .text.startup.foo,"ax",@progbits
27410 .type foo, @function
27414 .section .gcc_except_table.foo,"a",@progbits
27417 .section .eh_frame,"a",@progbits
27420 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27421 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27422 |
grep "gc-sections option ignored" > /dev
/null
; then
27424 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27425 |
grep gcc_except_table
> /dev
/null
; then
27426 gcc_cv_ld_eh_gc_sections_bug
=no
27429 rm -f conftest.s conftest.o conftest
27431 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27433 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27437 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27440 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27441 # gold/gld support compressed debug sections since binutils 2.19/2.21
27442 if test $in_tree_ld = yes ; then
27443 gcc_cv_ld_compress_debug
=0
27444 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 \
27445 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27446 gcc_cv_ld_compress_debug
=2
27447 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27448 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 \
27449 && test $in_tree_ld_is_elf = yes; then
27450 gcc_cv_ld_compress_debug
=1
27452 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27453 gcc_cv_ld_compress_debug
=1
27454 if test 0"$ld_date" -lt 20050308; then
27455 if test -n "$ld_date"; then
27456 # If there was date string, but was earlier than 2005-03-08, fail
27457 gcc_cv_ld_compress_debug
=0
27458 elif test "$ld_vers_major" -lt 2; then
27459 gcc_cv_ld_compress_debug
=0
27460 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27461 gcc_cv_ld_compress_debug
=0
27464 if test $ld_is_gold = yes; then
27465 gcc_cv_ld_compress_debug
=2
27466 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27469 case "${target}" in
27471 # Introduced in Solaris 11.2.
27472 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27473 gcc_cv_ld_compress_debug
=3
27474 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27476 gcc_cv_ld_compress_debug
=0
27480 # Assume linkers other than GNU ld don't support compessed debug
27482 gcc_cv_ld_compress_debug
=0
27487 cat >>confdefs.h
<<_ACEOF
27488 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27492 cat >>confdefs.h
<<_ACEOF
27493 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27497 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27504 $as_echo_n "checking linker --as-needed support... " >&6; }
27505 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27506 $as_echo_n "(cached) " >&6
27508 gcc_cv_ld_as_needed
=no
27509 gcc_cv_ld_as_needed_option
='--as-needed'
27510 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27511 if test $in_tree_ld = yes ; then
27512 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 \
27513 && test $in_tree_ld_is_elf = yes; then
27514 gcc_cv_ld_as_needed
=yes
27516 elif test x
$gcc_cv_ld != x
; then
27517 # Check if linker supports --as-needed and --no-as-needed options
27518 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27519 gcc_cv_ld_as_needed
=yes
27522 # Solaris 2 ld always supports -z ignore/-z record.
27524 gcc_cv_ld_as_needed
=yes
27525 gcc_cv_ld_as_needed_option
="-z ignore"
27526 gcc_cv_ld_no_as_needed_option
="-z record"
27531 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27532 # dl_iterate_phdr, i.e. since Solaris 11.
27534 *-*-solaris2.1
[1-9]*)
27536 i?
86-*-* | x86_64-
*-*)
27537 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27538 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27539 gcc_cv_ld_as_needed
=no
27545 gcc_cv_ld_as_needed
=no
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27551 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27552 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27554 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27557 cat >>confdefs.h
<<_ACEOF
27558 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27562 cat >>confdefs.h
<<_ACEOF
27563 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27569 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27570 saved_LDFLAGS
="$LDFLAGS"
27571 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27572 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27574 /* end confdefs.h. */
27575 int main(void) {return 0;}
27577 if ac_fn_cxx_try_link
"$LINENO"; then :
27578 gcc_cv_ld_clearcap
=yes; break
27580 gcc_cv_ld_clearcap
=no
27582 rm -f core conftest.err conftest.
$ac_objext \
27583 conftest
$ac_exeext conftest.
$ac_ext
27585 LDFLAGS
="$saved_LDFLAGS"
27586 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27588 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27590 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27594 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27596 case "$target:$tm_file" in
27597 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27600 emul_name
="-melf64lppc"
27603 emul_name
="-melf64ppc"
27606 emul_name
="-melf64ppc_fbsd"
27609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27610 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27611 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27612 $as_echo_n "(cached) " >&6
27614 gcc_cv_ld_no_dot_syms
=no
27615 if test x
"$ld_is_gold" = xyes
; then
27616 gcc_cv_ld_no_dot_syms
=yes
27617 elif test $in_tree_ld = yes ; then
27618 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
27619 gcc_cv_ld_no_dot_syms
=yes
27621 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27622 cat > conftest1.s
<<EOF
27626 cat > conftest2.s
<<EOF
27627 .section ".opd","aw"
27630 .type foo,@function
27632 .quad .LEfoo,.TOC.@tocbase,0
27638 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27639 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27640 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27641 gcc_cv_ld_no_dot_syms
=yes
27643 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27648 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27649 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27651 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27656 $as_echo_n "checking linker large toc support... " >&6; }
27657 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27658 $as_echo_n "(cached) " >&6
27660 gcc_cv_ld_large_toc
=no
27661 if test x
"$ld_is_gold" = xyes
; then
27662 gcc_cv_ld_large_toc
=yes
27663 elif test $in_tree_ld = yes ; then
27664 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
27665 gcc_cv_ld_large_toc
=yes
27667 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27668 cat > conftest.s
<<EOF
27669 .section ".tbss","awT",@nobits
27675 addis 9,13,ie0@got@tprel@ha
27676 ld 9,ie0@got@tprel@l(9)
27678 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27679 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27680 gcc_cv_ld_large_toc
=yes
27682 rm -f conftest conftest.o conftest.s
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27687 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27688 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27690 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27695 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27696 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27697 $as_echo_n "(cached) " >&6
27699 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
27700 cat > conftest.s
<<EOF
27705 .section .data.rel.ro,"aw",@progbits
27710 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27711 && $gcc_cv_ld $emul_name -o conftest conftest.o
> /dev
/null
2>&1; then
27712 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)) }'`
27714 rm -f conftest conftest.o conftest.s
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27719 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27720 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27722 cat >>confdefs.h
<<_ACEOF
27723 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27733 $as_echo_n "checking linker large toc support... " >&6; }
27734 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27735 $as_echo_n "(cached) " >&6
27737 gcc_cv_ld_large_toc
=no
27738 if test x
$gcc_cv_as != x
; then
27739 cat > conftest.s
<<EOF
27749 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27750 gcc_cv_ld_large_toc
=yes
27752 rm -f conftest conftest.o conftest.s
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27757 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27758 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27760 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27767 $as_echo_n "checking linker --build-id support... " >&6; }
27768 if test "${gcc_cv_ld_buildid+set}" = set; then :
27769 $as_echo_n "(cached) " >&6
27771 gcc_cv_ld_buildid
=no
27772 if test $in_tree_ld = yes ; then
27773 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27774 "$gcc_cv_gld_minor_version" -ge 18 -o \
27775 "$gcc_cv_gld_major_version" -gt 2 \
27776 && test $in_tree_ld_is_elf = yes; then
27777 gcc_cv_ld_buildid
=yes
27779 elif test x
$gcc_cv_ld != x
; then
27780 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27781 gcc_cv_ld_buildid
=yes
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27786 $as_echo "$gcc_cv_ld_buildid" >&6; }
27787 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27789 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27793 # Check whether --enable-linker-build-id was given.
27794 if test "${enable_linker_build_id+set}" = set; then :
27795 enableval
=$enable_linker_build_id;
27797 enable_linker_build_id
=no
27801 if test x
"$enable_linker_build_id" = xyes
; then
27802 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27804 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27808 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27812 # In binutils 2.21, GNU ld gained support for new emulations fully
27813 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27815 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27816 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27817 $as_echo_n "(cached) " >&6
27819 gcc_cv_ld_sol2_emulation
=no
27820 if test $in_tree_ld = yes ; then
27821 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27822 "$gcc_cv_gld_minor_version" -ge 21 -o \
27823 "$gcc_cv_gld_major_version" -gt 2 \
27824 && test $in_tree_ld_is_elf = yes; then
27825 gcc_cv_ld_sol2_emulation
=yes
27827 elif test x
$gcc_cv_ld != x
; then
27828 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27829 grep _sol2
> /dev
/null
; then
27830 gcc_cv_ld_sol2_emulation
=yes
27834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27835 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27836 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27838 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27843 $as_echo_n "checking linker --sysroot support... " >&6; }
27844 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27845 $as_echo_n "(cached) " >&6
27847 gcc_cv_ld_sysroot
=no
27848 if test $in_tree_ld = yes ; then
27849 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
27850 gcc_cv_ld_sysroot
=yes
27852 elif test x
$gcc_cv_ld != x
; then
27853 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27854 gcc_cv_ld_sysroot
=yes
27858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27859 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27860 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27862 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27866 # Test for stack protector support in target C library.
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27868 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27869 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27870 $as_echo_n "(cached) " >&6
27872 gcc_cv_libc_provides_ssp
=no
27875 # All versions of musl provide stack protector
27876 gcc_cv_libc_provides_ssp
=yes;;
27877 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27878 # glibc 2.4 and later provides __stack_chk_fail and
27879 # either __stack_chk_guard, or TLS access to stack guard canary.
27881 if test $glibc_version_major -gt 2 \
27882 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27883 gcc_cv_libc_provides_ssp
=yes
27886 if test -f $target_header_dir/features.h \
27887 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27888 $target_header_dir/features.h
> /dev
/null
; then
27889 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27890 $target_header_dir/features.h
> /dev
/null
&& \
27891 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27892 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27893 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27894 gcc_cv_libc_provides_ssp
=yes
27896 # all versions of Bionic support stack protector
27897 elif test -f $target_header_dir/sys
/cdefs.h \
27898 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27899 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27900 gcc_cv_libc_provides_ssp
=yes
27905 # Avoid complicated tests (see
27906 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27907 # simply assert that glibc does provide this, which is true for all
27908 # realistically usable GNU/Hurd configurations.
27909 # All supported versions of musl provide it as well
27910 gcc_cv_libc_provides_ssp
=yes;;
27911 *-*-darwin* |
*-*-freebsd*)
27912 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27913 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27914 gcc_cv_libc_provides_ssp
=yes
27916 echo "no __stack_chk_fail on this target"
27920 *) gcc_cv_libc_provides_ssp
=no
;;
27923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27924 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27926 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27928 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27932 # Test for <sys/sdt.h> on the target.
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27935 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27937 if test -f $target_header_dir/sys
/sdt.h
; then
27940 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27944 $as_echo "$have_sys_sdt_h" >&6; }
27946 # Check if TFmode long double should be used by default or not.
27947 # Some glibc targets used DFmode long double, but with glibc 2.4
27948 # and later they can use TFmode.
27950 powerpc
*-*-linux* | \
27951 sparc
*-*-linux* | \
27955 # Check whether --with-long-double-128 was given.
27956 if test "${with_long_double_128+set}" = set; then :
27957 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27960 if test $glibc_version_major -gt 2 \
27961 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27962 gcc_cv_target_ldbl128
=yes
27965 gcc_cv_target_ldbl128
=no
27966 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27967 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27968 && gcc_cv_target_ldbl128
=yes
27975 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27977 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27982 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27983 gcc_cv_target_dl_iterate_phdr
=unknown
27985 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27986 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27987 # libdl there, both complicating its use and breaking compatibility
27988 # between Solaris 10 updates.
27989 *-*-solaris2.1
[1-9]*)
27990 # <link.h> needs both a dl_iterate_phdr declaration and support for
27991 # compilation with largefile support.
27992 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27993 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27994 gcc_cv_target_dl_iterate_phdr
=yes
27996 gcc_cv_target_dl_iterate_phdr
=no
27999 *-*-dragonfly* |
*-*-freebsd*)
28000 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28001 gcc_cv_target_dl_iterate_phdr
=yes
28003 gcc_cv_target_dl_iterate_phdr
=no
28007 gcc_cv_target_dl_iterate_phdr
=yes
28011 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28013 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28017 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28019 # We no longer support different GC mechanisms. Emit an error if
28020 # the user configures with --with-gc.
28022 # Check whether --with-gc was given.
28023 if test "${with_gc+set}" = set; then :
28024 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28028 # Libraries to use on the host. This will normally be set by the top
28029 # level Makefile. Here we simply capture the value for our Makefile.
28030 if test -z "${HOST_LIBS+set}"; then
28035 # Use the system's zlib library.
28037 zlibinc
="-I\$(srcdir)/../zlib"
28039 # Check whether --with-system-zlib was given.
28040 if test "${with_system_zlib+set}" = set; then :
28041 withval
=$with_system_zlib; zlibdir
=
28050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28051 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28052 # Check whether --enable-maintainer-mode was given.
28053 if test "${enable_maintainer_mode+set}" = set; then :
28054 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28061 $as_echo "$maintainer_mode" >&6; }
28063 if test "$maintainer_mode" = "yes"; then
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28071 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28072 # Check whether --enable-link-mutex was given.
28073 if test "${enable_link_mutex+set}" = set; then :
28074 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28080 $as_echo "$do_link_mutex" >&6; }
28082 if test "$do_link_mutex" = "yes"; then
28085 DO_LINK_MUTEX
=false
28093 # Make empty files to contain the specs and options for each language.
28094 # Then add #include lines to for a compiler that has specs and/or options.
28100 # These (without "all_") are set in each config-lang.in.
28101 # `language' must be a single word so is spelled singularly.
28104 all_outputs
='Makefile'
28105 # List of language makefile fragments.
28106 all_lang_makefrags
=
28107 # Additional files for gengtype
28108 all_gtfiles
="$target_gtfiles"
28110 # These are the languages that are set in --enable-languages,
28111 # and are available in the GCC tree.
28112 all_selected_languages
=
28114 # Add the language fragments.
28115 # Languages are added via two mechanisms. Some information must be
28116 # recorded in makefile variables, these are defined in config-lang.in.
28117 # We accumulate them and plug them into the main Makefile.
28118 # The other mechanism is a set of hooks for each of the main targets
28119 # like `clean', `install', etc.
28121 language_hooks
="Make-hooks"
28123 for lang
in ${srcdir}/*/config-lang.
in
28125 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28127 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28128 if test "x$lang_alias" = x
28130 echo "$lang doesn't set \$language." 1>&2
28133 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28134 subdirs
="$subdirs $subdir"
28136 # $gcc_subdir is where the gcc integration files are to be found
28137 # for a language, both for internal compiler purposes (compiler
28138 # sources implementing front-end to GCC tree converters), and for
28139 # build infrastructure purposes (Make-lang.in, etc.)
28141 # This will be <subdir> (relative to $srcdir) if a line like
28142 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28143 # is found in <langdir>/config-lang.in, and will remain <langdir>
28146 # Except for the language alias (fetched above), the regular
28147 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28148 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28149 # only this and the language alias.
28151 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28152 if [ "$gcc_subdir" = "" ]; then
28153 gcc_subdir
="$subdir"
28156 case ",$enable_languages," in
28158 all_selected_languages
="$all_selected_languages $lang_alias"
28159 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28160 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28171 .
${srcdir}/$gcc_subdir/config-lang.
in
28172 if test "x$language" = x
28174 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28179 case ",$enable_languages," in
28180 *,$lang_alias,*) ;;
28182 for i
in $subdir_requires; do
28183 test -f "${srcdir}/$i/config-lang.in" && continue
28191 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28192 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28193 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28194 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28196 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28197 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28199 all_languages
="$all_languages $language"
28200 all_compilers
="$all_compilers $compilers"
28201 all_outputs
="$all_outputs $outputs"
28202 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28203 case ",$enable_languages," in
28206 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28216 for language
in $all_selected_languages
28218 check_languages
="$check_languages check-$language"
28221 # We link each language in with a set of hooks, reached indirectly via
28222 # lang.${target}. Only do so for selected languages.
28226 target_list
="all.cross start.encap rest.encap tags \
28227 install-common install-man install-info install-pdf install-html dvi \
28228 pdf html uninstall info man srcextra srcman srcinfo \
28229 mostlyclean clean distclean maintainer-clean install-plugin"
28231 for t
in $target_list
28234 for lang
in $all_selected_languages
28238 echo "lang.$t: $x" >> Make-hooks
28242 # Option include files
28245 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
28246 option_includes
="option-includes.mk"
28255 echo "dir ." > .gdbinit
28256 echo "dir ${srcdir}" >> .gdbinit
28257 if test x
$gdb_needs_out_file_path = xyes
28259 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28261 if test "x$subdirs" != x
; then
28264 echo "dir ${srcdir}/$s" >> .gdbinit
28267 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28268 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28270 # Put a breakpoint on __asan_report_error to help with debugging buffer
28273 *-fsanitize=address
*)
28274 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28278 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28282 # Find a directory in which to install a shared libgcc.
28284 # Check whether --enable-version-specific-runtime-libs was given.
28285 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28286 enableval
=$enable_version_specific_runtime_libs;
28290 # Substitute configuration variables
28354 if test x
${build} = x
${host} ; then
28355 if test x
${host} = x
${target} ; then
28356 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28358 echo "Links are now set up to build a cross-compiler" 1>&2
28359 echo " from ${host} to ${target}." 1>&2
28362 if test x
${host} = x
${target} ; then
28363 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28364 echo " for ${target}." 1>&2
28366 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28367 echo " from ${host} to ${target}." 1>&2
28376 if test "x${ISLLIBS}" != "x" ; then
28378 $as_echo "#define HAVE_isl 1" >>confdefs.h
28382 # Check whether isl_schedule_constraints_compute_schedule is available;
28383 # it's new in ISL-0.13.
28384 if test "x${ISLLIBS}" != "x" ; then
28385 saved_CXXFLAGS
="$CXXFLAGS"
28386 CXXFLAGS
="$CXXFLAGS $ISLINC"
28388 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
28390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28391 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28393 /* end confdefs.h. */
28394 #include <isl/schedule.h>
28398 isl_schedule_constraints_compute_schedule (NULL);
28403 if ac_fn_cxx_try_link
"$LINENO"; then :
28404 ac_has_isl_schedule_constraints_compute_schedule
=yes
28406 ac_has_isl_schedule_constraints_compute_schedule
=no
28408 rm -f core conftest.err conftest.
$ac_objext \
28409 conftest
$ac_exeext conftest.
$ac_ext
28410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28411 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28414 CXXFLAGS
="$saved_CXXFLAGS"
28416 if test x
"$ac_has_isl_schedule_constraints_compute_schedule" = x
"yes"; then
28418 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28423 # Check for plugin support
28424 # Check whether --enable-plugin was given.
28425 if test "${enable_plugin+set}" = set; then :
28426 enableval
=$enable_plugin; enable_plugin
=$enableval
28428 enable_plugin
=yes; default_plugin
=yes
28436 if test x
$build = x
$host; then
28437 export_sym_check
="nm${exeext} -g"
28438 elif test x
$host = x
$target; then
28439 export_sym_check
="$gcc_cv_nm -g"
28445 if test x
$build = x
$host; then
28446 export_sym_check
="objdump${exeext} -T"
28447 elif test x
$host = x
$target; then
28448 export_sym_check
="$gcc_cv_objdump -T"
28455 if test x
"$enable_plugin" = x
"yes"; then
28457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28458 $as_echo_n "checking for exported symbols... " >&6; }
28459 if test "x$export_sym_check" != x
; then
28460 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28461 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28462 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28463 : # No need to use a flag
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28465 $as_echo "yes" >&6; }
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28468 $as_echo "yes" >&6; }
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28470 $as_echo_n "checking for -rdynamic... " >&6; }
28471 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28472 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28473 plugin_rdynamic
=yes
28474 pluginlibs
="-rdynamic"
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28480 $as_echo "$plugin_rdynamic" >&6; }
28483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28484 $as_echo "unable to check" >&6; }
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28490 $as_echo_n "checking for library containing dlopen... " >&6; }
28491 if test "${ac_cv_search_dlopen+set}" = set; then :
28492 $as_echo_n "(cached) " >&6
28494 ac_func_search_save_LIBS
=$LIBS
28495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28496 /* end confdefs.h. */
28498 /* Override any GCC internal prototype to avoid an error.
28499 Use char because int might match the return type of a GCC
28500 builtin and then its argument prototype would still apply. */
28513 for ac_lib
in '' dl
; do
28514 if test -z "$ac_lib"; then
28515 ac_res
="none required"
28518 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28520 if ac_fn_cxx_try_link
"$LINENO"; then :
28521 ac_cv_search_dlopen
=$ac_res
28523 rm -f core conftest.err conftest.
$ac_objext \
28525 if test "${ac_cv_search_dlopen+set}" = set; then :
28529 if test "${ac_cv_search_dlopen+set}" = set; then :
28532 ac_cv_search_dlopen
=no
28534 rm conftest.
$ac_ext
28535 LIBS
=$ac_func_search_save_LIBS
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28538 $as_echo "$ac_cv_search_dlopen" >&6; }
28539 ac_res
=$ac_cv_search_dlopen
28540 if test "$ac_res" != no
; then :
28541 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28545 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28546 pluginlibs
="$pluginlibs -ldl"
28550 # Check that we can build shared objects with -fPIC -shared
28551 saved_LDFLAGS
="$LDFLAGS"
28552 saved_CFLAGS
="$CFLAGS"
28555 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28556 CFLAGS
="$CFLAGS -fPIC"
28557 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28560 CFLAGS
="$CFLAGS -fPIC"
28561 LDFLAGS
="$LDFLAGS -fPIC -shared"
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28565 $as_echo_n "checking for -fPIC -shared... " >&6; }
28566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28567 /* end confdefs.h. */
28577 if ac_fn_cxx_try_link
"$LINENO"; then :
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28579 $as_echo "yes" >&6; }; have_pic_shared
=yes
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28582 $as_echo "no" >&6; }; have_pic_shared
=no
28584 rm -f core conftest.err conftest.
$ac_objext \
28585 conftest
$ac_exeext conftest.
$ac_ext
28586 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28590 LDFLAGS
="$saved_LDFLAGS"
28591 CFLAGS
="$saved_CFLAGS"
28593 # If plugin support had been requested but not available, fail.
28594 if test x
"$enable_plugin" = x
"no" ; then
28595 if test x
"$default_plugin" != x
"yes"; then
28597 Building GCC with plugin support requires a host that supports
28598 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28605 if test x
"$enable_plugin" = x
"yes"; then
28607 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28612 # Enable --enable-host-shared
28613 # Check whether --enable-host-shared was given.
28614 if test "${enable_host_shared+set}" = set; then :
28615 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28624 # Check whether --enable-libquadmath-support was given.
28625 if test "${enable_libquadmath_support+set}" = set; then :
28626 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28628 ENABLE_LIBQUADMATH_SUPPORT
=yes
28631 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28633 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28638 # Specify what hash style to use by default.
28640 # Check whether --with-linker-hash-style was given.
28641 if test "${with_linker_hash_style+set}" = set; then :
28642 withval
=$with_linker_hash_style; case x
"$withval" in
28644 LINKER_HASH_STYLE
=sysv
28647 LINKER_HASH_STYLE
=gnu
28650 LINKER_HASH_STYLE
=both
28653 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28657 LINKER_HASH_STYLE
=''
28660 if test x
"${LINKER_HASH_STYLE}" != x
; then
28662 cat >>confdefs.h
<<_ACEOF
28663 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28668 # Specify what should be the default of -fdiagnostics-color option.
28670 # Check whether --with-diagnostics-color was given.
28671 if test "${with_diagnostics_color+set}" = set; then :
28672 withval
=$with_diagnostics_color; case x
"$withval" in
28674 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
28677 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28680 DIAGNOSTICS_COLOR_DEFAULT
=-1
28683 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
28686 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28690 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28694 cat >>confdefs.h
<<_ACEOF
28695 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28699 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28700 # of jit/jit-playback.c.
28701 cat > gcc-driver-name.h
<<EOF
28702 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28705 # Configure the subdirectories
28706 # AC_CONFIG_SUBDIRS($subdirs)
28708 # Create the Makefile
28709 # and configure language subdirectories
28710 ac_config_files
="$ac_config_files $all_outputs"
28713 ac_config_commands
="$ac_config_commands default"
28715 cat >confcache
<<\_ACEOF
28716 # This file is a shell script that caches the results of configure
28717 # tests run on this system so they can be shared between configure
28718 # scripts and configure runs, see configure's option --config-cache.
28719 # It is not useful on other systems. If it contains results you don't
28720 # want to keep, you may remove or edit it.
28722 # config.status only pays attention to the cache file if you give it
28723 # the --recheck option to rerun configure.
28725 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28726 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28727 # following values.
28731 # The following way of writing the cache mishandles newlines in values,
28732 # but we know of no workaround that is simple, portable, and efficient.
28733 # So, we kill variables containing newlines.
28734 # Ultrix sh set writes to stderr and can't be redirected directly,
28735 # and sets the high bit in the cache file unless we assign to the vars.
28737 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28738 eval ac_val
=\$
$ac_var
28742 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28746 _ | IFS | as_nl
) ;; #(
28747 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28748 *) { eval $ac_var=; unset $ac_var;} ;;
28754 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28755 *${as_nl}ac_space
=\
*)
28756 # `set' does not quote correctly, so add quotes: double-quote
28757 # substitution turns \\\\ into \\, and sed turns \\ into \.
28760 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28763 # `set' quotes correctly as required by POSIX, so do not add quotes.
28764 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28773 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28775 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28777 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28778 if test -w "$cache_file"; then
28779 test "x$cache_file" != "x/dev/null" &&
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28781 $as_echo "$as_me: updating cache $cache_file" >&6;}
28782 cat confcache
>$cache_file
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28785 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28790 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28791 # Let make expand exec_prefix.
28792 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28794 DEFS
=-DHAVE_CONFIG_H
28798 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28799 # 1. Remove the extension, and $U if already installed.
28800 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28801 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28802 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28803 # will be set to the directory where LIBOBJS objects are built.
28804 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28805 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28807 LIBOBJS
=$ac_libobjs
28809 LTLIBOBJS
=$ac_ltlibobjs
28814 : ${CONFIG_STATUS=./config.status}
28816 ac_clean_files_save
=$ac_clean_files
28817 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28819 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28821 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28823 # Generated by $as_me.
28824 # Run this file to recreate the current configuration.
28825 # Compiler output produced by configure, useful for debugging
28826 # configure, is in config.log if it exists.
28829 ac_cs_recheck=false
28832 SHELL=\${CONFIG_SHELL-$SHELL}
28835 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28836 ## -------------------- ##
28837 ## M4sh Initialization. ##
28838 ## -------------------- ##
28840 # Be more Bourne compatible
28841 DUALCASE
=1; export DUALCASE
# for MKS sh
28842 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28845 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28846 # is contrary to our usage. Disable this feature.
28847 alias -g '${1+"$@"}'='"$@"'
28848 setopt NO_GLOB_SUBST
28850 case `(set -o) 2>/dev/null` in #(
28862 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28863 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28864 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28865 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28866 # Prefer a ksh shell builtin over an external printf program on Solaris,
28867 # but without wasting forks for bash or zsh.
28868 if test -z "$BASH_VERSION$ZSH_VERSION" \
28869 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28870 as_echo='print
-r --'
28871 as_echo_n='print
-rn --'
28872 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28873 as_echo='printf %s
\n'
28874 as_echo_n='printf %s
'
28876 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28877 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28878 as_echo_n='/usr
/ucb
/echo -n'
28880 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28881 as_echo_n_body='eval
28885 expr "X$arg" : "X\\(.*\\)$as_nl";
28886 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28888 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28890 export as_echo_n_body
28891 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28893 export as_echo_body
28894 as_echo='sh
-c $as_echo_body as_echo
'
28897 # The user is always right.
28898 if test "${PATH_SEPARATOR+set}" != set; then
28900 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28901 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28908 # We need space, tab and new line, in precisely that order. Quoting is
28909 # there to prevent editors from complaining about space-tab.
28910 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28911 # splitting by setting IFS to empty value.)
28914 # Find who we are. Look in the path if we contain no directory separator.
28916 *[\\/]* ) as_myself=$0 ;;
28917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28918 for as_dir in $PATH
28921 test -z "$as_dir" && as_dir=.
28922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28928 # We did not find ourselves, most probably we were run as `sh COMMAND'
28929 # in which case we are not to be found in the path.
28930 if test "x$as_myself" = x
; then
28933 if test ! -f "$as_myself"; then
28934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28938 # Unset variables that we do not need and which cause bugs (e.g. in
28939 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28940 # suppresses any "Segmentation fault" message there. '((' could
28941 # trigger a bug in pdksh 5.2.14.
28942 for as_var
in BASH_ENV ENV MAIL MAILPATH
28943 do eval test x\
${$as_var+set} = xset \
28944 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28957 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28960 # as_fn_error ERROR [LINENO LOG_FD]
28961 # ---------------------------------
28962 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28963 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28964 # script with status $?, using 1 if that was 0.
28967 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28969 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28972 $as_echo "$as_me: error: $1" >&2
28973 as_fn_exit
$as_status
28977 # as_fn_set_status STATUS
28978 # -----------------------
28979 # Set $? to STATUS, without forking.
28980 as_fn_set_status
()
28983 } # as_fn_set_status
28985 # as_fn_exit STATUS
28986 # -----------------
28987 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28991 as_fn_set_status
$1
28997 # Portably unset VAR.
29000 { eval $1=; unset $1;}
29002 as_unset
=as_fn_unset
29003 # as_fn_append VAR VALUE
29004 # ----------------------
29005 # Append the text in VALUE to the end of the definition contained in VAR. Take
29006 # advantage of any shell optimizations that allow amortized linear growth over
29007 # repeated appends, instead of the typical quadratic growth present in naive
29009 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29010 eval 'as_fn_append ()
29021 # as_fn_arith ARG...
29022 # ------------------
29023 # Perform arithmetic evaluation on the ARGs, and store the result in the
29024 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29025 # must be portable across $(()) and expr.
29026 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29027 eval 'as_fn_arith ()
29034 as_val
=`expr "$@" || test $? -eq 1`
29039 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29040 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29046 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29047 as_basename
=basename
29052 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29058 as_me
=`$as_basename -- "$0" ||
29059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29060 X"$0" : 'X\(//\)$' \| \
29061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29063 sed '/^.*\/\([^/][^/]*\)\/*$/{
29077 # Avoid depending upon Character Ranges.
29078 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29079 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29080 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29081 as_cr_digits
='0123456789'
29082 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29084 ECHO_C
= ECHO_N
= ECHO_T
=
29085 case `echo -n x` in #(((((
29087 case `echo 'xy\c'` in
29088 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29090 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29097 rm -f conf$$ conf$$.exe conf$$.
file
29098 if test -d conf$$.dir
; then
29099 rm -f conf$$.dir
/conf$$.
file
29102 mkdir conf$$.dir
2>/dev
/null
29104 if (echo >conf$$.
file) 2>/dev
/null
; then
29105 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29107 # ... but there are two gotchas:
29108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29110 # In both cases, we have to default to `cp -p'.
29111 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29113 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29121 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29122 rmdir conf$$.dir
2>/dev
/null
29127 # Create "$as_dir" as a directory, including parents if necessary.
29132 -*) as_dir
=.
/$as_dir;;
29134 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29138 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29139 *) as_qdir
=$as_dir;;
29141 as_dirs
="'$as_qdir' $as_dirs"
29142 as_dir
=`$as_dirname -- "$as_dir" ||
29143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29144 X"$as_dir" : 'X\(//\)[^/]' \| \
29145 X"$as_dir" : 'X\(//\)$' \| \
29146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29147 $as_echo X"$as_dir" |
29148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29152 /^X\(\/\/\)[^/].*/{
29165 test -d "$as_dir" && break
29167 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29168 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29172 if mkdir
-p .
2>/dev
/null
; then
29173 as_mkdir_p
='mkdir -p "$as_dir"'
29175 test -d .
/-p && rmdir .
/-p
29179 if test -x / >/dev
/null
2>&1; then
29180 as_test_x
='test -x'
29182 if ls -dL / >/dev
/null
2>&1; then
29189 if test -d "$1"; then
29195 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29196 ???[sx]*):;;*)false;;esac;fi
29200 as_executable_p
=$as_test_x
29202 # Sed expression to map a string onto a valid CPP name.
29203 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29205 # Sed expression to map a string onto a valid variable name.
29206 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29210 ## ----------------------------------- ##
29211 ## Main body of $CONFIG_STATUS script. ##
29212 ## ----------------------------------- ##
29214 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29217 # Save the log message, to keep $0 and so on meaningful, and to
29218 # report actual input values of CONFIG_FILES etc. instead of their
29219 # values after options handling.
29221 This file was extended by $as_me, which was
29222 generated by GNU Autoconf 2.64. Invocation command line was
29224 CONFIG_FILES = $CONFIG_FILES
29225 CONFIG_HEADERS = $CONFIG_HEADERS
29226 CONFIG_LINKS = $CONFIG_LINKS
29227 CONFIG_COMMANDS = $CONFIG_COMMANDS
29230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29235 case $ac_config_files in *"
29236 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29239 case $ac_config_headers in *"
29240 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29245 # Files that config.status was made for.
29246 config_files="$ac_config_files"
29247 config_headers="$ac_config_headers"
29248 config_links="$ac_config_links"
29249 config_commands="$ac_config_commands"
29253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29255 \`$as_me' instantiates files and other configuration actions
29256 from templates according to the current configuration. Unless the files
29257 and actions are specified as TAGs, all are instantiated by default.
29259 Usage: $0 [OPTION]... [TAG]...
29261 -h, --help print this help, then exit
29262 -V, --version print version number and configuration settings, then exit
29263 -q, --quiet, --silent
29264 do not print progress messages
29265 -d, --debug don't remove temporary files
29266 --recheck update $as_me by reconfiguring in the same conditions
29267 --file=FILE[:TEMPLATE]
29268 instantiate the configuration file FILE
29269 --header=FILE[:TEMPLATE]
29270 instantiate the configuration header FILE
29272 Configuration files:
29275 Configuration headers:
29278 Configuration links:
29281 Configuration commands:
29284 Report bugs to the package provider."
29287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29290 configured by $0, generated by GNU Autoconf 2.64,
29291 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29293 Copyright (C) 2009 Free Software Foundation, Inc.
29294 This config.status script is free software; the Free Software Foundation
29295 gives unlimited permission to copy, distribute and modify it."
29300 test -n "\$AWK" || AWK=awk
29303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29304 # The default lists apply if the user does not specify any file.
29310 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29311 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29322 # Handling of the options.
29323 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29325 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29326 $as_echo "$ac_cs_version"; exit ;;
29327 --debug |
--debu |
--deb |
--de |
--d |
-d )
29329 --file |
--fil |
--fi |
--f )
29332 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29334 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29335 ac_need_defaults
=false
;;
29336 --header |
--heade |
--head |
--hea )
29339 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29341 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29342 ac_need_defaults
=false
;;
29344 # Conflict between --help and --header
29345 as_fn_error
"ambiguous option: \`$1'
29346 Try \`$0 --help' for more information.";;
29347 --help |
--hel |
-h )
29348 $as_echo "$ac_cs_usage"; exit ;;
29349 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29350 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29353 # This is an error.
29354 -*) as_fn_error
"unrecognized option: \`$1'
29355 Try \`$0 --help' for more information." ;;
29357 *) as_fn_append ac_config_targets
" $1"
29358 ac_need_defaults
=false
;;
29364 ac_configure_extra_args
=
29366 if $ac_cs_silent; then
29368 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29373 if \$ac_cs_recheck; then
29374 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29376 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29377 CONFIG_SHELL='$SHELL'
29378 export CONFIG_SHELL
29383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29387 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29388 ## Running $as_me. ##
29394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29398 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29399 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29406 # Handling of arguments.
29407 for ac_config_target
in $ac_config_targets
29409 case $ac_config_target in
29410 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29411 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29412 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29413 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29414 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29415 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29416 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29417 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29418 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29420 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29425 # If the user did not use the arguments to specify the items to instantiate,
29426 # then the envvar interface is used. Set only those that are not.
29427 # We use the long form for the default assignment because of an extremely
29428 # bizarre bug on SunOS 4.1.3.
29429 if $ac_need_defaults; then
29430 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29431 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29432 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29433 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29436 # Have a temporary directory for convenience. Make it in the build tree
29437 # simply because there is no reason against having it here, and in addition,
29438 # creating and moving files from /tmp can sometimes cause problems.
29439 # Hook for its removal unless debugging.
29440 # Note that there is a small window in which the directory will not be cleaned:
29441 # after its creation but before its name has been assigned to `$tmp'.
29445 trap 'exit_status=$?
29446 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29448 trap 'as_fn_exit 1' 1 2 13 15
29450 # Create a (secure) tmp directory for tmp files.
29453 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29454 test -n "$tmp" && test -d "$tmp"
29457 tmp
=.
/conf$$
-$RANDOM
29458 (umask 077 && mkdir
"$tmp")
29459 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29461 # Set up the scripts for CONFIG_FILES section.
29462 # No need to generate them if there are no CONFIG_FILES.
29463 # This happens for instance with `./config.status config.h'.
29464 if test -n "$CONFIG_FILES"; then
29466 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29467 ac_cs_awk_getline
=:
29468 ac_cs_awk_pipe_init
=
29469 ac_cs_awk_read_file
='
29470 while ((getline aline < (F[key])) > 0)
29473 ac_cs_awk_pipe_fini
=
29475 ac_cs_awk_getline
=false
29476 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29477 ac_cs_awk_read_file
='
29479 print "cat " F[key] " &&"
29480 '$ac_cs_awk_pipe_init
29481 # The final `:' finishes the AND list.
29482 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29484 ac_cr
=`echo X | tr X '\015'`
29485 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29486 # But we know of no other shell where ac_cr would be empty at this
29487 # point, so we can use a bashism as a fallback.
29488 if test "x$ac_cr" = x
; then
29489 eval ac_cr
=\$
\'\\r
\'
29491 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29492 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29495 ac_cs_awk_cr
=$ac_cr
29498 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29501 # Create commands to substitute file output variables.
29503 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29504 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29505 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29508 } >conf$
$files.sh
&&
29509 . .
/conf$
$files.sh ||
29510 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29511 rm -f conf$
$files.sh
29514 echo "cat >conf$$subs.awk <<_ACEOF" &&
29515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29517 } >conf$$subs.sh ||
29518 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29519 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29521 for ac_last_try in false false false false false :; do
29522 . ./conf$$subs.sh ||
29523 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29525 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29526 if test $ac_delim_n = $ac_delim_num; then
29528 elif $ac_last_try; then
29529 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29531 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29534 rm -f conf$$subs.sh
29536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29537 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29541 s/^/S["/; s
/!.
*/"]=/
29551 s/\(.\{148\}\).*/\1/
29553 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29558 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29565 s/\(.\{148\}\).*/\1/
29567 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29571 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29576 ' <conf$$subs.awk | sed '
29581 ' >>$CONFIG_STATUS || ac_write_fail=1
29582 rm -f conf$$subs.awk
29583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29585 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29586 for (key in S) S_is_set[key] = 1
29588 \$ac_cs_awk_pipe_init
29592 nfields = split(line, field, "@
")
29594 len = length(field[1])
29595 for (i = 2; i < nfields; i++) {
29597 keylen = length(key)
29598 if (S_is_set[key]) {
29600 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29601 len += length(value) + length(field[++i])
29606 if (nfields == 3 && !substed) {
29608 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29609 \$ac_cs_awk_read_file
29615 \$ac_cs_awk_pipe_fini
29618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29619 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29620 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29623 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29624 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29627 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29628 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29629 # trailing colons and then remove the whole line if VPATH becomes empty
29630 # (actually we leave an empty line to preserve line numbers).
29631 if test "x
$srcdir" = x.; then
29632 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29633 s/:*\$(srcdir):*/:/
29634 s/:*\${srcdir}:*/:/
29636 s/^\([^=]*=[ ]*\):*/\1/
29642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29643 fi # test -n "$CONFIG_FILES"
29645 # Set up the scripts for CONFIG_HEADERS section.
29646 # No need to generate them if there are no CONFIG_HEADERS.
29647 # This happens for instance with `./config.status Makefile'.
29648 if test -n "$CONFIG_HEADERS"; then
29649 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29653 # Transform confdefs.h into an awk script `defines.awk', embedded as
29654 # here-document in config.status, that substitutes the proper values into
29655 # config.h.in to produce config.h.
29657 # Create a delimiter string that does not exist in confdefs.h, to ease
29658 # handling of long lines.
29660 for ac_last_try in false false :; do
29661 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29662 if test -z "$ac_t"; then
29664 elif $ac_last_try; then
29665 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29667 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29671 # For the awk script, D is an array of macro values keyed by name,
29672 # likewise P contains macro parameters if any. Preserve backslash
29673 # newline sequences.
29675 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29677 s/.\{148\}/&'"$ac_delim"'/g
29680 s/^[ ]*#[ ]*define[ ][ ]*/ /
29687 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29689 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29693 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29694 D["\
1"]=" \
3\\\\\\n
"\\/p
29696 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29701 s/.\{148\}/&'"$ac_delim"'/g
29706 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29709 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29711 ' <confdefs.h | sed '
29712 s/'"$ac_delim"'/"\\\
29713 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29716 for (key in D) D_is_set[key] = 1
29719 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29721 split(line, arg, " ")
29722 if (arg[1] == "#") {
29726 defundef
= substr
(arg
[1], 2)
29729 split(mac1
, mac2
, "(") #)
29731 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29732 if (D_is_set
[macro
]) {
29733 # Preserve the white space surrounding the "#".
29734 print prefix
"define", macro P
[macro
] D
[macro
]
29737 # Replace #undef with comments. This is necessary, for example,
29738 # in the case of _POSIX_SOURCE, which is predefined and required
29739 # on some systems where configure will not decide to define it.
29740 if (defundef
== "undef") {
29741 print
"/*", prefix defundef
, macro
, "*/"
29749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29750 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29751 fi # test -n "$CONFIG_HEADERS"
29754 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29759 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29761 case $ac_mode$ac_tag in
29763 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29764 :[FH
]-) ac_tag
=-:-;;
29765 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29782 -) ac_f
="$tmp/stdin";;
29783 *) # Look for the file first in the build tree, then in the source tree
29784 # (if the path is not absolute). The absolute path cannot be DOS-style,
29785 # because $ac_f cannot contain `:'.
29789 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29791 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29793 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29794 as_fn_append ac_file_inputs
" '$ac_f'"
29797 # Let's still pretend it is `configure' which instantiates (i.e., don't
29798 # use $as_me), people would be surprised to read:
29799 # /* config.h. Generated by config.status. */
29800 configure_input
='Generated from '`
29801 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29803 if test x
"$ac_file" != x-
; then
29804 configure_input
="$ac_file. $configure_input"
29805 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29806 $as_echo "$as_me: creating $ac_file" >&6;}
29808 # Neutralize special characters interpreted by sed in replacement strings.
29809 case $configure_input in #(
29810 *\
&* |
*\|
* |
*\\* )
29811 ac_sed_conf_input
=`$as_echo "$configure_input" |
29812 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29813 *) ac_sed_conf_input
=$configure_input;;
29817 *:-:* |
*:-) cat >"$tmp/stdin" \
29818 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29823 ac_dir
=`$as_dirname -- "$ac_file" ||
29824 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29825 X"$ac_file" : 'X\(//\)[^/]' \| \
29826 X"$ac_file" : 'X\(//\)$' \| \
29827 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29828 $as_echo X"$ac_file" |
29829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29833 /^X\(\/\/\)[^/].*/{
29846 as_dir
="$ac_dir"; as_fn_mkdir_p
29850 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29852 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29853 # A ".." for each directory in $ac_dir_suffix.
29854 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29855 case $ac_top_builddir_sub in
29856 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29857 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29860 ac_abs_top_builddir
=$ac_pwd
29861 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29862 # for backward compatibility:
29863 ac_top_builddir
=$ac_top_build_prefix
29866 .
) # We are building in place.
29868 ac_top_srcdir
=$ac_top_builddir_sub
29869 ac_abs_top_srcdir
=$ac_pwd ;;
29870 [\\/]* | ?
:[\\/]* ) # Absolute name.
29871 ac_srcdir
=$srcdir$ac_dir_suffix;
29872 ac_top_srcdir
=$srcdir
29873 ac_abs_top_srcdir
=$srcdir ;;
29874 *) # Relative name.
29875 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29876 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29877 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29879 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29891 # If the template does not know about datarootdir, expand it.
29892 # FIXME: This hack should be removed a few years after 2.60.
29893 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29904 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29905 *datarootdir
*) ac_datarootdir_seen
=yes;;
29906 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29908 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29910 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29911 ac_datarootdir_hack='
29912 s&@datadir@&$datadir&g
29913 s&@docdir@&$docdir&g
29914 s&@infodir@&$infodir&g
29915 s&@localedir@&$localedir&g
29916 s&@mandir@&$mandir&g
29917 s&\\\${datarootdir}&$datarootdir&g' ;;
29921 # Neutralize VPATH when `$srcdir' = `.'.
29922 # Shell code in configure.ac might set extrasub.
29923 # FIXME: do we really want to maintain this feature?
29924 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29925 ac_sed_extra="$ac_vpsub
29928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29930 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29931 s|@configure_input@|
$ac_sed_conf_input|
;t t
29932 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29933 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29934 s
&@srcdir@
&$ac_srcdir&;t t
29935 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29936 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29937 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29938 s
&@builddir@
&$ac_builddir&;t t
29939 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29940 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29941 $ac_datarootdir_hack
29943 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29944 if $ac_cs_awk_getline; then
29945 $AWK -f "$tmp/subs.
awk"
29947 $AWK -f "$tmp/subs.
awk" | $SHELL
29949 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29951 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29952 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29953 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29955 which seems to be undefined. Please make sure it is defined." >&5
29956 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29957 which seems to be undefined. Please make sure it is defined." >&2;}
29961 -) cat "$tmp/out" && rm -f "$tmp/out";;
29962 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29964 || as_fn_error "could not create $ac_file" "$LINENO" 5
29970 if test x"$ac_file" != x-; then
29972 $as_echo "/* $configure_input */" \
29973 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29974 } >"$tmp/config.h" \
29975 || as_fn_error "could not create $ac_file" "$LINENO" 5
29976 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29978 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29981 mv "$tmp/config.h" "$ac_file" \
29982 || as_fn_error "could not create $ac_file" "$LINENO" 5
29985 $as_echo "/* $configure_input */" \
29986 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29987 || as_fn_error "could not create -" "$LINENO" 5
29995 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
29998 # Prefer the file from the source tree if names are identical.
29999 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30000 ac_source=$srcdir/$ac_source
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30004 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30006 if test ! -r "$ac_source"; then
30007 as_fn_error "$ac_source: file not found" "$LINENO" 5
30011 # Try a relative symlink, then a hard link, then a copy.
30013 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30014 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30016 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30017 ln "$ac_source" "$ac_file" 2>/dev/null ||
30018 cp -p "$ac_source" "$ac_file" ||
30019 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30022 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30023 $as_echo "$as_me: executing $ac_file commands" >&6;}
30028 case $ac_file$ac_mode in
30029 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30031 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30032 for lang in $subdirs c-family common
30034 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30036 "as":F) chmod +x as ;;
30037 "collect-ld":F) chmod +x collect-ld ;;
30038 "nm":F) chmod +x nm ;;
30040 case ${CONFIG_HEADERS} in
30041 *auto-host.h:config.in*)
30044 # Make sure all the subdirs exist.
30045 for d in $subdirs doc build common c-family
30047 test -d $d || mkdir $d
30057 ac_clean_files=$ac_clean_files_save
30059 test $ac_write_fail = 0 ||
30060 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30063 # configure is writing to config.log, and then calls config.status.
30064 # config.status does its own redirection, appending to config.log.
30065 # Unfortunately, on DOS this fails, as config.log is still kept open
30066 # by configure, so config.status won't be able to
write to it
; its
30067 # output is simply discarded. So we exec the FD to /dev/null,
30068 # effectively closing config.log, so it can be properly (re)opened and
30069 # appended to by config.status. When coming back to configure, we
30070 # need to make the FD available again.
30071 if test "$no_create" != yes; then
30073 ac_config_status_args
=
30074 test "$silent" = yes &&
30075 ac_config_status_args
="$ac_config_status_args --quiet"
30077 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30079 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30080 # would make configure fail if this is the last instruction.
30081 $ac_cs_success || as_fn_exit $?
30083 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30085 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}