2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev
/null
; then :
186 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
191 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir
=.
198 for as_base
in sh bash ksh sh5
; do
199 # Try only shells that exist, to save several forks.
200 as_shell
=$as_dir/$as_base
201 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
203 CONFIG_SHELL
=$as_shell as_have_required
=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
212 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
214 CONFIG_SHELL
=$SHELL as_have_required
=yes
219 if test "x$CONFIG_SHELL" != x
; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x
$as_have_required = xno
; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x
${ZSH_VERSION+set} = xset
; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL
=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE
= GREP_OPTIONS
=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir
=.
/$as_dir;;
291 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
295 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs
="'$as_qdir' $as_dirs"
299 as_dir
=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
325 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
360 as_val
=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status
=$?
; test $as_status -eq 0 && as_status
=1
374 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit
$as_status
381 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
388 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
400 as_me
=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits
='0123456789'
424 as_cr_alnum
=$as_cr_Letters$as_cr_digits
427 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
428 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x
"$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C
= ECHO_N
= ECHO_T
=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
471 rm -f conf$$ conf$$.exe conf$$.
file
472 if test -d conf$$.dir
; then
473 rm -f conf$$.dir
/conf$$.
file
476 mkdir conf$$.dir
2>/dev
/null
478 if (echo >conf$$.
file) 2>/dev
/null
; then
479 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
487 elif ln conf$$.
file conf$$
2>/dev
/null
; then
495 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
496 rmdir conf$$.dir
2>/dev
/null
498 if mkdir
-p .
2>/dev
/null
; then
499 as_mkdir_p
='mkdir -p "$as_dir"'
501 test -d .
/-p && rmdir .
/-p
505 if test -x / >/dev
/null
2>&1; then
508 if ls -dL / >/dev
/null
2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p
=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL
=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev
/null
6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix
=/usr
/local
549 ac_config_libobj_dir
=.
556 # Identity of this package.
564 ac_unique_file
="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default
="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
627 common_out_object_file
643 gcc_gxx_include_dir_add_sysroot
650 user_headers_inc_next_post
651 user_headers_inc_next_pre
653 TM_MULTILIB_EXCEPTIONS_CONFIG
662 build_xm_include_list
664 build_install_headers_dir
666 all_selected_languages
685 ORIGINAL_NM_FOR_TARGET
687 ORIGINAL_LD_GOLD_FOR_TARGET
688 ORIGINAL_LD_BFD_FOR_TARGET
689 ORIGINAL_LD_FOR_TARGET
690 ORIGINAL_PLUGIN_LD_FOR_TARGET
692 ORIGINAL_AS_FOR_TARGET
734 NATIVE_SYSTEM_HEADER_DIR
767 real_target_noncanonical
768 enable_as_accelerator
782 valgrind_path_defines
812 CROSS_SYSTEM_HEADER_DIR
813 TARGET_SYSTEM_ROOT_DEFINE
815 SYSROOT_CFLAGS_FOR_TARGET
860 program_transform_name
871 ac_subst_files
='option_includes
874 enable_option_checking
877 with_native_system_header_dir
882 enable_generated_files_in_srcdir
889 enable_build_format_warnings
893 enable_gather_detailed_mem_stats
894 enable_valgrind_annotations
913 enable_sjlj_exceptions
915 enable_leading_mingw64_underscores
918 enable_win32_registry
926 enable_gnu_indirect_function
927 enable_initfini_array
929 enable_fix_cortex_a53_835769
930 enable_fix_cortex_a53_843419
932 enable_gnu_unique_object
933 enable_linker_build_id
938 enable_maintainer_mode
940 enable_version_specific_runtime_libs
943 enable_libquadmath_support
944 with_linker_hash_style
945 with_diagnostics_color
948 ac_precious_vars
='build_alias
967 # Initialize some variables set by options.
969 ac_init_version
=false
970 ac_unrecognized_opts
=
972 # The variables have the same names as the options, with
973 # dashes changed to underlines.
981 program_transform_name
=s
,x
,x
,
989 # Installation directory options.
990 # These are left unexpanded so users can "make install exec_prefix=/foo"
991 # and all the variables that are supposed to be based on exec_prefix
992 # by default will actually change.
993 # Use braces instead of parens because sh, perl, etc. also accept them.
994 # (The list follows the same order as the GNU Coding Standards.)
995 bindir
='${exec_prefix}/bin'
996 sbindir
='${exec_prefix}/sbin'
997 libexecdir
='${exec_prefix}/libexec'
998 datarootdir
='${prefix}/share'
999 datadir
='${datarootdir}'
1000 sysconfdir
='${prefix}/etc'
1001 sharedstatedir
='${prefix}/com'
1002 localstatedir
='${prefix}/var'
1003 includedir
='${prefix}/include'
1004 oldincludedir
='/usr/include'
1005 docdir
='${datarootdir}/doc/${PACKAGE}'
1006 infodir
='${datarootdir}/info'
1011 libdir
='${exec_prefix}/lib'
1012 localedir
='${datarootdir}/locale'
1013 mandir
='${datarootdir}/man'
1019 # If the previous option needs an argument, assign it.
1020 if test -n "$ac_prev"; then
1021 eval $ac_prev=\
$ac_option
1027 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031 # Accept the important Cygnus configure options, so we can diagnose typos.
1033 case $ac_dashdash$ac_option in
1037 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1039 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1040 bindir
=$ac_optarg ;;
1042 -build |
--build |
--buil |
--bui |
--bu)
1043 ac_prev
=build_alias
;;
1044 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1045 build_alias
=$ac_optarg ;;
1047 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1048 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1049 ac_prev
=cache_file
;;
1050 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1051 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1052 cache_file
=$ac_optarg ;;
1054 --config-cache |
-C)
1055 cache_file
=config.cache
;;
1057 -datadir |
--datadir |
--datadi |
--datad)
1059 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1060 datadir
=$ac_optarg ;;
1062 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1063 |
--dataroo |
--dataro |
--datar)
1064 ac_prev
=datarootdir
;;
1065 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1066 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1067 datarootdir
=$ac_optarg ;;
1069 -disable-* |
--disable-*)
1070 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1073 as_fn_error
"invalid feature name: $ac_useropt"
1074 ac_useropt_orig
=$ac_useropt
1075 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_
$ac_useropt"
1080 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep
=', ';;
1083 eval enable_
$ac_useropt=no
;;
1085 -docdir |
--docdir |
--docdi |
--doc |
--do)
1087 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1088 docdir
=$ac_optarg ;;
1090 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1092 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1093 dvidir
=$ac_optarg ;;
1095 -enable-* |
--enable-*)
1096 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1099 as_fn_error
"invalid feature name: $ac_useropt"
1100 ac_useropt_orig
=$ac_useropt
1101 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "enable_
$ac_useropt"
1106 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep
=', ';;
1109 eval enable_
$ac_useropt=\
$ac_optarg ;;
1111 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1112 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1113 |
--exec |
--exe |
--ex)
1114 ac_prev
=exec_prefix
;;
1115 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1116 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1117 |
--exec=* |
--exe=* |
--ex=*)
1118 exec_prefix
=$ac_optarg ;;
1120 -gas |
--gas |
--ga |
--g)
1121 # Obsolete; use --with-gas.
1124 -help |
--help |
--hel |
--he |
-h)
1125 ac_init_help
=long
;;
1126 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1127 ac_init_help
=recursive
;;
1128 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1129 ac_init_help
=short
;;
1131 -host |
--host |
--hos |
--ho)
1132 ac_prev
=host_alias
;;
1133 -host=* |
--host=* |
--hos=* |
--ho=*)
1134 host_alias
=$ac_optarg ;;
1136 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1138 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1140 htmldir
=$ac_optarg ;;
1142 -includedir |
--includedir |
--includedi |
--included |
--include \
1143 |
--includ |
--inclu |
--incl |
--inc)
1144 ac_prev
=includedir
;;
1145 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1146 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1147 includedir
=$ac_optarg ;;
1149 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1151 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1152 infodir
=$ac_optarg ;;
1154 -libdir |
--libdir |
--libdi |
--libd)
1156 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1157 libdir
=$ac_optarg ;;
1159 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1160 |
--libexe |
--libex |
--libe)
1161 ac_prev
=libexecdir
;;
1162 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1163 |
--libexe=* |
--libex=* |
--libe=*)
1164 libexecdir
=$ac_optarg ;;
1166 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1167 ac_prev
=localedir
;;
1168 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1169 localedir
=$ac_optarg ;;
1171 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1172 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1173 ac_prev
=localstatedir
;;
1174 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1175 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1176 localstatedir
=$ac_optarg ;;
1178 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1180 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1181 mandir
=$ac_optarg ;;
1183 -nfp |
--nfp |
--nf)
1184 # Obsolete; use --without-fp.
1187 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1188 |
--no-cr |
--no-c |
-n)
1191 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1192 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1195 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1196 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1197 |
--oldin |
--oldi |
--old |
--ol |
--o)
1198 ac_prev
=oldincludedir
;;
1199 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1200 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1201 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1202 oldincludedir
=$ac_optarg ;;
1204 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1206 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1207 prefix
=$ac_optarg ;;
1209 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1210 |
--program-pre |
--program-pr |
--program-p)
1211 ac_prev
=program_prefix
;;
1212 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1213 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1214 program_prefix
=$ac_optarg ;;
1216 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1217 |
--program-suf |
--program-su |
--program-s)
1218 ac_prev
=program_suffix
;;
1219 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1220 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1221 program_suffix
=$ac_optarg ;;
1223 -program-transform-name |
--program-transform-name \
1224 |
--program-transform-nam |
--program-transform-na \
1225 |
--program-transform-n |
--program-transform- \
1226 |
--program-transform |
--program-transfor \
1227 |
--program-transfo |
--program-transf \
1228 |
--program-trans |
--program-tran \
1229 |
--progr-tra |
--program-tr |
--program-t)
1230 ac_prev
=program_transform_name
;;
1231 -program-transform-name=* |
--program-transform-name=* \
1232 |
--program-transform-nam=* |
--program-transform-na=* \
1233 |
--program-transform-n=* |
--program-transform-=* \
1234 |
--program-transform=* |
--program-transfor=* \
1235 |
--program-transfo=* |
--program-transf=* \
1236 |
--program-trans=* |
--program-tran=* \
1237 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1238 program_transform_name
=$ac_optarg ;;
1240 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1242 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1243 pdfdir
=$ac_optarg ;;
1245 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1247 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1250 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1251 |
-silent |
--silent |
--silen |
--sile |
--sil)
1254 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1256 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1258 sbindir
=$ac_optarg ;;
1260 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1261 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1262 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1264 ac_prev
=sharedstatedir
;;
1265 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1266 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1267 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1269 sharedstatedir
=$ac_optarg ;;
1271 -site |
--site |
--sit)
1273 -site=* |
--site=* |
--sit=*)
1276 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1278 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1279 srcdir
=$ac_optarg ;;
1281 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1282 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1283 ac_prev
=sysconfdir
;;
1284 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1285 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1286 sysconfdir
=$ac_optarg ;;
1288 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1289 ac_prev
=target_alias
;;
1290 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1291 target_alias
=$ac_optarg ;;
1293 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1296 -version |
--version |
--versio |
--versi |
--vers |
-V)
1297 ac_init_version
=: ;;
1300 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1303 as_fn_error
"invalid package name: $ac_useropt"
1304 ac_useropt_orig
=$ac_useropt
1305 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1311 ac_unrecognized_sep
=', ';;
1313 eval with_
$ac_useropt=\
$ac_optarg ;;
1315 -without-* |
--without-*)
1316 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1319 as_fn_error
"invalid package name: $ac_useropt"
1320 ac_useropt_orig
=$ac_useropt
1321 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1322 case $ac_user_opts in
1326 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1327 ac_unrecognized_sep
=', ';;
1329 eval with_
$ac_useropt=no
;;
1332 # Obsolete; use --with-x.
1335 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1336 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1337 ac_prev
=x_includes
;;
1338 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1339 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1340 x_includes
=$ac_optarg ;;
1342 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1343 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1344 ac_prev
=x_libraries
;;
1345 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1346 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1347 x_libraries
=$ac_optarg ;;
1349 -*) as_fn_error
"unrecognized option: \`$ac_option'
1350 Try \`$0 --help' for more information."
1354 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 case $ac_envvar in #(
1357 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1358 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1360 eval $ac_envvar=\
$ac_optarg
1361 export $ac_envvar ;;
1364 # FIXME: should be removed in autoconf 3.0.
1365 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1366 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1367 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1368 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1374 if test -n "$ac_prev"; then
1375 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1376 as_fn_error
"missing argument to $ac_option"
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1382 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1383 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1387 # Check all directory arguments for consistency.
1388 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1389 datadir sysconfdir sharedstatedir localstatedir includedir \
1390 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1391 libdir localedir mandir
1393 eval ac_val
=\$
$ac_var
1394 # Remove trailing slashes.
1397 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1398 eval $ac_var=\
$ac_val;;
1400 # Be sure to have absolute directory names.
1402 [\\/$
]* | ?
:[\\/]* ) continue;;
1403 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1405 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1408 # There might be people who depend on the old broken behavior: `$host'
1409 # used to hold the argument of --host etc.
1410 # FIXME: To remove some day.
1413 target
=$target_alias
1415 # FIXME: To remove some day.
1416 if test "x$host_alias" != x
; then
1417 if test "x$build_alias" = x
; then
1418 cross_compiling
=maybe
1419 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1420 If a cross compiler is detected then cross compile mode will be used." >&2
1421 elif test "x$build_alias" != "x$host_alias"; then
1427 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1429 test "$silent" = yes && exec 6>/dev
/null
1432 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di
=`ls -di .` &&
1434 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error
"working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error
"pwd does not report name of working directory"
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted
=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir
=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1472 ac_srcdir_defaulted
=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1476 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1478 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1490 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 for ac_var
in $ac_precious_vars; do
1493 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1495 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1500 # Report the --help message.
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1506 \`configure' configures this package to adapt to many kinds of systems.
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1513 Defaults for the options are specified in brackets.
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1537 For better control, use the options below.
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --libdir=DIR object code libraries [EPREFIX/lib]
1547 --includedir=DIR C header files [PREFIX/include]
1548 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1549 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1550 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1551 --infodir=DIR info documentation [DATAROOTDIR/info]
1552 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1553 --mandir=DIR man documentation [DATAROOTDIR/man]
1554 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1555 --htmldir=DIR html documentation [DOCDIR]
1556 --dvidir=DIR dvi documentation [DOCDIR]
1557 --pdfdir=DIR pdf documentation [DOCDIR]
1558 --psdir=DIR ps documentation [DOCDIR]
1564 --program-prefix=PREFIX prepend PREFIX to installed program names
1565 --program-suffix=SUFFIX append SUFFIX to installed program names
1566 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1569 --build=BUILD configure
for building on BUILD
[guessed
]
1570 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1571 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1575 if test -n "$ac_init_help"; then
1580 --disable-option-checking ignore unrecognized
--enable/--with options
1581 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1582 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1583 --enable-generated-files-in-srcdir
1584 put copies of generated files
in source dir intended
1585 for creating
source tarballs
for users without
1586 texinfo bison or flex
1587 --disable-largefile omit support
for large files
1588 --disable-build-format-warnings
1589 don
't use -Wformat while building GCC
1590 --enable-werror-always enable -Werror despite compiler version
1591 --enable-checking[=LIST]
1592 enable expensive run-time checks. With LIST, enable
1593 only specific categories of checks. Categories are:
1594 yes,no,all,none,release. Flags are:
1595 assert,df,fold,gc,gcac,gimple,misc,
1596 rtlflag,rtl,runtime,tree,valgrind,types
1597 --enable-coverage[=LEVEL]
1598 enable compiler's code coverage collection. Use to
1599 measure compiler performance and
locate unused parts
1600 of the compiler. With LEVEL
, specify optimization.
1601 Values are opt
, noopt
, default is noopt
1602 --enable-gather-detailed-mem-stats
1603 enable detailed memory allocation stats gathering
1604 --enable-valgrind-annotations
1605 enable valgrind runtime interaction
1606 --enable-multilib enable library support
for multiple ABIs
1607 --enable-multiarch enable support
for multiarch paths
1608 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1609 --enable-decimal-float={no
,yes,bid
,dpd
}
1610 enable decimal float extension to C. Selecting
'bid'
1611 or
'dpd' choses
which decimal floating point format
1613 --enable-fixed-point enable fixed-point arithmetic extension to C
1614 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1616 --enable-tls enable or disable generation of tls code overriding
1617 the assembler check
for tls support
1618 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1619 GNU Objective-C runtime
1620 --disable-shared don't provide a shared libgcc
1621 --enable-languages=LIST specify
which front-ends to build
1622 --disable-rpath do not hardcode runtime library paths
1623 --enable-sjlj-exceptions
1624 arrange to use setjmp
/longjmp exception handling
1625 --enable-secureplt enable -msecure-plt by default
for PowerPC
1626 --enable-leading-mingw64-underscores
1627 enable leading underscores on
64 bit mingw targets
1628 --enable-cld enable -mcld by default
for 32bit x86
1629 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1631 --disable-win32-registry
1632 disable lookup of installation paths
in the Registry
1634 --enable-win32-registry enable registry lookup
(default
)
1635 --enable-win32-registry=KEY
1636 use KEY instead of GCC version as the last portion
1638 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1639 --enable-static[=PKGS
] build static libraries
[default
=yes]
1640 --enable-fast-install[=PKGS
]
1641 optimize
for fast installation
[default
=yes]
1642 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1643 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1644 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1645 --enable-gnu-indirect-function
1646 enable the use of the @gnu_indirect_function to
1648 --enable-initfini-array use .init_array
/.fini_array sections
1649 --enable-comdat enable COMDAT group support
1651 --enable-fix-cortex-a53-835769
1652 enable workaround
for AArch64 Cortex-A53 erratum
1654 --disable-fix-cortex-a53-835769
1655 disable workaround
for AArch64 Cortex-A53 erratum
1659 --enable-fix-cortex-a53-843419
1660 enable workaround
for AArch64 Cortex-A53 erratum
1662 --disable-fix-cortex-a53-843419
1663 disable workaround
for AArch64 Cortex-A53 erratum
1666 --enable-gnu-unique-object
1667 enable the use of the @gnu_unique_object ELF
1668 extension on glibc systems
1669 --enable-linker-build-id
1670 compiler will always pass
--build-id to linker
1671 --enable-default-ssp enable Stack Smashing Protection as default
1672 --enable-maintainer-mode
1673 enable make rules and dependencies not useful
(and
1674 sometimes confusing
) to the casual installer
1675 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1676 thrashing on the build machine
1677 --enable-version-specific-runtime-libs
1678 specify that runtime libraries should be installed
1679 in a compiler-specific directory
1680 --enable-plugin enable plugin support
1681 --enable-host-shared build
host code as shared libraries
1682 --disable-libquadmath-support
1683 disable libquadmath support
for Fortran
1684 --enable-default-pie enable Position Independent Executable as default
1687 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1688 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1689 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1690 --with-local-prefix=DIR specifies directory to put
local include
1691 --with-native-system-header-dir=dir
1692 use dir as the directory to
look for standard
1693 system header files
in. Defaults to
/usr
/include.
1694 --with-build-sysroot=sysroot
1695 use sysroot as the system root during the build
1696 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1697 --with-gxx-include-dir=DIR
1698 specifies directory to put g
++ header files
1699 --with-cpp-install-dir=DIR
1700 install the user visible C preprocessor
in DIR
1701 (relative to PREFIX
) as well as PREFIX
/bin
1702 --with-gnu-ld arrange to work with GNU ld
1703 --with-ld arrange to use the specified ld
(full pathname
)
1704 --with-demangler-in-ld try to use demangler
in GNU ld
1705 --with-gnu-as arrange to work with GNU as
1706 --with-as arrange to use the specified as
(full pathname
)
1707 --with-stabs arrange to use stabs instead of
host debug format
1708 --with-dwarf2 force the default debug format to be DWARF
2
1709 --with-specs=SPECS add SPECS to driver command-line processing
1710 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1711 --with-bugurl=URL Direct users to URL to report a bug
1712 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1713 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1714 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1715 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1716 --with-pic try to use only PIC/non-PIC objects [default=use
1718 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1719 --with-plugin-ld=[ARG] specify the plugin linker
1720 --with-glibc-version=M.N
1721 assume GCC used with glibc version M.N or later
1722 --with-long-double-128 use 128-bit long double by default
1723 --with-gc={page,zone} this option is not supported anymore. It used to
1724 choose the garbage collection mechanism to use with
1726 --with-system-zlib use installed libz
1727 --with-linker-hash-style={sysv,gnu,both}
1728 specify the linker hash style
1729 --with-diagnostics-color={never,auto,auto-if-env,always}
1730 specify the default of -fdiagnostics-color option
1731 auto-if-env stands for -fdiagnostics-color=auto if
1732 GCC_COLOR environment variable is present and
1733 -fdiagnostics-color=never otherwise
1735 Some influential environment variables:
1736 CC C compiler command
1737 CFLAGS C compiler flags
1738 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1739 nonstandard directory <lib dir>
1740 LIBS libraries to pass to the linker, e.g. -l<library>
1741 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1742 you have headers in a nonstandard directory <include dir>
1743 CXX C++ compiler command
1744 CXXFLAGS C++ compiler flags
1745 CXXCPP C++ preprocessor
1747 GMPLIBS How to link GMP
1748 GMPINC How to find GMP include files
1749 ISLLIBS How to link ISL
1750 ISLINC How to find ISL include files
1752 Use these variables to override the choices made by `configure' or to
help
1753 it to
find libraries and programs with nonstandard names
/locations.
1755 Report bugs to the package provider.
1760 if test "$ac_init_help" = "recursive"; then
1761 # If there are subdirs, report their specific --help.
1762 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1763 test -d "$ac_dir" ||
1764 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1769 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1771 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772 # A ".." for each directory in $ac_dir_suffix.
1773 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774 case $ac_top_builddir_sub in
1775 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1776 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1779 ac_abs_top_builddir
=$ac_pwd
1780 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1781 # for backward compatibility:
1782 ac_top_builddir
=$ac_top_build_prefix
1785 .
) # We are building in place.
1787 ac_top_srcdir
=$ac_top_builddir_sub
1788 ac_abs_top_srcdir
=$ac_pwd ;;
1789 [\\/]* | ?
:[\\/]* ) # Absolute name.
1790 ac_srcdir
=$srcdir$ac_dir_suffix;
1791 ac_top_srcdir
=$srcdir
1792 ac_abs_top_srcdir
=$srcdir ;;
1794 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1796 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1798 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1800 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1801 # Check for guested configure.
1802 if test -f "$ac_srcdir/configure.gnu"; then
1804 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805 elif test -f "$ac_srcdir/configure"; then
1807 $SHELL "$ac_srcdir/configure" --help=recursive
1809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1811 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1815 test -n "$ac_init_help" && exit $ac_status
1816 if $ac_init_version; then
1819 generated by GNU Autoconf
2.64
1821 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1822 This configure
script is free software
; the Free Software Foundation
1823 gives unlimited permission to copy
, distribute and modify it.
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile
()
1837 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1838 rm -f conftest.
$ac_objext
1839 if { { ac_try
="$ac_compile"
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868 } # ac_fn_c_try_compile
1870 # ac_fn_cxx_try_compile LINENO
1871 # ----------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_cxx_try_compile ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext
1877 if { { ac_try="$ac_compile"
1879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1880 *) ac_try_echo
=$ac_try;;
1882 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_compile") 2>conftest.err
1886 if test -s conftest.err
; then
1887 grep -v '^ *+' conftest.err
>conftest.er1
1888 cat conftest.er1
>&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_cxx_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest.
$ac_objext; then :
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.
$ac_ext >&5
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1906 } # ac_fn_cxx_try_compile
1908 # ac_fn_cxx_try_cpp LINENO
1909 # ------------------------
1910 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_cpp
()
1913 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1914 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1923 if test -s conftest.err; then
1924 grep -v '^ *+' conftest.err >conftest.er1
1925 cat conftest.er1 >&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } >/dev/null && {
1930 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1931 test ! -s conftest.err
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943 } # ac_fn_cxx_try_cpp
1945 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1946 # ---------------------------------------------------------
1947 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948 # the include files in INCLUDES and setting the cache variable VAR
1950 ac_fn_cxx_check_header_mongrel ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957 $as_echo_n "(cached) " >&6
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1963 # Is the header compilable?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965 $as_echo_n "checking $2 usability... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1971 if ac_fn_cxx_try_compile "$LINENO"; then :
1972 ac_header_compiler=yes
1974 ac_header_compiler=no
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978 $as_echo "$ac_header_compiler" >&6; }
1980 # Is the header present?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982 $as_echo_n "checking $2 presence... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 if ac_fn_cxx_try_cpp "$LINENO"; then :
1988 ac_header_preproc=yes
1990 ac_header_preproc=no
1992 rm -f conftest.err conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994 $as_echo "$ac_header_preproc" >&6; }
1996 # So? What about this header?
1997 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2008 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2012 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2022 eval "$3=\$ac_header_compiler"
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2030 } # ac_fn_cxx_check_header_mongrel
2032 # ac_fn_cxx_try_run LINENO
2033 # ------------------------
2034 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2035 # that executables *can* be run.
2036 ac_fn_cxx_try_run ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if { { ac_try="$ac_link"
2041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2042 *) ac_try_echo
=$ac_try;;
2044 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046 (eval "$ac_link") 2>&5
2048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2050 { { case "(($ac_try" in
2051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2052 *) ac_try_echo=$ac_try;;
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056 (eval "$ac_try") 2>&5
2058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059 test $ac_status = 0; }; }; then :
2062 $as_echo "$as_me: program exited with status $ac_status" >&5
2063 $as_echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2066 ac_retval=$ac_status
2068 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2069 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 } # ac_fn_cxx_try_run
2074 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2075 # ---------------------------------------------------------
2076 # Tests whether HEADER exists and can be compiled using the include files in
2077 # INCLUDES, setting the cache variable VAR accordingly.
2078 ac_fn_cxx_check_header_compile ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2084 $as_echo_n "(cached) " >&6
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2091 if ac_fn_cxx_try_compile "$LINENO"; then :
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_cxx_check_header_compile
2105 # ac_fn_c_try_cpp LINENO
2106 # ----------------------
2107 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 if { { ac_try="$ac_cpp conftest.$ac_ext"
2113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2114 *) ac_try_echo
=$ac_try;;
2116 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2117 $as_echo "$ac_try_echo"; } >&5
2118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2120 if test -s conftest.err
; then
2121 grep -v '^ *+' conftest.err
>conftest.er1
2122 cat conftest.er1
>&5
2123 mv -f conftest.er1 conftest.err
2125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2126 test $ac_status = 0; } >/dev
/null
&& {
2127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2128 test ! -s conftest.err
2132 $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.
$ac_ext >&5
2137 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2142 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2143 # ----------------------------------------------
2144 # Tries to find the compile-time value of EXPR in a program that includes
2145 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2147 ac_fn_cxx_compute_int
()
2149 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2150 if test "$cross_compiling" = yes; then
2151 # Depending upon the size, compute the lo and hi bounds.
2152 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 static int test_array [1 - 2 * !(($2) >= 0)];
2165 if ac_fn_cxx_try_compile
"$LINENO"; then :
2168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2174 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2181 if ac_fn_cxx_try_compile
"$LINENO"; then :
2182 ac_hi
=$ac_mid; break
2184 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2185 if test $ac_lo -le $ac_mid; then
2189 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) < 0)];
2207 if ac_fn_cxx_try_compile
"$LINENO"; then :
2210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2216 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2223 if ac_fn_cxx_try_compile
"$LINENO"; then :
2224 ac_lo
=$ac_mid; break
2226 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2227 if test $ac_mid -le $ac_hi; then
2231 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2241 # Binary search between lo and hi bounds.
2242 while test "x$ac_lo" != "x$ac_hi"; do
2243 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2250 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2257 if ac_fn_cxx_try_compile
"$LINENO"; then :
2260 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2265 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2272 static long int longval () { return $2; }
2273 static unsigned long int ulongval () { return $2; }
2280 FILE *f = fopen ("conftest.val", "w");
2285 long int i = longval ();
2288 fprintf (f, "%ld", i);
2292 unsigned long int i = ulongval ();
2295 fprintf (f, "%lu", i);
2297 /* Do not output a trailing newline, as this causes \r\n confusion
2298 on some platforms. */
2299 return ferror (f) || fclose (f) != 0;
2305 if ac_fn_cxx_try_run
"$LINENO"; then :
2306 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2310 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2311 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2315 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2318 } # ac_fn_cxx_compute_int
2320 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2321 # ---------------------------------------------
2322 # Tests whether TYPE exists after having included INCLUDES, setting cache
2323 # variable VAR accordingly.
2324 ac_fn_cxx_check_type
()
2326 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2330 $as_echo_n "(cached) " >&6
2333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2345 if ac_fn_cxx_try_compile
"$LINENO"; then :
2346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2358 if ac_fn_cxx_try_compile
"$LINENO"; then :
2363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2372 } # ac_fn_cxx_check_type
2374 # ac_fn_c_find_intX_t LINENO BITS VAR
2375 # -----------------------------------
2376 # Finds a signed integer type with width BITS, setting cache variable VAR
2378 ac_fn_c_find_intX_t
()
2380 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2382 $as_echo_n "checking for int$2_t... " >&6; }
2383 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2384 $as_echo_n "(cached) " >&6
2387 for ac_type
in int
$2_t 'int' 'long int' \
2388 'long long int' 'short int' 'signed char'; do
2389 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2391 $ac_includes_default
2395 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2402 if ac_fn_cxx_try_compile
"$LINENO"; then :
2403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2405 $ac_includes_default
2409 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2410 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2417 if ac_fn_cxx_try_compile
"$LINENO"; then :
2424 eval "$3=\$ac_type" ;;
2427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2431 if test "x$as_val" = x
""no
; then :
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2443 } # ac_fn_c_find_intX_t
2445 # ac_fn_cxx_try_link LINENO
2446 # -------------------------
2447 # Try to link conftest.$ac_ext, and return whether this succeeded.
2448 ac_fn_cxx_try_link
()
2450 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2451 rm -f conftest.
$ac_objext conftest
$ac_exeext
2452 if { { ac_try
="$ac_link"
2454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_link") 2>conftest.err
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467 test $ac_status = 0; } && {
2468 test -z "$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest$ac_exeext && {
2471 test "$cross_compiling" = yes ||
2472 $as_test_x conftest$ac_exeext
2476 $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483 # interfere with the next link command; also delete a directory that is
2484 # left behind by Apple's compiler. We do this before executing the actions.
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2489 } # ac_fn_cxx_try_link
2491 # ac_fn_c_find_uintX_t LINENO BITS VAR
2492 # ------------------------------------
2493 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2495 ac_fn_c_find_uintX_t ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2499 $as_echo_n "checking for uint$2_t... " >&6; }
2500 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2501 $as_echo_n "(cached) " >&6
2504 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2505 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2508 $ac_includes_default
2512 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2524 eval "$3=\$ac_type" ;;
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 if test "x$as_val" = x""no; then :
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 } # ac_fn_c_find_uintX_t
2543 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2544 # ------------------------------------------------
2545 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2546 ac_fn_cxx_check_header_preproc ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2558 if ac_fn_cxx_try_cpp "$LINENO"; then :
2563 rm -f conftest.err conftest.$ac_ext
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2567 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2570 } # ac_fn_cxx_check_header_preproc
2572 # ac_fn_cxx_check_func LINENO FUNC VAR
2573 # ------------------------------------
2574 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2575 ac_fn_cxx_check_func ()
2577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2579 $as_echo_n "checking for $2... " >&6; }
2580 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2581 $as_echo_n "(cached) " >&6
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h. */
2585 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2587 #define $2 innocuous_$2
2589 /* System header to define __stub macros and hopefully few prototypes,
2590 which can conflict with char $2 (); below.
2591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2592 <limits.h> exists even on freestanding compilers. */
2595 # include <limits.h>
2597 # include <assert.h>
2602 /* Override any GCC internal prototype to avoid an error.
2603 Use char because int might match the return type of a GCC
2604 builtin and then its argument prototype would still apply. */
2609 /* The GNU C library defines this for functions which it implements
2610 to always fail with ENOSYS. Some functions are actually named
2611 something starting with __ and the normal name is an alias. */
2612 #if defined __stub_$2 || defined __stub___$2
2624 if ac_fn_cxx_try_link "$LINENO"; then :
2629 rm -f core conftest.err conftest.$ac_objext \
2630 conftest$ac_exeext conftest.$ac_ext
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2634 $as_echo "$ac_res" >&6; }
2635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2637 } # ac_fn_cxx_check_func
2639 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2640 # --------------------------------------
2641 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2642 ac_fn_cxx_check_decl ()
2644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2645 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2646 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2648 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2650 $as_echo_n "(cached) " >&6
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2658 #ifndef $as_decl_name
2660 (void) $as_decl_use;
2662 (void) $as_decl_name;
2670 if ac_fn_cxx_try_compile "$LINENO"; then :
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2679 $as_echo "$ac_res" >&6; }
2680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2682 } # ac_fn_cxx_check_decl
2684 # ac_fn_c_try_link LINENO
2685 # -----------------------
2686 # Try to link conftest.$ac_ext, and return whether this succeeded.
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 rm -f conftest.$ac_objext conftest$ac_exeext
2691 if { { ac_try="$ac_link"
2693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2694 *) ac_try_echo
=$ac_try;;
2696 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2697 $as_echo "$ac_try_echo"; } >&5
2698 (eval "$ac_link") 2>conftest.err
2700 if test -s conftest.err
; then
2701 grep -v '^ *+' conftest.err
>conftest.er1
2702 cat conftest.er1
>&5
2703 mv -f conftest.er1 conftest.err
2705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706 test $ac_status = 0; } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest
$ac_exeext && {
2710 test "$cross_compiling" = yes ||
2711 $as_test_x conftest
$ac_exeext
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.
$ac_ext >&5
2720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2722 # interfere with the next link command; also delete a directory that is
2723 # left behind by Apple's compiler. We do this before executing the actions.
2724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2725 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2728 } # ac_fn_c_try_link
2730 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2731 # ----------------------------------------------
2732 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2733 ac_fn_c_check_header_preproc
()
2735 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2737 $as_echo_n "checking for $2... " >&6; }
2738 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2739 $as_echo_n "(cached) " >&6
2741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2745 if ac_fn_c_try_cpp
"$LINENO"; then :
2750 rm -f conftest.err conftest.
$ac_ext
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2754 $as_echo "$ac_res" >&6; }
2755 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2757 } # ac_fn_c_check_header_preproc
2759 # ac_fn_c_check_func LINENO FUNC VAR
2760 # ----------------------------------
2761 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2762 ac_fn_c_check_func
()
2764 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2766 $as_echo_n "checking for $2... " >&6; }
2767 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2768 $as_echo_n "(cached) " >&6
2770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2772 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2774 #define $2 innocuous_$2
2776 /* System header to define __stub macros and hopefully few prototypes,
2777 which can conflict with char $2 (); below.
2778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2779 <limits.h> exists even on freestanding compilers. */
2782 # include <limits.h>
2784 # include <assert.h>
2789 /* Override any GCC internal prototype to avoid an error.
2790 Use char because int might match the return type of a GCC
2791 builtin and then its argument prototype would still apply. */
2796 /* The GNU C library defines this for functions which it implements
2797 to always fail with ENOSYS. Some functions are actually named
2798 something starting with __ and the normal name is an alias. */
2799 #if defined __stub_$2 || defined __stub___$2
2811 if ac_fn_c_try_link
"$LINENO"; then :
2816 rm -f core conftest.err conftest.
$ac_objext \
2817 conftest
$ac_exeext conftest.
$ac_ext
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2821 $as_echo "$ac_res" >&6; }
2822 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2824 } # ac_fn_c_check_func
2825 cat >config.log
<<_ACEOF
2826 This file contains any messages produced by compilers while
2827 running configure, to aid debugging if configure makes a mistake.
2829 It was created by $as_me, which was
2830 generated by GNU Autoconf 2.64. Invocation command line was
2842 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2843 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2844 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2845 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2846 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2848 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2849 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2851 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2852 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2853 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2854 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2855 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2856 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2857 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir
=.
2866 $as_echo "PATH: $as_dir"
2882 # Keep a trace of the command line.
2883 # Strip out --no-create and --no-recursion so they do not pile up.
2884 # Strip out --silent because we don't want to record it for future runs.
2885 # Also quote any args containing shell meta-characters.
2886 # Make two passes to allow for proper duplicate-argument suppression.
2890 ac_must_keep_next
=false
2896 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2897 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2898 |
-silent |
--silent |
--silen |
--sile |
--sil)
2901 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2904 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2906 as_fn_append ac_configure_args1
" '$ac_arg'"
2907 if test $ac_must_keep_next = true
; then
2908 ac_must_keep_next
=false
# Got value, back to normal.
2911 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2912 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2913 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2914 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2915 case "$ac_configure_args0 " in
2916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2919 -* ) ac_must_keep_next
=true
;;
2922 as_fn_append ac_configure_args
" '$ac_arg'"
2927 { ac_configure_args0
=; unset ac_configure_args0
;}
2928 { ac_configure_args1
=; unset ac_configure_args1
;}
2930 # When interrupted or exit'd, cleanup temporary files, and complete
2931 # config.log. We remove comments because anyway the quotes in there
2932 # would cause problems or look ugly.
2933 # WARNING: Use '\'' to represent an apostrophe within the trap.
2934 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2935 trap 'exit_status=$?
2936 # Save into config.log some information that might help in debugging.
2941 ## ---------------- ##
2942 ## Cache variables. ##
2943 ## ---------------- ##
2946 # The following way of writing the cache mishandles newlines in values,
2948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2949 eval ac_val=\$$ac_var
2953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2957 _ | IFS | as_nl) ;; #(
2958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2959 *) { eval $ac_var=; unset $ac_var;} ;;
2964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2965 *${as_nl}ac_space=\ *)
2967 "s/'\''/'\''\\\\'\'''\''/g;
2968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2979 ## ----------------- ##
2980 ## Output variables. ##
2981 ## ----------------- ##
2984 for ac_var in $ac_subst_vars
2986 eval ac_val=\$$ac_var
2988 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2990 $as_echo "$ac_var='\''$ac_val'\''"
2994 if test -n "$ac_subst_files"; then
2996 ## ------------------- ##
2997 ## File substitutions. ##
2998 ## ------------------- ##
3001 for ac_var
in $ac_subst_files
3003 eval ac_val
=\$
$ac_var
3005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3007 $as_echo "$ac_var='\''$ac_val'\''"
3012 if test -s confdefs.h; then
3022 test "$ac_signal" != 0 &&
3023 $as_echo "$as_me: caught signal $ac_signal"
3024 $as_echo "$as_me: exit $exit_status"
3026 rm -f core *.core core.conftest.* &&
3027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3030 for ac_signal
in 1 2 13 15; do
3031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3036 rm -f -r conftest
* confdefs.h
3038 $as_echo "/* confdefs.h */" > confdefs.h
3040 # Predefined preprocessor variables.
3042 cat >>confdefs.h
<<_ACEOF
3043 #define PACKAGE_NAME "$PACKAGE_NAME"
3046 cat >>confdefs.h
<<_ACEOF
3047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3050 cat >>confdefs.h
<<_ACEOF
3051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3054 cat >>confdefs.h
<<_ACEOF
3055 #define PACKAGE_STRING "$PACKAGE_STRING"
3058 cat >>confdefs.h
<<_ACEOF
3059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3062 cat >>confdefs.h
<<_ACEOF
3063 #define PACKAGE_URL "$PACKAGE_URL"
3067 # Let the site file select an alternate cache file if it wants to.
3068 # Prefer an explicitly selected file to automatically selected ones.
3071 if test -n "$CONFIG_SITE"; then
3072 ac_site_file1
=$CONFIG_SITE
3073 elif test "x$prefix" != xNONE
; then
3074 ac_site_file1
=$prefix/share
/config.site
3075 ac_site_file2
=$prefix/etc
/config.site
3077 ac_site_file1
=$ac_default_prefix/share
/config.site
3078 ac_site_file2
=$ac_default_prefix/etc
/config.site
3080 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3082 test "x$ac_site_file" = xNONE
&& continue
3083 if test -r "$ac_site_file"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3085 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3086 sed 's/^/| /' "$ac_site_file" >&5
3091 if test -r "$cache_file"; then
3092 # Some versions of bash will fail to source /dev/null (special
3093 # files actually), so we avoid doing that.
3094 if test -f "$cache_file"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3096 $as_echo "$as_me: loading cache $cache_file" >&6;}
3098 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3099 *) .
"./$cache_file";;
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3104 $as_echo "$as_me: creating cache $cache_file" >&6;}
3108 # Check that the precious variables saved in the cache have kept the same
3110 ac_cache_corrupted
=false
3111 for ac_var
in $ac_precious_vars; do
3112 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3113 eval ac_new_set
=\
$ac_env_${ac_var}_set
3114 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3115 eval ac_new_val
=\
$ac_env_${ac_var}_value
3116 case $ac_old_set,$ac_new_set in
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3119 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3120 ac_cache_corrupted
=: ;;
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3123 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3124 ac_cache_corrupted
=: ;;
3127 if test "x$ac_old_val" != "x$ac_new_val"; then
3128 # differences in whitespace do not lead to failure.
3129 ac_old_val_w
=`echo x $ac_old_val`
3130 ac_new_val_w
=`echo x $ac_new_val`
3131 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3133 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3134 ac_cache_corrupted
=:
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3137 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3138 eval $ac_var=\
$ac_old_val
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3141 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3143 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3146 # Pass precious variables to config.status.
3147 if test "$ac_new_set" = set; then
3149 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3150 *) ac_arg
=$ac_var=$ac_new_val ;;
3152 case " $ac_configure_args " in
3153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3154 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3158 if $ac_cache_corrupted; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3162 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3163 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3165 ## -------------------- ##
3166 ## Main body of script. ##
3167 ## -------------------- ##
3170 ac_cpp
='$CPP $CPPFLAGS'
3171 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3180 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3183 gcc_version
=`cat $srcdir/BASE-VER`
3185 # Determine the host, build, and target systems
3187 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3188 for ac_t
in install-sh
install.sh shtool
; do
3189 if test -f "$ac_dir/$ac_t"; then
3191 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3196 if test -z "$ac_aux_dir"; then
3197 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3200 # These three variables are undocumented and unsupported,
3201 # and are intended to be withdrawn in a future Autoconf release.
3202 # They can cause serious problems if a builder's source tree is in a directory
3203 # whose full name contains unusual characters.
3204 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3205 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3206 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3209 # Make sure we can run config.sub.
3210 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3211 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3214 $as_echo_n "checking build system type... " >&6; }
3215 if test "${ac_cv_build+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3218 ac_build_alias
=$build_alias
3219 test "x$ac_build_alias" = x
&&
3220 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3221 test "x$ac_build_alias" = x
&&
3222 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3223 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3224 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3228 $as_echo "$ac_cv_build" >&6; }
3229 case $ac_cv_build in
3231 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3234 ac_save_IFS
=$IFS; IFS
='-'
3240 # Remember, the first character of IFS is used to create $*,
3241 # except with old shells:
3244 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3248 $as_echo_n "checking host system type... " >&6; }
3249 if test "${ac_cv_host+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3252 if test "x$host_alias" = x
; then
3253 ac_cv_host
=$ac_cv_build
3255 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3256 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3261 $as_echo "$ac_cv_host" >&6; }
3264 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3267 ac_save_IFS
=$IFS; IFS
='-'
3273 # Remember, the first character of IFS is used to create $*,
3274 # except with old shells:
3277 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3281 $as_echo_n "checking target system type... " >&6; }
3282 if test "${ac_cv_target+set}" = set; then :
3283 $as_echo_n "(cached) " >&6
3285 if test "x$target_alias" = x
; then
3286 ac_cv_target
=$ac_cv_host
3288 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3289 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3294 $as_echo "$ac_cv_target" >&6; }
3295 case $ac_cv_target in
3297 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3299 target
=$ac_cv_target
3300 ac_save_IFS
=$IFS; IFS
='-'
3306 # Remember, the first character of IFS is used to create $*,
3307 # except with old shells:
3310 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3313 # The aliases save the names the user supplied, while $host etc.
3314 # will get canonicalized.
3315 test -n "$target_alias" &&
3316 test "$program_prefix$program_suffix$program_transform_name" = \
3318 program_prefix
=${target_alias}-
3320 # Determine the noncanonical target name, for directory use.
3321 case ${build_alias} in
3322 "") build_noncanonical
=${build} ;;
3323 *) build_noncanonical
=${build_alias} ;;
3326 case ${host_alias} in
3327 "") host_noncanonical
=${build_noncanonical} ;;
3328 *) host_noncanonical
=${host_alias} ;;
3331 case ${target_alias} in
3332 "") target_noncanonical
=${host_noncanonical} ;;
3333 *) target_noncanonical
=${target_alias} ;;
3339 # Used for constructing correct paths for offload compilers.
3340 real_target_noncanonical
=${target_noncanonical}
3343 # Determine the target- and build-specific subdirectories
3345 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3346 # have matching libraries, they should use host libraries: Makefile.tpl
3347 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3348 # However, they still use the build modules, because the corresponding
3349 # host modules (e.g. bison) are only built for the host when bootstrap
3351 # - build_subdir is where we find build modules, and never changes.
3352 # - build_libsubdir is where we find build libraries, and can be overridden.
3354 # Prefix 'build-' so this never conflicts with target_subdir.
3355 build_subdir
="build-${build_noncanonical}"
3357 # Check whether --with-build-libsubdir was given.
3358 if test "${with_build_libsubdir+set}" = set; then :
3359 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3361 build_libsubdir
="$build_subdir"
3364 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3365 if ( test $srcdir = .
&& test -d gcc
) \
3366 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3367 host_subdir
="host-${host_noncanonical}"
3372 target_subdir
=${target_noncanonical}
3375 # Set program_transform_name
3376 test "$program_prefix" != NONE
&&
3377 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3378 # Use a double $ so make ignores it.
3379 test "$program_suffix" != NONE
&&
3380 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3381 # Double any \ or $.
3382 # By default was `s,x,x', remove it if useless.
3383 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3384 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3387 # Check for bogus environment variables.
3388 # Test if LIBRARY_PATH contains the notation for the current directory
3389 # since this would lead to problems installing/building glibc.
3390 # LIBRARY_PATH contains the current directory if one of the following
3392 # - one of the terminals (":" and ";") is the first or last sign
3393 # - two terminals occur directly after each other
3394 # - the path contains an element with a dot in it
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3396 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3397 case ${LIBRARY_PATH} in
3398 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3399 library_path_setting
="contains current directory"
3402 library_path_setting
="ok"
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3406 $as_echo "$library_path_setting" >&6; }
3407 if test "$library_path_setting" != "ok"; then
3409 *** LIBRARY_PATH shouldn't contain the current directory when
3410 *** building gcc. Please change the environment variable
3411 *** and run configure again." "$LINENO" 5
3414 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3415 # since this would lead to problems installing/building glibc.
3416 # GCC_EXEC_PREFIX contains the current directory if one of the following
3418 # - one of the terminals (":" and ";") is the first or last sign
3419 # - two terminals occur directly after each other
3420 # - the path contains an element with a dot in it
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3422 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3423 case ${GCC_EXEC_PREFIX} in
3424 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3425 gcc_exec_prefix_setting
="contains current directory"
3428 gcc_exec_prefix_setting
="ok"
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3432 $as_echo "$gcc_exec_prefix_setting" >&6; }
3433 if test "$gcc_exec_prefix_setting" != "ok"; then
3435 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3436 *** building gcc. Please change the environment variable
3437 *** and run configure again." "$LINENO" 5
3444 # Specify the local prefix
3447 # Check whether --with-local-prefix was given.
3448 if test "${with_local_prefix+set}" = set; then :
3449 withval
=$with_local_prefix; case "${withval}" in
3450 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3452 *) local_prefix
=$with_local_prefix ;;
3457 # Default local prefix if it is empty
3458 if test x
$local_prefix = x
; then
3459 local_prefix
=/usr
/local
3463 # Check whether --with-native-system-header-dir was given.
3464 if test "${with_native_system_header_dir+set}" = set; then :
3465 withval
=$with_native_system_header_dir;
3466 case ${with_native_system_header_dir} in
3467 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3468 /* |
[A-Za-z
]:[\\/]*) ;;
3469 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3471 configured_native_system_header_dir
="${withval}"
3474 configured_native_system_header_dir
=
3479 # Check whether --with-build-sysroot was given.
3480 if test "${with_build_sysroot+set}" = set; then :
3481 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3482 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3485 SYSROOT_CFLAGS_FOR_TARGET
=
3490 if test "x$prefix" = xNONE
; then
3491 test_prefix
=/usr
/local
3495 if test "x$exec_prefix" = xNONE
; then
3496 test_exec_prefix
=$test_prefix
3498 test_exec_prefix
=$exec_prefix
3502 # Check whether --with-sysroot was given.
3503 if test "${with_sysroot+set}" = set; then :
3504 withval
=$with_sysroot;
3505 case ${with_sysroot} in
3507 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3509 case ${with_sysroot} in
3510 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3511 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3514 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3515 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3517 case ${TARGET_SYSTEM_ROOT} in
3518 "${test_prefix}"|
"${test_prefix}/"*|\
3519 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3520 '${prefix}'|
'${prefix}/'*|\
3521 '${exec_prefix}'|
'${exec_prefix}/'*)
3522 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3523 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3530 TARGET_SYSTEM_ROOT_DEFINE
=
3531 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3539 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3540 # passed in by the toplevel make and thus we'd get different behavior
3541 # depending on where we built the sources.
3542 gcc_gxx_include_dir
=
3543 # Specify the g++ header file directory
3545 # Check whether --with-gxx-include-dir was given.
3546 if test "${with_gxx_include_dir+set}" = set; then :
3547 withval
=$with_gxx_include_dir; case "${withval}" in
3548 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3550 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3555 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3556 if test x
${gcc_gxx_include_dir} = x
; then
3557 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3558 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3560 libstdcxx_incdir
='include/c++/$(version)'
3561 if test x
$host != x
$target; then
3562 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3564 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3568 gcc_gxx_include_dir_add_sysroot
=0
3569 if test "${with_sysroot+set}" = set; then
3570 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3571 if test "${gcc_gxx_without_sysroot}"; then
3572 if test x
${with_sysroot} != x
/; then
3573 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3575 gcc_gxx_include_dir_add_sysroot
=1
3580 # Check whether --with-cpp_install_dir was given.
3581 if test "${with_cpp_install_dir+set}" = set; then :
3582 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3583 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3584 elif test x
$withval != xno
; then
3585 cpp_install_dir
=$withval
3590 # We would like to our source tree to be readonly. However when releases or
3591 # pre-releases are generated, the flex/bison generated files as well as the
3592 # various formats of manuals need to be included along with the rest of the
3593 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3597 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3598 # Check whether --enable-generated-files-in-srcdir was given.
3599 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3600 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3602 generated_files_in_srcdir
=no
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3607 $as_echo "$generated_files_in_srcdir" >&6; }
3609 if test "$generated_files_in_srcdir" = "yes"; then
3616 # -------------------
3617 # Find default linker
3618 # -------------------
3622 # Check whether --with-gnu-ld was given.
3623 if test "${with_gnu_ld+set}" = set; then :
3624 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3630 # With pre-defined ld
3632 # Check whether --with-ld was given.
3633 if test "${with_ld+set}" = set; then :
3634 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3637 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3638 if test ! -x "$DEFAULT_LINKER"; then
3639 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3640 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3644 cat >>confdefs.h
<<_ACEOF
3645 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3651 $as_echo_n "checking whether a default linker was specified... " >&6; }
3652 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3653 if test x
"$gnu_ld_flag" = x
"no"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3655 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3658 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3665 # With demangler in GNU ld
3667 # Check whether --with-demangler-in-ld was given.
3668 if test "${with_demangler_in_ld+set}" = set; then :
3669 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3675 # ----------------------
3676 # Find default assembler
3677 # ----------------------
3681 # Check whether --with-gnu-as was given.
3682 if test "${with_gnu_as+set}" = set; then :
3683 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3690 # Check whether --with-as was given.
3691 if test "${with_as+set}" = set; then :
3692 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3695 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3696 if test ! -x "$DEFAULT_ASSEMBLER"; then
3697 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3698 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3702 cat >>confdefs.h
<<_ACEOF
3703 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3709 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3710 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3711 if test x
"$gas_flag" = x
"no"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3713 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3716 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3727 # If a non-executable a.out is present (e.g. created by GNU as above even if
3728 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3729 # file, even when creating an executable, so an execution test fails.
3730 # Remove possible default executable files to avoid this.
3732 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3733 # Autoconf includes it.
3734 rm -f a.out a.exe b.out
3736 # Find the native compiler
3738 ac_cpp
='$CPP $CPPFLAGS'
3739 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_CC+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC
="$CC" # Let the user override the test.
3753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir
=.
3758 for ac_exec_ext
in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3781 if test -z "$ac_cv_prog_CC"; then
3783 # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc
; ac_word
=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir
=.
3798 for ac_exec_ext
in '' $ac_executable_extensions; do
3799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3800 ac_cv_prog_ac_ct_CC
="gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3819 if test "x$ac_ct_CC" = x
; then
3822 case $cross_compiling:$ac_tool_warned in
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned
=yes ;;
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC
="$CC" # Let the user override the test.
3846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir
=.
3851 for ac_exec_ext
in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3875 if test -z "$CC"; then
3876 # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc
; ac_word
=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then :
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC
="$CC" # Let the user override the test.
3887 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3891 test -z "$as_dir" && as_dir
=.
3892 for ac_exec_ext
in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected
=yes
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy
$ac_cv_prog_CC
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3915 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog
in cl.exe
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if test "${ac_cv_prog_CC+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC
="$CC" # Let the user override the test.
3945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir
=.
3950 for ac_exec_ext
in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3972 test -n "$CC" && break
3975 if test -z "$CC"; then
3977 for ac_prog
in cl.exe
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy
$ac_prog; ac_word
=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_exec_ext
in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_ac_ct_CC
="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$ac_ct_CC" && break
4019 if test "x$ac_ct_CC" = x
; then
4022 case $cross_compiling:$ac_tool_warned in
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned
=yes ;;
4035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error
"no acceptable C compiler found in \$PATH
4038 See \`config.log' for more details." "$LINENO" 5; }
4040 # Provide some information about the compiler.
4041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4044 for ac_option
in --version -v -V -qversion; do
4045 { { ac_try
="$ac_compiler $ac_option >&5"
4047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4054 if test -s conftest.err; then
4056 ... rest of stderr output deleted ...
4057 10q' conftest.err >conftest.er1
4058 cat conftest.er1 >&5
4059 rm -f conftest.er1 conftest.err
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4076 ac_clean_files_save=$ac_clean_files
4077 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4078 # Try to create an executable without -o first, disregard a.out.
4079 # It will help us diagnose broken compilers, and finding out an intuition
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4082 $as_echo_n "checking for C compiler default output file name... " >&6; }
4083 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4085 # The possible output files:
4086 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4089 for ac_file in $ac_files
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4093 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4098 if { { ac_try="$ac_link_default"
4100 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4101 *) ac_try_echo
=$ac_try;;
4103 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_link_default") 2>&5
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; then :
4109 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4110 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4111 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4112 # so that the user can short-circuit this test for compilers unknown to
4114 for ac_file
in $ac_files ''
4116 test -f "$ac_file" ||
continue
4118 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4121 # We found the default executable, but exeext='' is most
4125 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4127 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4129 # We set ac_cv_exeext here because the later test for it is not
4130 # safe: cross compilers may not add the suffix if given an `-o'
4131 # argument, so we may need to know it at that point already.
4132 # Even if this section looks crufty: it has the advantage of
4139 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4145 $as_echo "$ac_file" >&6; }
4146 if test -z "$ac_file"; then :
4147 $as_echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.
$ac_ext >&5
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 { as_fn_set_status
77
4153 as_fn_error
"C compiler cannot create executables
4154 See \`config.log' for more details." "$LINENO" 5; }; }
4156 ac_exeext
=$ac_cv_exeext
4158 # Check that the compiler produces executables we can run. If not, either
4159 # the compiler is broken, or we cross compile.
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4161 $as_echo_n "checking whether the C compiler works... " >&6; }
4162 # If not cross compiling, check that we can run a simple program.
4163 if test "$cross_compiling" != yes; then
4164 if { ac_try
='./$ac_file'
4165 { { case "(($ac_try" in
4166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4170 $as_echo "$ac_try_echo"; } >&5
4171 (eval "$ac_try") 2>&5
4173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174 test $ac_status = 0; }; }; then
4177 if test "$cross_compiling" = maybe; then
4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4182 as_fn_error "cannot run C compiled programs.
4183 If you meant to cross compile
, use \
`--host'.
4184 See \`config.log
' for more details." "$LINENO" 5; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189 $as_echo "yes" >&6; }
4191 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4192 ac_clean_files=$ac_clean_files_save
4193 # Check that the compiler produces executables we can run. If not, either
4194 # the compiler is broken, or we cross compile.
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196 $as_echo_n "checking whether we are cross compiling... " >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4198 $as_echo "$cross_compiling" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4201 $as_echo_n "checking for suffix of executables... " >&6; }
4202 if { { ac_try="$ac_link"
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4208 $as_echo "$ac_try_echo"; } >&5
4209 (eval "$ac_link") 2>&5
4211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4212 test $ac_status = 0; }; then :
4213 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4214 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4215 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4217 for ac_file
in conftest.exe conftest conftest.
*; do
4218 test -f "$ac_file" ||
continue
4220 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4221 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4230 See \`config.log' for more details." "$LINENO" 5; }
4232 rm -f conftest
$ac_cv_exeext
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4234 $as_echo "$ac_cv_exeext" >&6; }
4236 rm -f conftest.
$ac_ext
4237 EXEEXT
=$ac_cv_exeext
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4240 $as_echo_n "checking for suffix of object files... " >&6; }
4241 if test "${ac_cv_objext+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h. */
4255 rm -f conftest.o conftest.obj
4256 if { { ac_try
="$ac_compile"
4258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4262 $as_echo "$ac_try_echo"; } >&5
4263 (eval "$ac_compile") 2>&5
4265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4266 test $ac_status = 0; }; then :
4267 for ac_file in conftest.o conftest.obj conftest.*; do
4268 test -f "$ac_file" || continue;
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error "cannot compute suffix of object files
: cannot compile
4282 See \
`config.log' for more details." "$LINENO" 5; }
4284 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4287 $as_echo "$ac_cv_objext" >&6; }
4288 OBJEXT=$ac_cv_objext
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4291 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4292 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4293 $as_echo_n "(cached) " >&6
4295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4296 /* end confdefs.h. */
4309 if ac_fn_c_try_compile "$LINENO"; then :
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4320 if test $ac_compiler_gnu = yes; then
4325 ac_test_CFLAGS=${CFLAGS+set}
4326 ac_save_CFLAGS=$CFLAGS
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4329 if test "${ac_cv_prog_cc_g+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4332 ac_save_c_werror_flag=$ac_c_werror_flag
4333 ac_c_werror_flag=yes
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4347 if ac_fn_c_try_compile "$LINENO"; then :
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4362 if ac_fn_c_try_compile "$LINENO"; then :
4365 ac_c_werror_flag=$ac_save_c_werror_flag
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4378 if ac_fn_c_try_compile "$LINENO"; then :
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4386 ac_c_werror_flag=$ac_save_c_werror_flag
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4389 $as_echo "$ac_cv_prog_cc_g" >&6; }
4390 if test "$ac_test_CFLAGS" = set; then
4391 CFLAGS=$ac_save_CFLAGS
4392 elif test $ac_cv_prog_cc_g = yes; then
4393 if test "$GCC" = yes; then
4399 if test "$GCC" = yes; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4406 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4407 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4410 ac_cv_prog_cc_c89=no
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413 /* end confdefs.h. */
4416 #include <sys/types.h>
4417 #include <sys/stat.h>
4418 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4419 struct buf { int x; };
4420 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4421 static char *e (p, i)
4427 static char *f (char * (*g) (char **, int), char **p, ...)
4432 s = g (p, va_arg (v,int));
4437 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4438 function prototypes and stuff, but not '\xHH' hex character constants.
4439 These don't provoke an error unfortunately, instead are silently treated
4440 as 'x'. The following induces an error, until -std is added to get
4441 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4442 array size at least. It's necessary to write '\x00'==0 to get something
4443 that's true only with -std. */
4444 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4446 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4447 inside strings and character constants. */
4449 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4451 int test (int i, double x);
4452 struct s1 {int (*f) (int a);};
4453 struct s2 {int (*f) (double a);};
4454 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4460 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4465 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4466 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4468 CC="$ac_save_CC $ac_arg"
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_c89=$ac_arg
4472 rm -f core conftest.err conftest.$ac_objext
4473 test "x$ac_cv_prog_cc_c89" != "xno" && break
4475 rm -f conftest.$ac_ext
4480 case "x$ac_cv_prog_cc_c89" in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4483 $as_echo "none needed" >&6; } ;;
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4486 $as_echo "unsupported" >&6; } ;;
4488 CC="$CC $ac_cv_prog_cc_c89"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4490 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4492 if test "x$ac_cv_prog_cc_c89" != xno; then :
4497 ac_cpp='$CPP $CPPFLAGS'
4498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4503 ac_cpp='$CXXCPP $CPPFLAGS'
4504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4507 if test -z "$CXX"; then
4508 if test -n "$CCC"; then
4511 if test -n "$ac_tool_prefix"; then
4512 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4515 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if test "${ac_cv_prog_CXX+set}" = set; then :
4519 $as_echo_n "(cached) " >&6
4521 if test -n "$CXX"; then
4522 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 if test -n "$CXX"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4544 $as_echo "$CXX" >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4551 test -n "$CXX" && break
4554 if test -z "$CXX"; then
4556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4558 # Extract the first word of "$ac_prog", so it can be a program name with args.
4559 set dummy $ac_prog; ac_word=$2
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4565 if test -n "$ac_ct_CXX"; then
4566 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_ac_ct_CXX="$ac_prog"
4576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4586 if test -n "$ac_ct_CXX"; then
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4588 $as_echo "$ac_ct_CXX" >&6; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4595 test -n "$ac_ct_CXX" && break
4598 if test "x$ac_ct_CXX" = x; then
4601 case $cross_compiling:$ac_tool_warned in
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4605 ac_tool_warned=yes ;;
4613 # Provide some information about the compiler.
4614 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4617 for ac_option in --version -v -V -qversion; do
4618 { { ac_try="$ac_compiler $ac_option >&5"
4620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4621 *) ac_try_echo
=$ac_try;;
4623 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 $as_echo "$ac_try_echo"; } >&5
4625 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4627 if test -s conftest.err
; then
4629 ... rest of stderr output deleted ...
4630 10q' conftest.err
>conftest.er1
4631 cat conftest.er1
>&5
4632 rm -f conftest.er1 conftest.err
4634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4635 test $ac_status = 0; }
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4639 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4640 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
4643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4657 if ac_fn_cxx_try_compile
"$LINENO"; then :
4662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4663 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4667 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4668 if test $ac_compiler_gnu = yes; then
4673 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4674 ac_save_CXXFLAGS
=$CXXFLAGS
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4676 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4677 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4680 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4681 ac_cxx_werror_flag
=yes
4684 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4695 if ac_fn_cxx_try_compile
"$LINENO"; then :
4696 ac_cv_prog_cxx_g
=yes
4699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4710 if ac_fn_cxx_try_compile
"$LINENO"; then :
4713 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4726 if ac_fn_cxx_try_compile
"$LINENO"; then :
4727 ac_cv_prog_cxx_g
=yes
4729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4734 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4737 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4738 if test "$ac_test_CXXFLAGS" = set; then
4739 CXXFLAGS
=$ac_save_CXXFLAGS
4740 elif test $ac_cv_prog_cxx_g = yes; then
4741 if test "$GXX" = yes; then
4747 if test "$GXX" = yes; then
4754 ac_cpp
='$CPP $CPPFLAGS'
4755 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4764 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4770 if test -n "$GNATBIND"; then
4771 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4777 test -z "$as_dir" && as_dir
=.
4778 for ac_exec_ext
in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 GNATBIND
=$ac_cv_prog_GNATBIND
4791 if test -n "$GNATBIND"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4793 $as_echo "$GNATBIND" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4801 if test -z "$ac_cv_prog_GNATBIND"; then
4802 ac_ct_GNATBIND
=$GNATBIND
4803 # Extract the first word of "gnatbind", so it can be a program name with args.
4804 set dummy gnatbind
; ac_word
=$2
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 $as_echo_n "checking for $ac_word... " >&6; }
4807 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4810 if test -n "$ac_ct_GNATBIND"; then
4811 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir
=.
4818 for ac_exec_ext
in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4831 if test -n "$ac_ct_GNATBIND"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4833 $as_echo "$ac_ct_GNATBIND" >&6; }
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4839 if test "x$ac_ct_GNATBIND" = x
; then
4842 case $cross_compiling:$ac_tool_warned in
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4846 ac_tool_warned
=yes ;;
4848 GNATBIND
=$ac_ct_GNATBIND
4851 GNATBIND
="$ac_cv_prog_GNATBIND"
4854 if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4856 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4862 if test -n "$GNATMAKE"; then
4863 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4865 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4869 test -z "$as_dir" && as_dir
=.
4870 for ac_exec_ext
in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 GNATMAKE
=$ac_cv_prog_GNATMAKE
4883 if test -n "$GNATMAKE"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4885 $as_echo "$GNATMAKE" >&6; }
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4893 if test -z "$ac_cv_prog_GNATMAKE"; then
4894 ac_ct_GNATMAKE
=$GNATMAKE
4895 # Extract the first word of "gnatmake", so it can be a program name with args.
4896 set dummy gnatmake
; ac_word
=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4902 if test -n "$ac_ct_GNATMAKE"; then
4903 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir
=.
4910 for ac_exec_ext
in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4923 if test -n "$ac_ct_GNATMAKE"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4925 $as_echo "$ac_ct_GNATMAKE" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4931 if test "x$ac_ct_GNATMAKE" = x
; then
4934 case $cross_compiling:$ac_tool_warned in
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938 ac_tool_warned
=yes ;;
4940 GNATMAKE
=$ac_ct_GNATMAKE
4943 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4947 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4948 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4951 cat >conftest.adb
<<EOF
4952 procedure conftest is begin null; end conftest;
4954 acx_cv_cc_gcc_supports_ada
=no
4955 # There is a bug in old released versions of GCC which causes the
4956 # driver to exit successfully when the appropriate language module
4957 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4958 # Therefore we must check for the error message as well as an
4959 # unsuccessful exit.
4960 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4961 # given a .adb file, but produce no object file. So we must check
4962 # if an object file was really produced to guard against this.
4963 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4964 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4965 acx_cv_cc_gcc_supports_ada
=yes
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4970 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4972 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4979 # Do configure tests with the C++ compiler, since that's what we build with.
4981 ac_cpp
='$CXXCPP $CPPFLAGS'
4982 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4987 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4988 # optimizations to be activated explicitly by the toplevel.
4990 */prev-gcc
/xgcc
*) ;;
4991 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4992 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4997 # Determine PICFLAG for target gnatlib.
5003 # PIC is the default on some targets or must not be used.
5005 # For darwin, common symbols are not allowed in MH_DYLIB files
5007 # If we are using a compiler supporting mdynamic-no-pic
5008 # and the option has been tested as safe to add, then cancel
5009 # it here, since the code generated is incompatible with shared
5011 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5012 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5016 # PIC is the default.
5019 # PIC is the default for 64-bit PA HP-UX.
5021 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5023 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5025 i
[34567]86-*-interix[3-9]*)
5026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5027 # Instead, we relocate shared libraries at runtime.
5029 i
[34567]86-*-nto-qnx*)
5030 # QNX uses GNU C++, but need to define -shared option too, otherwise
5032 PICFLAG_FOR_TARGET
='-fPIC -shared'
5034 i
[34567]86-pc-msdosdjgpp*)
5035 # DJGPP does not support shared libraries at all.
5038 # On IA64 HP-UX, PIC is the default but the pic flag
5039 # sets the default TLS model and affects inlining.
5040 PICFLAG_FOR_TARGET
=-fPIC
5043 # PIC is the default.
5045 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5046 # All AIX code is PIC.
5049 # Some targets support both -fPIC and -fpic, but prefer the latter.
5051 i
[34567]86-*-* | x86_64-
*-*)
5052 PICFLAG_FOR_TARGET
=-fpic
5054 # FIXME: Override -fPIC default in libgcc only?
5055 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5056 PICFLAG_FOR_TARGET
=-fpic
5058 # FIXME: Simplify to sh*-*-netbsd*?
5059 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5060 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5061 PICFLAG_FOR_TARGET
=-fpic
5063 # Default to -fPIC unless specified otherwise.
5065 PICFLAG_FOR_TARGET
=-fPIC
5069 # If the user explicitly uses -fpic/-fPIC, keep that.
5070 case "${CFLAGS_FOR_TARGET}" in
5072 PICFLAG_FOR_TARGET
=-fpic
5075 PICFLAG_FOR_TARGET
=-fPIC
5081 # -------------------------
5082 # Check C compiler features
5083 # -------------------------
5087 ac_cpp
='$CXXCPP $CPPFLAGS'
5088 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5092 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5093 if test -z "$CXXCPP"; then
5094 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5095 $as_echo_n "(cached) " >&6
5097 # Double quotes because CXXCPP needs to be expanded
5098 for CXXCPP
in "$CXX -E" "/lib/cpp"
5101 for ac_cxx_preproc_warn_flag
in '' yes
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5112 # include <limits.h>
5114 # include <assert.h>
5118 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5121 # Broken: fails on valid input.
5124 rm -f conftest.err conftest.
$ac_ext
5126 # OK, works on sane cases. Now check whether nonexistent headers
5127 # can be detected and how.
5128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 #include <ac_nonexistent.h>
5132 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5133 # Broken: success on invalid input.
5136 # Passes both tests.
5140 rm -f conftest.err conftest.
$ac_ext
5143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5144 rm -f conftest.err conftest.
$ac_ext
5145 if $ac_preproc_ok; then :
5150 ac_cv_prog_CXXCPP
=$CXXCPP
5153 CXXCPP
=$ac_cv_prog_CXXCPP
5155 ac_cv_prog_CXXCPP
=$CXXCPP
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5158 $as_echo "$CXXCPP" >&6; }
5160 for ac_cxx_preproc_warn_flag
in '' yes
5162 # Use a header file that comes with gcc, so configuring glibc
5163 # with a fresh cross-compiler works.
5164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5165 # <limits.h> exists even on freestanding compilers.
5166 # On the NeXT, cc -E runs the code through the compiler's parser,
5167 # not just through cpp. "Syntax error" is here to catch this case.
5168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5171 # include <limits.h>
5173 # include <assert.h>
5177 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5180 # Broken: fails on valid input.
5183 rm -f conftest.err conftest.
$ac_ext
5185 # OK, works on sane cases. Now check whether nonexistent headers
5186 # can be detected and how.
5187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #include <ac_nonexistent.h>
5191 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5192 # Broken: success on invalid input.
5195 # Passes both tests.
5199 rm -f conftest.err conftest.
$ac_ext
5202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5203 rm -f conftest.err conftest.
$ac_ext
5204 if $ac_preproc_ok; then :
5207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5209 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5210 See \`config.log' for more details." "$LINENO" 5; }
5214 ac_cpp
='$CXXCPP $CPPFLAGS'
5215 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5222 if test "${ac_cv_path_GREP+set}" = set; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -z "$GREP"; then
5226 ac_path_GREP_found
=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5229 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5232 test -z "$as_dir" && as_dir
=.
5233 for ac_prog
in grep ggrep
; do
5234 for ac_exec_ext
in '' $ac_executable_extensions; do
5235 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5236 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5237 # Check for GNU ac_path_GREP and select it if it is found.
5238 # Check for GNU $ac_path_GREP
5239 case `"$ac_path_GREP" --version 2>&1` in
5241 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5244 $as_echo_n 0123456789 >"conftest.in"
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'GREP' >> "conftest.nl"
5251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5252 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5253 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_GREP
="$ac_path_GREP"
5257 ac_path_GREP_max
=$ac_count
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5262 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5265 $ac_path_GREP_found && break 3
5270 if test -z "$ac_cv_path_GREP"; then
5271 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5274 ac_cv_path_GREP
=$GREP
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5279 $as_echo "$ac_cv_path_GREP" >&6; }
5280 GREP
="$ac_cv_path_GREP"
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5284 $as_echo_n "checking for egrep... " >&6; }
5285 if test "${ac_cv_path_EGREP+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5288 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5289 then ac_cv_path_EGREP
="$GREP -E"
5291 if test -z "$EGREP"; then
5292 ac_path_EGREP_found
=false
5293 # Loop through the user's path and test for each of PROGNAME-LIST
5294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5295 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5298 test -z "$as_dir" && as_dir
=.
5299 for ac_prog
in egrep; do
5300 for ac_exec_ext
in '' $ac_executable_extensions; do
5301 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5303 # Check for GNU ac_path_EGREP and select it if it is found.
5304 # Check for GNU $ac_path_EGREP
5305 case `"$ac_path_EGREP" --version 2>&1` in
5307 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5310 $as_echo_n 0123456789 >"conftest.in"
5313 cat "conftest.in" "conftest.in" >"conftest.tmp"
5314 mv "conftest.tmp" "conftest.in"
5315 cp "conftest.in" "conftest.nl"
5316 $as_echo 'EGREP' >> "conftest.nl"
5317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5318 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5319 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5321 # Best one so far, save it but keep looking for a better one
5322 ac_cv_path_EGREP
="$ac_path_EGREP"
5323 ac_path_EGREP_max
=$ac_count
5325 # 10*(2^10) chars as input seems more than enough
5326 test $ac_count -gt 10 && break
5328 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5331 $ac_path_EGREP_found && break 3
5336 if test -z "$ac_cv_path_EGREP"; then
5337 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5340 ac_cv_path_EGREP
=$EGREP
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5346 $as_echo "$ac_cv_path_EGREP" >&6; }
5347 EGREP
="$ac_cv_path_EGREP"
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5351 $as_echo_n "checking for ANSI C header files... " >&6; }
5352 if test "${ac_cv_header_stdc+set}" = set; then :
5353 $as_echo_n "(cached) " >&6
5355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5370 if ac_fn_cxx_try_compile
"$LINENO"; then :
5371 ac_cv_header_stdc
=yes
5373 ac_cv_header_stdc
=no
5375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5377 if test $ac_cv_header_stdc = yes; then
5378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5385 $EGREP "memchr" >/dev
/null
2>&1; then :
5388 ac_cv_header_stdc
=no
5394 if test $ac_cv_header_stdc = yes; then
5395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev
/null
2>&1; then :
5405 ac_cv_header_stdc
=no
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then :
5416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5420 #if ((' ' & 0x0FF) == 0x020)
5421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5424 # define ISLOWER(c) \
5425 (('a' <= (c) && (c) <= 'i') \
5426 || ('j' <= (c) && (c) <= 'r') \
5427 || ('s' <= (c) && (c) <= 'z'))
5428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5436 for (i = 0; i < 256; i++)
5437 if (XOR (islower (i), ISLOWER (i))
5438 || toupper (i) != TOUPPER (i))
5443 if ac_fn_cxx_try_run
"$LINENO"; then :
5446 ac_cv_header_stdc
=no
5448 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5449 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5455 $as_echo "$ac_cv_header_stdc" >&6; }
5456 if test $ac_cv_header_stdc = yes; then
5458 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5463 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5464 inttypes.h stdint.h unistd.h
5466 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5467 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5469 eval as_val
=\$
$as_ac_Header
5470 if test "x$as_val" = x
""yes; then :
5471 cat >>confdefs.h
<<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5481 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5482 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5489 if test "$MINIX" = yes; then
5491 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5494 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5497 $as_echo "#define _MINIX 1" >>confdefs.h
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5503 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5504 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5510 # define __EXTENSIONS__ 1
5511 $ac_includes_default
5520 if ac_fn_cxx_try_compile
"$LINENO"; then :
5521 ac_cv_safe_to_define___extensions__
=yes
5523 ac_cv_safe_to_define___extensions__
=no
5525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5528 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5529 test $ac_cv_safe_to_define___extensions__ = yes &&
5530 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5532 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5534 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5536 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5538 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5542 ac_cpp
='$CPP $CPPFLAGS'
5543 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5544 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5545 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5547 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5548 # On Suns, sometimes $CPP names a directory.
5549 if test -n "$CPP" && test -d "$CPP"; then
5552 if test -z "$CPP"; then
5553 if test "${ac_cv_prog_CPP+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 # Double quotes because CPP needs to be expanded
5557 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5560 for ac_c_preproc_warn_flag
in '' yes
5562 # Use a header file that comes with gcc, so configuring glibc
5563 # with a fresh cross-compiler works.
5564 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5565 # <limits.h> exists even on freestanding compilers.
5566 # On the NeXT, cc -E runs the code through the compiler's parser,
5567 # not just through cpp. "Syntax error" is here to catch this case.
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5571 # include <limits.h>
5573 # include <assert.h>
5577 if ac_fn_c_try_cpp
"$LINENO"; then :
5580 # Broken: fails on valid input.
5583 rm -f conftest.err conftest.
$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ac_nonexistent.h>
5591 if ac_fn_c_try_cpp
"$LINENO"; then :
5592 # Broken: success on invalid input.
5595 # Passes both tests.
5599 rm -f conftest.err conftest.
$ac_ext
5602 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5603 rm -f conftest.err conftest.
$ac_ext
5604 if $ac_preproc_ok; then :
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5617 $as_echo "$CPP" >&6; }
5619 for ac_c_preproc_warn_flag
in '' yes
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5630 # include <limits.h>
5632 # include <assert.h>
5636 if ac_fn_c_try_cpp
"$LINENO"; then :
5639 # Broken: fails on valid input.
5642 rm -f conftest.err conftest.
$ac_ext
5644 # OK, works on sane cases. Now check whether nonexistent headers
5645 # can be detected and how.
5646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5647 /* end confdefs.h. */
5648 #include <ac_nonexistent.h>
5650 if ac_fn_c_try_cpp
"$LINENO"; then :
5651 # Broken: success on invalid input.
5654 # Passes both tests.
5658 rm -f conftest.err conftest.
$ac_ext
5661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5662 rm -f conftest.err conftest.
$ac_ext
5663 if $ac_preproc_ok; then :
5666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5668 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5669 See \`config.log' for more details." "$LINENO" 5; }
5673 ac_cpp
='$CXXCPP $CPPFLAGS'
5674 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5679 $as_echo_n "checking for inline... " >&6; }
5680 if test "${ac_cv_c_inline+set}" = set; then :
5681 $as_echo_n "(cached) " >&6
5684 for ac_kw
in inline __inline__ __inline
; do
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5689 static $ac_kw foo_t static_foo () {return 0; }
5690 $ac_kw foo_t foo () {return 0; }
5694 if ac_fn_cxx_try_compile
"$LINENO"; then :
5695 ac_cv_c_inline
=$ac_kw
5697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5698 test "$ac_cv_c_inline" != no
&& break
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5703 $as_echo "$ac_cv_c_inline" >&6; }
5705 case $ac_cv_c_inline in
5708 case $ac_cv_c_inline in
5710 *) ac_val
=$ac_cv_c_inline;;
5712 cat >>confdefs.h
<<_ACEOF
5714 #define inline $ac_val
5721 # Check whether --enable-largefile was given.
5722 if test "${enable_largefile+set}" = set; then :
5723 enableval
=$enable_largefile;
5726 if test "$enable_largefile" != no
; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5729 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5730 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5733 ac_cv_sys_largefile_CC
=no
5734 if test "$GCC" != yes; then
5737 # IRIX 6.2 and later do not support large files by default,
5738 # so use the C compiler's -n32 option if that helps.
5739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <sys/types.h>
5742 /* Check that off_t can represent 2**63 - 1 correctly.
5743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5744 since some C++ compilers masquerading as C compilers
5745 incorrectly reject 9223372036854775807. */
5746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5748 && LARGE_OFF_T % 2147483647 == 1)
5758 if ac_fn_cxx_try_compile
"$LINENO"; then :
5761 rm -f core conftest.err conftest.
$ac_objext
5763 if ac_fn_cxx_try_compile
"$LINENO"; then :
5764 ac_cv_sys_largefile_CC
=' -n32'; break
5766 rm -f core conftest.err conftest.
$ac_objext
5770 rm -f conftest.
$ac_ext
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5774 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5775 if test "$ac_cv_sys_largefile_CC" != no
; then
5776 CC
=$CC$ac_cv_sys_largefile_CC
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5780 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5781 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5787 #include <sys/types.h>
5788 /* Check that off_t can represent 2**63 - 1 correctly.
5789 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5790 since some C++ compilers masquerading as C compilers
5791 incorrectly reject 9223372036854775807. */
5792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5793 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5794 && LARGE_OFF_T % 2147483647 == 1)
5804 if ac_fn_cxx_try_compile
"$LINENO"; then :
5805 ac_cv_sys_file_offset_bits
=no
; break
5807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5810 #define _FILE_OFFSET_BITS 64
5811 #include <sys/types.h>
5812 /* Check that off_t can represent 2**63 - 1 correctly.
5813 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5814 since some C++ compilers masquerading as C compilers
5815 incorrectly reject 9223372036854775807. */
5816 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5817 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5818 && LARGE_OFF_T % 2147483647 == 1)
5828 if ac_fn_cxx_try_compile
"$LINENO"; then :
5829 ac_cv_sys_file_offset_bits
=64; break
5831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5832 ac_cv_sys_file_offset_bits
=unknown
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5837 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5838 case $ac_cv_sys_file_offset_bits in #(
5841 cat >>confdefs.h
<<_ACEOF
5842 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5847 if test $ac_cv_sys_file_offset_bits = unknown
; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5849 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5850 if test "${ac_cv_sys_large_files+set}" = set; then :
5851 $as_echo_n "(cached) " >&6
5854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 #include <sys/types.h>
5857 /* Check that off_t can represent 2**63 - 1 correctly.
5858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5859 since some C++ compilers masquerading as C compilers
5860 incorrectly reject 9223372036854775807. */
5861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5863 && LARGE_OFF_T % 2147483647 == 1)
5873 if ac_fn_cxx_try_compile
"$LINENO"; then :
5874 ac_cv_sys_large_files
=no
; break
5876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 #define _LARGE_FILES 1
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5897 if ac_fn_cxx_try_compile
"$LINENO"; then :
5898 ac_cv_sys_large_files
=1; break
5900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5901 ac_cv_sys_large_files
=unknown
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5906 $as_echo "$ac_cv_sys_large_files" >&6; }
5907 case $ac_cv_sys_large_files in #(
5910 cat >>confdefs.h
<<_ACEOF
5911 #define _LARGE_FILES $ac_cv_sys_large_files
5920 # sizeof(char) is 1 by definition.
5921 # The cast to long int works around a bug in the HP C Compiler
5922 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5923 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5924 # This bug is HP SR number 8606223364.
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5926 $as_echo_n "checking size of void *... " >&6; }
5927 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5928 $as_echo_n "(cached) " >&6
5930 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5933 if test "$ac_cv_type_void_p" = yes; then
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936 { as_fn_set_status
77
5937 as_fn_error
"cannot compute sizeof (void *)
5938 See \`config.log' for more details." "$LINENO" 5; }; }
5940 ac_cv_sizeof_void_p
=0
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5946 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5950 cat >>confdefs.h
<<_ACEOF
5951 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5955 # The cast to long int works around a bug in the HP C Compiler
5956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5958 # This bug is HP SR number 8606223364.
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5960 $as_echo_n "checking size of short... " >&6; }
5961 if test "${ac_cv_sizeof_short+set}" = set; then :
5962 $as_echo_n "(cached) " >&6
5964 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5967 if test "$ac_cv_type_short" = yes; then
5968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 { as_fn_set_status
77
5971 as_fn_error
"cannot compute sizeof (short)
5972 See \`config.log' for more details." "$LINENO" 5; }; }
5974 ac_cv_sizeof_short
=0
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5980 $as_echo "$ac_cv_sizeof_short" >&6; }
5984 cat >>confdefs.h
<<_ACEOF
5985 #define SIZEOF_SHORT $ac_cv_sizeof_short
5989 # The cast to long int works around a bug in the HP C Compiler
5990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5992 # This bug is HP SR number 8606223364.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5994 $as_echo_n "checking size of int... " >&6; }
5995 if test "${ac_cv_sizeof_int+set}" = set; then :
5996 $as_echo_n "(cached) " >&6
5998 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
6001 if test "$ac_cv_type_int" = yes; then
6002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6004 { as_fn_set_status
77
6005 as_fn_error
"cannot compute sizeof (int)
6006 See \`config.log' for more details." "$LINENO" 5; }; }
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6014 $as_echo "$ac_cv_sizeof_int" >&6; }
6018 cat >>confdefs.h
<<_ACEOF
6019 #define SIZEOF_INT $ac_cv_sizeof_int
6023 # The cast to long int works around a bug in the HP C Compiler
6024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6026 # This bug is HP SR number 8606223364.
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6028 $as_echo_n "checking size of long... " >&6; }
6029 if test "${ac_cv_sizeof_long+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6032 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6035 if test "$ac_cv_type_long" = yes; then
6036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6038 { as_fn_set_status
77
6039 as_fn_error
"cannot compute sizeof (long)
6040 See \`config.log' for more details." "$LINENO" 5; }; }
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6048 $as_echo "$ac_cv_sizeof_long" >&6; }
6052 cat >>confdefs.h
<<_ACEOF
6053 #define SIZEOF_LONG $ac_cv_sizeof_long
6057 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6058 if test "x$ac_cv_type_long_long" = x
""yes; then :
6060 cat >>confdefs.h
<<_ACEOF
6061 #define HAVE_LONG_LONG 1
6064 # The cast to long int works around a bug in the HP C Compiler
6065 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6066 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6067 # This bug is HP SR number 8606223364.
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6069 $as_echo_n "checking size of long long... " >&6; }
6070 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6073 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6076 if test "$ac_cv_type_long_long" = yes; then
6077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6079 { as_fn_set_status
77
6080 as_fn_error
"cannot compute sizeof (long long)
6081 See \`config.log' for more details." "$LINENO" 5; }; }
6083 ac_cv_sizeof_long_long
=0
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6089 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6093 cat >>confdefs.h
<<_ACEOF
6094 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6100 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6101 case $ac_cv_c_int8_t in #(
6105 cat >>confdefs.h
<<_ACEOF
6106 #define int8_t $ac_cv_c_int8_t
6111 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6112 case $ac_cv_c_int16_t in #(
6116 cat >>confdefs.h
<<_ACEOF
6117 #define int16_t $ac_cv_c_int16_t
6122 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6123 case $ac_cv_c_int32_t in #(
6127 cat >>confdefs.h
<<_ACEOF
6128 #define int32_t $ac_cv_c_int32_t
6133 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6134 case $ac_cv_c_int64_t in #(
6138 cat >>confdefs.h
<<_ACEOF
6139 #define int64_t $ac_cv_c_int64_t
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6146 $as_echo_n "checking for long long int... " >&6; }
6147 if test "${ac_cv_type_long_long_int+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6153 /* For now, do not test the preprocessor; as of 2007 there are too many
6154 implementations with broken preprocessors. Perhaps this can
6155 be revisited in 2012. In the meantime, code should not expect
6156 #if to work with literals wider than 32 bits. */
6157 /* Test literals. */
6158 long long int ll = 9223372036854775807ll;
6159 long long int nll = -9223372036854775807LL;
6160 unsigned long long int ull = 18446744073709551615ULL;
6161 /* Test constant expressions. */
6162 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6164 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6170 /* Test availability of runtime routines for shift and division. */
6171 long long int llmax = 9223372036854775807ll;
6172 unsigned long long int ullmax = 18446744073709551615ull;
6173 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6174 | (llmax / ll) | (llmax % ll)
6175 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6176 | (ullmax / ull) | (ullmax % ull));
6182 if ac_fn_cxx_try_link
"$LINENO"; then :
6183 if test "$cross_compiling" = yes; then :
6184 ac_cv_type_long_long_int
=yes
6186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6191 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6192 # define LLONG_MAX (HALF - 1 + HALF)
6197 long long int n = 1;
6201 long long int m = n << i;
6204 if (LLONG_MAX / 2 < m)
6212 if ac_fn_cxx_try_run
"$LINENO"; then :
6213 ac_cv_type_long_long_int
=yes
6215 ac_cv_type_long_long_int
=no
6217 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6218 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6222 ac_cv_type_long_long_int
=no
6224 rm -f core conftest.err conftest.
$ac_objext \
6225 conftest
$ac_exeext conftest.
$ac_ext
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6228 $as_echo "$ac_cv_type_long_long_int" >&6; }
6229 if test $ac_cv_type_long_long_int = yes; then
6231 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6237 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6238 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6240 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6243 test $ac_cv_type_long_long_int = yes \
6244 && ac_type
='long long int' \
6245 || ac_type
='long int'
6247 cat >>confdefs.h
<<_ACEOF
6248 #define intmax_t $ac_type
6255 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6256 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6258 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6261 for ac_type
in 'int' 'long int' 'long long int'; do
6262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 $ac_includes_default
6268 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6275 if ac_fn_cxx_try_compile
"$LINENO"; then :
6277 cat >>confdefs.h
<<_ACEOF
6278 #define intptr_t $ac_type
6283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6284 test -z "$ac_type" && break
6289 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6290 case $ac_cv_c_uint8_t in #(
6294 $as_echo "#define _UINT8_T 1" >>confdefs.h
6297 cat >>confdefs.h
<<_ACEOF
6298 #define uint8_t $ac_cv_c_uint8_t
6303 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6304 case $ac_cv_c_uint16_t in #(
6309 cat >>confdefs.h
<<_ACEOF
6310 #define uint16_t $ac_cv_c_uint16_t
6315 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6316 case $ac_cv_c_uint32_t in #(
6320 $as_echo "#define _UINT32_T 1" >>confdefs.h
6323 cat >>confdefs.h
<<_ACEOF
6324 #define uint32_t $ac_cv_c_uint32_t
6329 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6330 case $ac_cv_c_uint64_t in #(
6334 $as_echo "#define _UINT64_T 1" >>confdefs.h
6337 cat >>confdefs.h
<<_ACEOF
6338 #define uint64_t $ac_cv_c_uint64_t
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6345 $as_echo_n "checking for unsigned long long int... " >&6; }
6346 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6352 /* For now, do not test the preprocessor; as of 2007 there are too many
6353 implementations with broken preprocessors. Perhaps this can
6354 be revisited in 2012. In the meantime, code should not expect
6355 #if to work with literals wider than 32 bits. */
6356 /* Test literals. */
6357 long long int ll = 9223372036854775807ll;
6358 long long int nll = -9223372036854775807LL;
6359 unsigned long long int ull = 18446744073709551615ULL;
6360 /* Test constant expressions. */
6361 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6363 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6369 /* Test availability of runtime routines for shift and division. */
6370 long long int llmax = 9223372036854775807ll;
6371 unsigned long long int ullmax = 18446744073709551615ull;
6372 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6373 | (llmax / ll) | (llmax % ll)
6374 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6375 | (ullmax / ull) | (ullmax % ull));
6381 if ac_fn_cxx_try_link
"$LINENO"; then :
6382 ac_cv_type_unsigned_long_long_int
=yes
6384 ac_cv_type_unsigned_long_long_int
=no
6386 rm -f core conftest.err conftest.
$ac_objext \
6387 conftest
$ac_exeext conftest.
$ac_ext
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6390 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6391 if test $ac_cv_type_unsigned_long_long_int = yes; then
6393 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6399 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6400 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6402 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6405 test $ac_cv_type_unsigned_long_long_int = yes \
6406 && ac_type
='unsigned long long int' \
6407 || ac_type
='unsigned long int'
6409 cat >>confdefs.h
<<_ACEOF
6410 #define uintmax_t $ac_type
6417 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6418 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6420 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6423 for ac_type
in 'unsigned int' 'unsigned long int' \
6424 'unsigned long long int'; do
6425 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6427 $ac_includes_default
6431 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6438 if ac_fn_cxx_try_compile
"$LINENO"; then :
6440 cat >>confdefs.h
<<_ACEOF
6441 #define uintptr_t $ac_type
6446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6447 test -z "$ac_type" && break
6464 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6465 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6468 # check what underlying integer type int64_t uses
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6470 $as_echo_n "checking for int64_t underlying type... " >&6; }
6471 if test "${ac_cv_int64_t_type+set}" = set; then :
6472 $as_echo_n "(cached) " >&6
6475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6478 #ifdef HAVE_STDINT_H
6481 template <typename T> struct X { };
6483 struct X<long> { typedef long t; };
6493 if ac_fn_cxx_try_compile
"$LINENO"; then :
6494 ac_cv_int64_t_type
=long
6496 ac_cv_int64_t_type
="long long"
6498 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6501 $as_echo "$ac_cv_int64_t_type" >&6; }
6502 if test "$ac_cv_int64_t_type" = "long"; then
6504 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6510 #ifdef HAVE_STDINT_H
6513 template <typename T> struct X { };
6515 struct X<long long> { typedef long long t; };
6525 if ac_fn_cxx_try_compile
"$LINENO"; then :
6528 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6533 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6534 # If the host compiler is affected by the bug, and we build with optimization
6535 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6536 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6537 # Since there is no reliable feature check for the presence of this bug,
6538 # we simply use a GCC version number check. (This should never trigger for
6539 # stages 2 or 3 of a native bootstrap.)
6541 if test "$GCC" = yes; then
6542 saved_CXXFLAGS
="$CXXFLAGS"
6544 # The following test compilation will succeed if and only if $CXX accepts
6545 # -fno-strict-aliasing *and* is older than GCC 4.3.
6546 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6548 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6552 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6553 #error compiler not affected by placement new aliasing bug
6557 if ac_fn_cxx_try_compile
"$LINENO"; then :
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6559 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6564 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6566 CXXFLAGS
="$saved_CXXFLAGS"
6572 # ---------------------
6573 # Warnings and checking
6574 # ---------------------
6576 # Check $CC warning features (if it's GCC).
6577 # We want to use -pedantic, but we don't want warnings about
6580 # * overlong strings
6581 # * C++11 narrowing conversions in { }
6582 # So, we only use -pedantic if we can disable those warnings.
6584 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6585 # Check whether --enable-build-format-warnings was given.
6586 if test "${enable_build_format_warnings+set}" = set; then :
6587 enableval
=$enable_build_format_warnings;
6589 enable_build_format_warnings
=yes
6592 if test $enable_build_format_warnings = no
; then :
6598 ac_cpp
='$CXXCPP $CPPFLAGS'
6599 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6604 save_CXXFLAGS
="$CXXFLAGS"
6605 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6606 # Do the check with the no- prefix removed since gcc silently
6607 # accepts any -Wno-* option on purpose
6608 case $real_option in
6609 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6610 *) option
=$real_option ;;
6612 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6615 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6616 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6617 $as_echo_n "(cached) " >&6
6620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6631 if ac_fn_cxx_try_compile
"$LINENO"; then :
6632 eval "$as_acx_Woption=yes"
6634 eval "$as_acx_Woption=no"
6636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6639 eval ac_res
=\$
$as_acx_Woption
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6641 $as_echo "$ac_res" >&6; }
6642 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6643 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6646 CXXFLAGS
="$save_CXXFLAGS"
6648 ac_cpp
='$CXXCPP $CPPFLAGS'
6649 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6656 ac_cpp
='$CPP $CPPFLAGS'
6657 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6662 save_CFLAGS
="$CFLAGS"
6663 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6664 # Do the check with the no- prefix removed since gcc silently
6665 # accepts any -Wno-* option on purpose
6666 case $real_option in
6667 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6668 *) option
=$real_option ;;
6670 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6673 $as_echo_n "checking whether $CC supports $option... " >&6; }
6674 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6675 $as_echo_n "(cached) " >&6
6678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6689 if ac_fn_c_try_compile
"$LINENO"; then :
6690 eval "$as_acx_Woption=yes"
6692 eval "$as_acx_Woption=no"
6694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6697 eval ac_res
=\$
$as_acx_Woption
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6699 $as_echo "$ac_res" >&6; }
6700 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6701 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6704 CFLAGS
="$save_CFLAGS"
6706 ac_cpp
='$CXXCPP $CPPFLAGS'
6707 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6713 ac_cpp
='$CXXCPP $CPPFLAGS'
6714 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6715 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6719 save_CXXFLAGS
="$CXXFLAGS"
6720 for real_option
in -Wmissing-format-attribute; do
6721 # Do the check with the no- prefix removed since gcc silently
6722 # accepts any -Wno-* option on purpose
6723 case $real_option in
6724 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6725 *) option
=$real_option ;;
6727 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6730 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6731 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6732 $as_echo_n "(cached) " >&6
6735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6746 if ac_fn_cxx_try_compile
"$LINENO"; then :
6747 eval "$as_acx_Woption=yes"
6749 eval "$as_acx_Woption=no"
6751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6754 eval ac_res
=\$
$as_acx_Woption
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6756 $as_echo "$ac_res" >&6; }
6757 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6758 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6761 CXXFLAGS
="$save_CXXFLAGS"
6763 ac_cpp
='$CXXCPP $CPPFLAGS'
6764 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6765 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6766 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6770 ac_cpp
='$CXXCPP $CPPFLAGS'
6771 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6775 save_CXXFLAGS
="$CXXFLAGS"
6776 for real_option
in -Woverloaded-virtual; do
6777 # Do the check with the no- prefix removed since gcc silently
6778 # accepts any -Wno-* option on purpose
6779 case $real_option in
6780 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6781 *) option
=$real_option ;;
6783 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6786 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6787 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6788 $as_echo_n "(cached) " >&6
6791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6802 if ac_fn_cxx_try_compile
"$LINENO"; then :
6803 eval "$as_acx_Woption=yes"
6805 eval "$as_acx_Woption=no"
6807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6810 eval ac_res
=\$
$as_acx_Woption
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6812 $as_echo "$ac_res" >&6; }
6813 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6814 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6817 CXXFLAGS
="$save_CXXFLAGS"
6819 ac_cpp
='$CXXCPP $CPPFLAGS'
6820 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6821 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6822 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6826 ac_cpp
='$CPP $CPPFLAGS'
6827 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6832 save_CFLAGS
="$CFLAGS"
6833 for real_option
in -Wold-style-definition -Wc++-compat; do
6834 # Do the check with the no- prefix removed since gcc silently
6835 # accepts any -Wno-* option on purpose
6836 case $real_option in
6837 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6838 *) option
=$real_option ;;
6840 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6843 $as_echo_n "checking whether $CC supports $option... " >&6; }
6844 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6845 $as_echo_n "(cached) " >&6
6848 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6859 if ac_fn_c_try_compile
"$LINENO"; then :
6860 eval "$as_acx_Woption=yes"
6862 eval "$as_acx_Woption=no"
6864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6867 eval ac_res
=\$
$as_acx_Woption
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6869 $as_echo "$ac_res" >&6; }
6870 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6871 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6874 CFLAGS
="$save_CFLAGS"
6876 ac_cpp
='$CXXCPP $CPPFLAGS'
6877 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6883 ac_cpp
='$CXXCPP $CPPFLAGS'
6884 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6885 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6886 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6888 # Do the check with the no- prefix removed from the warning options
6889 # since gcc silently accepts any -Wno-* option on purpose
6890 if test "$GXX" = yes; then :
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6892 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6893 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6894 $as_echo_n "(cached) " >&6
6896 save_CXXFLAGS
="$CXXFLAGS"
6897 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6909 if ac_fn_cxx_try_compile
"$LINENO"; then :
6910 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6912 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6915 CXXFLAGS
="$save_CXXFLAGS"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6918 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6919 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6920 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6925 ac_cpp
='$CXXCPP $CPPFLAGS'
6926 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6927 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6928 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6932 ac_cpp
='$CXXCPP $CPPFLAGS'
6933 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6934 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6935 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6937 # Check whether --enable-werror-always was given.
6938 if test "${enable_werror_always+set}" = set; then :
6939 enableval
=$enable_werror_always;
6941 enable_werror_always
=no
6944 if test $enable_werror_always = yes; then :
6945 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6949 ac_cpp
='$CXXCPP $CPPFLAGS'
6950 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6951 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6956 # The above macros do nothing if the compiler is not GCC. However, the
6957 # Makefile has more goo to add other flags, so these variables are used
6958 # to enable warnings only for GCC.
6961 if test "x$GCC" = "xyes"; then
6962 warn_cflags
='$(GCC_WARN_CFLAGS)'
6963 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6968 # Disable exceptions and RTTI if building with g++
6970 ac_cpp
='$CPP $CPPFLAGS'
6971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6976 save_CFLAGS
="$CFLAGS"
6977 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6978 # Do the check with the no- prefix removed since gcc silently
6979 # accepts any -Wno-* option on purpose
6980 case $real_option in
6981 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6982 *) option
=$real_option ;;
6984 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6987 $as_echo_n "checking whether $CC supports $option... " >&6; }
6988 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6989 $as_echo_n "(cached) " >&6
6992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
7003 if ac_fn_c_try_compile
"$LINENO"; then :
7004 eval "$as_acx_Woption=yes"
7006 eval "$as_acx_Woption=no"
7008 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7011 eval ac_res
=\$
$as_acx_Woption
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7013 $as_echo "$ac_res" >&6; }
7014 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7015 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7018 CFLAGS
="$save_CFLAGS"
7020 ac_cpp
='$CXXCPP $CPPFLAGS'
7021 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7022 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7023 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7027 # Enable expensive internal checks
7029 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7033 # Check whether --enable-checking was given.
7034 if test "${enable_checking+set}" = set; then :
7035 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7038 # Determine the default checks.
7039 if test x
$is_release = x
; then
7040 ac_checking_flags
=yes
7042 ac_checking_flags
=release
7046 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7047 for check
in release
$ac_checking_flags
7050 # these set all the flags to specific states
7051 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7052 ac_fold_checking
= ; ac_gc_checking
=1 ;
7053 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7054 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7055 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7056 ac_types_checking
=1 ;;
7057 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7058 ac_fold_checking
= ; ac_gc_checking
= ;
7059 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7060 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7061 ac_tree_checking
= ; ac_valgrind_checking
= ;
7062 ac_types_checking
= ;;
7063 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7064 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7065 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7066 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7067 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7068 ac_types_checking
=1 ;;
7069 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7070 ac_fold_checking
= ; ac_gc_checking
= ;
7071 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7072 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7073 ac_tree_checking
= ; ac_valgrind_checking
= ;
7074 ac_types_checking
= ;;
7075 # these enable particular checks
7076 assert
) ac_assert_checking
=1 ;;
7077 df
) ac_df_checking
=1 ;;
7078 fold) ac_fold_checking
=1 ;;
7079 gc
) ac_gc_checking
=1 ;;
7080 gcac
) ac_gc_always_collect
=1 ;;
7081 gimple
) ac_gimple_checking
=1 ;;
7082 misc
) ac_checking
=1 ;;
7083 rtl
) ac_rtl_checking
=1 ;;
7084 rtlflag
) ac_rtlflag_checking
=1 ;;
7085 runtime
) ac_runtime_checking
=1 ;;
7086 tree
) ac_tree_checking
=1 ;;
7087 types
) ac_types_checking
=1 ;;
7088 valgrind
) ac_valgrind_checking
=1 ;;
7089 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7095 if test x
$ac_checking != x
; then
7097 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7099 nocommon_flag
=-fno-common
7102 if test x
$ac_df_checking != x
; then
7104 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7107 if test x
$ac_assert_checking != x
; then
7109 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7112 if test x
$ac_gimple_checking != x
; then
7114 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7118 if test x
$ac_runtime_checking != x
; then
7120 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7123 if test x
$ac_tree_checking != x
; then
7125 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7129 if test x
$ac_types_checking != x
; then
7131 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7135 if test x
$ac_rtl_checking != x
; then
7137 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7140 if test x
$ac_rtlflag_checking != x
; then
7142 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7145 if test x
$ac_gc_checking != x
; then
7147 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7150 if test x
$ac_gc_always_collect != x
; then
7152 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7155 if test x
$ac_fold_checking != x
; then
7157 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7160 valgrind_path_defines
=
7163 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7164 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7172 # It is certainly possible that there's valgrind but no valgrind.h.
7173 # GCC relies on making annotations so we must have both.
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7175 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7176 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 #include <valgrind/memcheck.h>
7179 #ifndef VALGRIND_DISCARD
7180 #error VALGRIND_DISCARD not defined
7183 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7184 gcc_cv_header_valgrind_memcheck_h
=yes
7186 gcc_cv_header_valgrind_memcheck_h
=no
7188 rm -f conftest.err conftest.
$ac_ext
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7190 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7192 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <memcheck.h>
7196 #ifndef VALGRIND_DISCARD
7197 #error VALGRIND_DISCARD not defined
7200 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7201 gcc_cv_header_memcheck_h
=yes
7203 gcc_cv_header_memcheck_h
=no
7205 rm -f conftest.err conftest.
$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7207 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7208 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7210 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7213 if test $gcc_cv_header_memcheck_h = yes; then
7215 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7219 if test x
$ac_valgrind_checking != x
; then
7221 # Prepare PATH_SEPARATOR.
7222 # The user is always right.
7223 if test "${PATH_SEPARATOR+set}" != set; then
7224 echo "#! /bin/sh" >conf$$.sh
7225 echo "exit 0" >>conf$$.sh
7227 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7235 # Find out how to test for executable files. Don't use a zero-byte file,
7236 # as systems may use methods other than mode bits to determine executability.
7237 cat >conf$$.
file <<_ASEOF
7241 chmod +x conf$$.
file
7242 if test -x conf$$.
file >/dev
/null
2>&1; then
7243 ac_executable_p
="test -x"
7245 ac_executable_p
="test -f"
7249 # Extract the first word of "valgrind", so it can be a program name with args.
7250 set dummy valgrind
; ac_word
=$2
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7252 $as_echo_n "checking for $ac_word... " >&6; }
7253 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7256 case "$valgrind_path" in
7258 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7261 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7262 for ac_dir
in $PATH; do
7264 test -z "$ac_dir" && ac_dir
=.
7265 for ac_exec_ext
in '' $ac_executable_extensions; do
7266 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7267 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7268 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7278 valgrind_path
="$ac_cv_path_valgrind_path"
7279 if test -n "$valgrind_path"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7281 $as_echo "$valgrind_path" >&6; }
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7287 if test "x$valgrind_path" = "x" \
7288 ||
(test $have_valgrind_h = no \
7289 && test $gcc_cv_header_memcheck_h = no \
7290 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7291 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7293 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7294 valgrind_command
="$valgrind_path -q"
7296 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7302 # Enable code coverage collection
7303 # Check whether --enable-coverage was given.
7304 if test "${enable_coverage+set}" = set; then :
7305 enableval
=$enable_coverage; case "${enableval}" in
7307 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7310 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7313 # a.k.a. --disable-coverage
7317 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7326 # Check whether --enable-gather-detailed-mem-stats was given.
7327 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7328 enableval
=$enable_gather_detailed_mem_stats;
7330 enable_gather_detailed_mem_stats
=no
7333 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7335 cat >>confdefs.h
<<_ACEOF
7336 #define GATHER_STATISTICS $gather_stats
7340 # Check whether --enable-valgrind-annotations was given.
7341 if test "${enable_valgrind_annotations+set}" = set; then :
7342 enableval
=$enable_valgrind_annotations;
7344 enable_valgrind_annotations
=no
7347 if test x
$enable_valgrind_annotations != xno \
7348 ||
test x
$ac_valgrind_checking != x
; then
7349 if (test $have_valgrind_h = no \
7350 && test $gcc_cv_header_memcheck_h = no \
7351 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7352 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7355 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7359 # -------------------------------
7360 # Miscenalleous configure options
7361 # -------------------------------
7365 # Check whether --with-stabs was given.
7366 if test "${with_stabs+set}" = set; then :
7367 withval
=$with_stabs; stabs
="$with_stabs"
7373 # Determine whether or not multilibs are enabled.
7374 # Check whether --enable-multilib was given.
7375 if test "${enable_multilib+set}" = set; then :
7376 enableval
=$enable_multilib;
7383 # Determine whether or not multiarch is enabled.
7384 # Check whether --enable-multiarch was given.
7385 if test "${enable_multiarch+set}" = set; then :
7386 enableval
=$enable_multiarch; case "${enableval}" in
7387 yes|no|auto
) enable_multiarch
=$enableval;;
7388 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7391 enable_multiarch
=auto
7394 if test x
${enable_multiarch} = xauto
; then
7395 if test x
${with_native_system_header_dir} != x
; then
7396 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7399 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7400 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7405 $as_echo_n "checking for multiarch configuration... " >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7408 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7410 # needed for setting the multiarch name for soft-float/hard-float ABIs
7414 # Enable __cxa_atexit for C++.
7415 # Check whether --enable-__cxa_atexit was given.
7416 if test "${enable___cxa_atexit+set}" = set; then :
7417 enableval
=$enable___cxa_atexit;
7421 # Enable C extension for decimal float if target supports it.
7423 # Check whether --enable-decimal-float was given.
7424 if test "${enable_decimal_float+set}" = set; then :
7425 enableval
=$enable_decimal_float;
7426 case $enable_decimal_float in
7427 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7428 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7429 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7435 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7436 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7437 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7438 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7439 enable_decimal_float
=yes
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7443 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7444 enable_decimal_float
=no
7451 # x86's use BID format instead of DPD
7452 case x
$enable_decimal_float in
7455 i?
86*-*-* | x86_64
*-*-*)
7456 enable_decimal_float
=bid
7459 enable_decimal_float
=dpd
7462 default_decimal_float
=$enable_decimal_float
7465 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7466 # dependency on libdecnumber.
7467 default_decimal_float
=dpd
7474 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7476 cat >>confdefs.h
<<_ACEOF
7477 #define ENABLE_DECIMAL_FLOAT $dfp
7481 # Use default_decimal_float for dependency.
7482 enable_decimal_float
=$default_decimal_float
7484 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7486 cat >>confdefs.h
<<_ACEOF
7487 #define ENABLE_DECIMAL_BID_FORMAT $bid
7491 # Enable C extension for fixed-point arithmetic.
7492 # Check whether --enable-fixed-point was given.
7493 if test "${enable_fixed_point+set}" = set; then :
7494 enableval
=$enable_fixed_point;
7499 enable_fixed_point
=yes
7503 enable_fixed_point
=yes
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7507 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7508 enable_fixed_point
=no
7516 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7518 cat >>confdefs.h
<<_ACEOF
7519 #define ENABLE_FIXED_POINT $fixedpoint
7524 # Pass with no value to take the default
7525 # Pass with a value to specify a thread package
7526 # Check whether --enable-threads was given.
7527 if test "${enable_threads+set}" = set; then :
7528 enableval
=$enable_threads;
7534 # Check whether --enable-tls was given.
7535 if test "${enable_tls+set}" = set; then :
7536 enableval
=$enable_tls;
7539 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7540 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7548 # Check whether --enable-objc-gc was given.
7549 if test "${enable_objc_gc+set}" = set; then :
7550 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7561 # Check whether --with-dwarf2 was given.
7562 if test "${with_dwarf2+set}" = set; then :
7563 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7569 # Check whether --enable-shared was given.
7570 if test "${enable_shared+set}" = set; then :
7571 enableval
=$enable_shared;
7572 case $enable_shared in
7576 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7577 for pkg
in $enableval; do
7578 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7593 # Check whether --with-specs was given.
7594 if test "${with_specs+set}" = set; then :
7595 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7605 # Check whether --with-pkgversion was given.
7606 if test "${with_pkgversion+set}" = set; then :
7607 withval
=$with_pkgversion; case "$withval" in
7608 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7610 *) PKGVERSION
="($withval) " ;;
7621 # Check whether --with-bugurl was given.
7622 if test "${with_bugurl+set}" = set; then :
7623 withval
=$with_bugurl; case "$withval" in
7624 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7627 *) BUGURL
="$withval"
7631 BUGURL
="http://gcc.gnu.org/bugs.html"
7641 REPORT_BUGS_TO
="<$BUGURL>"
7642 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7649 # Sanity check enable_languages in case someone does not run the toplevel
7650 # configure # script.
7651 # Check whether --enable-languages was given.
7652 if test "${enable_languages+set}" = set; then :
7653 enableval
=$enable_languages; case ,${enable_languages}, in
7655 # go safe -- we cannot be much sure without the toplevel
7657 # analysis of which target libs are present and usable
7661 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7666 enable_languages
=c
,${enable_languages}
7674 if test x
"$enable_as_accelerator_for" != x
; then
7676 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7678 enable_as_accelerator
=yes
7681 # In this case we expect offload compiler to be built as native, so we
7682 # need to rename the driver to avoid clashes with host's drivers.
7683 program_transform_name
="s&^&${target}-&" ;;
7685 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7686 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7687 accel_dir_suffix
=/accel
/${target_noncanonical}
7688 real_target_noncanonical
=${enable_as_accelerator_for}
7694 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7695 tgt
=`echo $tgt | sed 's/=.*//'`
7696 if test x
"$offload_targets" = x
; then
7697 offload_targets
=$tgt
7699 offload_targets
="$offload_targets:$tgt"
7703 cat >>confdefs.h
<<_ACEOF
7704 #define OFFLOAD_TARGETS "$offload_targets"
7707 if test x
"$offload_targets" != x
; then
7709 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7714 # Check whether --with-multilib-list was given.
7715 if test "${with_multilib_list+set}" = set; then :
7716 withval
=$with_multilib_list; :
7718 with_multilib_list
=default
7722 # -------------------------
7723 # Checks for other programs
7724 # -------------------------
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7727 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7729 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7730 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7731 $as_echo_n "(cached) " >&6
7733 cat >conftest.
make <<\_ACEOF
7736 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7738 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7741 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7743 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7747 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7749 $as_echo "yes" >&6; }
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 SET_MAKE
="MAKE=${MAKE-make}"
7758 # Find some useful tools
7759 for ac_prog
in gawk mawk nawk
awk
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy
$ac_prog; ac_word
=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_AWK+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7768 if test -n "$AWK"; then
7769 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7775 test -z "$as_dir" && as_dir
=.
7776 for ac_exec_ext
in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_AWK
="$ac_prog"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 if test -n "$AWK"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7791 $as_echo "$AWK" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7798 test -n "$AWK" && break
7801 # We need awk to create options.c and options.h.
7802 # Bail out if it's missing.
7804 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7808 $as_echo_n "checking whether ln -s works... " >&6; }
7809 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7812 rm -f conftestdata_t
7813 echo >conftestdata_f
7814 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7816 gcc_cv_prog_LN_S
="ln -s"
7818 if ln conftestdata_f conftestdata_t
2>/dev
/null
7822 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7824 gcc_cv_prog_LN_S
="cp -p"
7830 rm -f conftestdata_f conftestdata_t
7833 LN_S
="$gcc_cv_prog_LN_S"
7834 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7838 if test "$gcc_cv_prog_LN_S" = "ln"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7840 $as_echo "no, using ln" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7843 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7848 $as_echo_n "checking whether ln works... " >&6; }
7849 if test "${acx_cv_prog_LN+set}" = set; then :
7850 $as_echo_n "(cached) " >&6
7852 rm -f conftestdata_t
7853 echo >conftestdata_f
7854 if ln conftestdata_f conftestdata_t
2>/dev
/null
7860 rm -f conftestdata_f conftestdata_t
7863 if test $acx_cv_prog_LN = no
; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7866 $as_echo "no, using $LN" >&6; }
7868 LN
="$acx_cv_prog_LN"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870 $as_echo "yes" >&6; }
7873 if test -n "$ac_tool_prefix"; then
7874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7875 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877 $as_echo_n "checking for $ac_word... " >&6; }
7878 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7881 if test -n "$RANLIB"; then
7882 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7888 test -z "$as_dir" && as_dir
=.
7889 for ac_exec_ext
in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7891 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 RANLIB
=$ac_cv_prog_RANLIB
7902 if test -n "$RANLIB"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7904 $as_echo "$RANLIB" >&6; }
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 $as_echo "no" >&6; }
7912 if test -z "$ac_cv_prog_RANLIB"; then
7913 ac_ct_RANLIB
=$RANLIB
7914 # Extract the first word of "ranlib", so it can be a program name with args.
7915 set dummy ranlib
; ac_word
=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7921 if test -n "$ac_ct_RANLIB"; then
7922 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir
=.
7929 for ac_exec_ext
in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7942 if test -n "$ac_ct_RANLIB"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7944 $as_echo "$ac_ct_RANLIB" >&6; }
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7950 if test "x$ac_ct_RANLIB" = x
; then
7953 case $cross_compiling:$ac_tool_warned in
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7957 ac_tool_warned
=yes ;;
7959 RANLIB
=$ac_ct_RANLIB
7962 RANLIB
="$ac_cv_prog_RANLIB"
7968 # Find a good install program. We prefer a C program (faster),
7969 # so one script is as good as another. But avoid the broken or
7970 # incompatible versions:
7971 # SysV /etc/install, /usr/sbin/install
7972 # SunOS /usr/etc/install
7973 # IRIX /sbin/install
7975 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7976 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7977 # ./install, which can be erroneously created by make from ./install.sh.
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7979 $as_echo_n "checking for a BSD compatible install... " >&6; }
7980 if test -z "$INSTALL"; then
7981 if test "${ac_cv_path_install+set}" = set; then :
7982 $as_echo_n "(cached) " >&6
7984 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7985 for ac_dir
in $PATH; do
7986 # Account for people who put trailing slashes in PATH elements.
7988 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7990 # OSF1 and SCO ODT 3.0 have their own names for install.
7991 for ac_prog
in ginstall scoinst
install; do
7992 if test -f $ac_dir/$ac_prog; then
7993 if test $ac_prog = install &&
7994 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7995 # AIX install. It has an incompatible calling convention.
7996 # OSF/1 installbsd also uses dspmsg, but is usable.
7999 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8010 if test "${ac_cv_path_install+set}" = set; then
8011 INSTALL
="$ac_cv_path_install"
8013 # As a last resort, use the slow shell script. We don't cache a
8014 # path for INSTALL within a source directory, because that will
8015 # break other packages using the cache if that directory is
8016 # removed, or if the path is relative.
8017 INSTALL
="$ac_install_sh"
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8021 $as_echo "$INSTALL" >&6; }
8023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8024 # It thinks the first close brace ends the variable substitution.
8025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8027 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8030 # See if cmp has --ignore-initial.
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8032 $as_echo_n "checking for cmp's capabilities... " >&6; }
8033 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8038 gcc_cv_prog_cmp_skip
=slowcompare
8039 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8040 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8043 gcc_cv_prog_cmp_skip
=gnucompare
8046 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8047 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8048 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8051 gcc_cv_prog_cmp_skip
=fastcompare
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8059 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8060 make_compare_target
=$gcc_cv_prog_cmp_skip
8064 # See if we have the mktemp command.
8065 # Extract the first word of "mktemp", so it can be a program name with args.
8066 set dummy mktemp
; ac_word
=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8072 if test -n "$have_mktemp_command"; then
8073 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8079 test -z "$as_dir" && as_dir
=.
8080 for ac_exec_ext
in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_have_mktemp_command
="yes"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8093 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8094 if test -n "$have_mktemp_command"; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8096 $as_echo "$have_mktemp_command" >&6; }
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099 $as_echo "no" >&6; }
8104 # See if makeinfo has been installed and is modern enough
8105 # that we can use it.
8107 # Extract the first word of "makeinfo", so it can be a program name with args.
8108 set dummy makeinfo
; ac_word
=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8114 if test -n "$MAKEINFO"; then
8115 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir
=.
8122 for ac_exec_ext
in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_prog_MAKEINFO
="makeinfo"
8125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 MAKEINFO
=$ac_cv_prog_MAKEINFO
8135 if test -n "$MAKEINFO"; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8137 $as_echo "$MAKEINFO" >&6; }
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140 $as_echo "no" >&6; }
8144 if test -n "$MAKEINFO"; then
8145 # Found it, now check the version.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8147 $as_echo_n "checking for modern makeinfo... " >&6; }
8148 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8151 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8152 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8154 case $ac_prog_version in
8155 '') gcc_cv_prog_makeinfo_modern
=no
;;
8156 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8157 *) gcc_cv_prog_makeinfo_modern
=no
;;
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8162 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8164 gcc_cv_prog_makeinfo_modern
=no
8166 if test $gcc_cv_prog_makeinfo_modern = no
; then
8167 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8170 if test $gcc_cv_prog_makeinfo_modern = no
; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8172 *** Makeinfo is missing or too old.
8173 *** Info documentation will not be built." >&5
8174 $as_echo "$as_me: WARNING:
8175 *** Makeinfo is missing or too old.
8176 *** Info documentation will not be built." >&2;}
8183 # Is pod2man recent enough to regenerate manpages?
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8185 $as_echo_n "checking for recent Pod::Man... " >&6; }
8186 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8188 $as_echo "yes" >&6; }
8189 GENERATED_MANPAGES
=generated-manpages
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192 $as_echo "no" >&6; }
8197 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8202 # Extract the first word of "$ac_prog", so it can be a program name with args.
8203 set dummy
$ac_prog; ac_word
=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_FLEX+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 if test -n "$FLEX"; then
8210 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8216 test -z "$as_dir" && as_dir
=.
8217 for ac_exec_ext
in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_FLEX
="$ac_prog"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 FLEX
=$ac_cv_prog_FLEX
8230 if test -n "$FLEX"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8232 $as_echo "$FLEX" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8239 test -n "$FLEX" && break
8241 test -n "$FLEX" || FLEX
="$MISSING flex"
8245 for ac_prog
in bison
8247 # Extract the first word of "$ac_prog", so it can be a program name with args.
8248 set dummy
$ac_prog; ac_word
=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if test "${ac_cv_prog_BISON+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8254 if test -n "$BISON"; then
8255 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir
=.
8262 for ac_exec_ext
in '' $ac_executable_extensions; do
8263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8264 ac_cv_prog_BISON
="$ac_prog"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 BISON
=$ac_cv_prog_BISON
8275 if test -n "$BISON"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8277 $as_echo "$BISON" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8284 test -n "$BISON" && break
8286 test -n "$BISON" || BISON
="$MISSING bison"
8289 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8290 # check for build == host before using them.
8293 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8294 && test -d ..
/binutils
; then
8295 NM
='${objdir}/../binutils/nm-new'
8297 # Extract the first word of "nm", so it can be a program name with args.
8298 set dummy nm
; ac_word
=$2
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300 $as_echo_n "checking for $ac_word... " >&6; }
8301 if test "${ac_cv_prog_NM+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
8304 if test -n "$NM"; then
8305 ac_cv_prog_NM
="$NM" # Let the user override the test.
8307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8311 test -z "$as_dir" && as_dir
=.
8312 for ac_exec_ext
in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8326 if test -n "$NM"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8328 $as_echo "$NM" >&6; }
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8338 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8339 && test -d ..
/binutils
; then
8340 AR
='${objdir}/../binutils/ar'
8342 # Extract the first word of "ar", so it can be a program name with args.
8343 set dummy
ar; ac_word
=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if test "${ac_cv_prog_AR+set}" = set; then :
8347 $as_echo_n "(cached) " >&6
8349 if test -n "$AR"; then
8350 ac_cv_prog_AR
="$AR" # Let the user override the test.
8352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8356 test -z "$as_dir" && as_dir
=.
8357 for ac_exec_ext
in '' $ac_executable_extensions; do
8358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8371 if test -n "$AR"; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8373 $as_echo "$AR" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376 $as_echo "no" >&6; }
8382 # The jit documentation looks better if built with sphinx, but can be
8383 # built with texinfo if sphinx is not available.
8384 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8385 # Extract the first word of "sphinx-build", so it can be a program name with args.
8386 set dummy sphinx-build
; ac_word
=$2
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8388 $as_echo_n "checking for $ac_word... " >&6; }
8389 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8390 $as_echo_n "(cached) " >&6
8392 if test -n "$doc_build_sys"; then
8393 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8399 test -z "$as_dir" && as_dir
=.
8400 for ac_exec_ext
in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_prog_doc_build_sys
="sphinx"
8403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8413 doc_build_sys
=$ac_cv_prog_doc_build_sys
8414 if test -n "$doc_build_sys"; then
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8416 $as_echo "$doc_build_sys" >&6; }
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8419 $as_echo "no" >&6; }
8424 # --------------------
8425 # Checks for C headers
8426 # --------------------
8428 # Need to reject headers which give warnings, so that the -Werror bootstrap
8429 # works later. *sigh* This needs to come before all header checks.
8431 ac_c_preproc_warn_flag
=yes
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8434 $as_echo_n "checking for ANSI C header files... " >&6; }
8435 if test "${ac_cv_header_stdc+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
8438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8453 if ac_fn_cxx_try_compile
"$LINENO"; then :
8454 ac_cv_header_stdc
=yes
8456 ac_cv_header_stdc
=no
8458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8460 if test $ac_cv_header_stdc = yes; then
8461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8468 $EGREP "memchr" >/dev
/null
2>&1; then :
8471 ac_cv_header_stdc
=no
8477 if test $ac_cv_header_stdc = yes; then
8478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8485 $EGREP "free" >/dev
/null
2>&1; then :
8488 ac_cv_header_stdc
=no
8494 if test $ac_cv_header_stdc = yes; then
8495 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8496 if test "$cross_compiling" = yes; then :
8499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8503 #if ((' ' & 0x0FF) == 0x020)
8504 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8505 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8507 # define ISLOWER(c) \
8508 (('a' <= (c) && (c) <= 'i') \
8509 || ('j' <= (c) && (c) <= 'r') \
8510 || ('s' <= (c) && (c) <= 'z'))
8511 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8519 for (i = 0; i < 256; i++)
8520 if (XOR (islower (i), ISLOWER (i))
8521 || toupper (i) != TOUPPER (i))
8526 if ac_fn_cxx_try_run
"$LINENO"; then :
8529 ac_cv_header_stdc
=no
8531 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8532 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8538 $as_echo "$ac_cv_header_stdc" >&6; }
8539 if test $ac_cv_header_stdc = yes; then
8541 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8546 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8547 if test "${ac_cv_header_time+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
8550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 #include <sys/types.h>
8553 #include <sys/time.h>
8559 if ((struct tm *) 0)
8565 if ac_fn_cxx_try_compile
"$LINENO"; then :
8566 ac_cv_header_time
=yes
8568 ac_cv_header_time
=no
8570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8573 $as_echo "$ac_cv_header_time" >&6; }
8574 if test $ac_cv_header_time = yes; then
8576 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8581 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8582 if test "${gcc_cv_header_string+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
8585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8586 /* end confdefs.h. */
8588 #include <strings.h>
8597 if ac_fn_cxx_try_compile
"$LINENO"; then :
8598 gcc_cv_header_string
=yes
8600 gcc_cv_header_string
=no
8602 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8605 $as_echo "$gcc_cv_header_string" >&6; }
8606 if test $gcc_cv_header_string = yes; then
8608 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8613 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8614 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <sys/wait.h>
8622 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8625 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8633 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8638 if ac_fn_cxx_try_compile
"$LINENO"; then :
8639 ac_cv_header_sys_wait_h
=yes
8641 ac_cv_header_sys_wait_h
=no
8643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8646 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8647 if test $ac_cv_header_sys_wait_h = yes; then
8649 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8654 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8655 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <sys/types.h>
8661 #include <termios.h>
8667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8668 $EGREP "yes" >/dev
/null
2>&1; then :
8669 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8671 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8677 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8679 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8681 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8682 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <sys/types.h>
8688 #include <sys/ioctl.h>
8694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8695 $EGREP "yes" >/dev
/null
2>&1; then :
8696 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8698 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8704 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8706 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8708 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8713 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8714 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8715 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8716 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8718 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8719 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8720 eval as_val
=\$
$as_ac_Header
8721 if test "x$as_val" = x
""yes; then :
8722 cat >>confdefs.h
<<_ACEOF
8723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8730 # Check for thread headers.
8731 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8732 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8738 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8739 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8746 # These tests can't be done till we know if we have limits.h.
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8748 $as_echo_n "checking for CHAR_BIT... " >&6; }
8749 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8750 $as_echo_n "(cached) " >&6
8752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 #ifdef HAVE_LIMITS_H
8761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8762 $EGREP "found" >/dev
/null
2>&1; then :
8763 gcc_cv_decl_char_bit
=yes
8765 gcc_cv_decl_char_bit
=no
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8772 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8773 if test $gcc_cv_decl_char_bit = no
; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8775 $as_echo_n "checking number of bits in a byte... " >&6; }
8776 if test "${gcc_cv_c_nbby+set}" = set; then :
8777 $as_echo_n "(cached) " >&6
8781 while test $i -lt 65; do
8782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8789 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8790 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8796 if ac_fn_cxx_try_compile
"$LINENO"; then :
8797 gcc_cv_c_nbby
=$i; break
8799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8802 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8806 $as_echo "$gcc_cv_c_nbby" >&6; }
8807 if test $gcc_cv_c_nbby = failed
; then
8808 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8811 cat >>confdefs.h
<<_ACEOF
8812 #define CHAR_BIT $gcc_cv_c_nbby
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8818 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8819 if test "${ac_cv_c_bigendian+set}" = set; then :
8820 $as_echo_n "(cached) " >&6
8822 ac_cv_c_bigendian
=unknown
8823 # See if we're dealing with a universal compiler.
8824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 #ifndef __APPLE_CC__
8827 not a universal capable compiler
8832 if ac_fn_cxx_try_compile
"$LINENO"; then :
8834 # Check for potential -arch flags. It is not universal unless
8835 # there are at least two -arch flags with different values.
8838 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8839 if test -n "$ac_prev"; then
8841 i?
86 | x86_64 | ppc | ppc64
)
8842 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8845 ac_cv_c_bigendian
=universal
8851 elif test "x$ac_word" = "x-arch"; then
8856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8857 if test $ac_cv_c_bigendian = unknown
; then
8858 # See if sys/param.h defines the BYTE_ORDER macro.
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 #include <sys/types.h>
8862 #include <sys/param.h>
8867 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8868 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8877 if ac_fn_cxx_try_compile
"$LINENO"; then :
8878 # It does; now see whether it defined to BIG_ENDIAN or not.
8879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #include <sys/types.h>
8882 #include <sys/param.h>
8887 #if BYTE_ORDER != BIG_ENDIAN
8895 if ac_fn_cxx_try_compile
"$LINENO"; then :
8896 ac_cv_c_bigendian
=yes
8898 ac_cv_c_bigendian
=no
8900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8904 if test $ac_cv_c_bigendian = unknown
; then
8905 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8906 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8913 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8921 if ac_fn_cxx_try_compile
"$LINENO"; then :
8922 # It does; now see whether it defined to _BIG_ENDIAN or not.
8923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8924 /* end confdefs.h. */
8938 if ac_fn_cxx_try_compile
"$LINENO"; then :
8939 ac_cv_c_bigendian
=yes
8941 ac_cv_c_bigendian
=no
8943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8947 if test $ac_cv_c_bigendian = unknown
; then
8948 # Compile a test program.
8949 if test "$cross_compiling" = yes; then :
8950 # Try to guess by grepping values from an object file.
8951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h. */
8953 short int ascii_mm[] =
8954 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8955 short int ascii_ii[] =
8956 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8957 int use_ascii (int i) {
8958 return ascii_mm[i] + ascii_ii[i];
8960 short int ebcdic_ii[] =
8961 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8962 short int ebcdic_mm[] =
8963 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8964 int use_ebcdic (int i) {
8965 return ebcdic_mm[i] + ebcdic_ii[i];
8972 return use_ascii (foo) == use_ebcdic (foo);
8977 if ac_fn_cxx_try_compile
"$LINENO"; then :
8978 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8979 ac_cv_c_bigendian
=yes
8981 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8982 if test "$ac_cv_c_bigendian" = unknown
; then
8983 ac_cv_c_bigendian
=no
8985 # finding both strings is unlikely to happen, but who knows?
8986 ac_cv_c_bigendian
=unknown
8990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8993 /* end confdefs.h. */
8994 $ac_includes_default
8999 /* Are we little or big endian? From Harbison&Steele. */
9003 char c[sizeof (long int)];
9006 return u.c[sizeof (long int) - 1] == 1;
9012 if ac_fn_cxx_try_run
"$LINENO"; then :
9013 ac_cv_c_bigendian
=no
9015 ac_cv_c_bigendian
=yes
9017 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9018 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9024 $as_echo "$ac_cv_c_bigendian" >&6; }
9025 case $ac_cv_c_bigendian in #(
9027 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9033 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9037 as_fn_error
"unknown endianness
9038 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9042 # ----------------------
9043 # Checks for C++ headers
9044 # ----------------------
9047 ac_cpp
='$CXXCPP $CPPFLAGS'
9048 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9052 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9053 if test -z "$CXXCPP"; then
9054 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9057 # Double quotes because CXXCPP needs to be expanded
9058 for CXXCPP
in "$CXX -E" "/lib/cpp"
9061 for ac_cxx_preproc_warn_flag
in '' yes
9063 # Use a header file that comes with gcc, so configuring glibc
9064 # with a fresh cross-compiler works.
9065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066 # <limits.h> exists even on freestanding compilers.
9067 # On the NeXT, cc -E runs the code through the compiler's parser,
9068 # not just through cpp. "Syntax error" is here to catch this case.
9069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9072 # include <limits.h>
9074 # include <assert.h>
9078 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9081 # Broken: fails on valid input.
9084 rm -f conftest.err conftest.
$ac_ext
9086 # OK, works on sane cases. Now check whether nonexistent headers
9087 # can be detected and how.
9088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 #include <ac_nonexistent.h>
9092 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9093 # Broken: success on invalid input.
9096 # Passes both tests.
9100 rm -f conftest.err conftest.
$ac_ext
9103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9104 rm -f conftest.err conftest.
$ac_ext
9105 if $ac_preproc_ok; then :
9110 ac_cv_prog_CXXCPP
=$CXXCPP
9113 CXXCPP
=$ac_cv_prog_CXXCPP
9115 ac_cv_prog_CXXCPP
=$CXXCPP
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9118 $as_echo "$CXXCPP" >&6; }
9120 for ac_cxx_preproc_warn_flag
in '' yes
9122 # Use a header file that comes with gcc, so configuring glibc
9123 # with a fresh cross-compiler works.
9124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9125 # <limits.h> exists even on freestanding compilers.
9126 # On the NeXT, cc -E runs the code through the compiler's parser,
9127 # not just through cpp. "Syntax error" is here to catch this case.
9128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9131 # include <limits.h>
9133 # include <assert.h>
9137 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9140 # Broken: fails on valid input.
9143 rm -f conftest.err conftest.
$ac_ext
9145 # OK, works on sane cases. Now check whether nonexistent headers
9146 # can be detected and how.
9147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 #include <ac_nonexistent.h>
9151 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9152 # Broken: success on invalid input.
9155 # Passes both tests.
9159 rm -f conftest.err conftest.
$ac_ext
9162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9163 rm -f conftest.err conftest.
$ac_ext
9164 if $ac_preproc_ok; then :
9167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9170 See \`config.log' for more details." >&5
9171 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9172 See \`config.log' for more details." >&2;}; }
9176 ac_cpp
='$CXXCPP $CPPFLAGS'
9177 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9178 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9179 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9182 for ac_header
in unordered_map
9184 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9185 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9186 cat >>confdefs.h
<<_ACEOF
9187 #define HAVE_UNORDERED_MAP 1
9193 for ac_header
in tr1/unordered_map
9195 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9196 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9197 cat >>confdefs.h
<<_ACEOF
9198 #define HAVE_TR1_UNORDERED_MAP 1
9204 for ac_header
in ext
/hash_map
9206 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9207 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9208 cat >>confdefs.h
<<_ACEOF
9209 #define HAVE_EXT_HASH_MAP 1
9217 # Dependency checking.
9220 rm -rf .tst
2>/dev
/null
9221 mkdir .tst
2>/dev
/null
9222 if test -d .tst
; then
9227 rmdir .tst
2>/dev
/null
9229 DEPDIR
="${am__leading_dot}deps"
9231 ac_config_commands
="$ac_config_commands depdir"
9234 ac_config_commands
="$ac_config_commands gccdepdir"
9237 depcc
="$CXX" am_compiler_list
=
9239 am_depcomp
=$ac_aux_dir/depcomp
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9241 $as_echo_n "checking dependency style of $depcc... " >&6; }
9242 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
9245 if test -f "$am_depcomp"; then
9246 # We make a subdir and do the tests there. Otherwise we can end up
9247 # making bogus files that we don't know about and never remove. For
9248 # instance it was reported that on HP-UX the gcc test will end up
9249 # making a dummy file named `D' -- because `-MD' means `put the output
9252 # Copy depcomp to subdir because otherwise we won't find it if we're
9253 # using a relative directory.
9254 cp "$am_depcomp" conftest.dir
9256 # We will build objects and dependencies in a subdirectory because
9257 # it helps to detect inapplicable dependency modes. For instance
9258 # both Tru64's cc and ICC support -MD to output dependencies as a
9259 # side effect of compilation, but ICC will put the dependencies in
9260 # the current directory while Tru64 will put them in the object
9264 am_cv_CXX_dependencies_compiler_type
=none
9265 if test "$am_compiler_list" = ""; then
9266 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9268 for depmode
in $am_compiler_list; do
9269 if test $depmode = none
; then break; fi
9271 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9272 # Setup a source with many dependencies, because some compilers
9273 # like to wrap large dependency lists on column 80 (with \), and
9274 # we should not choose a depcomp mode which is confused by this.
9276 # We need to recreate these files for each test, as the compiler may
9277 # overwrite some of them when testing with obscure command lines.
9278 # This happens at least with the AIX C compiler.
9280 for i
in 1 2 3 4 5 6; do
9281 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9282 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9283 # Solaris 8's {/usr,}/bin/sh.
9284 touch sub
/conftst
$i.h
9286 echo "include sub/conftest.Po" > confmf
9288 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9289 # mode. It turns out that the SunPro C++ compiler does not properly
9290 # handle `-M -o', and we need to detect this.
9291 depcmd
="depmode=$depmode \
9292 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9293 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9294 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9295 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9296 if env
$depcmd > conftest.err
2>&1 &&
9297 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9298 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9299 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9300 # icc doesn't choke on unknown options, it will just issue warnings
9301 # or remarks (even with -Werror). So we grep stderr for any message
9302 # that says an option was ignored or not supported.
9303 # When given -MP, icc 7.0 and 7.1 complain thusly:
9304 # icc: Command line warning: ignoring option '-M'; no argument required
9305 # The diagnosis changed in icc 8.0:
9306 # icc: Command line remark: option '-MP' not supported
9307 if (grep 'ignoring option' conftest.err ||
9308 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9309 am_cv_CXX_dependencies_compiler_type
=$depmode
9310 $as_echo "$as_me:$LINENO: success" >&5
9314 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9315 sed -e 's/^/| /' < conftest.err
>&5
9321 am_cv_CXX_dependencies_compiler_type
=none
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9326 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9327 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9328 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9329 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9339 # These libraries may be used by collect2.
9340 # We may need a special search path to get them linked.
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9342 $as_echo_n "checking for collect2 libraries... " >&6; }
9343 if test "${gcc_cv_collect2_libs+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9347 for libs
in '' -lld -lmld \
9348 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9349 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9370 if ac_fn_cxx_try_link
"$LINENO"; then :
9371 gcc_cv_collect2_libs
="$libs"; break
9373 rm -f core conftest.err conftest.
$ac_objext \
9374 conftest
$ac_exeext conftest.
$ac_ext
9377 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9380 $as_echo "$gcc_cv_collect2_libs" >&6; }
9381 case $gcc_cv_collect2_libs in
9383 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9387 # When building Ada code on Alpha, we need exc_resume which is usually in
9388 # -lexc. So test for it.
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9392 $as_echo_n "checking for library containing exc_resume... " >&6; }
9393 if test "${ac_cv_search_exc_resume+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9396 ac_func_search_save_LIBS
=$LIBS
9397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9400 /* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
9410 return exc_resume ();
9415 for ac_lib
in '' exc
; do
9416 if test -z "$ac_lib"; then
9417 ac_res
="none required"
9420 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9422 if ac_fn_cxx_try_link
"$LINENO"; then :
9423 ac_cv_search_exc_resume
=$ac_res
9425 rm -f core conftest.err conftest.
$ac_objext \
9427 if test "${ac_cv_search_exc_resume+set}" = set; then :
9431 if test "${ac_cv_search_exc_resume+set}" = set; then :
9434 ac_cv_search_exc_resume
=no
9437 LIBS
=$ac_func_search_save_LIBS
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9440 $as_echo "$ac_cv_search_exc_resume" >&6; }
9441 ac_res
=$ac_cv_search_exc_resume
9442 if test "$ac_res" != no
; then :
9443 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9451 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9455 $as_echo_n "checking for library containing kstat_open... " >&6; }
9456 if test "${ac_cv_search_kstat_open+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9459 ac_func_search_save_LIBS
=$LIBS
9460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9463 /* Override any GCC internal prototype to avoid an error.
9464 Use char because int might match the return type of a GCC
9465 builtin and then its argument prototype would still apply. */
9473 return kstat_open ();
9478 for ac_lib
in '' kstat
; do
9479 if test -z "$ac_lib"; then
9480 ac_res
="none required"
9483 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9485 if ac_fn_cxx_try_link
"$LINENO"; then :
9486 ac_cv_search_kstat_open
=$ac_res
9488 rm -f core conftest.err conftest.
$ac_objext \
9490 if test "${ac_cv_search_kstat_open+set}" = set; then :
9494 if test "${ac_cv_search_kstat_open+set}" = set; then :
9497 ac_cv_search_kstat_open
=no
9500 LIBS
=$ac_func_search_save_LIBS
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9503 $as_echo "$ac_cv_search_kstat_open" >&6; }
9504 ac_res
=$ac_cv_search_kstat_open
9505 if test "$ac_res" != no
; then :
9506 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9510 EXTRA_GCC_LIBS
="$LIBS"
9514 # Some systems put ldexp and frexp in libm instead of libc; assume
9515 # they're both in the same place. jcf-dump needs them.
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9519 $as_echo_n "checking for library containing ldexp... " >&6; }
9520 if test "${ac_cv_search_ldexp+set}" = set; then :
9521 $as_echo_n "(cached) " >&6
9523 ac_func_search_save_LIBS
=$LIBS
9524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9527 /* Override any GCC internal prototype to avoid an error.
9528 Use char because int might match the return type of a GCC
9529 builtin and then its argument prototype would still apply. */
9542 for ac_lib
in '' m
; do
9543 if test -z "$ac_lib"; then
9544 ac_res
="none required"
9547 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9549 if ac_fn_cxx_try_link
"$LINENO"; then :
9550 ac_cv_search_ldexp
=$ac_res
9552 rm -f core conftest.err conftest.
$ac_objext \
9554 if test "${ac_cv_search_ldexp+set}" = set; then :
9558 if test "${ac_cv_search_ldexp+set}" = set; then :
9561 ac_cv_search_ldexp
=no
9564 LIBS
=$ac_func_search_save_LIBS
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9567 $as_echo "$ac_cv_search_ldexp" >&6; }
9568 ac_res
=$ac_cv_search_ldexp
9569 if test "$ac_res" != no
; then :
9570 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9578 # Use <inttypes.h> only if it exists,
9579 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9582 $as_echo_n "checking for inttypes.h... " >&6; }
9583 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9586 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 #define __STDC_FORMAT_MACROS
9589 #include <sys/types.h>
9590 #include <inttypes.h>
9602 if ac_fn_cxx_try_compile
"$LINENO"; then :
9603 gcc_cv_header_inttypes_h
=yes
9605 gcc_cv_header_inttypes_h
=no
9607 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9611 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9612 if test $gcc_cv_header_inttypes_h = yes; then
9614 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9620 for ac_func
in times clock kill getrlimit setrlimit atoq \
9621 popen sysconf strsignal getrusage nl_langinfo \
9622 gettimeofday mbstowcs wcswidth mmap setlocale \
9623 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
9625 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9626 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9627 eval as_val
=\$
$as_ac_var
9628 if test "x$as_val" = x
""yes; then :
9629 cat >>confdefs.h
<<_ACEOF
9630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9637 if test x
$ac_cv_func_mbstowcs = xyes
; then
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9639 $as_echo_n "checking whether mbstowcs works... " >&6; }
9640 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9641 $as_echo_n "(cached) " >&6
9643 if test "$cross_compiling" = yes; then :
9644 gcc_cv_func_mbstowcs_works
=yes
9646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9655 if ac_fn_cxx_try_run
"$LINENO"; then :
9656 gcc_cv_func_mbstowcs_works
=yes
9658 gcc_cv_func_mbstowcs_works
=no
9660 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9661 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9666 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9667 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9669 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9674 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9675 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9679 cat >>confdefs.h
<<_ACEOF
9685 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9686 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9690 cat >>confdefs.h
<<_ACEOF
9691 #define caddr_t char *
9698 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9699 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9700 gcc_header_sys_mman_h
=yes
9702 gcc_header_sys_mman_h
=no
9705 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9706 if test "x$ac_cv_func_mmap" = x
""yes; then :
9712 if test "$gcc_header_sys_mman_h" != yes \
9713 ||
test "$gcc_func_mmap" != yes; then
9714 gcc_cv_func_mmap_file
=no
9715 gcc_cv_func_mmap_dev_zero
=no
9716 gcc_cv_func_mmap_anon
=no
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9719 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9720 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9723 # Add a system to this blacklist if
9724 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9725 # memory area containing the same data that you'd get if you applied
9726 # read() to the same fd. The only system known to have a problem here
9727 # is VMS, where text files have record structure.
9730 gcc_cv_func_mmap_file
=no
;;
9732 gcc_cv_func_mmap_file
=yes;;
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9736 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9738 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9739 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9740 $as_echo_n "(cached) " >&6
9742 # Add a system to this blacklist if it has mmap() but /dev/zero
9743 # does not exist, or if mmapping /dev/zero does not give anonymous
9744 # zeroed pages with both the following properties:
9745 # 1. If you map N consecutive pages in with one call, and then
9746 # unmap any subset of those pages, the pages that were not
9747 # explicitly unmapped remain accessible.
9748 # 2. If you map two adjacent blocks of memory and then unmap them
9749 # both at once, they must both go away.
9750 # Systems known to be in this category are Windows (all variants),
9753 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9754 gcc_cv_func_mmap_dev_zero
=no
;;
9756 gcc_cv_func_mmap_dev_zero
=yes;;
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9760 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9762 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9764 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9765 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 #include <sys/types.h>
9771 #include <sys/mman.h>
9774 #ifndef MAP_ANONYMOUS
9775 #define MAP_ANONYMOUS MAP_ANON
9781 int n = MAP_ANONYMOUS;
9786 if ac_fn_cxx_try_compile
"$LINENO"; then :
9787 gcc_cv_decl_map_anon
=yes
9789 gcc_cv_decl_map_anon
=no
9791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9794 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9796 if test $gcc_cv_decl_map_anon = no
; then
9797 gcc_cv_func_mmap_anon
=no
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9800 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9801 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9804 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9805 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9806 # doesn't give anonymous zeroed pages with the same properties listed
9807 # above for use of /dev/zero.
9808 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9810 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9811 gcc_cv_func_mmap_anon
=no
;;
9813 gcc_cv_func_mmap_anon
=yes;;
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9817 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9821 if test $gcc_cv_func_mmap_file = yes; then
9823 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9826 if test $gcc_cv_func_mmap_dev_zero = yes; then
9828 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9831 if test $gcc_cv_func_mmap_anon = yes; then
9833 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9840 # Under VMS, vfork works very differently than on Unix. The standard test
9841 # won't work, and it isn't easily adaptable. It makes more sense to
9843 ac_cv_func_vfork_works
=yes
9846 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9847 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9851 cat >>confdefs.h
<<_ACEOF
9857 for ac_header
in vfork.h
9859 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9860 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9861 cat >>confdefs.h
<<_ACEOF
9862 #define HAVE_VFORK_H 1
9868 for ac_func
in fork vfork
9870 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9871 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9872 eval as_val
=\$
$as_ac_var
9873 if test "x$as_val" = x
""yes; then :
9874 cat >>confdefs.h
<<_ACEOF
9875 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9881 if test "x$ac_cv_func_fork" = xyes
; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9883 $as_echo_n "checking for working fork... " >&6; }
9884 if test "${ac_cv_func_fork_works+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9887 if test "$cross_compiling" = yes; then :
9888 ac_cv_func_fork_works
=cross
9890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892 $ac_includes_default
9897 /* By Ruediger Kuhlmann. */
9904 if ac_fn_cxx_try_run
"$LINENO"; then :
9905 ac_cv_func_fork_works
=yes
9907 ac_cv_func_fork_works
=no
9909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9915 $as_echo "$ac_cv_func_fork_works" >&6; }
9918 ac_cv_func_fork_works
=$ac_cv_func_fork
9920 if test "x$ac_cv_func_fork_works" = xcross
; then
9922 *-*-amigaos* |
*-*-msdosdjgpp*)
9923 # Override, as these systems have only a dummy fork() stub
9924 ac_cv_func_fork_works
=no
9927 ac_cv_func_fork_works
=yes
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9931 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9933 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9934 if test "x$ac_cv_func_vfork" = xyes
; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9936 $as_echo_n "checking for working vfork... " >&6; }
9937 if test "${ac_cv_func_vfork_works+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
9940 if test "$cross_compiling" = yes; then :
9941 ac_cv_func_vfork_works
=cross
9943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9945 /* Thanks to Paul Eggert for this test. */
9946 $ac_includes_default
9947 #include <sys/wait.h>
9951 /* On some sparc systems, changes by the child to local and incoming
9952 argument registers are propagated back to the parent. The compiler
9953 is told about this with #include <vfork.h>, but some compilers
9954 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9955 static variable whose address is put into a register that is
9956 clobbered by the vfork. */
9959 sparc_address_test (int arg)
9961 sparc_address_test (arg) int arg;
9982 pid_t parent = getpid ();
9985 sparc_address_test (0);
9990 /* Here is another test for sparc vfork register problems. This
9991 test uses lots of local variables, at least as many local
9992 variables as main has allocated so far including compiler
9993 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9994 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9995 reuse the register of parent for one of the local variables,
9996 since it will think that parent can't possibly be used any more
9997 in this routine. Assigning to the local variable will thus
9998 munge parent in the parent process. */
10000 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10001 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10002 /* Convince the compiler that p..p7 are live; otherwise, it might
10003 use the same hardware register for all 8 local variables. */
10004 if (p != p1 || p != p2 || p != p3 || p != p4
10005 || p != p5 || p != p6 || p != p7)
10008 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10009 from child file descriptors. If the child closes a descriptor
10010 before it execs or exits, this munges the parent's descriptor
10011 as well. Test for this by closing stdout in the child. */
10012 _exit(close(fileno(stdout)) != 0);
10017 while (wait(&status) != child)
10020 /* Was there some problem with vforking? */
10023 /* Did the child fail? (This shouldn't happen.) */
10026 /* Did the vfork/compiler bug occur? */
10027 || parent != getpid()
10029 /* Did the file descriptor bug occur? */
10030 || fstat(fileno(stdout), &st) != 0
10035 if ac_fn_cxx_try_run
"$LINENO"; then :
10036 ac_cv_func_vfork_works
=yes
10038 ac_cv_func_vfork_works
=no
10040 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10041 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10046 $as_echo "$ac_cv_func_vfork_works" >&6; }
10049 if test "x$ac_cv_func_fork_works" = xcross
; then
10050 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10052 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10055 if test "x$ac_cv_func_vfork_works" = xyes
; then
10057 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10061 $as_echo "#define vfork fork" >>confdefs.h
10064 if test "x$ac_cv_func_fork_works" = xyes
; then
10066 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10072 if test "X$prefix" = "XNONE"; then
10073 acl_final_prefix
="$ac_default_prefix"
10075 acl_final_prefix
="$prefix"
10077 if test "X$exec_prefix" = "XNONE"; then
10078 acl_final_exec_prefix
='${prefix}'
10080 acl_final_exec_prefix
="$exec_prefix"
10082 acl_save_prefix
="$prefix"
10083 prefix
="$acl_final_prefix"
10084 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10085 prefix
="$acl_save_prefix"
10088 # Check whether --with-gnu-ld was given.
10089 if test "${with_gnu_ld+set}" = set; then :
10090 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10095 # Prepare PATH_SEPARATOR.
10096 # The user is always right.
10097 if test "${PATH_SEPARATOR+set}" != set; then
10098 echo "#! /bin/sh" >conf$$.sh
10099 echo "exit 0" >>conf$$.sh
10101 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10109 if test "$GCC" = yes; then
10110 # Check if gcc -print-prog-name=ld gives a path.
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10112 $as_echo_n "checking for ld used by GCC... " >&6; }
10115 # gcc leaves a trailing carriage return which upsets mingw
10116 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10118 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10121 # Accept absolute paths.
10122 [\\/]* |
[A-Za-z
]:[\\/]*)
10123 re_direlt
='/[^/][^/]*/\.\./'
10124 # Canonicalize the path of ld
10125 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10126 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10127 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10129 test -z "$LD" && LD
="$ac_prog"
10132 # If it fails, then pretend we aren't using GCC.
10136 # If it is relative, then search for the first ld in PATH.
10137 with_gnu_ld
=unknown
10140 elif test "$with_gnu_ld" = yes; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10142 $as_echo_n "checking for GNU ld... " >&6; }
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10145 $as_echo_n "checking for non-GNU ld... " >&6; }
10147 if test "${acl_cv_path_LD+set}" = set; then :
10148 $as_echo_n "(cached) " >&6
10150 if test -z "$LD"; then
10151 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10152 for ac_dir
in $PATH; do
10153 test -z "$ac_dir" && ac_dir
=.
10154 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10155 acl_cv_path_LD
="$ac_dir/$ac_prog"
10156 # Check to see if the program is GNU ld. I'd rather use --version,
10157 # but apparently some GNU ld's only accept -v.
10158 # Break only if it was the GNU/non-GNU ld that we prefer.
10159 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10160 test "$with_gnu_ld" != no
&& break
10162 test "$with_gnu_ld" != yes && break
10168 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10172 LD
="$acl_cv_path_LD"
10173 if test -n "$LD"; then
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10175 $as_echo "$LD" >&6; }
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178 $as_echo "no" >&6; }
10180 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10182 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10183 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10184 $as_echo_n "(cached) " >&6
10186 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10187 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10188 acl_cv_prog_gnu_ld
=yes
10190 acl_cv_prog_gnu_ld
=no
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10194 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10195 with_gnu_ld
=$acl_cv_prog_gnu_ld
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10200 $as_echo_n "checking for shared library run path origin... " >&6; }
10201 if test "${acl_cv_rpath+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
10205 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10206 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10208 rm -f .
/conftest.sh
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10213 $as_echo "$acl_cv_rpath" >&6; }
10215 libext
="$acl_cv_libext"
10216 shlibext
="$acl_cv_shlibext"
10217 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10218 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10219 hardcode_direct
="$acl_cv_hardcode_direct"
10220 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10221 # Check whether --enable-rpath was given.
10222 if test "${enable_rpath+set}" = set; then :
10223 enableval
=$enable_rpath; :
10237 acl_save_prefix
="$prefix"
10238 prefix
="$acl_final_prefix"
10239 acl_save_exec_prefix
="$exec_prefix"
10240 exec_prefix
="$acl_final_exec_prefix"
10242 eval additional_includedir
=\"$includedir\"
10243 eval additional_libdir
=\"$libdir\"
10245 exec_prefix
="$acl_save_exec_prefix"
10246 prefix
="$acl_save_prefix"
10249 # Check whether --with-libiconv-prefix was given.
10250 if test "${with_libiconv_prefix+set}" = set; then :
10251 withval
=$with_libiconv_prefix;
10252 if test "X$withval" = "Xno"; then
10255 if test "X$withval" = "X"; then
10257 acl_save_prefix
="$prefix"
10258 prefix
="$acl_final_prefix"
10259 acl_save_exec_prefix
="$exec_prefix"
10260 exec_prefix
="$acl_final_exec_prefix"
10262 eval additional_includedir
=\"$includedir\"
10263 eval additional_libdir
=\"$libdir\"
10265 exec_prefix
="$acl_save_exec_prefix"
10266 prefix
="$acl_save_prefix"
10269 additional_includedir
="$withval/include"
10270 additional_libdir
="$withval/lib"
10281 names_already_handled
=
10282 names_next_round
='iconv '
10283 while test -n "$names_next_round"; do
10284 names_this_round
="$names_next_round"
10286 for name
in $names_this_round; do
10288 for n
in $names_already_handled; do
10289 if test "$n" = "$name"; then
10290 already_handled
=yes
10294 if test -z "$already_handled"; then
10295 names_already_handled
="$names_already_handled $name"
10296 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10297 eval value
=\"\
$HAVE_LIB$uppername\"
10298 if test -n "$value"; then
10299 if test "$value" = yes; then
10300 eval value
=\"\
$LIB$uppername\"
10301 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10302 eval value
=\"\
$LTLIB$uppername\"
10303 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10312 if test $use_additional = yes; then
10313 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10314 found_dir
="$additional_libdir"
10315 found_so
="$additional_libdir/lib$name.$shlibext"
10316 if test -f "$additional_libdir/lib$name.la"; then
10317 found_la
="$additional_libdir/lib$name.la"
10320 if test -f "$additional_libdir/lib$name.$libext"; then
10321 found_dir
="$additional_libdir"
10322 found_a
="$additional_libdir/lib$name.$libext"
10323 if test -f "$additional_libdir/lib$name.la"; then
10324 found_la
="$additional_libdir/lib$name.la"
10329 if test "X$found_dir" = "X"; then
10330 for x
in $LDFLAGS $LTLIBICONV; do
10332 acl_save_prefix
="$prefix"
10333 prefix
="$acl_final_prefix"
10334 acl_save_exec_prefix
="$exec_prefix"
10335 exec_prefix
="$acl_final_exec_prefix"
10337 exec_prefix
="$acl_save_exec_prefix"
10338 prefix
="$acl_save_prefix"
10342 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10343 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10345 found_so
="$dir/lib$name.$shlibext"
10346 if test -f "$dir/lib$name.la"; then
10347 found_la
="$dir/lib$name.la"
10350 if test -f "$dir/lib$name.$libext"; then
10352 found_a
="$dir/lib$name.$libext"
10353 if test -f "$dir/lib$name.la"; then
10354 found_la
="$dir/lib$name.la"
10360 if test "X$found_dir" != "X"; then
10365 if test "X$found_dir" != "X"; then
10366 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10367 if test "X$found_so" != "X"; then
10368 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10369 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10372 for x
in $ltrpathdirs; do
10373 if test "X$x" = "X$found_dir"; then
10378 if test -z "$haveit"; then
10379 ltrpathdirs
="$ltrpathdirs $found_dir"
10381 if test "$hardcode_direct" = yes; then
10382 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10384 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10385 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10387 for x
in $rpathdirs; do
10388 if test "X$x" = "X$found_dir"; then
10393 if test -z "$haveit"; then
10394 rpathdirs
="$rpathdirs $found_dir"
10398 for x
in $LDFLAGS $LIBICONV; do
10400 acl_save_prefix
="$prefix"
10401 prefix
="$acl_final_prefix"
10402 acl_save_exec_prefix
="$exec_prefix"
10403 exec_prefix
="$acl_final_exec_prefix"
10405 exec_prefix
="$acl_save_exec_prefix"
10406 prefix
="$acl_save_prefix"
10408 if test "X$x" = "X-L$found_dir"; then
10413 if test -z "$haveit"; then
10414 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10416 if test "$hardcode_minus_L" != no
; then
10417 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10419 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10425 if test "X$found_a" != "X"; then
10426 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10428 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10431 additional_includedir
=
10432 case "$found_dir" in
10434 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10435 additional_includedir
="$basedir/include"
10438 if test "X$additional_includedir" != "X"; then
10439 if test "X$additional_includedir" != "X/usr/include"; then
10441 if test "X$additional_includedir" = "X/usr/local/include"; then
10442 if test -n "$GCC"; then
10444 linux
*) haveit
=yes;;
10448 if test -z "$haveit"; then
10449 for x
in $CPPFLAGS $INCICONV; do
10451 acl_save_prefix
="$prefix"
10452 prefix
="$acl_final_prefix"
10453 acl_save_exec_prefix
="$exec_prefix"
10454 exec_prefix
="$acl_final_exec_prefix"
10456 exec_prefix
="$acl_save_exec_prefix"
10457 prefix
="$acl_save_prefix"
10459 if test "X$x" = "X-I$additional_includedir"; then
10464 if test -z "$haveit"; then
10465 if test -d "$additional_includedir"; then
10466 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10472 if test -n "$found_la"; then
10473 save_libdir
="$libdir"
10474 case "$found_la" in
10475 */* |
*\\*) .
"$found_la" ;;
10476 *) .
"./$found_la" ;;
10478 libdir
="$save_libdir"
10479 for dep
in $dependency_libs; do
10482 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10483 if test "X$additional_libdir" != "X/usr/lib"; then
10485 if test "X$additional_libdir" = "X/usr/local/lib"; then
10486 if test -n "$GCC"; then
10488 linux
*) haveit
=yes;;
10492 if test -z "$haveit"; then
10494 for x
in $LDFLAGS $LIBICONV; do
10496 acl_save_prefix
="$prefix"
10497 prefix
="$acl_final_prefix"
10498 acl_save_exec_prefix
="$exec_prefix"
10499 exec_prefix
="$acl_final_exec_prefix"
10501 exec_prefix
="$acl_save_exec_prefix"
10502 prefix
="$acl_save_prefix"
10504 if test "X$x" = "X-L$additional_libdir"; then
10509 if test -z "$haveit"; then
10510 if test -d "$additional_libdir"; then
10511 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10515 for x
in $LDFLAGS $LTLIBICONV; do
10517 acl_save_prefix
="$prefix"
10518 prefix
="$acl_final_prefix"
10519 acl_save_exec_prefix
="$exec_prefix"
10520 exec_prefix
="$acl_final_exec_prefix"
10522 exec_prefix
="$acl_save_exec_prefix"
10523 prefix
="$acl_save_prefix"
10525 if test "X$x" = "X-L$additional_libdir"; then
10530 if test -z "$haveit"; then
10531 if test -d "$additional_libdir"; then
10532 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10539 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10540 if test "$enable_rpath" != no
; then
10542 for x
in $rpathdirs; do
10543 if test "X$x" = "X$dir"; then
10548 if test -z "$haveit"; then
10549 rpathdirs
="$rpathdirs $dir"
10552 for x
in $ltrpathdirs; do
10553 if test "X$x" = "X$dir"; then
10558 if test -z "$haveit"; then
10559 ltrpathdirs
="$ltrpathdirs $dir"
10564 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10567 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10570 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10571 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10577 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10578 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10584 if test "X$rpathdirs" != "X"; then
10585 if test -n "$hardcode_libdir_separator"; then
10587 for found_dir
in $rpathdirs; do
10588 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10590 acl_save_libdir
="$libdir"
10592 eval flag
=\"$hardcode_libdir_flag_spec\"
10593 libdir
="$acl_save_libdir"
10594 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10596 for found_dir
in $rpathdirs; do
10597 acl_save_libdir
="$libdir"
10598 libdir
="$found_dir"
10599 eval flag
=\"$hardcode_libdir_flag_spec\"
10600 libdir
="$acl_save_libdir"
10601 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10605 if test "X$ltrpathdirs" != "X"; then
10606 for found_dir
in $ltrpathdirs; do
10607 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10617 am_save_CPPFLAGS
="$CPPFLAGS"
10619 for element
in $INCICONV; do
10621 for x
in $CPPFLAGS; do
10623 acl_save_prefix
="$prefix"
10624 prefix
="$acl_final_prefix"
10625 acl_save_exec_prefix
="$exec_prefix"
10626 exec_prefix
="$acl_final_exec_prefix"
10628 exec_prefix
="$acl_save_exec_prefix"
10629 prefix
="$acl_save_prefix"
10631 if test "X$x" = "X$element"; then
10636 if test -z "$haveit"; then
10637 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10643 $as_echo_n "checking for iconv... " >&6; }
10644 if test "${am_cv_func_iconv+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10648 am_cv_func_iconv
="no, consider installing GNU libiconv"
10650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10652 #include <stdlib.h>
10657 iconv_t cd = iconv_open("","");
10658 iconv(cd,NULL,NULL,NULL,NULL);
10664 if ac_fn_cxx_try_link
"$LINENO"; then :
10665 am_cv_func_iconv
=yes
10667 rm -f core conftest.err conftest.
$ac_objext \
10668 conftest
$ac_exeext conftest.
$ac_ext
10669 if test "$am_cv_func_iconv" != yes; then
10670 am_save_LIBS
="$LIBS"
10671 LIBS
="$LIBS $LIBICONV"
10672 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 #include <stdlib.h>
10679 iconv_t cd = iconv_open("","");
10680 iconv(cd,NULL,NULL,NULL,NULL);
10686 if ac_fn_cxx_try_link
"$LINENO"; then :
10687 am_cv_lib_iconv
=yes
10688 am_cv_func_iconv
=yes
10690 rm -f core conftest.err conftest.
$ac_objext \
10691 conftest
$ac_exeext conftest.
$ac_ext
10692 LIBS
="$am_save_LIBS"
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10697 $as_echo "$am_cv_func_iconv" >&6; }
10698 if test "$am_cv_func_iconv" = yes; then
10700 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10703 if test "$am_cv_lib_iconv" = yes; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10705 $as_echo_n "checking how to link with libiconv... " >&6; }
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10707 $as_echo "$LIBICONV" >&6; }
10709 CPPFLAGS
="$am_save_CPPFLAGS"
10716 if test "$am_cv_func_iconv" = yes; then
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10718 $as_echo_n "checking for iconv declaration... " >&6; }
10719 if test "${am_cv_proto_iconv+set}" = set; then :
10720 $as_echo_n "(cached) " >&6
10723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10726 #include <stdlib.h>
10732 #if defined(__STDC__) || defined(__cplusplus)
10733 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10746 if ac_fn_cxx_try_compile
"$LINENO"; then :
10747 am_cv_proto_iconv_arg1
=""
10749 am_cv_proto_iconv_arg1
="const"
10751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10752 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);"
10755 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10757 }$am_cv_proto_iconv" >&5
10759 }$am_cv_proto_iconv" >&6; }
10761 cat >>confdefs.h
<<_ACEOF
10762 #define ICONV_CONST $am_cv_proto_iconv_arg1
10768 # Until we have in-tree GNU iconv:
10770 if test -f "$LTLIBICONV"; then
10771 LIBICONV_DEP
=$LTLIBICONV
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10777 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10778 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 #include <locale.h>
10792 if ac_fn_cxx_try_link
"$LINENO"; then :
10793 am_cv_val_LC_MESSAGES
=yes
10795 am_cv_val_LC_MESSAGES
=no
10797 rm -f core conftest.err conftest.
$ac_objext \
10798 conftest
$ac_exeext conftest.
$ac_ext
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10801 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10802 if test $am_cv_val_LC_MESSAGES = yes; then
10804 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10811 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10812 if test "${am_cv_langinfo_codeset+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
10815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817 #include <langinfo.h>
10821 char* cs = nl_langinfo(CODESET);
10826 if ac_fn_cxx_try_link
"$LINENO"; then :
10827 am_cv_langinfo_codeset
=yes
10829 am_cv_langinfo_codeset
=no
10831 rm -f core conftest.err conftest.
$ac_objext \
10832 conftest
$ac_exeext conftest.
$ac_ext
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10836 $as_echo "$am_cv_langinfo_codeset" >&6; }
10837 if test $am_cv_langinfo_codeset = yes; then
10839 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10844 # We will need to find libiberty.h and ansidecl.h
10845 saved_CFLAGS
="$CFLAGS"
10846 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10847 saved_CXXFLAGS
="$CXXFLAGS"
10848 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10850 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10851 # normal autoconf function for these. But force definition of
10852 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10853 # basename handling in libiberty.h.
10854 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10855 #undef HAVE_DECL_BASENAME
10856 #define HAVE_DECL_BASENAME 1
10857 #include \"ansidecl.h\"
10858 #include \"system.h\"
10860 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10866 cat >>confdefs.h
<<_ACEOF
10867 #define HAVE_DECL_BASENAME $ac_have_decl
10869 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10870 #undef HAVE_DECL_BASENAME
10871 #define HAVE_DECL_BASENAME 1
10872 #include \"ansidecl.h\"
10873 #include \"system.h\"
10875 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10881 cat >>confdefs.h
<<_ACEOF
10882 #define HAVE_DECL_STRSTR $ac_have_decl
10886 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10887 madvise stpcpy strnlen strsignal strverscmp \
10888 strtol strtoul strtoll strtoull \
10889 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10890 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
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"
10910 char *(*pfn) = (char *(*)) $ac_func ;
10916 if ac_fn_cxx_try_compile
"$LINENO"; then :
10917 eval "gcc_cv_have_decl_$ac_func=yes"
10919 eval "gcc_cv_have_decl_$ac_func=no"
10921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10924 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10926 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10927 #define $ac_tr_decl 1
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10933 #define $ac_tr_decl 0
10941 for ac_func
in getrlimit setrlimit getrusage
10943 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10945 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10946 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10947 $as_echo_n "(cached) " >&6
10949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10952 #define $ac_tr_decl 1
10954 #include "ansidecl.h"
10955 #include "system.h"
10956 #ifdef HAVE_SYS_RESOURCE_H
10957 #include <sys/resource.h>
10965 char *(*pfn) = (char *(*)) $ac_func ;
10971 if ac_fn_cxx_try_compile
"$LINENO"; then :
10972 eval "gcc_cv_have_decl_$ac_func=yes"
10974 eval "gcc_cv_have_decl_$ac_func=no"
10976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10979 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10981 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10982 #define $ac_tr_decl 1
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10987 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10988 #define $ac_tr_decl 0
10996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 #include "ansidecl.h"
11000 #include "system.h"
11001 #ifdef HAVE_SYS_RESOURCE_H
11002 #include <sys/resource.h>
11013 if ac_fn_cxx_try_compile
"$LINENO"; then :
11017 $as_echo "#define rlim_t long" >>confdefs.h
11020 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11022 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11023 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11024 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11025 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11026 for ac_func
in ldgetname
11028 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11030 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11031 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11032 $as_echo_n "(cached) " >&6
11034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11037 #define $ac_tr_decl 1
11039 #include "ansidecl.h"
11040 #include "system.h"
11041 #ifdef HAVE_LDFCN_H
11052 char *(*pfn) = (char *(*)) $ac_func ;
11058 if ac_fn_cxx_try_compile
"$LINENO"; then :
11059 eval "gcc_cv_have_decl_$ac_func=yes"
11061 eval "gcc_cv_have_decl_$ac_func=no"
11063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11066 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11068 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11069 #define $ac_tr_decl 1
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11075 #define $ac_tr_decl 0
11083 for ac_func
in times
11085 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11087 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11088 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11089 $as_echo_n "(cached) " >&6
11091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11094 #define $ac_tr_decl 1
11096 #include "ansidecl.h"
11097 #include "system.h"
11098 #ifdef HAVE_SYS_TIMES_H
11099 #include <sys/times.h>
11107 char *(*pfn) = (char *(*)) $ac_func ;
11113 if ac_fn_cxx_try_compile
"$LINENO"; then :
11114 eval "gcc_cv_have_decl_$ac_func=yes"
11116 eval "gcc_cv_have_decl_$ac_func=no"
11118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11121 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11123 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11124 #define $ac_tr_decl 1
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11130 #define $ac_tr_decl 0
11138 for ac_func
in sigaltstack
11140 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11142 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11143 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11144 $as_echo_n "(cached) " >&6
11146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11149 #define $ac_tr_decl 1
11151 #include "ansidecl.h"
11152 #include "system.h"
11153 #include <signal.h>
11160 char *(*pfn) = (char *(*)) $ac_func ;
11166 if ac_fn_cxx_try_compile
"$LINENO"; then :
11167 eval "gcc_cv_have_decl_$ac_func=yes"
11169 eval "gcc_cv_have_decl_$ac_func=no"
11171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11174 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11176 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11177 #define $ac_tr_decl 1
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11183 #define $ac_tr_decl 0
11191 # More time-related stuff.
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11193 $as_echo_n "checking for struct tms... " >&6; }
11194 if test "${ac_cv_struct_tms+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
11198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h. */
11201 #include "ansidecl.h"
11202 #include "system.h"
11203 #ifdef HAVE_SYS_TIMES_H
11204 #include <sys/times.h>
11215 if ac_fn_cxx_try_compile
"$LINENO"; then :
11216 ac_cv_struct_tms
=yes
11218 ac_cv_struct_tms
=no
11220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11223 $as_echo "$ac_cv_struct_tms" >&6; }
11224 if test $ac_cv_struct_tms = yes; then
11226 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11230 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11231 # revisit after autoconf 2.50.
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11233 $as_echo_n "checking for clock_t... " >&6; }
11234 if test "${gcc_cv_type_clock_t+set}" = set; then :
11235 $as_echo_n "(cached) " >&6
11238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11241 #include "ansidecl.h"
11242 #include "system.h"
11252 if ac_fn_cxx_try_compile
"$LINENO"; then :
11253 gcc_cv_type_clock_t
=yes
11255 gcc_cv_type_clock_t
=no
11257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11260 $as_echo "$gcc_cv_type_clock_t" >&6; }
11261 if test $gcc_cv_type_clock_t = yes; then
11263 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11267 # Check if F_SETLKW is supported by fcntl.
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11269 $as_echo_n "checking for F_SETLKW... " >&6; }
11270 if test "${ac_cv_f_setlkw+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11287 return fcntl (1, F_SETLKW, &fl);
11292 if ac_fn_cxx_try_compile
"$LINENO"; then :
11297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11300 $as_echo "$ac_cv_f_setlkw" >&6; }
11301 if test $ac_cv_f_setlkw = yes; then
11303 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11307 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11308 CFLAGS
="$saved_CFLAGS"
11309 CXXFLAGS
="$saved_CXXFLAGS"
11311 # mkdir takes a single argument on some systems.
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11313 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11314 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11315 $as_echo_n "(cached) " >&6
11317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11320 #include <sys/types.h>
11321 #ifdef HAVE_SYS_STAT_H
11322 # include <sys/stat.h>
11324 #ifdef HAVE_UNISTD_H
11325 # include <unistd.h>
11327 #ifdef HAVE_DIRECT_H
11328 # include <direct.h>
11338 if ac_fn_cxx_try_compile
"$LINENO"; then :
11339 gcc_cv_mkdir_takes_one_arg
=no
11341 gcc_cv_mkdir_takes_one_arg
=yes
11343 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11346 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11347 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11349 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11360 # With Setjmp/Longjmp based exception handling.
11361 # Check whether --enable-sjlj-exceptions was given.
11362 if test "${enable_sjlj_exceptions+set}" = set; then :
11363 enableval
=$enable_sjlj_exceptions; case $target in
11365 if test $enableval != yes; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11367 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11372 force_sjlj_exceptions
=yes
11376 force_sjlj_exceptions
=yes
11380 force_sjlj_exceptions
=yes
11384 force_sjlj_exceptions
=no
11389 if test $force_sjlj_exceptions = yes; then
11390 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11392 cat >>confdefs.h
<<_ACEOF
11393 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11398 # --------------------------------------------------------
11399 # Build, host, and target specific configuration fragments
11400 # --------------------------------------------------------
11402 # Collect build-machine-specific information.
11403 .
${srcdir}/config.build
11405 # Collect host-machine-specific information.
11406 .
${srcdir}/config.
host
11410 # Collect target-machine-specific information.
11411 .
${srcdir}/config.gcc
11413 extra_objs
="${host_extra_objs} ${extra_objs}"
11414 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11416 # Default the target-machine variables that were not explicitly set.
11417 if test x
"$tm_file" = x
11418 then tm_file
=$cpu_type/$cpu_type.h
; fi
11420 if test x
"$extra_headers" = x
11421 then extra_headers
=; fi
11423 if test x
$md_file = x
11424 then md_file
=$cpu_type/$cpu_type.md
; fi
11426 if test x
$out_file = x
11427 then out_file
=$cpu_type/$cpu_type.c
; fi
11429 if test x
"$tmake_file" = x
11430 then tmake_file
=$cpu_type/t-
$cpu_type
11433 # Support --enable-initfini-array.
11434 if test x
$enable_initfini_array != xno
; then
11435 tm_file
="${tm_file} initfini-array.h"
11438 if test x
"$dwarf2" = xyes
11439 then tm_file
="$tm_file tm-dwarf2.h"
11442 # Say what files are being used for the output code and MD file.
11443 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11444 echo "Using \`$srcdir/config/$md_file' as machine description file."
11446 # If any of the xm_file variables contain nonexistent files, warn
11447 # about them and drop them.
11450 for x
in $build_xm_file; do
11451 if test -f $srcdir/config
/$x
11453 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11454 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11457 build_xm_file
="$bx"
11460 for x
in $host_xm_file; do
11461 if test -f $srcdir/config
/$x
11463 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11464 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11470 for x
in $xm_file; do
11471 if test -f $srcdir/config
/$x
11473 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11474 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11480 for f
in $tm_file; do
11483 if test $count = ax
; then
11484 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11486 echo "Using the following target machine macro files:"
11487 for f
in $tm_file; do
11488 echo " $srcdir/config/$f"
11492 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11494 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11498 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11500 cat >>confdefs.h
<<_ACEOF
11501 #define HAVE_GNU_LD $gnu_ld_bool
11505 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11507 cat >>confdefs.h
<<_ACEOF
11508 #define HAVE_GNU_AS $gnu_as_bool
11513 for f
in $host_xm_file; do
11516 if test $count = a
; then
11518 elif test $count = ax
; then
11519 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11521 echo "Using the following host machine macro files:"
11522 for f
in $host_xm_file; do
11523 echo " $srcdir/config/$f"
11526 echo "Using ${out_host_hook_obj} for host machine hooks."
11528 if test "$host_xm_file" != "$build_xm_file"; then
11530 for f
in $build_xm_file; do
11533 if test $count = a
; then
11535 elif test $count = ax
; then
11536 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11538 echo "Using the following build machine macro files:"
11539 for f
in $build_xm_file; do
11540 echo " $srcdir/config/$f"
11545 if test -n "$configured_native_system_header_dir"; then
11546 native_system_header_dir
=$configured_native_system_header_dir
11548 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11552 powerpc
*-*-darwin*)
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11554 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11555 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
11558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 #include <sys/cdefs.h>
11562 #include <sys/signal.h>
11563 #include <ucontext.h>
11564 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11567 if ac_fn_cxx_try_compile
"$LINENO"; then :
11568 gcc_cv_mcontext_underscores
=no
11570 gcc_cv_mcontext_underscores
=yes
11572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11575 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11576 if test $gcc_cv_mcontext_underscores = yes; then
11578 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11588 # Check if a valid thread package
11589 case ${enable_threads} in
11592 target_thread_file
='single'
11596 target_thread_file
='single'
11598 aix | dce | lynx | mipssde | posix | rtems | \
11599 single | tpf | vxworks | win32
)
11600 target_thread_file
=${enable_threads}
11603 echo "${enable_threads} is an unknown thread package" 1>&2
11608 if test x
${thread_file} = x
; then
11609 # No thread file set by target-specific clauses in config.gcc,
11610 # so use file chosen by default logic above
11611 thread_file
=${target_thread_file}
11619 if test x
$enable___cxa_atexit = xyes || \
11620 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11621 if test x
$host = x
$target; then
11623 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11624 # keyed to flag_use_cxa_atexit
11632 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11633 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11636 echo "__cxa_atexit can't be enabled on this target"
11642 # We can't check for __cxa_atexit when building a cross, so assume
11646 if test x
$use_cxa_atexit = xyes
; then
11648 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11653 # Look for a file containing extra machine modes.
11654 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11655 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11658 cat >>confdefs.h
<<_ACEOF
11659 #define EXTRA_MODES_FILE "config/$extra_modes"
11664 # Convert extra_options into a form suitable for Makefile use.
11667 for f
in $extra_options; do
11668 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11669 all_opt_files
="$all_opt_files $srcdir/config/$f"
11673 # auto-host.h is the file containing items generated by autoconf and is
11674 # the first file included by config.h.
11675 # If host=build, it is correct to have bconfig include auto-host.h
11676 # as well. If host!=build, we are in error and need to do more
11677 # work to find out the build config parameters.
11678 if test x
$host = x
$build
11680 build_auto
=auto-host.h
11682 # We create a subdir, then run autoconf in the subdir.
11683 # To prevent recursion we set host and build for the new
11684 # invocation of configure to the build for this invocation
11691 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11692 *) realsrcdir
=..
/${srcdir};;
11694 # Clearing GMPINC is necessary to prevent host headers being
11695 # used by the build compiler. Defining GENERATOR_FILE stops
11696 # system.h from including gmp.h.
11697 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11698 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11699 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11700 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11701 ${realsrcdir}/configure \
11702 --enable-languages=${enable_languages-all} \
11703 --target=$target_alias --host=$build_alias --build=$build_alias
11705 # We just finished tests for the build machine, so rename
11706 # the file auto-build.h in the gcc directory.
11707 mv auto-host.h ..
/auto-build.h
11710 build_auto
=auto-build.h
11714 tm_file
="${tm_file} defaults.h"
11715 tm_p_file
="${tm_p_file} tm-preds.h"
11716 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11717 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11718 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11719 # put this back in temporarily.
11720 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11726 # Compile in configure arguments.
11727 if test -f configargs.h
; then
11728 # Being re-configured.
11729 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11730 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11732 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11735 # Double all backslashes and backslash all quotes to turn
11736 # gcc_config_arguments into a C string.
11737 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11738 $gcc_config_arguments
11740 gcc_config_arguments_str
=`cat conftest.out`
11743 cat > configargs.h
<<EOF
11744 /* Generated automatically. */
11745 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11746 static const char thread_model[] = "$thread_file";
11748 static const struct {
11749 const char *name, *value;
11750 } configure_default_options[] = $configure_default_options;
11753 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11754 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11755 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11756 if test -f $srcdir/REVISION
; then
11757 gcc_REVISION
=`cat $srcdir/REVISION`
11761 cat > plugin-version.h
<<EOF
11762 #include "configargs.h"
11764 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11765 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11766 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11767 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11769 static char basever[] = "$gcc_BASEVER";
11770 static char datestamp[] = "$gcc_DATESTAMP";
11771 static char devphase[] = "$gcc_DEVPHASE";
11772 static char revision[] = "$gcc_REVISION";
11774 /* FIXME plugins: We should make the version information more precise.
11775 One way to do is to add a checksum. */
11777 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11778 devphase, revision,
11779 configuration_arguments};
11782 # Internationalization
11783 # If we haven't got the data from the intl directory,
11784 # assume NLS is disabled.
11793 if test -f ..
/intl
/config.intl
; then
11794 . ..
/intl
/config.intl
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11797 $as_echo_n "checking whether NLS is requested... " >&6; }
11798 if test x
"$USE_NLS" != xyes
; then
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11803 $as_echo "yes" >&6; }
11805 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11809 $as_echo_n "checking for catalogs to be installed... " >&6; }
11810 # Look for .po and .gmo files in the source directory.
11813 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11814 # If there aren't any .gmo files the shell will give us the
11815 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11817 case "$cat" in *\
**)
11820 # The quadruple backslash is collapsed to a double backslash
11821 # by the backticks, then collapsed again by the double quotes,
11822 # leaving us with one backslash in the sed expression (right
11823 # before the dot that mustn't act as a wildcard).
11824 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11825 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11826 # The user is allowed to set LINGUAS to a list of languages to
11827 # install catalogs for. If it's empty that means "all of them."
11828 if test "x$LINGUAS" = x
; then
11829 CATALOGS
="$CATALOGS $cat"
11830 XLINGUAS
="$XLINGUAS $lang"
11832 case "$LINGUAS" in *$lang*)
11833 CATALOGS
="$CATALOGS $cat"
11834 XLINGUAS
="$XLINGUAS $lang"
11839 LINGUAS
="$XLINGUAS"
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11841 $as_echo "$LINGUAS" >&6; }
11854 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11855 # -liconv on the link line twice.
11856 case "$LIBINTL" in *$LIBICONV*)
11860 # Check whether --enable-secureplt was given.
11861 if test "${enable_secureplt+set}" = set; then :
11862 enableval
=$enable_secureplt;
11866 # Check whether --enable-leading-mingw64-underscores was given.
11867 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11868 enableval
=$enable_leading_mingw64_underscores;
11871 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11873 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11877 # Check whether --enable-cld was given.
11878 if test "${enable_cld+set}" = set; then :
11879 enableval
=$enable_cld;
11885 # Check whether --enable-frame-pointer was given.
11886 if test "${enable_frame_pointer+set}" = set; then :
11887 enableval
=$enable_frame_pointer;
11891 linux
* | darwin
[8912]*)
11892 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11894 enable_frame_pointer
=no
11897 enable_frame_pointer
=yes
11904 # Windows32 Registry support for specifying GCC installation paths.
11905 # Check whether --enable-win32-registry was given.
11906 if test "${enable_win32_registry+set}" = set; then :
11907 enableval
=$enable_win32_registry;
11912 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11913 if test "x$enable_win32_registry" != xno
; then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11915 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11916 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
11919 ac_func_search_save_LIBS
=$LIBS
11920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11929 char RegOpenKeyExA ();
11933 return RegOpenKeyExA ();
11938 for ac_lib
in '' advapi32
; do
11939 if test -z "$ac_lib"; then
11940 ac_res
="none required"
11943 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11945 if ac_fn_cxx_try_link
"$LINENO"; then :
11946 ac_cv_search_RegOpenKeyExA
=$ac_res
11948 rm -f core conftest.err conftest.
$ac_objext \
11950 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11954 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11957 ac_cv_search_RegOpenKeyExA
=no
11959 rm conftest.
$ac_ext
11960 LIBS
=$ac_func_search_save_LIBS
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11963 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11964 ac_res
=$ac_cv_search_RegOpenKeyExA
11965 if test "$ac_res" != no
; then :
11966 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11969 enable_win32_registry
=no
11974 if test "x$enable_win32_registry" != xno
; then
11976 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11979 if test "x$enable_win32_registry" != xyes \
11980 && test "x$enable_win32_registry" != x
; then
11982 cat >>confdefs.h
<<_ACEOF
11983 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11991 # Get an absolute path to the GCC top-level source directory
11992 holddir
=`${PWDCMD-pwd}`
11994 topdir
=`${PWDCMD-pwd}`
11997 # Conditionalize the makefile for this host machine.
11999 for f
in ${host_xmake_file}
12001 if test -f ${srcdir}/config
/$f
12003 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12007 # Conditionalize the makefile for this target machine.
12009 for f
in ${tmake_file}
12011 if test -f ${srcdir}/config
/$f
12013 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12016 tmake_file
="${tmake_file_}"
12018 out_object_file
=`basename $out_file .c`.o
12019 common_out_object_file
=`basename $common_out_file .c`.o
12021 tm_file_list
="options.h"
12022 tm_include_list
="options.h insn-constants.h"
12023 for f
in $tm_file; do
12026 f
=`echo $f | sed 's/^..//'`
12027 tm_file_list
="${tm_file_list} $f"
12028 tm_include_list
="${tm_include_list} $f"
12031 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12032 tm_include_list
="${tm_include_list} $f"
12035 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12036 tm_include_list
="${tm_include_list} config/$f"
12043 for f
in $tm_p_file; do
12046 tm_p_file_list
="${tm_p_file_list} $f"
12047 tm_p_include_list
="${tm_p_include_list} $f"
12050 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12051 tm_p_include_list
="${tm_p_include_list} config/$f"
12057 for f
in $xm_file; do
12060 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12061 xm_include_list
="${xm_include_list} $f"
12064 xm_file_list
="${xm_file_list} $f"
12065 xm_include_list
="${xm_include_list} $f"
12068 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12069 xm_include_list
="${xm_include_list} config/$f"
12075 host_xm_include_list
=
12076 for f
in $host_xm_file; do
12079 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12080 host_xm_include_list
="${host_xm_include_list} $f"
12083 host_xm_file_list
="${host_xm_file_list} $f"
12084 host_xm_include_list
="${host_xm_include_list} $f"
12087 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12088 host_xm_include_list
="${host_xm_include_list} config/$f"
12093 build_xm_file_list
=
12094 for f
in $build_xm_file; do
12097 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12098 build_xm_include_list
="${build_xm_include_list} $f"
12100 auto-build.h | auto-host.h
)
12101 build_xm_file_list
="${build_xm_file_list} $f"
12102 build_xm_include_list
="${build_xm_include_list} $f"
12105 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12106 build_xm_include_list
="${build_xm_include_list} config/$f"
12111 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12112 # cross-compiler which does not use the native headers and libraries.
12113 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12116 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12118 if test "x$with_build_sysroot" != x
; then
12119 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12121 # This value is used, even on a native system, because
12122 # CROSS_SYSTEM_HEADER_DIR is just
12123 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12124 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12127 if test x
$host != x
$target
12129 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12131 SYSTEM_HEADER_DIR
=$build_system_header_dir
12132 case "$host","$target" in
12133 # Darwin crosses can use the host system's libraries and headers,
12134 # because of the fat library support. Of course, it must be the
12135 # same version of Darwin on both sides. Allow the user to
12136 # just say --target=foo-darwin without a version number to mean
12137 # "the version on this system".
12138 *-*-darwin*,*-*-darwin*)
12139 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12140 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12141 if test $hostos = $targetos -o $targetos = darwin
; then
12143 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12148 i?
86-*-*,x86_64-
*-* \
12149 | powerpc
*-*-*,powerpc64
*-*-*)
12150 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12155 if test "x$with_headers" = x
; then
12162 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12163 SYSTEM_HEADER_DIR
=$build_system_header_dir
12166 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12167 if test "x$with_headers" != x
; then
12168 target_header_dir
=$with_headers
12169 elif test "x$with_sysroot" = x
; then
12170 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12171 elif test "x$with_build_sysroot" != "x"; then
12172 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12173 elif test "x$with_sysroot" = xyes
; then
12174 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12176 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12179 target_header_dir
=${native_system_header_dir}
12182 # If this is a cross-compiler that does not
12183 # have its own set of headers then define
12186 # If this is using newlib, without having the headers available now,
12187 # then define inhibit_libc in LIBGCC2_CFLAGS.
12188 # This prevents libgcc2 from containing any code which requires libc
12190 : ${inhibit_libc=false}
12191 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12192 test x
$with_newlib = xyes
; } &&
12193 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12198 # When building gcc with a cross-compiler, we need to adjust things so
12199 # that the generator programs are still built with the native compiler.
12200 # Also, we cannot run fixincludes.
12202 # These are the normal (build=host) settings:
12203 CC_FOR_BUILD
='$(CC)'
12204 CXX_FOR_BUILD
='$(CXX)'
12205 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12206 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12207 BUILD_LDFLAGS
='$(LDFLAGS)'
12208 STMP_FIXINC
=stmp-fixinc
12210 # And these apply if build != host, or we are generating coverage data
12211 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12213 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12214 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12215 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12218 # Expand extra_headers to include complete path.
12219 # This substitutes for lots of t-* files.
12220 extra_headers_list
=
12221 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12222 for file in ${extra_headers} ; do
12223 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12226 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12227 if test x
"$use_gcc_tgmath" = xyes
12228 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12231 # Define collect2 in Makefile.
12232 case $host_can_use_collect2 in
12234 *) collect2
='collect2$(exeext)' ;;
12238 # Add a definition of USE_COLLECT2 if system wants one.
12239 case $use_collect2 in
12240 no
) use_collect2
= ;;
12243 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12244 xm_defines
="${xm_defines} USE_COLLECT2"
12245 case $host_can_use_collect2 in
12247 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12254 cat >>confdefs.h
<<_ACEOF
12255 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12259 # ---------------------------
12260 # Assembler & linker features
12261 # ---------------------------
12263 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12264 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12265 # However when ld-new is first executed from the build tree, libtool will
12266 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12267 # to the build tree. While doing this we need to use the previous-stage
12268 # linker, or we have an infinite loop. The presence of a shell script as
12269 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12270 # the gcc/collect-ld script. So we need to know how libtool works, or
12271 # exec-tool will fail.
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12277 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12282 macro_version
='2.2.7a'
12283 macro_revision
='1.3134'
12297 ltmain
="$ac_aux_dir/ltmain.sh"
12299 # Backslashify metacharacters that are still active within
12300 # double-quoted strings.
12301 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12303 # Same as above, but do not quote variable references.
12304 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12306 # Sed substitution to delay expansion of an escaped shell variable in a
12307 # double_quote_subst'ed string.
12308 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12310 # Sed substitution to delay expansion of an escaped single quote.
12311 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12313 # Sed substitution to avoid accidental globbing in evaled expressions
12314 no_glob_subst
='s/\*/\\\*/g'
12316 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12317 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12318 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12321 $as_echo_n "checking how to print strings... " >&6; }
12322 # Test print first, because it will be a builtin if present.
12323 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12324 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12326 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12329 # Use this function as a fallback that always works.
12330 func_fallback_echo ()
12332 eval 'cat <<_LTECHO_EOF
12336 ECHO='func_fallback_echo
'
12339 # func_echo_all arg...
12340 # Invoke $ECHO with all args, space-separated.
12347 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12348 $as_echo "printf" >&6; } ;;
12349 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12350 $as_echo "print -r" >&6; } ;;
12351 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12352 $as_echo "cat" >&6; } ;;
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12369 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12370 if test "${ac_cv_path_SED+set}" = set; then :
12371 $as_echo_n "(cached) " >&6
12373 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12374 for ac_i in 1 2 3 4 5 6 7; do
12375 ac_script="$ac_script$as_nl$ac_script"
12377 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12378 { ac_script=; unset ac_script;}
12379 if test -z "$SED"; then
12380 ac_path_SED_found=false
12381 # Loop through the user's path and
test for each of PROGNAME-LIST
12382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12383 for as_dir
in $PATH
12386 test -z "$as_dir" && as_dir
=.
12387 for ac_prog
in sed gsed
; do
12388 for ac_exec_ext
in '' $ac_executable_extensions; do
12389 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12390 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12391 # Check for GNU ac_path_SED and select it if it is found.
12392 # Check for GNU $ac_path_SED
12393 case `"$ac_path_SED" --version 2>&1` in
12395 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12398 $as_echo_n 0123456789 >"conftest.in"
12401 cat "conftest.in" "conftest.in" >"conftest.tmp"
12402 mv "conftest.tmp" "conftest.in"
12403 cp "conftest.in" "conftest.nl"
12404 $as_echo '' >> "conftest.nl"
12405 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12406 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12407 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12408 if test $ac_count -gt ${ac_path_SED_max-0}; then
12409 # Best one so far, save it but keep looking for a better one
12410 ac_cv_path_SED
="$ac_path_SED"
12411 ac_path_SED_max
=$ac_count
12413 # 10*(2^10) chars as input seems more than enough
12414 test $ac_count -gt 10 && break
12416 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12419 $ac_path_SED_found && break 3
12424 if test -z "$ac_cv_path_SED"; then
12425 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12428 ac_cv_path_SED
=$SED
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12433 $as_echo "$ac_cv_path_SED" >&6; }
12434 SED
="$ac_cv_path_SED"
12437 test -z "$SED" && SED
=sed
12438 Xsed
="$SED -e 1s/^X//"
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12451 $as_echo_n "checking for fgrep... " >&6; }
12452 if test "${ac_cv_path_FGREP+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12455 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12456 then ac_cv_path_FGREP
="$GREP -F"
12458 if test -z "$FGREP"; then
12459 ac_path_FGREP_found
=false
12460 # Loop through the user's path and test for each of PROGNAME-LIST
12461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12462 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12465 test -z "$as_dir" && as_dir
=.
12466 for ac_prog
in fgrep
; do
12467 for ac_exec_ext
in '' $ac_executable_extensions; do
12468 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12469 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12470 # Check for GNU ac_path_FGREP and select it if it is found.
12471 # Check for GNU $ac_path_FGREP
12472 case `"$ac_path_FGREP" --version 2>&1` in
12474 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12477 $as_echo_n 0123456789 >"conftest.in"
12480 cat "conftest.in" "conftest.in" >"conftest.tmp"
12481 mv "conftest.tmp" "conftest.in"
12482 cp "conftest.in" "conftest.nl"
12483 $as_echo 'FGREP' >> "conftest.nl"
12484 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12485 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12486 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12487 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12488 # Best one so far, save it but keep looking for a better one
12489 ac_cv_path_FGREP
="$ac_path_FGREP"
12490 ac_path_FGREP_max
=$ac_count
12492 # 10*(2^10) chars as input seems more than enough
12493 test $ac_count -gt 10 && break
12495 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12498 $ac_path_FGREP_found && break 3
12503 if test -z "$ac_cv_path_FGREP"; then
12504 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12507 ac_cv_path_FGREP
=$FGREP
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12513 $as_echo "$ac_cv_path_FGREP" >&6; }
12514 FGREP
="$ac_cv_path_FGREP"
12517 test -z "$GREP" && GREP
=grep
12537 # Check whether --with-gnu-ld was given.
12538 if test "${with_gnu_ld+set}" = set; then :
12539 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12545 if test "$GCC" = yes; then
12546 # Check if gcc -print-prog-name=ld gives a path.
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12548 $as_echo_n "checking for ld used by $CC... " >&6; }
12551 # gcc leaves a trailing carriage return which upsets mingw
12552 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12554 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12557 # Accept absolute paths.
12559 re_direlt
='/[^/][^/]*/\.\./'
12560 # Canonicalize the pathname of ld
12561 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12562 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12563 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12565 test -z "$LD" && LD
="$ac_prog"
12568 # If it fails, then pretend we aren't using GCC.
12572 # If it is relative, then search for the first ld in PATH.
12573 with_gnu_ld
=unknown
12576 elif test "$with_gnu_ld" = yes; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12578 $as_echo_n "checking for GNU ld... " >&6; }
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12581 $as_echo_n "checking for non-GNU ld... " >&6; }
12583 if test "${lt_cv_path_LD+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12586 if test -z "$LD"; then
12587 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12588 for ac_dir
in $PATH; do
12590 test -z "$ac_dir" && ac_dir
=.
12591 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12592 lt_cv_path_LD
="$ac_dir/$ac_prog"
12593 # Check to see if the program is GNU ld. I'd rather use --version,
12594 # but apparently some variants of GNU ld only accept -v.
12595 # Break only if it was the GNU/non-GNU ld that we prefer.
12596 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12597 *GNU
* |
*'with BFD'*)
12598 test "$with_gnu_ld" != no
&& break
12601 test "$with_gnu_ld" != yes && break
12608 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12612 LD
="$lt_cv_path_LD"
12613 if test -n "$LD"; then
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12615 $as_echo "$LD" >&6; }
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12618 $as_echo "no" >&6; }
12620 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12622 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12623 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12624 $as_echo_n "(cached) " >&6
12626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12627 case `$LD -v 2>&1 </dev/null` in
12628 *GNU
* |
*'with BFD'*)
12629 lt_cv_prog_gnu_ld
=yes
12632 lt_cv_prog_gnu_ld
=no
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12637 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12638 with_gnu_ld
=$lt_cv_prog_gnu_ld
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12649 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12650 if test "${lt_cv_path_NM+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
12653 if test -n "$NM"; then
12654 # Let the user override the test.
12655 lt_cv_path_NM
="$NM"
12657 lt_nm_to_check
="${ac_tool_prefix}nm"
12658 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12659 lt_nm_to_check
="$lt_nm_to_check nm"
12661 for lt_tmp_nm
in $lt_nm_to_check; do
12662 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12663 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12665 test -z "$ac_dir" && ac_dir
=.
12666 tmp_nm
="$ac_dir/$lt_tmp_nm"
12667 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12668 # Check to see if the nm accepts a BSD-compat flag.
12669 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12670 # nm: unknown option "B" ignored
12671 # Tru64's nm complains that /dev/null is an invalid object file
12672 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12673 */dev
/null
* |
*'Invalid file or object type'*)
12674 lt_cv_path_NM
="$tmp_nm -B"
12678 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12680 lt_cv_path_NM
="$tmp_nm -p"
12684 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12685 continue # so that we can try to find one that supports BSD flags
12694 : ${lt_cv_path_NM=no}
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12698 $as_echo "$lt_cv_path_NM" >&6; }
12699 if test "$lt_cv_path_NM" != "no"; then
12700 NM
="$lt_cv_path_NM"
12702 # Didn't find any BSD compatible name lister, look for dumpbin.
12703 if test -n "$DUMPBIN"; then :
12704 # Let the user override the test.
12706 if test -n "$ac_tool_prefix"; then
12707 for ac_prog
in dumpbin
"link -dump"
12709 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12710 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712 $as_echo_n "checking for $ac_word... " >&6; }
12713 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12714 $as_echo_n "(cached) " >&6
12716 if test -n "$DUMPBIN"; then
12717 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12720 for as_dir
in $PATH
12723 test -z "$as_dir" && as_dir
=.
12724 for ac_exec_ext
in '' $ac_executable_extensions; do
12725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12726 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12736 DUMPBIN
=$ac_cv_prog_DUMPBIN
12737 if test -n "$DUMPBIN"; then
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12739 $as_echo "$DUMPBIN" >&6; }
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742 $as_echo "no" >&6; }
12746 test -n "$DUMPBIN" && break
12749 if test -z "$DUMPBIN"; then
12750 ac_ct_DUMPBIN
=$DUMPBIN
12751 for ac_prog
in dumpbin
"link -dump"
12753 # Extract the first word of "$ac_prog", so it can be a program name with args.
12754 set dummy
$ac_prog; ac_word
=$2
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756 $as_echo_n "checking for $ac_word... " >&6; }
12757 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12758 $as_echo_n "(cached) " >&6
12760 if test -n "$ac_ct_DUMPBIN"; then
12761 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12764 for as_dir
in $PATH
12767 test -z "$as_dir" && as_dir
=.
12768 for ac_exec_ext
in '' $ac_executable_extensions; do
12769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12770 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12781 if test -n "$ac_ct_DUMPBIN"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12783 $as_echo "$ac_ct_DUMPBIN" >&6; }
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12790 test -n "$ac_ct_DUMPBIN" && break
12793 if test "x$ac_ct_DUMPBIN" = x
; then
12796 case $cross_compiling:$ac_tool_warned in
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12800 ac_tool_warned
=yes ;;
12802 DUMPBIN
=$ac_ct_DUMPBIN
12806 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12808 DUMPBIN
="$DUMPBIN -symbols"
12816 if test "$DUMPBIN" != ":"; then
12820 test -z "$NM" && NM
=nm
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12828 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12829 if test "${lt_cv_nm_interface+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12832 lt_cv_nm_interface
="BSD nm"
12833 echo "int some_variable = 0;" > conftest.
$ac_ext
12834 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12835 (eval "$ac_compile" 2>conftest.err
)
12836 cat conftest.err
>&5
12837 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12838 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12839 cat conftest.err
>&5
12840 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12841 cat conftest.out
>&5
12842 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12843 lt_cv_nm_interface
="MS dumpbin"
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12848 $as_echo "$lt_cv_nm_interface" >&6; }
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12851 $as_echo_n "checking whether ln -s works... " >&6; }
12853 if test "$LN_S" = "ln -s"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12855 $as_echo "yes" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12858 $as_echo "no, using $LN_S" >&6; }
12861 # find the maximum length of command line arguments
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12863 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12864 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
12872 # On DJGPP, this test can blow up pretty badly due to problems in libc
12873 # (any single argument exceeding 2000 bytes causes a buffer overrun
12874 # during glob expansion). Even if it were fixed, the result of this
12875 # check would be larger than it should be.
12876 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12880 # Under GNU Hurd, this test is not required because there is
12881 # no limit to the length of command line arguments.
12882 # Libtool will interpret -1 as no limit whatsoever
12883 lt_cv_sys_max_cmd_len
=-1;
12886 cygwin
* | mingw
* | cegcc
*)
12887 # On Win9x/ME, this test blows up -- it succeeds, but takes
12888 # about 5 minutes as the teststring grows exponentially.
12889 # Worse, since 9x/ME are not pre-emptively multitasking,
12890 # you end up with a "frozen" computer, even though with patience
12891 # the test eventually succeeds (with a max line length of 256k).
12892 # Instead, let's just punt: use the minimum linelength reported by
12893 # all of the supported platforms: 8192 (on NT/2K/XP).
12894 lt_cv_sys_max_cmd_len
=8192;
12898 # On MiNT this can take a long time and run out of memory.
12899 lt_cv_sys_max_cmd_len
=8192;
12903 # On AmigaOS with pdksh, this test takes hours, literally.
12904 # So we just punt and use a minimum line length of 8192.
12905 lt_cv_sys_max_cmd_len
=8192;
12908 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12909 # This has been around since 386BSD, at least. Likely further.
12910 if test -x /sbin
/sysctl
; then
12911 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12912 elif test -x /usr
/sbin
/sysctl
; then
12913 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12915 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12917 # And add a safety zone
12918 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12919 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12923 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12924 lt_cv_sys_max_cmd_len
=196608
12928 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12929 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12930 # nice to cause kernel panics so lets avoid the loop below.
12931 # First set a reasonable default.
12932 lt_cv_sys_max_cmd_len
=16384
12934 if test -x /sbin
/sysconfig
; then
12935 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12936 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12941 lt_cv_sys_max_cmd_len
=102400
12943 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12944 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12945 if test -n "$kargmax"; then
12946 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12948 lt_cv_sys_max_cmd_len
=32768
12952 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12953 if test -n "$lt_cv_sys_max_cmd_len"; then
12954 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12955 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12957 # Make teststring a little bigger before we do anything with it.
12958 # a 1K string should be a reasonable start.
12959 for i
in 1 2 3 4 5 6 7 8 ; do
12960 teststring
=$teststring$teststring
12962 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12963 # If test is not a shell built-in, we'll probably end up computing a
12964 # maximum length that is only half of the actual maximum length, but
12966 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12967 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12968 test $i != 17 # 1/2 MB should be enough
12971 teststring
=$teststring$teststring
12973 # Only check the string length outside the loop.
12974 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12976 # Add a significant safety factor because C++ compilers can tack on
12977 # massive amounts of additional arguments before passing them to the
12978 # linker. It appears as though 1/2 is a usable value.
12979 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12986 if test -n $lt_cv_sys_max_cmd_len ; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12988 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12991 $as_echo "none" >&6; }
12993 max_cmd_len
=$lt_cv_sys_max_cmd_len
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13005 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13006 # Try some XSI features
13008 ( _lt_dummy
="a/b/c"
13009 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13011 && eval 'test $(( 1 + 1 )) -eq 2 \
13012 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13015 $as_echo "$xsi_shell" >&6; }
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13019 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13021 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13023 && lt_shell_append=yes
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13025 $as_echo "$lt_shell_append" >&6; }
13028 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13038 # test EBCDIC or ASCII
13039 case `echo X|tr X '\101'` in
13040 A) # ASCII based system
13041 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13042 lt_SP2NL='tr \040 \012'
13043 lt_NL2SP='tr \015\012 \040\040'
13045 *) # EBCDIC based system
13046 lt_SP2NL='tr \100 \n'
13047 lt_NL2SP='tr \r\n \100\100'
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13060 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13061 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13062 $as_echo_n "(cached
) " >&6
13064 lt_cv_ld_reload_flag='-r'
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13067 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13068 reload_flag=$lt_cv_ld_reload_flag
13069 case $reload_flag in
13071 *) reload_flag=" $reload_flag" ;;
13073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13076 if test "$GCC" = yes; then
13077 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13079 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13092 if test -n "$ac_tool_prefix"; then
13093 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13094 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13096 $as_echo_n "checking
for $ac_word...
" >&6; }
13097 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13098 $as_echo_n "(cached
) " >&6
13100 if test -n "$OBJDUMP"; then
13101 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104 for as_dir in $PATH
13107 test -z "$as_dir" && as_dir=.
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13110 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13120 OBJDUMP=$ac_cv_prog_OBJDUMP
13121 if test -n "$OBJDUMP"; then
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13123 $as_echo "$OBJDUMP" >&6; }
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13126 $as_echo "no
" >&6; }
13131 if test -z "$ac_cv_prog_OBJDUMP"; then
13132 ac_ct_OBJDUMP=$OBJDUMP
13133 # Extract the first word of "objdump
", so it can be a program name with args.
13134 set dummy objdump; ac_word=$2
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13136 $as_echo_n "checking
for $ac_word...
" >&6; }
13137 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13138 $as_echo_n "(cached
) " >&6
13140 if test -n "$ac_ct_OBJDUMP"; then
13141 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $PATH
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13150 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13160 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13161 if test -n "$ac_ct_OBJDUMP"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13163 $as_echo "$ac_ct_OBJDUMP" >&6; }
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13166 $as_echo "no
" >&6; }
13169 if test "x
$ac_ct_OBJDUMP" = x; then
13172 case $cross_compiling:$ac_tool_warned in
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13175 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13176 ac_tool_warned=yes ;;
13178 OBJDUMP=$ac_ct_OBJDUMP
13181 OBJDUMP="$ac_cv_prog_OBJDUMP"
13184 test -z "$OBJDUMP" && OBJDUMP=objdump
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13195 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13196 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13197 $as_echo_n "(cached
) " >&6
13199 lt_cv_file_magic_cmd='$MAGIC_CMD'
13200 lt_cv_file_magic_test_file=
13201 lt_cv_deplibs_check_method='unknown'
13202 # Need to set the preceding variable on all platforms that support
13203 # interlibrary dependencies.
13204 # 'none' -- dependencies not supported.
13205 # `unknown' -- same as none, but documents that we really don't know.
13206 # 'pass_all' -- all dependencies passed with no checks.
13207 # 'test_compile' -- check by making test program.
13208 # 'file_magic [[regex]]' -- check by looking for files in library path
13209 # which responds to the $file_magic_cmd with a given extended regex.
13210 # If you have `file' or equivalent on your system and you're not sure
13211 # whether `pass_all' will *always* work, you probably want this one.
13215 lt_cv_deplibs_check_method=pass_all
13219 lt_cv_deplibs_check_method=pass_all
13223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13224 lt_cv_file_magic_cmd='/usr/bin/file -L'
13225 lt_cv_file_magic_test_file=/shlib/libc.so
13229 # func_win32_libid is a shell function defined in ltmain.sh
13230 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13231 lt_cv_file_magic_cmd='func_win32_libid'
13235 # Base MSYS/MinGW do not provide the 'file' command needed by
13236 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13237 # unless we find 'file', for example because we are cross-compiling.
13238 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13239 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13241 lt_cv_file_magic_cmd='func_win32_libid'
13243 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13244 lt_cv_file_magic_cmd='$OBJDUMP -f'
13249 # use the weaker test based on 'objdump'. See mingw*.
13250 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13251 lt_cv_file_magic_cmd='$OBJDUMP -f'
13254 darwin* | rhapsody*)
13255 lt_cv_deplibs_check_method=pass_all
13258 freebsd* | dragonfly*)
13259 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13262 # Not sure whether the presence of OpenBSD here was a mistake.
13263 # Let's accept both of them until this is cleared up.
13264 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13265 lt_cv_file_magic_cmd=/usr/bin/file
13266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13270 lt_cv_deplibs_check_method=pass_all
13275 lt_cv_deplibs_check_method=pass_all
13279 lt_cv_deplibs_check_method=pass_all
13282 hpux10.20* | hpux11*)
13283 lt_cv_file_magic_cmd=/usr/bin/file
13286 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13287 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13290 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]'
13291 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13294 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13295 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13301 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13305 irix5* | irix6* | nonstopux*)
13307 *-32|*"-32 ") libmagic=32-bit;;
13308 *-n32|*"-n32 ") libmagic=N32;;
13309 *-64|*"-64 ") libmagic=64-bit;;
13310 *) libmagic=never-match;;
13312 lt_cv_deplibs_check_method=pass_all
13315 # This must be Linux ELF.
13316 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13317 lt_cv_deplibs_check_method=pass_all
13321 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13330 lt_cv_file_magic_cmd=/usr/bin/file
13331 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13335 lt_cv_deplibs_check_method=pass_all
13339 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13346 osf3* | osf4* | osf5*)
13347 lt_cv_deplibs_check_method=pass_all
13351 lt_cv_deplibs_check_method=pass_all
13355 lt_cv_deplibs_check_method=pass_all
13358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13359 lt_cv_deplibs_check_method=pass_all
13363 case $host_vendor in
13365 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]'
13366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13369 lt_cv_deplibs_check_method=pass_all
13372 lt_cv_file_magic_cmd='/bin/file'
13373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13376 lt_cv_file_magic_cmd='/bin/file'
13377 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13378 lt_cv_file_magic_test_file=/lib/libc.so
13381 lt_cv_deplibs_check_method=pass_all
13384 lt_cv_deplibs_check_method=pass_all
13390 lt_cv_deplibs_check_method=pass_all
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13396 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13397 file_magic_cmd=$lt_cv_file_magic_cmd
13398 deplibs_check_method=$lt_cv_deplibs_check_method
13399 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13412 if test -n "$ac_tool_prefix"; then
13413 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13414 set dummy ${ac_tool_prefix}ar; ac_word=$2
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13416 $as_echo_n "checking
for $ac_word...
" >&6; }
13417 if test "${ac_cv_prog_AR+set}" = set; then :
13418 $as_echo_n "(cached
) " >&6
13420 if test -n "$AR"; then
13421 ac_cv_prog_AR="$AR" # Let the user override the test.
13423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424 for as_dir in $PATH
13427 test -z "$as_dir" && as_dir=.
13428 for ac_exec_ext in '' $ac_executable_extensions; do
13429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13430 ac_cv_prog_AR="${ac_tool_prefix}ar"
13431 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13441 if test -n "$AR"; then
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13443 $as_echo "$AR" >&6; }
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13446 $as_echo "no
" >&6; }
13451 if test -z "$ac_cv_prog_AR"; then
13453 # Extract the first word of "ar", so it can be a program name with args.
13454 set dummy ar; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13456 $as_echo_n "checking
for $ac_word...
" >&6; }
13457 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13458 $as_echo_n "(cached
) " >&6
13460 if test -n "$ac_ct_AR"; then
13461 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470 ac_cv_prog_ac_ct_AR="ar"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13480 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13481 if test -n "$ac_ct_AR"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13483 $as_echo "$ac_ct_AR" >&6; }
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13486 $as_echo "no
" >&6; }
13489 if test "x
$ac_ct_AR" = x; then
13492 case $cross_compiling:$ac_tool_warned in
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13495 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13496 ac_tool_warned=yes ;;
13501 AR="$ac_cv_prog_AR"
13504 test -z "$AR" && AR=ar
13505 test -z "$AR_FLAGS" && AR_FLAGS=cru
13517 if test -n "$ac_tool_prefix"; then
13518 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13519 set dummy ${ac_tool_prefix}strip; ac_word=$2
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13521 $as_echo_n "checking
for $ac_word...
" >&6; }
13522 if test "${ac_cv_prog_STRIP+set}" = set; then :
13523 $as_echo_n "(cached
) " >&6
13525 if test -n "$STRIP"; then
13526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529 for as_dir in $PATH
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13535 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13536 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13545 STRIP=$ac_cv_prog_STRIP
13546 if test -n "$STRIP"; then
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13548 $as_echo "$STRIP" >&6; }
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13551 $as_echo "no
" >&6; }
13556 if test -z "$ac_cv_prog_STRIP"; then
13558 # Extract the first word of "strip
", so it can be a program name with args.
13559 set dummy strip; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13561 $as_echo_n "checking
for $ac_word...
" >&6; }
13562 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13563 $as_echo_n "(cached
) " >&6
13565 if test -n "$ac_ct_STRIP"; then
13566 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13572 test -z "$as_dir" && as_dir=.
13573 for ac_exec_ext in '' $ac_executable_extensions; do
13574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13575 ac_cv_prog_ac_ct_STRIP="strip
"
13576 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13585 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13586 if test -n "$ac_ct_STRIP"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13588 $as_echo "$ac_ct_STRIP" >&6; }
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13591 $as_echo "no
" >&6; }
13594 if test "x
$ac_ct_STRIP" = x; then
13597 case $cross_compiling:$ac_tool_warned in
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13600 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13601 ac_tool_warned=yes ;;
13606 STRIP="$ac_cv_prog_STRIP"
13609 test -z "$STRIP" && STRIP=:
13616 if test -n "$ac_tool_prefix"; then
13617 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13618 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13620 $as_echo_n "checking
for $ac_word...
" >&6; }
13621 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13622 $as_echo_n "(cached
) " >&6
13624 if test -n "$RANLIB"; then
13625 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13634 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13644 RANLIB=$ac_cv_prog_RANLIB
13645 if test -n "$RANLIB"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13647 $as_echo "$RANLIB" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13650 $as_echo "no
" >&6; }
13655 if test -z "$ac_cv_prog_RANLIB"; then
13656 ac_ct_RANLIB=$RANLIB
13657 # Extract the first word of "ranlib
", so it can be a program name with args.
13658 set dummy ranlib; ac_word=$2
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13660 $as_echo_n "checking
for $ac_word...
" >&6; }
13661 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13662 $as_echo_n "(cached
) " >&6
13664 if test -n "$ac_ct_RANLIB"; then
13665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13674 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13675 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13685 if test -n "$ac_ct_RANLIB"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13687 $as_echo "$ac_ct_RANLIB" >&6; }
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13690 $as_echo "no
" >&6; }
13693 if test "x
$ac_ct_RANLIB" = x; then
13696 case $cross_compiling:$ac_tool_warned in
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13699 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13700 ac_tool_warned=yes ;;
13702 RANLIB=$ac_ct_RANLIB
13705 RANLIB="$ac_cv_prog_RANLIB"
13708 test -z "$RANLIB" && RANLIB=:
13715 # Determine commands to create old-style static archives.
13716 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13717 old_postinstall_cmds='chmod 644 $oldlib'
13718 old_postuninstall_cmds=
13720 if test -n "$RANLIB"; then
13723 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13726 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13729 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13734 lock_old_archive_extraction=yes ;;
13736 lock_old_archive_extraction=no ;;
13777 # If no C compiler was specified, use CC.
13780 # If no C compiler flags were specified, use CFLAGS.
13781 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13783 # Allow CC to be a program name with arguments.
13787 # Check for command to grab the raw symbol name followed by C symbol from nm.
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13789 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13790 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13791 $as_echo_n "(cached
) " >&6
13794 # These are sane defaults that work on at least a few old systems.
13795 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13797 # Character class describing NM global symbol codes.
13798 symcode='[BCDEGRST]'
13800 # Regexp to match symbols that can be accessed directly from C.
13801 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13803 # Define system-specific variables.
13808 cygwin* | mingw* | pw32* | cegcc*)
13809 symcode='[ABCDGISTW]'
13812 if test "$host_cpu" = ia64; then
13813 symcode='[ABCDEGRST]'
13816 irix* | nonstopux*)
13817 symcode='[BCDEGRST]'
13820 symcode='[BCDEGQRST]'
13831 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13839 # If we're using GNU nm, then use its standard symbol codes.
13840 case `$NM -V 2>&1` in
13841 *GNU* | *'with BFD'*)
13842 symcode='[ABCDGIRSTW]' ;;
13845 # Transform an extracted symbol line into a proper C declaration.
13846 # Some systems (esp. on ia64) link data and code symbols differently,
13847 # so use this general approach.
13848 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13850 # Transform an extracted symbol line into symbol name and symbol address
13851 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13852 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'"
13854 # Handle CRLF in mingw tool chain
13858 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13862 # Try without a prefix underscore, then with it.
13863 for ac_symprfx in "" "_
"; do
13865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13866 symxfrm="\\1 $ac_symprfx\\2 \\2"
13868 # Write the raw and C identifiers.
13869 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13870 # Fake it for dumpbin and say T for any non-static function
13871 # and D for any global variable.
13872 # Also find C++ and __fastcall symbols from MSVC++,
13873 # which start with @ or ?.
13874 lt_cv_sys_global_symbol_pipe="$AWK '"\
13875 " {last_section=section; section=\$ 3};"\
13876 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13877 " \$ 0!~/External *\|/{next};"\
13878 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13879 " {if(hide[section]) next};"\
13880 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13881 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13882 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13883 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13884 " ' prfx
=^
$ac_symprfx"
13886 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13889 # Check to see that the pipe works correctly.
13893 cat > conftest.$ac_ext <<_LT_EOF
13898 void nm_test_func(void);
13899 void nm_test_func(void){}
13903 int main(){nm_test_var='a';nm_test_func();return(0);}
13906 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13907 (eval $ac_compile) 2>&5
13909 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13910 test $ac_status = 0; }; then
13911 # Now try to grab the symbols.
13913 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13914 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13916 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13917 test $ac_status = 0; } && test -s "$nlist"; then
13918 # Try sorting and uniquifying the output.
13919 if sort "$nlist" | uniq > "$nlist"T; then
13920 mv -f "$nlist"T "$nlist"
13925 # Make sure that we snagged all the symbols we need.
13926 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13927 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13928 cat <<_LT_EOF > conftest.$ac_ext
13934 # Now generate the symbol file.
13935 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13937 cat <<_LT_EOF >> conftest.$ac_ext
13939 /* The mapping between symbol names and symbols. */
13944 lt__PROGRAM__LTX_preloaded_symbols[] =
13946 { "@PROGRAM@
", (void *) 0 },
13948 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13949 cat <<\_LT_EOF >> conftest.$ac_ext
13953 /* This works around a problem in FreeBSD linker */
13954 #ifdef FREEBSD_WORKAROUND
13955 static const void *lt_preloaded_setup() {
13956 return lt__PROGRAM__LTX_preloaded_symbols;
13964 # Now try linking the two files.
13965 mv conftest.$ac_objext conftstm.$ac_objext
13966 lt_save_LIBS="$LIBS"
13967 lt_save_CFLAGS="$CFLAGS"
13968 LIBS="conftstm.
$ac_objext"
13969 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13970 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13971 (eval $ac_link) 2>&5
13973 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13974 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13977 LIBS="$lt_save_LIBS"
13978 CFLAGS="$lt_save_CFLAGS"
13980 echo "cannot
find nm_test_func
in $nlist" >&5
13983 echo "cannot
find nm_test_var
in $nlist" >&5
13986 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13989 echo "$progname: failed program was
:" >&5
13990 cat conftest.$ac_ext >&5
13992 rm -rf conftest* conftst*
13994 # Do not use the global_symbol_pipe unless it works.
13995 if test "$pipe_works" = yes; then
13998 lt_cv_sys_global_symbol_pipe=
14004 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14005 lt_cv_sys_global_symbol_to_cdecl=
14007 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14009 $as_echo "failed
" >&6; }
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14012 $as_echo "ok
" >&6; }
14036 # Check whether --enable-libtool-lock was given.
14037 if test "${enable_libtool_lock+set}" = set; then :
14038 enableval=$enable_libtool_lock;
14041 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14043 # Some flags need to be propagated to the compiler or linker for good
14047 # Find out which ABI we are using.
14048 echo 'int i;' > conftest.$ac_ext
14049 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14050 (eval $ac_compile) 2>&5
14052 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14053 test $ac_status = 0; }; then
14054 case `/usr/bin/file conftest.$ac_objext` in
14056 HPUX_IA64_MODE="32"
14059 HPUX_IA64_MODE="64"
14066 # Find out which ABI we are using.
14067 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14068 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14069 (eval $ac_compile) 2>&5
14071 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14072 test $ac_status = 0; }; then
14073 if test "$lt_cv_prog_gnu_ld" = yes; then
14074 case `/usr/bin/file conftest.$ac_objext` in
14076 LD="${LD-ld} -melf32bsmip"
14079 LD="${LD-ld} -melf32bmipn32"
14082 LD="${LD-ld} -melf64bmip"
14086 case `/usr/bin/file conftest.$ac_objext` in
14102 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14103 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14104 # Find out which ABI we are using.
14105 echo 'int i;' > conftest.$ac_ext
14106 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14107 (eval $ac_compile) 2>&5
14109 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14110 test $ac_status = 0; }; then
14111 case `/usr/bin/file conftest.o` in
14114 x86_64-*kfreebsd*-gnu)
14115 LD="${LD-ld} -m elf_i386_fbsd
"
14118 case `/usr/bin/file conftest.o` in
14120 LD="${LD-ld} -m elf32_x86_64
"
14123 LD="${LD-ld} -m elf_i386
"
14127 powerpc64le-*linux*)
14128 LD="${LD-ld} -m elf32lppclinux
"
14131 LD="${LD-ld} -m elf32ppclinux
"
14134 LD="${LD-ld} -m elf_s390
"
14137 LD="${LD-ld} -m elf32_sparc
"
14143 x86_64-*kfreebsd*-gnu)
14144 LD="${LD-ld} -m elf_x86_64_fbsd
"
14147 LD="${LD-ld} -m elf_x86_64
"
14150 LD="${LD-ld} -m elf64lppc
"
14153 LD="${LD-ld} -m elf64ppc
"
14155 s390*-*linux*|s390*-*tpf*)
14156 LD="${LD-ld} -m elf64_s390
"
14159 LD="${LD-ld} -m elf64_sparc
"
14169 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14170 SAVE_CFLAGS="$CFLAGS"
14171 CFLAGS="$CFLAGS -belf"
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14173 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14174 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14175 $as_echo_n "(cached
) " >&6
14178 ac_cpp='$CPP $CPPFLAGS'
14179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14194 if ac_fn_c_try_link "$LINENO"; then :
14195 lt_cv_cc_needs_belf=yes
14197 lt_cv_cc_needs_belf=no
14199 rm -f core conftest.err conftest.$ac_objext \
14200 conftest$ac_exeext conftest.$ac_ext
14202 ac_cpp='$CPP $CPPFLAGS'
14203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14209 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14210 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14211 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14212 CFLAGS="$SAVE_CFLAGS"
14216 # Find out which ABI we are using.
14217 echo 'int i;' > conftest.$ac_ext
14218 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14219 (eval $ac_compile) 2>&5
14221 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14222 test $ac_status = 0; }; then
14223 case `/usr/bin/file conftest.o` in
14225 case $lt_cv_prog_gnu_ld in
14226 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14228 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14240 need_locks="$enable_libtool_lock"
14244 rhapsody* | darwin*)
14245 if test -n "$ac_tool_prefix"; then
14246 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14247 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14249 $as_echo_n "checking
for $ac_word...
" >&6; }
14250 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14251 $as_echo_n "(cached
) " >&6
14253 if test -n "$DSYMUTIL"; then
14254 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14264 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14273 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14274 if test -n "$DSYMUTIL"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14276 $as_echo "$DSYMUTIL" >&6; }
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14279 $as_echo "no
" >&6; }
14284 if test -z "$ac_cv_prog_DSYMUTIL"; then
14285 ac_ct_DSYMUTIL=$DSYMUTIL
14286 # Extract the first word of "dsymutil
", so it can be a program name with args.
14287 set dummy dsymutil; ac_word=$2
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14289 $as_echo_n "checking
for $ac_word...
" >&6; }
14290 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14291 $as_echo_n "(cached
) " >&6
14293 if test -n "$ac_ct_DSYMUTIL"; then
14294 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297 for as_dir in $PATH
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
14302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14303 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14313 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14314 if test -n "$ac_ct_DSYMUTIL"; then
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14316 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14319 $as_echo "no
" >&6; }
14322 if test "x
$ac_ct_DSYMUTIL" = x; then
14325 case $cross_compiling:$ac_tool_warned in
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14328 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14329 ac_tool_warned=yes ;;
14331 DSYMUTIL=$ac_ct_DSYMUTIL
14334 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14337 if test -n "$ac_tool_prefix"; then
14338 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14339 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14341 $as_echo_n "checking
for $ac_word...
" >&6; }
14342 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14343 $as_echo_n "(cached
) " >&6
14345 if test -n "$NMEDIT"; then
14346 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14355 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14365 NMEDIT=$ac_cv_prog_NMEDIT
14366 if test -n "$NMEDIT"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14368 $as_echo "$NMEDIT" >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14371 $as_echo "no
" >&6; }
14376 if test -z "$ac_cv_prog_NMEDIT"; then
14377 ac_ct_NMEDIT=$NMEDIT
14378 # Extract the first word of "nmedit
", so it can be a program name with args.
14379 set dummy nmedit; ac_word=$2
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14381 $as_echo_n "checking
for $ac_word...
" >&6; }
14382 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14383 $as_echo_n "(cached
) " >&6
14385 if test -n "$ac_ct_NMEDIT"; then
14386 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14395 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14405 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14406 if test -n "$ac_ct_NMEDIT"; then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14408 $as_echo "$ac_ct_NMEDIT" >&6; }
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14411 $as_echo "no
" >&6; }
14414 if test "x
$ac_ct_NMEDIT" = x; then
14417 case $cross_compiling:$ac_tool_warned in
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14420 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14421 ac_tool_warned=yes ;;
14423 NMEDIT=$ac_ct_NMEDIT
14426 NMEDIT="$ac_cv_prog_NMEDIT"
14429 if test -n "$ac_tool_prefix"; then
14430 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14431 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14433 $as_echo_n "checking
for $ac_word...
" >&6; }
14434 if test "${ac_cv_prog_LIPO+set}" = set; then :
14435 $as_echo_n "(cached
) " >&6
14437 if test -n "$LIPO"; then
14438 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14444 test -z "$as_dir" && as_dir=.
14445 for ac_exec_ext in '' $ac_executable_extensions; do
14446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14447 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14448 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14457 LIPO=$ac_cv_prog_LIPO
14458 if test -n "$LIPO"; then
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14460 $as_echo "$LIPO" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14463 $as_echo "no
" >&6; }
14468 if test -z "$ac_cv_prog_LIPO"; then
14470 # Extract the first word of "lipo
", so it can be a program name with args.
14471 set dummy lipo; ac_word=$2
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14473 $as_echo_n "checking
for $ac_word...
" >&6; }
14474 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14475 $as_echo_n "(cached
) " >&6
14477 if test -n "$ac_ct_LIPO"; then
14478 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481 for as_dir in $PATH
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
14486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14487 ac_cv_prog_ac_ct_LIPO="lipo
"
14488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14497 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14498 if test -n "$ac_ct_LIPO"; then
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14500 $as_echo "$ac_ct_LIPO" >&6; }
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14503 $as_echo "no
" >&6; }
14506 if test "x
$ac_ct_LIPO" = x; then
14509 case $cross_compiling:$ac_tool_warned in
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14512 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14513 ac_tool_warned=yes ;;
14518 LIPO="$ac_cv_prog_LIPO"
14521 if test -n "$ac_tool_prefix"; then
14522 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14523 set dummy ${ac_tool_prefix}otool; ac_word=$2
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14525 $as_echo_n "checking
for $ac_word...
" >&6; }
14526 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14527 $as_echo_n "(cached
) " >&6
14529 if test -n "$OTOOL"; then
14530 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14533 for as_dir in $PATH
14536 test -z "$as_dir" && as_dir=.
14537 for ac_exec_ext in '' $ac_executable_extensions; do
14538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14539 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14540 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14549 OTOOL=$ac_cv_prog_OTOOL
14550 if test -n "$OTOOL"; then
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14552 $as_echo "$OTOOL" >&6; }
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14555 $as_echo "no
" >&6; }
14560 if test -z "$ac_cv_prog_OTOOL"; then
14562 # Extract the first word of "otool
", so it can be a program name with args.
14563 set dummy otool; ac_word=$2
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14565 $as_echo_n "checking
for $ac_word...
" >&6; }
14566 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14567 $as_echo_n "(cached
) " >&6
14569 if test -n "$ac_ct_OTOOL"; then
14570 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14576 test -z "$as_dir" && as_dir=.
14577 for ac_exec_ext in '' $ac_executable_extensions; do
14578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14579 ac_cv_prog_ac_ct_OTOOL="otool
"
14580 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14589 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14590 if test -n "$ac_ct_OTOOL"; then
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14592 $as_echo "$ac_ct_OTOOL" >&6; }
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14595 $as_echo "no
" >&6; }
14598 if test "x
$ac_ct_OTOOL" = x; then
14601 case $cross_compiling:$ac_tool_warned in
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14604 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14605 ac_tool_warned=yes ;;
14610 OTOOL="$ac_cv_prog_OTOOL"
14613 if test -n "$ac_tool_prefix"; then
14614 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14615 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14617 $as_echo_n "checking
for $ac_word...
" >&6; }
14618 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14619 $as_echo_n "(cached
) " >&6
14621 if test -n "$OTOOL64"; then
14622 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14628 test -z "$as_dir" && as_dir=.
14629 for ac_exec_ext in '' $ac_executable_extensions; do
14630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14631 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14641 OTOOL64=$ac_cv_prog_OTOOL64
14642 if test -n "$OTOOL64"; then
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14644 $as_echo "$OTOOL64" >&6; }
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14647 $as_echo "no
" >&6; }
14652 if test -z "$ac_cv_prog_OTOOL64"; then
14653 ac_ct_OTOOL64=$OTOOL64
14654 # Extract the first word of "otool64
", so it can be a program name with args.
14655 set dummy otool64; ac_word=$2
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14657 $as_echo_n "checking
for $ac_word...
" >&6; }
14658 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14659 $as_echo_n "(cached
) " >&6
14661 if test -n "$ac_ct_OTOOL64"; then
14662 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14665 for as_dir in $PATH
14668 test -z "$as_dir" && as_dir=.
14669 for ac_exec_ext in '' $ac_executable_extensions; do
14670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14671 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14672 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14681 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14682 if test -n "$ac_ct_OTOOL64"; then
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14684 $as_echo "$ac_ct_OTOOL64" >&6; }
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14687 $as_echo "no
" >&6; }
14690 if test "x
$ac_ct_OTOOL64" = x; then
14693 case $cross_compiling:$ac_tool_warned in
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14696 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14697 ac_tool_warned=yes ;;
14699 OTOOL64=$ac_ct_OTOOL64
14702 OTOOL64="$ac_cv_prog_OTOOL64"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14732 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14733 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14734 $as_echo_n "(cached
) " >&6
14736 lt_cv_apple_cc_single_mod=no
14737 if test -z "${LT_MULTI_MODULE}"; then
14738 # By default we will add the -single_module flag. You can override
14739 # by either setting the environment variable LT_MULTI_MODULE
14740 # non-empty at configure time, or by adding -multi_module to the
14742 rm -rf libconftest.dylib*
14743 echo "int foo
(void
){return 1;}" > conftest.c
14744 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14745 -dynamiclib -Wl,-single_module conftest.c
" >&5
14746 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14747 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14749 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14750 lt_cv_apple_cc_single_mod=yes
14752 cat conftest.err >&5
14754 rm -rf libconftest.dylib*
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14759 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14761 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14762 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14763 $as_echo_n "(cached
) " >&6
14765 lt_cv_ld_exported_symbols_list=no
14766 save_LDFLAGS=$LDFLAGS
14767 echo "_main
" > conftest.sym
14768 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h. */
14780 if ac_fn_c_try_link "$LINENO"; then :
14781 lt_cv_ld_exported_symbols_list=yes
14783 lt_cv_ld_exported_symbols_list=no
14785 rm -f core conftest.err conftest.$ac_objext \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LDFLAGS="$save_LDFLAGS"
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14791 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14793 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14794 if test "${lt_cv_ld_force_load+set}" = set; then :
14795 $as_echo_n "(cached
) " >&6
14797 lt_cv_ld_force_load=no
14798 cat > conftest.c << _LT_EOF
14799 int forced_loaded() { return 2;}
14801 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14802 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14803 echo "$AR cru libconftest.a conftest.o
" >&5
14804 $AR cru libconftest.a conftest.o 2>&5
14805 cat > conftest.c << _LT_EOF
14806 int main() { return 0;}
14808 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14809 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14811 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14812 lt_cv_ld_force_load=yes
14814 cat conftest.err >&5
14816 rm -f conftest.err libconftest.a conftest conftest.c
14817 rm -rf conftest.dSYM
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14821 $as_echo "$lt_cv_ld_force_load" >&6; }
14823 rhapsody* | darwin1.[012])
14824 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14826 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14827 darwin*) # darwin 5.x on
14828 # if running on 10.5 or later, the deployment target defaults
14829 # to the OS version, if on x86, and 10.4, the deployment
14830 # target defaults to 10.4. Don't you love it?
14831 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14832 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14833 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14835 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14837 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14841 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14842 _lt_dar_single_mod='$single_module'
14844 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14845 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14847 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14849 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14850 _lt_dsymutil='~$DSYMUTIL $lib || :'
14858 for ac_header in dlfcn.h
14860 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14861 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14862 cat >>confdefs.h <<_ACEOF
14863 #define HAVE_DLFCN_H 1
14880 enable_win32_dll=no
14883 # Check whether --enable-shared was given.
14884 if test "${enable_shared+set}" = set; then :
14885 enableval=$enable_shared; p=${PACKAGE-default}
14887 yes) enable_shared=yes ;;
14888 no) enable_shared=no ;;
14891 # Look at the argument we got. We use all the common list separators.
14892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14893 for pkg in $enableval; do
14895 if test "X
$pkg" = "X
$p"; then
14914 # Check whether --enable-static was given.
14915 if test "${enable_static+set}" = set; then :
14916 enableval=$enable_static; p=${PACKAGE-default}
14918 yes) enable_static=yes ;;
14919 no) enable_static=no ;;
14922 # Look at the argument we got. We use all the common list separators.
14923 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14924 for pkg in $enableval; do
14926 if test "X
$pkg" = "X
$p"; then
14946 # Check whether --with-pic was given.
14947 if test "${with_pic+set}" = set; then :
14948 withval=$with_pic; pic_mode="$withval"
14954 test -z "$pic_mode" && pic_mode=default
14962 # Check whether --enable-fast-install was given.
14963 if test "${enable_fast_install+set}" = set; then :
14964 enableval=$enable_fast_install; p=${PACKAGE-default}
14966 yes) enable_fast_install=yes ;;
14967 no) enable_fast_install=no ;;
14969 enable_fast_install=no
14970 # Look at the argument we got. We use all the common list separators.
14971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14972 for pkg in $enableval; do
14974 if test "X
$pkg" = "X
$p"; then
14975 enable_fast_install=yes
14982 enable_fast_install=yes
14995 # This can be used to rebuild libtool when needed
14996 LIBTOOL_DEPS="$ltmain"
14998 # Always use our own libtool.
14999 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15026 test -z "$LN_S" && LN_S="ln -s"
15041 if test -n "${ZSH_VERSION+set}" ; then
15042 setopt NO_GLOB_SUBST
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15046 $as_echo_n "checking
for objdir...
" >&6; }
15047 if test "${lt_cv_objdir+set}" = set; then :
15048 $as_echo_n "(cached
) " >&6
15050 rm -f .libs 2>/dev/null
15051 mkdir .libs 2>/dev/null
15052 if test -d .libs; then
15055 # MS-DOS does not allow filenames that begin with a dot.
15058 rmdir .libs 2>/dev/null
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15061 $as_echo "$lt_cv_objdir" >&6; }
15062 objdir=$lt_cv_objdir
15068 cat >>confdefs.h <<_ACEOF
15069 #define LT_OBJDIR "$lt_cv_objdir/"
15077 # AIX sometimes has problems with the GCC collect2 program. For some
15078 # reason, if we set the COLLECT_NAMES environment variable, the problems
15079 # vanish in a puff of smoke.
15080 if test "X
${COLLECT_NAMES+set}" != Xset; then
15082 export COLLECT_NAMES
15087 # Global variables:
15089 can_build_shared=yes
15091 # All known linkers require a `.a' archive for static linking (except MSVC,
15092 # which needs '.lib').
15095 with_gnu_ld="$lt_cv_prog_gnu_ld"
15098 old_CFLAGS="$CFLAGS"
15100 # Set sane defaults for various variables
15101 test -z "$CC" && CC=cc
15102 test -z "$LTCC" && LTCC=$CC
15103 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15104 test -z "$LD" && LD=ld
15105 test -z "$ac_objext" && ac_objext=o
15107 for cc_temp in $compiler""; do
15109 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15110 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15115 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15118 # Only perform the check for file, if the check method requires it
15119 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15120 case $deplibs_check_method in
15122 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15124 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15125 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15126 $as_echo_n "(cached
) " >&6
15130 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15133 lt_save_MAGIC_CMD="$MAGIC_CMD"
15134 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15135 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15136 for ac_dir in $ac_dummy; do
15138 test -z "$ac_dir" && ac_dir=.
15139 if test -f $ac_dir/${ac_tool_prefix}file; then
15140 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15141 if test -n "$file_magic_test_file"; then
15142 case $deplibs_check_method in
15144 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15146 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15147 $EGREP "$file_magic_regex" > /dev/null; then
15152 *** Warning: the command libtool uses to detect shared libraries,
15153 *** $file_magic_cmd, produces output that libtool cannot recognize.
15154 *** The result is that libtool may fail to recognize shared libraries
15155 *** as such. This will affect the creation of libtool libraries that
15156 *** depend on shared libraries, but programs linked with such libtool
15157 *** libraries will work regardless of this problem. Nevertheless, you
15158 *** may want to report the problem to your system manager and/or to
15159 *** bug-libtool@gnu.org
15169 MAGIC_CMD="$lt_save_MAGIC_CMD"
15174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15175 if test -n "$MAGIC_CMD"; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15177 $as_echo "$MAGIC_CMD" >&6; }
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15180 $as_echo "no
" >&6; }
15187 if test -z "$lt_cv_path_MAGIC_CMD"; then
15188 if test -n "$ac_tool_prefix"; then
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15190 $as_echo_n "checking
for file...
" >&6; }
15191 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15192 $as_echo_n "(cached
) " >&6
15196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15199 lt_save_MAGIC_CMD="$MAGIC_CMD"
15200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15201 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15202 for ac_dir in $ac_dummy; do
15204 test -z "$ac_dir" && ac_dir=.
15205 if test -f $ac_dir/file; then
15206 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15207 if test -n "$file_magic_test_file"; then
15208 case $deplibs_check_method in
15210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15213 $EGREP "$file_magic_regex" > /dev/null; then
15218 *** Warning: the command libtool uses to detect shared libraries,
15219 *** $file_magic_cmd, produces output that libtool cannot recognize.
15220 *** The result is that libtool may fail to recognize shared libraries
15221 *** as such. This will affect the creation of libtool libraries that
15222 *** depend on shared libraries, but programs linked with such libtool
15223 *** libraries will work regardless of this problem. Nevertheless, you
15224 *** may want to report the problem to your system manager and/or to
15225 *** bug-libtool@gnu.org
15235 MAGIC_CMD="$lt_save_MAGIC_CMD"
15240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15241 if test -n "$MAGIC_CMD"; then
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15243 $as_echo "$MAGIC_CMD" >&6; }
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15246 $as_echo "no
" >&6; }
15259 # Use C for the default configuration in the libtool script
15263 ac_cpp='$CPP $CPPFLAGS'
15264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15269 # Source file extension for C test sources.
15272 # Object file extension for compiled C test sources.
15276 # Code to be used in simple compile tests
15277 lt_simple_compile_test_code="int some_variable
= 0;"
15279 # Code to be used in simple link tests
15280 lt_simple_link_test_code='int main(){return(0);}'
15288 # If no C compiler was specified, use CC.
15291 # If no C compiler flags were specified, use CFLAGS.
15292 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15294 # Allow CC to be a program name with arguments.
15297 # Save the default compiler, since it gets overwritten when the other
15298 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15299 compiler_DEFAULT=$CC
15301 # save warnings/boilerplate of simple test code
15302 ac_outfile=conftest.$ac_objext
15303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15305 _lt_compiler_boilerplate=`cat conftest.err`
15308 ac_outfile=conftest.$ac_objext
15309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15311 _lt_linker_boilerplate=`cat conftest.err`
15316 ## There is no encapsulation within the following macros, do not change
15317 ## the running order or otherwise move them around unless you know exactly
15318 ## what you are doing...
15319 if test -n "$compiler"; then
15321 lt_prog_compiler_no_builtin_flag=
15323 if test "$GCC" = yes; then
15324 case $cc_basename in
15326 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15328 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15332 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15333 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15334 $as_echo_n "(cached
) " >&6
15336 lt_cv_prog_compiler_rtti_exceptions=no
15337 ac_outfile=conftest.$ac_objext
15338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15339 lt_compiler_flag="-fno-rtti -fno-exceptions"
15340 # Insert the option either (1) after the last *FLAGS variable, or
15341 # (2) before a word containing "conftest.
", or (3) at the end.
15342 # Note that $ac_compile itself does not contain backslashes and begins
15343 # with a dollar sign (not a hyphen), so the echo should work correctly.
15344 # The option is referenced via a variable to avoid confusing sed.
15345 lt_compile=`echo "$ac_compile" | $SED \
15346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15348 -e 's:$: $lt_compiler_flag:'`
15349 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15350 (eval "$lt_compile" 2>conftest.err)
15352 cat conftest.err >&5
15353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15354 if (exit $ac_status) && test -s "$ac_outfile"; then
15355 # The compiler can only warn and ignore the option if not recognized
15356 # So say no if there are warnings other than the usual output.
15357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15360 lt_cv_prog_compiler_rtti_exceptions=yes
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15367 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15370 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15382 lt_prog_compiler_wl=
15383 lt_prog_compiler_pic=
15384 lt_prog_compiler_static=
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15387 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15389 if test "$GCC" = yes; then
15390 lt_prog_compiler_wl='-Wl,'
15391 lt_prog_compiler_static='-static'
15395 # All AIX code is PIC.
15396 if test "$host_cpu" = ia64; then
15397 # AIX 5 now supports IA64 processor
15398 lt_prog_compiler_static='-Bstatic'
15400 lt_prog_compiler_pic='-fPIC'
15406 # see comment about AmigaOS4 .so support
15407 lt_prog_compiler_pic='-fPIC'
15410 # FIXME: we need at least 68020 code to build shared libraries, but
15411 # adding the `-m68020' flag to GCC prevents building anything better,
15413 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15418 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15419 # PIC is the default for these OSes.
15422 mingw* | cygwin* | pw32* | os2* | cegcc*)
15423 # This hack is so that the source file can tell whether it is being
15424 # built for inclusion in a dll (and should export symbols for example).
15425 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15426 # (--disable-auto-import) libraries
15427 lt_prog_compiler_pic='-DDLL_EXPORT'
15430 darwin* | rhapsody*)
15431 # PIC is the default on this platform
15432 # Common symbols not allowed in MH_DYLIB files
15433 lt_prog_compiler_pic='-fno-common'
15437 # PIC is the default for Haiku.
15438 # The "-static" flag exists, but is broken.
15439 lt_prog_compiler_static=
15443 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15444 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15445 # sets the default TLS model and affects inlining.
15451 lt_prog_compiler_pic='-fPIC'
15457 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15458 # Instead, we relocate shared libraries at runtime.
15462 # Just because we use GCC doesn't mean we suddenly get shared libraries
15463 # on systems that don't support them.
15464 lt_prog_compiler_can_build_shared=no
15469 # QNX uses GNU C++, but need to define -shared option too, otherwise
15470 # it will coredump.
15471 lt_prog_compiler_pic='-fPIC -shared'
15475 if test -d /usr/nec; then
15476 lt_prog_compiler_pic=-Kconform_pic
15481 lt_prog_compiler_pic='-fPIC'
15485 case $cc_basename in
15486 nvcc*) # Cuda Compiler Driver 2.2
15487 lt_prog_compiler_wl='-Xlinker '
15488 lt_prog_compiler_pic='-Xcompiler -fPIC'
15492 # PORTME Check for flag to pass linker flags through the system compiler.
15495 lt_prog_compiler_wl='-Wl,'
15496 if test "$host_cpu" = ia64; then
15497 # AIX 5 now supports IA64 processor
15498 lt_prog_compiler_static='-Bstatic'
15500 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15504 mingw* | cygwin* | pw32* | os2* | cegcc*)
15505 # This hack is so that the source file can tell whether it is being
15506 # built for inclusion in a dll (and should export symbols for example).
15507 lt_prog_compiler_pic='-DDLL_EXPORT'
15510 hpux9* | hpux10* | hpux11*)
15511 lt_prog_compiler_wl='-Wl,'
15512 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15513 # not for PA HP-UX.
15519 lt_prog_compiler_pic='+Z'
15522 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15523 lt_prog_compiler_static='${wl}-a ${wl}archive'
15526 irix5* | irix6* | nonstopux*)
15527 lt_prog_compiler_wl='-Wl,'
15528 # PIC (with -KPIC) is the default.
15529 lt_prog_compiler_static='-non_shared'
15532 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15533 case $cc_basename in
15534 # old Intel for x86_64 which still supported -KPIC.
15536 lt_prog_compiler_wl='-Wl,'
15537 lt_prog_compiler_pic='-KPIC'
15538 lt_prog_compiler_static='-static'
15540 # icc used to be incompatible with GCC.
15541 # ICC 10 doesn't accept -KPIC any more.
15543 lt_prog_compiler_wl='-Wl,'
15544 lt_prog_compiler_pic='-fPIC'
15545 lt_prog_compiler_static='-static'
15547 # Lahey Fortran 8.1.
15549 lt_prog_compiler_wl='-Wl,'
15550 lt_prog_compiler_pic='--shared'
15551 lt_prog_compiler_static='--static'
15553 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15554 # Portland Group compilers (*not* the Pentium gcc compiler,
15555 # which looks to be a dead project)
15556 lt_prog_compiler_wl='-Wl,'
15557 lt_prog_compiler_pic='-fpic'
15558 lt_prog_compiler_static='-Bstatic'
15561 lt_prog_compiler_wl='-Wl,'
15562 # All Alpha code is PIC.
15563 lt_prog_compiler_static='-non_shared'
15565 xl* | bgxl* | bgf* | mpixl*)
15566 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15567 lt_prog_compiler_wl='-Wl,'
15568 lt_prog_compiler_pic='-qpic'
15569 lt_prog_compiler_static='-qstaticlink'
15572 case `$CC -V 2>&1 | sed 5q` in
15573 *Sun\ F* | *Sun*Fortran*)
15574 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15575 lt_prog_compiler_pic='-KPIC'
15576 lt_prog_compiler_static='-Bstatic'
15577 lt_prog_compiler_wl=''
15581 lt_prog_compiler_pic='-KPIC'
15582 lt_prog_compiler_static='-Bstatic'
15583 lt_prog_compiler_wl='-Wl,'
15591 lt_prog_compiler_pic='-KPIC'
15592 lt_prog_compiler_static='-Bstatic'
15596 # QNX uses GNU C++, but need to define -shared option too, otherwise
15597 # it will coredump.
15598 lt_prog_compiler_pic='-fPIC -shared'
15601 osf3* | osf4* | osf5*)
15602 lt_prog_compiler_wl='-Wl,'
15603 # All OSF/1 code is PIC.
15604 lt_prog_compiler_static='-non_shared'
15608 lt_prog_compiler_static='-non_shared'
15612 lt_prog_compiler_pic='-KPIC'
15613 lt_prog_compiler_static='-Bstatic'
15614 case $cc_basename in
15615 f77* | f90* | f95*)
15616 lt_prog_compiler_wl='-Qoption ld ';;
15618 lt_prog_compiler_wl='-Wl,';;
15623 lt_prog_compiler_wl='-Qoption ld '
15624 lt_prog_compiler_pic='-PIC'
15625 lt_prog_compiler_static='-Bstatic'
15628 sysv4 | sysv4.2uw2* | sysv4.3*)
15629 lt_prog_compiler_wl='-Wl,'
15630 lt_prog_compiler_pic='-KPIC'
15631 lt_prog_compiler_static='-Bstatic'
15635 if test -d /usr/nec ;then
15636 lt_prog_compiler_pic='-Kconform_pic'
15637 lt_prog_compiler_static='-Bstatic'
15641 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15642 lt_prog_compiler_wl='-Wl,'
15643 lt_prog_compiler_pic='-KPIC'
15644 lt_prog_compiler_static='-Bstatic'
15648 lt_prog_compiler_wl='-Wl,'
15649 lt_prog_compiler_can_build_shared=no
15653 lt_prog_compiler_pic='-pic'
15654 lt_prog_compiler_static='-Bstatic'
15658 lt_prog_compiler_can_build_shared=no
15664 # For platforms which do not support PIC, -DPIC is meaningless:
15666 lt_prog_compiler_pic=
15669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15673 $as_echo "$lt_prog_compiler_pic" >&6; }
15681 # Check to make sure the PIC flag actually works.
15683 if test -n "$lt_prog_compiler_pic"; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15685 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15686 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15687 $as_echo_n "(cached
) " >&6
15689 lt_cv_prog_compiler_pic_works=no
15690 ac_outfile=conftest.$ac_objext
15691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15692 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15693 # Insert the option either (1) after the last *FLAGS variable, or
15694 # (2) before a word containing "conftest.
", or (3) at the end.
15695 # Note that $ac_compile itself does not contain backslashes and begins
15696 # with a dollar sign (not a hyphen), so the echo should work correctly.
15697 # The option is referenced via a variable to avoid confusing sed.
15698 lt_compile=`echo "$ac_compile" | $SED \
15699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15701 -e 's:$: $lt_compiler_flag:'`
15702 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15703 (eval "$lt_compile" 2>conftest.err)
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15707 if (exit $ac_status) && test -s "$ac_outfile"; then
15708 # The compiler can only warn and ignore the option if not recognized
15709 # So say no if there are warnings other than the usual output.
15710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15713 lt_cv_prog_compiler_pic_works=yes
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15720 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15722 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15723 case $lt_prog_compiler_pic in
15725 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15728 lt_prog_compiler_pic=
15729 lt_prog_compiler_can_build_shared=no
15740 # Check to make sure the static flag actually works.
15742 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15744 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15745 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15746 $as_echo_n "(cached
) " >&6
15748 lt_cv_prog_compiler_static_works=no
15749 save_LDFLAGS="$LDFLAGS"
15750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15753 # The linker can only warn and ignore the option if not recognized
15754 # So say no if there are warnings
15755 if test -s conftest.err; then
15756 # Append any errors to the config.log.
15757 cat conftest.err 1>&5
15758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15760 if diff conftest.exp conftest.er2 >/dev/null; then
15761 lt_cv_prog_compiler_static_works=yes
15764 lt_cv_prog_compiler_static_works=yes
15768 LDFLAGS="$save_LDFLAGS"
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15772 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15774 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15777 lt_prog_compiler_static=
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15787 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15788 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15789 $as_echo_n "(cached
) " >&6
15791 lt_cv_prog_compiler_c_o=no
15792 $RM -r conftest 2>/dev/null
15796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15798 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15799 # Insert the option either (1) after the last *FLAGS variable, or
15800 # (2) before a word containing "conftest.
", or (3) at the end.
15801 # Note that $ac_compile itself does not contain backslashes and begins
15802 # with a dollar sign (not a hyphen), so the echo should work correctly.
15803 lt_compile=`echo "$ac_compile" | $SED \
15804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15806 -e 's:$: $lt_compiler_flag:'`
15807 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15808 (eval "$lt_compile" 2>out/conftest.err)
15810 cat out/conftest.err >&5
15811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15814 # The compiler can only warn and ignore the option if not recognized
15815 # So say no if there are warnings
15816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15819 lt_cv_prog_compiler_c_o=yes
15824 # SGI C++ compiler will create directory out/ii_files/ for
15825 # template instantiation
15826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15827 $RM out/* && rmdir out
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15834 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15842 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15843 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15844 $as_echo_n "(cached
) " >&6
15846 lt_cv_prog_compiler_c_o=no
15847 $RM -r conftest 2>/dev/null
15851 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15853 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15854 # Insert the option either (1) after the last *FLAGS variable, or
15855 # (2) before a word containing "conftest.
", or (3) at the end.
15856 # Note that $ac_compile itself does not contain backslashes and begins
15857 # with a dollar sign (not a hyphen), so the echo should work correctly.
15858 lt_compile=`echo "$ac_compile" | $SED \
15859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15861 -e 's:$: $lt_compiler_flag:'`
15862 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15863 (eval "$lt_compile" 2>out/conftest.err)
15865 cat out/conftest.err >&5
15866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15869 # The compiler can only warn and ignore the option if not recognized
15870 # So say no if there are warnings
15871 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15872 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15873 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15874 lt_cv_prog_compiler_c_o=yes
15879 # SGI C++ compiler will create directory out/ii_files/ for
15880 # template instantiation
15881 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15882 $RM out/* && rmdir out
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15889 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15894 hard_links="nottested
"
15895 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15896 # do not overwrite the value of need_locks provided by the user
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15898 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15903 ln conftest.a conftest.b 2>&5 || hard_links=no
15904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15906 $as_echo "$hard_links" >&6; }
15907 if test "$hard_links" = no; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15909 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15922 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15925 allow_undefined_flag=
15926 always_export_symbols=no
15928 archive_expsym_cmds=
15929 compiler_needs_object=no
15930 enable_shared_with_static_runtimes=no
15931 export_dynamic_flag_spec=
15932 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15933 hardcode_automatic=no
15935 hardcode_direct_absolute=no
15936 hardcode_libdir_flag_spec=
15937 hardcode_libdir_flag_spec_ld=
15938 hardcode_libdir_separator=
15939 hardcode_minus_L=no
15940 hardcode_shlibpath_var=unsupported
15942 link_all_deplibs=unknown
15944 module_expsym_cmds=
15945 old_archive_from_new_cmds=
15946 old_archive_from_expsyms_cmds=
15947 thread_safe_flag_spec=
15948 whole_archive_flag_spec=
15949 # include_expsyms should be a list of space-separated symbols to be *always*
15950 # included in the symbol list
15952 # exclude_expsyms can be an extended regexp of symbols to exclude
15953 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15954 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15955 # as well as any symbol that contains `d'.
15956 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15957 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15958 # platforms (ab)use it in PIC code, but their linkers get confused if
15959 # the symbol is explicitly referenced. Since portable code cannot
15960 # rely on this symbol name, it's probably fine to never include it in
15961 # preloaded symbol tables.
15962 # Exclude shared library initialization/finalization symbols.
15963 extract_expsyms_cmds=
15966 cygwin* | mingw* | pw32* | cegcc*)
15967 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15968 # When not using gcc, we currently assume that we are using
15969 # Microsoft Visual C++.
15970 if test "$GCC" != yes; then
15975 # we just hope/assume this is gcc and not c89 (= MSVC++)
15985 # On some targets, GNU ld is compatible enough with the native linker
15986 # that we're better off using the native interface for both.
15987 lt_use_gnu_ld_interface=no
15988 if test "$with_gnu_ld" = yes; then
15991 # The AIX port of GNU ld has always aspired to compatibility
15992 # with the native linker. However, as the warning in the GNU ld
15993 # block says, versions before 2.19.5* couldn't really create working
15994 # shared libraries, regardless of the interface used.
15995 case `$LD -v 2>&1` in
15996 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15997 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15998 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16000 lt_use_gnu_ld_interface=yes
16005 lt_use_gnu_ld_interface=yes
16010 if test "$lt_use_gnu_ld_interface" = yes; then
16011 # If archive_cmds runs LD, not CC, wlarc should be empty
16014 # Set some defaults for GNU ld with shared library support. These
16015 # are reset later if shared libraries are not supported. Putting them
16016 # here allows them to be overridden if necessary.
16017 runpath_var=LD_RUN_PATH
16018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16019 export_dynamic_flag_spec='${wl}--export-dynamic'
16020 # ancient GNU ld didn't support --whole-archive et. al.
16021 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16022 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16024 whole_archive_flag_spec=
16026 supports_anon_versioning=no
16027 case `$LD -v 2>&1` in
16028 *GNU\ gold*) supports_anon_versioning=yes ;;
16029 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16030 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16031 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16032 *\ 2.11.*) ;; # other 2.11 versions
16033 *) supports_anon_versioning=yes ;;
16036 # See if GNU ld supports shared libraries.
16039 # On AIX/PPC, the GNU linker is very broken
16040 if test "$host_cpu" != ia64; then
16044 *** Warning: the GNU linker, at least up to release 2.19, is reported
16045 *** to be unable to reliably create shared libraries on AIX.
16046 *** Therefore, libtool is disabling shared libraries support. If you
16047 *** really care for shared libraries, you may want to install binutils
16048 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16049 *** You will then need to restart the configuration process.
16058 # see comment about AmigaOS4 .so support
16059 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060 archive_expsym_cmds=''
16063 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)'
16064 hardcode_libdir_flag_spec
='-L$libdir'
16065 hardcode_minus_L
=yes
16071 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16072 allow_undefined_flag
=unsupported
16073 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16074 # support --undefined. This deserves some investigation. FIXME
16075 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16081 cygwin
* | mingw
* | pw32
* | cegcc
*)
16082 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16083 # as there is no search path for DLLs.
16084 hardcode_libdir_flag_spec
='-L$libdir'
16085 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16086 allow_undefined_flag
=unsupported
16087 always_export_symbols
=no
16088 enable_shared_with_static_runtimes
=yes
16089 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16091 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16092 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16093 # If the export-symbols file already is a .def file (1st line
16094 # is EXPORTS), use it as is; otherwise, prepend...
16095 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16096 cp $export_symbols $output_objdir/$soname.def;
16098 echo EXPORTS > $output_objdir/$soname.def;
16099 cat $export_symbols >> $output_objdir/$soname.def;
16101 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16108 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16109 link_all_deplibs
=yes
16114 hardcode_shlibpath_var
=no
16115 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16116 export_dynamic_flag_spec
='${wl}-E'
16117 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16118 # Instead, shared libraries are loaded at an image base (0x10000000 by
16119 # default) and relocated if they conflict, which is a slow very memory
16120 # consuming and fragmenting process. To avoid this, we pick a random,
16121 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16122 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16123 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16124 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'
16127 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16129 if test "$host_os" = linux-dietlibc
; then
16130 case $cc_basename in
16131 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16134 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16135 && test "$tmp_diet" = no
16137 tmp_addflag
=' $pic_flag'
16138 tmp_sharedflag
='-shared'
16139 case $cc_basename,$host_cpu in
16140 pgcc
*) # Portland Group C compiler
16141 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'
16142 tmp_addflag
=' $pic_flag'
16144 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16145 # Portland Group f77 and f90 compilers
16146 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'
16147 tmp_addflag
=' $pic_flag -Mnomain' ;;
16148 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16149 tmp_addflag
=' -i_dynamic' ;;
16150 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16151 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16152 ifc
* | ifort
*) # Intel Fortran compiler
16153 tmp_addflag
=' -nofor_main' ;;
16154 lf95
*) # Lahey Fortran 8.1
16155 whole_archive_flag_spec
=
16156 tmp_sharedflag
='--shared' ;;
16157 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16158 tmp_sharedflag
='-qmkshrobj'
16160 nvcc
*) # Cuda Compiler Driver 2.2
16161 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'
16162 compiler_needs_object
=yes
16165 case `$CC -V 2>&1 | sed 5q` in
16166 *Sun\ C
*) # Sun C 5.9
16167 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'
16168 compiler_needs_object
=yes
16169 tmp_sharedflag
='-G' ;;
16170 *Sun\ F
*) # Sun Fortran 8.3
16171 tmp_sharedflag
='-G' ;;
16173 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16175 if test "x$supports_anon_versioning" = xyes
; then
16176 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16178 echo "local: *; };" >> $output_objdir/$libname.ver~
16179 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16182 case $cc_basename in
16183 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16184 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16185 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16186 hardcode_libdir_flag_spec
=
16187 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16188 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16189 if test "x$supports_anon_versioning" = xyes
; then
16190 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16191 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16192 echo "local: *; };" >> $output_objdir/$libname.ver~
16193 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16203 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16204 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16207 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16208 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16213 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16217 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16218 *** create shared libraries on Solaris systems. Therefore, libtool
16219 *** is disabling shared libraries support. We urge you to upgrade GNU
16220 *** binutils to release 2.9.1 or newer. Another option is to modify
16221 *** your PATH or compiler configuration so that the native linker is
16222 *** used, and then restart.
16225 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16226 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16227 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16233 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16234 case `$LD -v 2>&1` in
16235 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16239 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16240 *** reliably create shared libraries on SCO systems. Therefore, libtool
16241 *** is disabling shared libraries support. We urge you to upgrade GNU
16242 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16243 *** your PATH or compiler configuration so that the native linker is
16244 *** used, and then restart.
16249 # For security reasons, it is highly recommended that you always
16250 # use absolute paths for naming shared libraries, and exclude the
16251 # DT_RUNPATH tag from executables and libraries. But doing so
16252 # requires that you compile everything twice, which is a pain.
16253 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16254 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16255 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16256 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16265 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16267 hardcode_direct
=yes
16268 hardcode_shlibpath_var
=no
16272 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16273 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16274 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16281 if test "$ld_shlibs" = no
; then
16283 hardcode_libdir_flag_spec
=
16284 export_dynamic_flag_spec
=
16285 whole_archive_flag_spec
=
16288 # PORTME fill in a description of your system's linker (not GNU ld)
16291 allow_undefined_flag
=unsupported
16292 always_export_symbols
=yes
16293 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'
16294 # Note: this linker hardcodes the directories in LIBPATH if there
16295 # are no directories specified by -L.
16296 hardcode_minus_L
=yes
16297 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16298 # Neither direct hardcoding nor static linking is supported with a
16300 hardcode_direct
=unsupported
16305 if test "$host_cpu" = ia64
; then
16306 # On IA64, the linker does run time linking by default, so we don't
16307 # have to do anything special.
16308 aix_use_runtimelinking
=no
16309 exp_sym_flag
='-Bexport'
16312 # If we're using GNU nm, then we don't want the "-C" option.
16313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16314 # Also, AIX nm treats weak defined symbols like other global
16315 # defined symbols, whereas GNU nm marks them as "W".
16316 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16317 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'
16319 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'
16321 aix_use_runtimelinking
=no
16323 # Test if we are trying to use run time linking or normal
16324 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16325 # need to do runtime linking.
16326 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16327 for ld_flag
in $LDFLAGS; do
16328 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16329 aix_use_runtimelinking
=yes
16336 exp_sym_flag
='-bexport'
16337 no_entry_flag
='-bnoentry'
16340 # When large executables or shared objects are built, AIX ld can
16341 # have problems creating the table of contents. If linking a library
16342 # or program results in "error TOC overflow" add -mminimal-toc to
16343 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16344 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16347 hardcode_direct
=yes
16348 hardcode_direct_absolute
=yes
16349 hardcode_libdir_separator
=':'
16350 link_all_deplibs
=yes
16351 file_list_spec
='${wl}-f,'
16353 if test "$GCC" = yes; then
16354 case $host_os in aix4.
[012]|aix4.
[012].
*)
16355 # We only want to do this on AIX 4.2 and lower, the check
16356 # below for broken collect2 doesn't work under 4.3+
16357 collect2name
=`${CC} -print-prog-name=collect2`
16358 if test -f "$collect2name" &&
16359 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16361 # We have reworked collect2
16364 # We have old collect2
16365 hardcode_direct
=unsupported
16366 # It fails to find uninstalled libraries when the uninstalled
16367 # path is not listed in the libpath. Setting hardcode_minus_L
16368 # to unsupported forces relinking
16369 hardcode_minus_L
=yes
16370 hardcode_libdir_flag_spec
='-L$libdir'
16371 hardcode_libdir_separator
=
16375 shared_flag
='-shared'
16376 if test "$aix_use_runtimelinking" = yes; then
16377 shared_flag
="$shared_flag "'${wl}-G'
16381 if test "$host_cpu" = ia64
; then
16382 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16383 # chokes on -Wl,-G. The following line is correct:
16386 if test "$aix_use_runtimelinking" = yes; then
16387 shared_flag
='${wl}-G'
16389 shared_flag
='${wl}-bM:SRE'
16394 export_dynamic_flag_spec
='${wl}-bexpall'
16395 # It seems that -bexpall does not export symbols beginning with
16396 # underscore (_), so it is better to generate a list of symbols to export.
16397 always_export_symbols
=yes
16398 if test "$aix_use_runtimelinking" = yes; then
16399 # Warning - without using the other runtime loading flags (-brtl),
16400 # -berok will link without error, but may produce a broken library.
16401 allow_undefined_flag
='-berok'
16402 # Determine the default libpath from the value encoded in an
16403 # empty executable.
16404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16415 if ac_fn_c_try_link
"$LINENO"; then :
16417 lt_aix_libpath_sed
='
16418 /Import File Strings/,/^$/ {
16424 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16425 # Check for a 64-bit object if we didn't find anything.
16426 if test -z "$aix_libpath"; then
16427 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16430 rm -f core conftest.err conftest.
$ac_objext \
16431 conftest
$ac_exeext conftest.
$ac_ext
16432 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16434 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16435 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"
16437 if test "$host_cpu" = ia64
; then
16438 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16439 allow_undefined_flag
="-z nodefs"
16440 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"
16442 # Determine the default libpath from the value encoded in an
16443 # empty executable.
16444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16445 /* end confdefs.h. */
16455 if ac_fn_c_try_link
"$LINENO"; then :
16457 lt_aix_libpath_sed
='
16458 /Import File Strings/,/^$/ {
16464 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16465 # Check for a 64-bit object if we didn't find anything.
16466 if test -z "$aix_libpath"; then
16467 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16470 rm -f core conftest.err conftest.
$ac_objext \
16471 conftest
$ac_exeext conftest.
$ac_ext
16472 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16474 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16475 # Warning - without using the other run time loading flags,
16476 # -berok will link without error, but may produce a broken library.
16477 no_undefined_flag
=' ${wl}-bernotok'
16478 allow_undefined_flag
=' ${wl}-berok'
16479 if test "$with_gnu_ld" = yes; then
16480 # We only use this code for GNU lds that support --whole-archive.
16481 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16483 # Exported symbols can be pulled into shared objects from archives
16484 whole_archive_flag_spec
='$convenience'
16486 archive_cmds_need_lc
=yes
16487 # This is similar to how AIX traditionally builds its shared libraries.
16488 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'
16496 # see comment about AmigaOS4 .so support
16497 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16498 archive_expsym_cmds
=''
16501 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)'
16502 hardcode_libdir_flag_spec
='-L$libdir'
16503 hardcode_minus_L
=yes
16509 export_dynamic_flag_spec
=-rdynamic
16512 cygwin
* | mingw
* | pw32
* | cegcc
*)
16513 # When not using gcc, we currently assume that we are using
16514 # Microsoft Visual C++.
16515 # hardcode_libdir_flag_spec is actually meaningless, as there is
16516 # no search path for DLLs.
16517 hardcode_libdir_flag_spec
=' '
16518 allow_undefined_flag
=unsupported
16519 # Tell ltmain to make .lib files, not .a files.
16521 # Tell ltmain to make .dll files, not .so files.
16523 # FIXME: Setting linknames here is a bad hack.
16524 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16525 # The linker will automatically build a .lib file if we build a DLL.
16526 old_archive_from_new_cmds
='true'
16527 # FIXME: Should let the user specify the lib program.
16528 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16529 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16530 enable_shared_with_static_runtimes
=yes
16533 darwin
* | rhapsody
*)
16536 archive_cmds_need_lc
=no
16538 hardcode_automatic
=yes
16539 hardcode_shlibpath_var
=unsupported
16540 if test "$lt_cv_ld_force_load" = "yes"; then
16541 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\"`'
16543 whole_archive_flag_spec
=''
16545 link_all_deplibs
=yes
16546 allow_undefined_flag
="$_lt_dar_allow_undefined"
16547 case $cc_basename in
16548 ifort
*) _lt_dar_can_shared
=yes ;;
16549 *) _lt_dar_can_shared
=$GCC ;;
16551 if test "$_lt_dar_can_shared" = "yes"; then
16552 output_verbose_link_cmd
=func_echo_all
16553 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16554 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16555 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}"
16556 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}"
16565 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16566 hardcode_libdir_flag_spec
='-L$libdir'
16567 hardcode_shlibpath_var
=no
16570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16571 # support. Future versions do this automatically, but an explicit c++rt0.o
16572 # does not break anything, and helps significantly (at the cost of a little
16575 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16576 hardcode_libdir_flag_spec
='-R$libdir'
16577 hardcode_direct
=yes
16578 hardcode_shlibpath_var
=no
16581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16583 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16584 hardcode_direct
=yes
16585 hardcode_minus_L
=yes
16586 hardcode_shlibpath_var
=no
16589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16590 freebsd
* | dragonfly
*)
16591 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16592 hardcode_libdir_flag_spec
='-R$libdir'
16593 hardcode_direct
=yes
16594 hardcode_shlibpath_var
=no
16598 if test "$GCC" = yes; then
16599 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'
16601 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'
16603 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16604 hardcode_libdir_separator
=:
16605 hardcode_direct
=yes
16607 # hardcode_minus_L: Not really in the search PATH,
16608 # but as the default location of the library.
16609 hardcode_minus_L
=yes
16610 export_dynamic_flag_spec
='${wl}-E'
16614 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16615 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16617 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16619 if test "$with_gnu_ld" = no
; then
16620 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16621 hardcode_libdir_flag_spec_ld
='+b $libdir'
16622 hardcode_libdir_separator
=:
16623 hardcode_direct
=yes
16624 hardcode_direct_absolute
=yes
16625 export_dynamic_flag_spec
='${wl}-E'
16626 # hardcode_minus_L: Not really in the search PATH,
16627 # but as the default location of the library.
16628 hardcode_minus_L
=yes
16633 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16636 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16639 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16642 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16648 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16651 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16655 # Older versions of the 11.00 compiler do not understand -b yet
16656 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16658 $as_echo_n "checking if $CC understands -b... " >&6; }
16659 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16660 $as_echo_n "(cached) " >&6
16662 lt_cv_prog_compiler__b
=no
16663 save_LDFLAGS
="$LDFLAGS"
16664 LDFLAGS
="$LDFLAGS -b"
16665 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16666 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16667 # The linker can only warn and ignore the option if not recognized
16668 # So say no if there are warnings
16669 if test -s conftest.err
; then
16670 # Append any errors to the config.log.
16671 cat conftest.err
1>&5
16672 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16673 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16674 if diff conftest.exp conftest.er2
>/dev
/null
; then
16675 lt_cv_prog_compiler__b
=yes
16678 lt_cv_prog_compiler__b
=yes
16682 LDFLAGS
="$save_LDFLAGS"
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16686 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16688 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16689 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16691 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16697 if test "$with_gnu_ld" = no
; then
16698 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16699 hardcode_libdir_separator
=:
16704 hardcode_shlibpath_var
=no
16707 hardcode_direct
=yes
16708 hardcode_direct_absolute
=yes
16709 export_dynamic_flag_spec
='${wl}-E'
16711 # hardcode_minus_L: Not really in the search PATH,
16712 # but as the default location of the library.
16713 hardcode_minus_L
=yes
16719 irix5
* | irix6
* | nonstopux
*)
16720 if test "$GCC" = yes; then
16721 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'
16722 # Try to use the -exported_symbol ld option, if it does not
16723 # work, assume that -exports_file does not work either and
16724 # implicitly export all symbols.
16725 save_LDFLAGS
="$LDFLAGS"
16726 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16731 if ac_fn_c_try_link
"$LINENO"; then :
16732 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'
16735 rm -f core conftest.err conftest.
$ac_objext \
16736 conftest
$ac_exeext conftest.
$ac_ext
16737 LDFLAGS
="$save_LDFLAGS"
16739 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'
16740 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'
16742 archive_cmds_need_lc
='no'
16743 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16744 hardcode_libdir_separator
=:
16746 link_all_deplibs
=yes
16750 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16751 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16753 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16755 hardcode_libdir_flag_spec
='-R$libdir'
16756 hardcode_direct
=yes
16757 hardcode_shlibpath_var
=no
16761 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16762 hardcode_direct
=yes
16763 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16764 hardcode_libdir_separator
=:
16765 hardcode_shlibpath_var
=no
16772 if test -f /usr
/libexec
/ld.so
; then
16773 hardcode_direct
=yes
16774 hardcode_shlibpath_var
=no
16775 hardcode_direct_absolute
=yes
16776 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16777 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16778 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16779 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16780 export_dynamic_flag_spec
='${wl}-E'
16783 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16784 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16785 hardcode_libdir_flag_spec
='-R$libdir'
16788 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16789 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16799 hardcode_libdir_flag_spec
='-L$libdir'
16800 hardcode_minus_L
=yes
16801 allow_undefined_flag
=unsupported
16802 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'
16803 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16807 if test "$GCC" = yes; then
16808 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16809 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'
16811 allow_undefined_flag
=' -expect_unresolved \*'
16812 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'
16814 archive_cmds_need_lc
='no'
16815 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16816 hardcode_libdir_separator
=:
16819 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16820 if test "$GCC" = yes; then
16821 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16822 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'
16823 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16825 allow_undefined_flag
=' -expect_unresolved \*'
16826 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'
16827 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~
16828 $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'
16830 # Both c and cxx compiler support -rpath directly
16831 hardcode_libdir_flag_spec
='-rpath $libdir'
16833 archive_cmds_need_lc
='no'
16834 hardcode_libdir_separator
=:
16838 no_undefined_flag
=' -z defs'
16839 if test "$GCC" = yes; then
16841 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16842 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16843 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16845 case `$CC -V 2>&1` in
16848 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16849 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16850 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16854 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16855 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16856 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16860 hardcode_libdir_flag_spec
='-R$libdir'
16861 hardcode_shlibpath_var
=no
16863 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16865 # The compiler driver will combine and reorder linker options,
16866 # but understands `-z linker_flag'. GCC discards it without `$wl',
16867 # but is careful enough not to reorder.
16868 # Supported since Solaris 2.6 (maybe 2.5.1?)
16869 if test "$GCC" = yes; then
16870 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16872 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16876 link_all_deplibs
=yes
16880 if test "x$host_vendor" = xsequent
; then
16881 # Use $CC to link under sequent, because it throws in some extra .o
16882 # files that make .init and .fini sections work.
16883 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16885 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16887 hardcode_libdir_flag_spec
='-L$libdir'
16888 hardcode_direct
=yes
16889 hardcode_minus_L
=yes
16890 hardcode_shlibpath_var
=no
16894 case $host_vendor in
16896 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16897 hardcode_direct
=yes # is this really true???
16900 ## LD is ld it makes a PLAMLIB
16901 ## CC just makes a GrossModule.
16902 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16903 reload_cmds
='$CC -r -o $output$reload_objs'
16907 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16908 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16911 runpath_var
='LD_RUN_PATH'
16912 hardcode_shlibpath_var
=no
16916 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16917 hardcode_shlibpath_var
=no
16918 export_dynamic_flag_spec
='-Bexport'
16922 if test -d /usr
/nec
; then
16923 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16924 hardcode_shlibpath_var
=no
16925 runpath_var
=LD_RUN_PATH
16926 hardcode_runpath_var
=yes
16931 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16932 no_undefined_flag
='${wl}-z,text'
16933 archive_cmds_need_lc
=no
16934 hardcode_shlibpath_var
=no
16935 runpath_var
='LD_RUN_PATH'
16937 if test "$GCC" = yes; then
16938 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16939 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16941 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16942 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16946 sysv5
* | sco3.2v5
* | sco5v6
*)
16947 # Note: We can NOT use -z defs as we might desire, because we do not
16948 # link with -lc, and that would cause any symbols used from libc to
16949 # always be unresolved, which means just about no library would
16950 # ever link correctly. If we're not using GNU ld we use -z text
16951 # though, which does catch some bad symbols but isn't as heavy-handed
16953 no_undefined_flag
='${wl}-z,text'
16954 allow_undefined_flag
='${wl}-z,nodefs'
16955 archive_cmds_need_lc
=no
16956 hardcode_shlibpath_var
=no
16957 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16958 hardcode_libdir_separator
=':'
16959 link_all_deplibs
=yes
16960 export_dynamic_flag_spec
='${wl}-Bexport'
16961 runpath_var
='LD_RUN_PATH'
16963 if test "$GCC" = yes; then
16964 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16965 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16967 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16968 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16973 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16974 hardcode_libdir_flag_spec
='-L$libdir'
16975 hardcode_shlibpath_var
=no
16983 if test x
$host_vendor = xsni
; then
16985 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16986 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16993 $as_echo "$ld_shlibs" >&6; }
16994 test "$ld_shlibs" = no
&& can_build_shared
=no
16996 with_gnu_ld
=$with_gnu_ld
17013 # Do we need to explicitly link libc?
17015 case "x$archive_cmds_need_lc" in
17017 # Assume -lc should be added
17018 archive_cmds_need_lc
=yes
17020 if test "$enable_shared" = yes && test "$GCC" = yes; then
17021 case $archive_cmds in
17023 # FIXME: we may have to deal with multi-command sequences.
17026 # Test whether the compiler implicitly links with -lc since on some
17027 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17028 # to ld, don't add -lc before -lgcc.
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17030 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17031 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17032 $as_echo_n "(cached) " >&6
17035 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17038 (eval $ac_compile) 2>&5
17040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17041 test $ac_status = 0; } 2>conftest.err
; then
17044 libobjs
=conftest.
$ac_objext
17046 wl
=$lt_prog_compiler_wl
17047 pic_flag
=$lt_prog_compiler_pic
17053 lt_save_allow_undefined_flag
=$allow_undefined_flag
17054 allow_undefined_flag
=
17055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17056 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17059 test $ac_status = 0; }
17061 lt_cv_archive_cmds_need_lc
=no
17063 lt_cv_archive_cmds_need_lc
=yes
17065 allow_undefined_flag
=$lt_save_allow_undefined_flag
17067 cat conftest.err
1>&5
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17073 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17074 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17238 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17240 if test "$GCC" = yes; then
17242 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17243 *) lt_awk_arg
="/^libraries:/" ;;
17246 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17247 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17249 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17250 case $lt_search_path_spec in
17252 # if the path contains ";" then we assume it to be the separator
17253 # otherwise default to the standard path separator (i.e. ":") - it is
17254 # assumed that no part of a normal pathname contains ";" but that should
17255 # okay in the real world where ";" in dirpaths is itself problematic.
17256 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17259 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17262 # Ok, now we have the path, separated by spaces, we can step through it
17263 # and add multilib dir if necessary.
17264 lt_tmp_lt_search_path_spec
=
17265 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17266 for lt_sys_path
in $lt_search_path_spec; do
17267 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17268 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17270 test -d "$lt_sys_path" && \
17271 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17274 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17275 BEGIN {RS=" "; FS="/|\n";} {
17278 for (lt_i = NF; lt_i > 0; lt_i--) {
17279 if ($lt_i != "" && $lt_i != ".") {
17280 if ($lt_i == "..") {
17283 if (lt_count == 0) {
17284 lt_foo="/" $lt_i lt_foo;
17291 if (lt_foo != "") { lt_freq[lt_foo]++; }
17292 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17294 # AWK program above erroneously prepends '/' to C:/dos/paths
17297 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17298 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17300 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17302 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17304 library_names_spec
=
17305 libname_spec
='lib$name'
17309 postuninstall_cmds
=
17313 shlibpath_overrides_runpath
=unknown
17315 dynamic_linker
="$host_os ld.so"
17316 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17317 need_lib_prefix
=unknown
17318 hardcode_into_libs
=no
17320 # when you set need_version to no, make sure it does not cause -set_version
17321 # flags to be left without arguments
17322 need_version
=unknown
17327 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17328 shlibpath_var
=LIBPATH
17330 # AIX 3 has no versioning support, so we append a major version to the name.
17331 soname_spec
='${libname}${release}${shared_ext}$major'
17338 hardcode_into_libs
=yes
17339 if test "$host_cpu" = ia64
; then
17340 # AIX 5 supports IA64
17341 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17342 shlibpath_var
=LD_LIBRARY_PATH
17344 # With GCC up to 2.95.x, collect2 would create an import file
17345 # for dependence libraries. The import file would start with
17346 # the line `#! .'. This would cause the generated library to
17347 # depend on `.', always an invalid library. This was fixed in
17348 # development snapshots of GCC prior to 3.0.
17350 aix4 | aix4.
[01] | aix4.
[01].
*)
17351 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17353 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17356 can_build_shared
=no
17360 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17361 # soname into executable. Probably we can add versioning support to
17362 # collect2, so additional links can be useful in future.
17363 if test "$aix_use_runtimelinking" = yes; then
17364 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17365 # instead of lib<name>.a to let people know that these are not
17366 # typical AIX shared libraries.
17367 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 # We preserve .a as extension for shared libraries through AIX4.2
17370 # and later when we are not doing run time linking.
17371 library_names_spec
='${libname}${release}.a $libname.a'
17372 soname_spec
='${libname}${release}${shared_ext}$major'
17374 shlibpath_var
=LIBPATH
17381 # Since July 2007 AmigaOS4 officially supports .so libraries.
17382 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17383 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 library_names_spec
='$libname.ixlibrary $libname.a'
17387 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17388 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'
17394 library_names_spec
='${libname}${shared_ext}'
17395 dynamic_linker
="$host_os ld.so"
17396 shlibpath_var
=LIBRARY_PATH
17402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17403 soname_spec
='${libname}${release}${shared_ext}$major'
17404 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17405 shlibpath_var
=LD_LIBRARY_PATH
17406 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17407 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17408 # the default ld.so.conf also contains /usr/contrib/lib and
17409 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17410 # libtool to hard-code these into programs
17413 cygwin
* | mingw
* | pw32
* | cegcc
*)
17414 version_type
=windows
17419 case $GCC,$host_os in
17420 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17421 library_names_spec
='$libname.dll.a'
17422 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17423 postinstall_cmds
='base_file=`basename \${file}`~
17424 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17425 dldir=$destdir/`dirname \$dlpath`~
17426 test -d \$dldir || mkdir -p \$dldir~
17427 $install_prog $dir/$dlname \$dldir/$dlname~
17428 chmod a+x \$dldir/$dlname~
17429 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17430 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17432 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17433 dlpath=$dir/\$dldll~
17435 shlibpath_overrides_runpath
=yes
17439 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17440 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17442 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17445 # MinGW DLLs use traditional 'lib' prefix
17446 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17449 # pw32 DLLs use 'pw' prefix rather than 'lib'
17450 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17456 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17459 dynamic_linker
='Win32 ld.exe'
17460 # FIXME: first we should search . and the directory the executable is in
17464 darwin
* | rhapsody
*)
17465 dynamic_linker
="$host_os dyld"
17466 version_type
=darwin
17469 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17470 soname_spec
='${libname}${release}${major}$shared_ext'
17471 shlibpath_overrides_runpath
=yes
17472 shlibpath_var
=DYLD_LIBRARY_PATH
17473 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17475 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17476 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17483 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17484 soname_spec
='${libname}${release}${shared_ext}$major'
17485 shlibpath_var
=LD_LIBRARY_PATH
17488 freebsd
* | dragonfly
*)
17489 # DragonFly does not have aout. When/if they implement a new
17490 # versioning mechanism, adjust this.
17491 if test -x /usr
/bin
/objformat
; then
17492 objformat
=`/usr/bin/objformat`
17495 freebsd
[23].
*) objformat
=aout
;;
17496 *) objformat
=elf
;;
17499 version_type
=freebsd-
$objformat
17500 case $version_type in
17502 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17507 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17511 shlibpath_var
=LD_LIBRARY_PATH
17514 shlibpath_overrides_runpath
=yes
17516 freebsd3.
[01]* | freebsdelf3.
[01]*)
17517 shlibpath_overrides_runpath
=yes
17518 hardcode_into_libs
=yes
17520 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17521 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17522 shlibpath_overrides_runpath
=no
17523 hardcode_into_libs
=yes
17525 *) # from 4.6 on, and DragonFly
17526 shlibpath_overrides_runpath
=yes
17527 hardcode_into_libs
=yes
17536 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17537 soname_spec
='${libname}${release}${shared_ext}$major'
17538 shlibpath_var
=LD_LIBRARY_PATH
17539 hardcode_into_libs
=yes
17546 dynamic_linker
="$host_os runtime_loader"
17547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17548 soname_spec
='${libname}${release}${shared_ext}$major'
17549 shlibpath_var
=LIBRARY_PATH
17550 shlibpath_overrides_runpath
=yes
17551 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17552 hardcode_into_libs
=yes
17555 hpux9
* | hpux10
* | hpux11
*)
17556 # Give a soname corresponding to the major version so that dld.sl refuses to
17557 # link against other versions.
17564 hardcode_into_libs
=yes
17565 dynamic_linker
="$host_os dld.so"
17566 shlibpath_var
=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17568 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17569 soname_spec
='${libname}${release}${shared_ext}$major'
17570 if test "X$HPUX_IA64_MODE" = X32
; then
17571 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17573 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17575 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17579 hardcode_into_libs
=yes
17580 dynamic_linker
="$host_os dld.sl"
17581 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17582 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17583 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17584 soname_spec
='${libname}${release}${shared_ext}$major'
17585 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17586 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17590 dynamic_linker
="$host_os dld.sl"
17591 shlibpath_var
=SHLIB_PATH
17592 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17593 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594 soname_spec
='${libname}${release}${shared_ext}$major'
17597 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17598 postinstall_cmds
='chmod 555 $lib'
17599 # or fails outright, so override atomically:
17600 install_override_mode
=555
17607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17608 soname_spec
='${libname}${release}${shared_ext}$major'
17609 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17610 shlibpath_var
=LD_LIBRARY_PATH
17611 shlibpath_overrides_runpath
=no
17612 hardcode_into_libs
=yes
17615 irix5
* | irix6
* | nonstopux
*)
17617 nonstopux
*) version_type
=nonstopux
;;
17619 if test "$lt_cv_prog_gnu_ld" = yes; then
17627 soname_spec
='${libname}${release}${shared_ext}$major'
17628 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17630 irix5
* | nonstopux
*)
17631 libsuff
= shlibsuff
=
17634 case $LD in # libtool.m4 will add one of these switches to LD
17635 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17636 libsuff
= shlibsuff
= libmagic
=32-bit;;
17637 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17638 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17639 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17640 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17641 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17645 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17646 shlibpath_overrides_runpath
=no
17647 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17648 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17649 hardcode_into_libs
=yes
17652 # No shared lib support for Linux oldld, aout, or coff.
17653 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17657 # This must be Linux ELF.
17658 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17662 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17663 soname_spec
='${libname}${release}${shared_ext}$major'
17664 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17665 shlibpath_var
=LD_LIBRARY_PATH
17666 shlibpath_overrides_runpath
=no
17668 # Some binutils ld are patched to set DT_RUNPATH
17669 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17670 $as_echo_n "(cached) " >&6
17672 lt_cv_shlibpath_overrides_runpath
=no
17673 save_LDFLAGS
=$LDFLAGS
17674 save_libdir
=$libdir
17675 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17676 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17688 if ac_fn_c_try_link
"$LINENO"; then :
17689 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17690 lt_cv_shlibpath_overrides_runpath
=yes
17693 rm -f core conftest.err conftest.
$ac_objext \
17694 conftest
$ac_exeext conftest.
$ac_ext
17695 LDFLAGS
=$save_LDFLAGS
17696 libdir
=$save_libdir
17700 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17702 # This implies no fast_install, which is unacceptable.
17703 # Some rework will be needed to allow for fast_install
17704 # before this can be enabled.
17705 hardcode_into_libs
=yes
17707 # Append ld.so.conf contents to the search path
17708 if test -f /etc
/ld.so.conf
; then
17709 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' ' '`
17710 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17713 # We used to test for /lib/ld.so.1 and disable shared libraries on
17714 # powerpc, because MkLinux only supported shared libraries with the
17715 # GNU dynamic linker. Since this was broken with cross compilers,
17716 # most powerpc-linux boxes support dynamic linking these days and
17717 # people can always --disable-shared, the test was removed, and we
17718 # assume the GNU/Linux dynamic linker is in use.
17719 dynamic_linker
='GNU/Linux ld.so'
17726 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17728 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17729 dynamic_linker
='NetBSD (a.out) ld.so'
17731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17732 soname_spec
='${libname}${release}${shared_ext}$major'
17733 dynamic_linker
='NetBSD ld.elf_so'
17735 shlibpath_var
=LD_LIBRARY_PATH
17736 shlibpath_overrides_runpath
=yes
17737 hardcode_into_libs
=yes
17742 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17743 shlibpath_var
=LD_LIBRARY_PATH
17744 shlibpath_overrides_runpath
=yes
17751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17752 soname_spec
='${libname}${release}${shared_ext}$major'
17753 shlibpath_var
=LD_LIBRARY_PATH
17754 shlibpath_overrides_runpath
=no
17755 hardcode_into_libs
=yes
17756 dynamic_linker
='ldqnx.so'
17761 sys_lib_dlsearch_path_spec
="/usr/lib"
17763 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17765 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17766 *) need_version
=no
;;
17768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17769 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17770 shlibpath_var
=LD_LIBRARY_PATH
17771 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17773 openbsd2.
[89] | openbsd2.
[89].
*)
17774 shlibpath_overrides_runpath
=no
17777 shlibpath_overrides_runpath
=yes
17781 shlibpath_overrides_runpath
=yes
17786 libname_spec
='$name'
17789 library_names_spec
='$libname${shared_ext} $libname.a'
17790 dynamic_linker
='OS/2 ld.exe'
17791 shlibpath_var
=LIBPATH
17794 osf3
* | osf4
* | osf5
*)
17798 soname_spec
='${libname}${release}${shared_ext}$major'
17799 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 shlibpath_var
=LD_LIBRARY_PATH
17801 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17802 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17813 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814 soname_spec
='${libname}${release}${shared_ext}$major'
17815 shlibpath_var
=LD_LIBRARY_PATH
17816 shlibpath_overrides_runpath
=yes
17817 hardcode_into_libs
=yes
17818 # ldd complains unless libraries are executable
17819 postinstall_cmds
='chmod +x $lib'
17824 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17825 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17826 shlibpath_var
=LD_LIBRARY_PATH
17827 shlibpath_overrides_runpath
=yes
17828 if test "$with_gnu_ld" = yes; then
17836 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17837 soname_spec
='${libname}${release}${shared_ext}$major'
17838 shlibpath_var
=LD_LIBRARY_PATH
17839 case $host_vendor in
17841 shlibpath_overrides_runpath
=no
17843 runpath_var
=LD_RUN_PATH
17851 shlibpath_overrides_runpath
=no
17852 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17858 if test -d /usr
/nec
;then
17860 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17861 soname_spec
='$libname${shared_ext}.$major'
17862 shlibpath_var
=LD_LIBRARY_PATH
17866 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17867 version_type
=freebsd-elf
17870 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17871 soname_spec
='${libname}${release}${shared_ext}$major'
17872 shlibpath_var
=LD_LIBRARY_PATH
17873 shlibpath_overrides_runpath
=yes
17874 hardcode_into_libs
=yes
17875 if test "$with_gnu_ld" = yes; then
17876 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17878 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17881 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17885 sys_lib_dlsearch_path_spec
='/usr/lib'
17889 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17893 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894 shlibpath_var
=LD_LIBRARY_PATH
17895 shlibpath_overrides_runpath
=no
17896 hardcode_into_libs
=yes
17901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17902 soname_spec
='${libname}${release}${shared_ext}$major'
17903 shlibpath_var
=LD_LIBRARY_PATH
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17911 $as_echo "$dynamic_linker" >&6; }
17912 test "$dynamic_linker" = no
&& can_build_shared
=no
17914 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17915 if test "$GCC" = yes; then
17916 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17919 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17920 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17922 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17923 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18018 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18020 if test -n "$hardcode_libdir_flag_spec" ||
18021 test -n "$runpath_var" ||
18022 test "X$hardcode_automatic" = "Xyes" ; then
18024 # We can hardcode non-existent directories.
18025 if test "$hardcode_direct" != no
&&
18026 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18027 # have to relink, otherwise we might link with an installed library
18028 # when we should be linking with a yet-to-be-installed one
18029 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18030 test "$hardcode_minus_L" != no
; then
18031 # Linking always hardcodes the temporary library directory.
18032 hardcode_action
=relink
18034 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18035 hardcode_action
=immediate
18038 # We cannot hardcode anything, or else we can only hardcode existing
18040 hardcode_action
=unsupported
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18043 $as_echo "$hardcode_action" >&6; }
18045 if test "$hardcode_action" = relink ||
18046 test "$inherit_rpath" = yes; then
18047 # Fast installation is not supported
18048 enable_fast_install
=no
18049 elif test "$shlibpath_overrides_runpath" = yes ||
18050 test "$enable_shared" = no
; then
18051 # Fast installation is not necessary
18052 enable_fast_install
=needless
18060 if test "x$enable_dlopen" != xyes
; then
18061 enable_dlopen
=unknown
18062 enable_dlopen_self
=unknown
18063 enable_dlopen_self_static
=unknown
18070 lt_cv_dlopen
="load_add_on"
18072 lt_cv_dlopen_self
=yes
18075 mingw
* | pw32
* | cegcc
*)
18076 lt_cv_dlopen
="LoadLibrary"
18081 lt_cv_dlopen
="dlopen"
18086 # if libdl is installed we need to link against it
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18088 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18089 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18090 $as_echo_n "(cached) " >&6
18092 ac_check_lib_save_LIBS
=$LIBS
18094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18095 /* end confdefs.h. */
18097 /* Override any GCC internal prototype to avoid an error.
18098 Use char because int might match the return type of a GCC
18099 builtin and then its argument prototype would still apply. */
18112 if ac_fn_c_try_link
"$LINENO"; then :
18113 ac_cv_lib_dl_dlopen
=yes
18115 ac_cv_lib_dl_dlopen
=no
18117 rm -f core conftest.err conftest.
$ac_objext \
18118 conftest
$ac_exeext conftest.
$ac_ext
18119 LIBS
=$ac_check_lib_save_LIBS
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18122 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18123 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18124 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18127 lt_cv_dlopen
="dyld"
18129 lt_cv_dlopen_self
=yes
18136 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18137 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18138 lt_cv_dlopen
="shl_load"
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18141 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18142 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18143 $as_echo_n "(cached) " >&6
18145 ac_check_lib_save_LIBS
=$LIBS
18147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18160 return shl_load ();
18165 if ac_fn_c_try_link
"$LINENO"; then :
18166 ac_cv_lib_dld_shl_load
=yes
18168 ac_cv_lib_dld_shl_load
=no
18170 rm -f core conftest.err conftest.
$ac_objext \
18171 conftest
$ac_exeext conftest.
$ac_ext
18172 LIBS
=$ac_check_lib_save_LIBS
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18175 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18176 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18177 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18179 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18180 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18181 lt_cv_dlopen
="dlopen"
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18184 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18186 $as_echo_n "(cached) " >&6
18188 ac_check_lib_save_LIBS
=$LIBS
18190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18191 /* end confdefs.h. */
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18208 if ac_fn_c_try_link
"$LINENO"; then :
18209 ac_cv_lib_dl_dlopen
=yes
18211 ac_cv_lib_dl_dlopen
=no
18213 rm -f core conftest.err conftest.
$ac_objext \
18214 conftest
$ac_exeext conftest.
$ac_ext
18215 LIBS
=$ac_check_lib_save_LIBS
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18219 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18220 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18223 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18224 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18225 $as_echo_n "(cached) " >&6
18227 ac_check_lib_save_LIBS
=$LIBS
18228 LIBS
="-lsvld $LIBS"
18229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18230 /* end confdefs.h. */
18232 /* Override any GCC internal prototype to avoid an error.
18233 Use char because int might match the return type of a GCC
18234 builtin and then its argument prototype would still apply. */
18247 if ac_fn_c_try_link
"$LINENO"; then :
18248 ac_cv_lib_svld_dlopen
=yes
18250 ac_cv_lib_svld_dlopen
=no
18252 rm -f core conftest.err conftest.
$ac_objext \
18253 conftest
$ac_exeext conftest.
$ac_ext
18254 LIBS
=$ac_check_lib_save_LIBS
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18257 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18258 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18259 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18262 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18263 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18264 $as_echo_n "(cached) " >&6
18266 ac_check_lib_save_LIBS
=$LIBS
18268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h. */
18271 /* Override any GCC internal prototype to avoid an error.
18272 Use char because int might match the return type of a GCC
18273 builtin and then its argument prototype would still apply. */
18281 return dld_link ();
18286 if ac_fn_c_try_link
"$LINENO"; then :
18287 ac_cv_lib_dld_dld_link
=yes
18289 ac_cv_lib_dld_dld_link
=no
18291 rm -f core conftest.err conftest.
$ac_objext \
18292 conftest
$ac_exeext conftest.
$ac_ext
18293 LIBS
=$ac_check_lib_save_LIBS
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18296 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18297 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18298 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18319 if test "x$lt_cv_dlopen" != xno
; then
18325 case $lt_cv_dlopen in
18327 save_CPPFLAGS
="$CPPFLAGS"
18328 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18330 save_LDFLAGS
="$LDFLAGS"
18331 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18334 LIBS
="$lt_cv_dlopen_libs $LIBS"
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18337 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18338 if test "${lt_cv_dlopen_self+set}" = set; then :
18339 $as_echo_n "(cached) " >&6
18341 if test "$cross_compiling" = yes; then :
18342 lt_cv_dlopen_self
=cross
18344 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18345 lt_status
=$lt_dlunknown
18346 cat > conftest.
$ac_ext <<_LT_EOF
18347 #line 18347 "configure"
18348 #include "confdefs.h"
18357 # define LT_DLGLOBAL RTLD_GLOBAL
18360 # define LT_DLGLOBAL DL_GLOBAL
18362 # define LT_DLGLOBAL 0
18366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18367 find out it does not work in some platform. */
18368 #ifndef LT_DLLAZY_OR_NOW
18370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18373 # define LT_DLLAZY_OR_NOW DL_LAZY
18376 # define LT_DLLAZY_OR_NOW RTLD_NOW
18379 # define LT_DLLAZY_OR_NOW DL_NOW
18381 # define LT_DLLAZY_OR_NOW 0
18388 /* When -fvisbility=hidden is used, assume the code has been annotated
18389 correspondingly for the symbols needed. */
18390 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18391 void fnord () __attribute__((visibility("default")));
18394 void fnord () { int i=42; }
18397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18398 int status = $lt_dlunknown;
18402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18406 else puts (dlerror ());
18408 /* dlclose (self); */
18416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18417 (eval $ac_link) 2>&5
18419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18420 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18421 (.
/conftest
; exit; ) >&5 2>/dev
/null
18423 case x
$lt_status in
18424 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18425 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18426 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18429 # compilation failed
18430 lt_cv_dlopen_self
=no
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18438 $as_echo "$lt_cv_dlopen_self" >&6; }
18440 if test "x$lt_cv_dlopen_self" = xyes
; then
18441 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18443 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18444 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18445 $as_echo_n "(cached) " >&6
18447 if test "$cross_compiling" = yes; then :
18448 lt_cv_dlopen_self_static
=cross
18450 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18451 lt_status
=$lt_dlunknown
18452 cat > conftest.
$ac_ext <<_LT_EOF
18453 #line 18453 "configure"
18454 #include "confdefs.h"
18463 # define LT_DLGLOBAL RTLD_GLOBAL
18466 # define LT_DLGLOBAL DL_GLOBAL
18468 # define LT_DLGLOBAL 0
18472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18473 find out it does not work in some platform. */
18474 #ifndef LT_DLLAZY_OR_NOW
18476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18479 # define LT_DLLAZY_OR_NOW DL_LAZY
18482 # define LT_DLLAZY_OR_NOW RTLD_NOW
18485 # define LT_DLLAZY_OR_NOW DL_NOW
18487 # define LT_DLLAZY_OR_NOW 0
18494 /* When -fvisbility=hidden is used, assume the code has been annotated
18495 correspondingly for the symbols needed. */
18496 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18497 void fnord () __attribute__((visibility("default")));
18500 void fnord () { int i=42; }
18503 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18504 int status = $lt_dlunknown;
18508 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18511 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18512 else puts (dlerror ());
18514 /* dlclose (self); */
18522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18523 (eval $ac_link) 2>&5
18525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18526 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18527 (.
/conftest
; exit; ) >&5 2>/dev
/null
18529 case x
$lt_status in
18530 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18531 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18532 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18535 # compilation failed
18536 lt_cv_dlopen_self_static
=no
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18544 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18547 CPPFLAGS
="$save_CPPFLAGS"
18548 LDFLAGS
="$save_LDFLAGS"
18553 case $lt_cv_dlopen_self in
18554 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18555 *) enable_dlopen_self
=unknown
;;
18558 case $lt_cv_dlopen_self_static in
18559 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18560 *) enable_dlopen_self_static
=unknown
;;
18582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18583 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18584 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18585 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18586 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18588 $as_echo "yes" >&6; }
18590 # FIXME - insert some real tests, host_os isn't really good enough
18593 if test -n "$STRIP" ; then
18594 striplib
="$STRIP -x"
18595 old_striplib
="$STRIP -S"
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18597 $as_echo "yes" >&6; }
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18600 $as_echo "no" >&6; }
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18605 $as_echo "no" >&6; }
18621 # Report which library types will actually be built
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18623 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18625 $as_echo "$can_build_shared" >&6; }
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18628 $as_echo_n "checking whether to build shared libraries... " >&6; }
18629 test "$can_build_shared" = "no" && enable_shared
=no
18631 # On AIX, shared libraries and static libraries use the same namespace, and
18632 # are all built from PIC.
18635 test "$enable_shared" = yes && enable_static
=no
18636 if test -n "$RANLIB"; then
18637 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18638 postinstall_cmds
='$RANLIB $lib'
18643 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18644 test "$enable_shared" = yes && enable_static
=no
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18649 $as_echo "$enable_shared" >&6; }
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18652 $as_echo_n "checking whether to build static libraries... " >&6; }
18653 # Make sure either enable_shared or enable_static is yes.
18654 test "$enable_shared" = yes || enable_static
=yes
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18656 $as_echo "$enable_static" >&6; }
18663 ac_cpp
='$CXXCPP $CPPFLAGS'
18664 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18665 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18666 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18670 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18671 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18672 (test "X$CXX" != "Xg++"))) ; then
18674 ac_cpp
='$CXXCPP $CPPFLAGS'
18675 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18676 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18677 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18679 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18680 if test -z "$CXXCPP"; then
18681 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18682 $as_echo_n "(cached) " >&6
18684 # Double quotes because CXXCPP needs to be expanded
18685 for CXXCPP
in "$CXX -E" "/lib/cpp"
18687 ac_preproc_ok
=false
18688 for ac_cxx_preproc_warn_flag
in '' yes
18690 # Use a header file that comes with gcc, so configuring glibc
18691 # with a fresh cross-compiler works.
18692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18693 # <limits.h> exists even on freestanding compilers.
18694 # On the NeXT, cc -E runs the code through the compiler's parser,
18695 # not just through cpp. "Syntax error" is here to catch this case.
18696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18699 # include <limits.h>
18701 # include <assert.h>
18705 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18708 # Broken: fails on valid input.
18711 rm -f conftest.err conftest.
$ac_ext
18713 # OK, works on sane cases. Now check whether nonexistent headers
18714 # can be detected and how.
18715 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18716 /* end confdefs.h. */
18717 #include <ac_nonexistent.h>
18719 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18720 # Broken: success on invalid input.
18723 # Passes both tests.
18727 rm -f conftest.err conftest.
$ac_ext
18730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18731 rm -f conftest.err conftest.
$ac_ext
18732 if $ac_preproc_ok; then :
18737 ac_cv_prog_CXXCPP
=$CXXCPP
18740 CXXCPP
=$ac_cv_prog_CXXCPP
18742 ac_cv_prog_CXXCPP
=$CXXCPP
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18745 $as_echo "$CXXCPP" >&6; }
18746 ac_preproc_ok
=false
18747 for ac_cxx_preproc_warn_flag
in '' yes
18749 # Use a header file that comes with gcc, so configuring glibc
18750 # with a fresh cross-compiler works.
18751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752 # <limits.h> exists even on freestanding compilers.
18753 # On the NeXT, cc -E runs the code through the compiler's parser,
18754 # not just through cpp. "Syntax error" is here to catch this case.
18755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18756 /* end confdefs.h. */
18758 # include <limits.h>
18760 # include <assert.h>
18764 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18767 # Broken: fails on valid input.
18770 rm -f conftest.err conftest.
$ac_ext
18772 # OK, works on sane cases. Now check whether nonexistent headers
18773 # can be detected and how.
18774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18775 /* end confdefs.h. */
18776 #include <ac_nonexistent.h>
18778 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18779 # Broken: success on invalid input.
18782 # Passes both tests.
18786 rm -f conftest.err conftest.
$ac_ext
18789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18790 rm -f conftest.err conftest.
$ac_ext
18791 if $ac_preproc_ok; then :
18794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18796 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18797 See \`config.log' for more details." "$LINENO" 5; }
18801 ac_cpp
='$CXXCPP $CPPFLAGS'
18802 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18803 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18804 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18807 _lt_caught_CXX_error
=yes
18811 ac_cpp
='$CXXCPP $CPPFLAGS'
18812 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18816 archive_cmds_need_lc_CXX
=no
18817 allow_undefined_flag_CXX
=
18818 always_export_symbols_CXX
=no
18819 archive_expsym_cmds_CXX
=
18820 compiler_needs_object_CXX
=no
18821 export_dynamic_flag_spec_CXX
=
18822 hardcode_direct_CXX
=no
18823 hardcode_direct_absolute_CXX
=no
18824 hardcode_libdir_flag_spec_CXX
=
18825 hardcode_libdir_flag_spec_ld_CXX
=
18826 hardcode_libdir_separator_CXX
=
18827 hardcode_minus_L_CXX
=no
18828 hardcode_shlibpath_var_CXX
=unsupported
18829 hardcode_automatic_CXX
=no
18830 inherit_rpath_CXX
=no
18832 module_expsym_cmds_CXX
=
18833 link_all_deplibs_CXX
=unknown
18834 old_archive_cmds_CXX
=$old_archive_cmds
18835 reload_flag_CXX
=$reload_flag
18836 reload_cmds_CXX
=$reload_cmds
18837 no_undefined_flag_CXX
=
18838 whole_archive_flag_spec_CXX
=
18839 enable_shared_with_static_runtimes_CXX
=no
18841 # Source file extension for C++ test sources.
18844 # Object file extension for compiled C++ test sources.
18848 # No sense in running all these tests if we already determined that
18849 # the CXX compiler isn't working. Some variables (like enable_shared)
18850 # are currently assumed to apply to all compilers on this platform,
18851 # and will be corrupted by setting them based on a non-working compiler.
18852 if test "$_lt_caught_CXX_error" != yes; then
18853 # Code to be used in simple compile tests
18854 lt_simple_compile_test_code
="int some_variable = 0;"
18856 # Code to be used in simple link tests
18857 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18866 # If no C compiler was specified, use CC.
18869 # If no C compiler flags were specified, use CFLAGS.
18870 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18872 # Allow CC to be a program name with arguments.
18876 # save warnings/boilerplate of simple test code
18877 ac_outfile
=conftest.
$ac_objext
18878 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18879 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18880 _lt_compiler_boilerplate
=`cat conftest.err`
18883 ac_outfile
=conftest.
$ac_objext
18884 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18885 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18886 _lt_linker_boilerplate
=`cat conftest.err`
18890 # Allow CC to be a program name with arguments.
18895 lt_save_with_gnu_ld
=$with_gnu_ld
18896 lt_save_path_LD
=$lt_cv_path_LD
18897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18898 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18900 $as_unset lt_cv_prog_gnu_ld
18902 if test -n "${lt_cv_path_LDCXX+set}"; then
18903 lt_cv_path_LD
=$lt_cv_path_LDCXX
18905 $as_unset lt_cv_path_LD
18907 test -z "${LDCXX+set}" || LD
=$LDCXX
18911 for cc_temp
in $compiler""; do
18913 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18914 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18919 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18922 if test -n "$compiler"; then
18923 # We don't want -fno-exception when compiling C++ code, so set the
18924 # no_builtin_flag separately
18925 if test "$GXX" = yes; then
18926 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18928 lt_prog_compiler_no_builtin_flag_CXX
=
18931 if test "$GXX" = yes; then
18932 # Set up default GNU C++ configuration
18936 # Check whether --with-gnu-ld was given.
18937 if test "${with_gnu_ld+set}" = set; then :
18938 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18944 if test "$GCC" = yes; then
18945 # Check if gcc -print-prog-name=ld gives a path.
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18947 $as_echo_n "checking for ld used by $CC... " >&6; }
18950 # gcc leaves a trailing carriage return which upsets mingw
18951 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18953 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18956 # Accept absolute paths.
18958 re_direlt
='/[^/][^/]*/\.\./'
18959 # Canonicalize the pathname of ld
18960 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18961 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18962 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18964 test -z "$LD" && LD
="$ac_prog"
18967 # If it fails, then pretend we aren't using GCC.
18971 # If it is relative, then search for the first ld in PATH.
18972 with_gnu_ld
=unknown
18975 elif test "$with_gnu_ld" = yes; then
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18977 $as_echo_n "checking for GNU ld... " >&6; }
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18980 $as_echo_n "checking for non-GNU ld... " >&6; }
18982 if test "${lt_cv_path_LD+set}" = set; then :
18983 $as_echo_n "(cached) " >&6
18985 if test -z "$LD"; then
18986 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18987 for ac_dir
in $PATH; do
18989 test -z "$ac_dir" && ac_dir
=.
18990 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18991 lt_cv_path_LD
="$ac_dir/$ac_prog"
18992 # Check to see if the program is GNU ld. I'd rather use --version,
18993 # but apparently some variants of GNU ld only accept -v.
18994 # Break only if it was the GNU/non-GNU ld that we prefer.
18995 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18996 *GNU
* |
*'with BFD'*)
18997 test "$with_gnu_ld" != no
&& break
19000 test "$with_gnu_ld" != yes && break
19007 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19011 LD
="$lt_cv_path_LD"
19012 if test -n "$LD"; then
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19014 $as_echo "$LD" >&6; }
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19017 $as_echo "no" >&6; }
19019 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19021 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19022 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19023 $as_echo_n "(cached) " >&6
19025 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19026 case `$LD -v 2>&1 </dev/null` in
19027 *GNU
* |
*'with BFD'*)
19028 lt_cv_prog_gnu_ld
=yes
19031 lt_cv_prog_gnu_ld
=no
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19036 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19037 with_gnu_ld
=$lt_cv_prog_gnu_ld
19045 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19046 # archiving commands below assume that GNU ld is being used.
19047 if test "$with_gnu_ld" = yes; then
19048 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19049 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'
19051 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19052 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19054 # If archive_cmds runs LD, not CC, wlarc should be empty
19055 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19056 # investigate it a little bit more. (MM)
19059 # ancient GNU ld didn't support --whole-archive et. al.
19060 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19061 $GREP 'no-whole-archive' > /dev
/null
; then
19062 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19064 whole_archive_flag_spec_CXX
=
19070 # A generic and very simple default shared library creation
19071 # command for GNU C++ for the case where it uses the native
19072 # linker, instead of GNU ld. If possible, this setting should
19073 # overridden to take advantage of the native linker features on
19074 # the platform it is being used on.
19075 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19078 # Commands to make compiler produce verbose output that lists
19079 # what "hidden" libraries, object files and flags are used when
19080 # linking a shared library.
19081 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19089 # PORTME: fill in a description of your system's C++ link characteristics
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19091 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19095 # FIXME: insert proper C++ library support
19099 if test "$host_cpu" = ia64
; then
19100 # On IA64, the linker does run time linking by default, so we don't
19101 # have to do anything special.
19102 aix_use_runtimelinking
=no
19103 exp_sym_flag
='-Bexport'
19106 aix_use_runtimelinking
=no
19108 # Test if we are trying to use run time linking or normal
19109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19110 # need to do runtime linking.
19111 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19112 for ld_flag
in $LDFLAGS; do
19115 aix_use_runtimelinking
=yes
19123 exp_sym_flag
='-bexport'
19124 no_entry_flag
='-bnoentry'
19127 # When large executables or shared objects are built, AIX ld can
19128 # have problems creating the table of contents. If linking a library
19129 # or program results in "error TOC overflow" add -mminimal-toc to
19130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19133 archive_cmds_CXX
=''
19134 hardcode_direct_CXX
=yes
19135 hardcode_direct_absolute_CXX
=yes
19136 hardcode_libdir_separator_CXX
=':'
19137 link_all_deplibs_CXX
=yes
19138 file_list_spec_CXX
='${wl}-f,'
19140 if test "$GXX" = yes; then
19141 case $host_os in aix4.
[012]|aix4.
[012].
*)
19142 # We only want to do this on AIX 4.2 and lower, the check
19143 # below for broken collect2 doesn't work under 4.3+
19144 collect2name
=`${CC} -print-prog-name=collect2`
19145 if test -f "$collect2name" &&
19146 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19148 # We have reworked collect2
19151 # We have old collect2
19152 hardcode_direct_CXX
=unsupported
19153 # It fails to find uninstalled libraries when the uninstalled
19154 # path is not listed in the libpath. Setting hardcode_minus_L
19155 # to unsupported forces relinking
19156 hardcode_minus_L_CXX
=yes
19157 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19158 hardcode_libdir_separator_CXX
=
19161 shared_flag
='-shared'
19162 if test "$aix_use_runtimelinking" = yes; then
19163 shared_flag
="$shared_flag "'${wl}-G'
19167 if test "$host_cpu" = ia64
; then
19168 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19169 # chokes on -Wl,-G. The following line is correct:
19172 if test "$aix_use_runtimelinking" = yes; then
19173 shared_flag
='${wl}-G'
19175 shared_flag
='${wl}-bM:SRE'
19180 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19181 # It seems that -bexpall does not export symbols beginning with
19182 # underscore (_), so it is better to generate a list of symbols to
19184 always_export_symbols_CXX
=yes
19185 if test "$aix_use_runtimelinking" = yes; then
19186 # Warning - without using the other runtime loading flags (-brtl),
19187 # -berok will link without error, but may produce a broken library.
19188 allow_undefined_flag_CXX
='-berok'
19189 # Determine the default libpath from the value encoded in an empty
19191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19192 /* end confdefs.h. */
19202 if ac_fn_cxx_try_link
"$LINENO"; then :
19204 lt_aix_libpath_sed
='
19205 /Import File Strings/,/^$/ {
19211 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19212 # Check for a 64-bit object if we didn't find anything.
19213 if test -z "$aix_libpath"; then
19214 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19217 rm -f core conftest.err conftest.
$ac_objext \
19218 conftest
$ac_exeext conftest.
$ac_ext
19219 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19221 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19223 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"
19225 if test "$host_cpu" = ia64
; then
19226 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19227 allow_undefined_flag_CXX
="-z nodefs"
19228 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"
19230 # Determine the default libpath from the value encoded in an
19231 # empty executable.
19232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19233 /* end confdefs.h. */
19243 if ac_fn_cxx_try_link
"$LINENO"; then :
19245 lt_aix_libpath_sed
='
19246 /Import File Strings/,/^$/ {
19252 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19253 # Check for a 64-bit object if we didn't find anything.
19254 if test -z "$aix_libpath"; then
19255 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19258 rm -f core conftest.err conftest.
$ac_objext \
19259 conftest
$ac_exeext conftest.
$ac_ext
19260 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19262 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19263 # Warning - without using the other run time loading flags,
19264 # -berok will link without error, but may produce a broken library.
19265 no_undefined_flag_CXX
=' ${wl}-bernotok'
19266 allow_undefined_flag_CXX
=' ${wl}-berok'
19267 if test "$with_gnu_ld" = yes; then
19268 # We only use this code for GNU lds that support --whole-archive.
19269 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19271 # Exported symbols can be pulled into shared objects from archives
19272 whole_archive_flag_spec_CXX
='$convenience'
19274 archive_cmds_need_lc_CXX
=yes
19275 # This is similar to how AIX traditionally builds its shared
19277 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'
19283 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19284 allow_undefined_flag_CXX
=unsupported
19285 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19286 # support --undefined. This deserves some investigation. FIXME
19287 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19294 case $cc_basename in
19296 # FIXME: insert proper C++ library support
19302 cygwin
* | mingw
* | pw32
* | cegcc
*)
19303 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19304 # as there is no search path for DLLs.
19305 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19306 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19307 allow_undefined_flag_CXX
=unsupported
19308 always_export_symbols_CXX
=no
19309 enable_shared_with_static_runtimes_CXX
=yes
19311 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19312 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'
19313 # If the export-symbols file already is a .def file (1st line
19314 # is EXPORTS), use it as is; otherwise, prepend...
19315 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19316 cp $export_symbols $output_objdir/$soname.def;
19318 echo EXPORTS > $output_objdir/$soname.def;
19319 cat $export_symbols >> $output_objdir/$soname.def;
19321 $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'
19326 darwin
* | rhapsody
*)
19329 archive_cmds_need_lc_CXX
=no
19330 hardcode_direct_CXX
=no
19331 hardcode_automatic_CXX
=yes
19332 hardcode_shlibpath_var_CXX
=unsupported
19333 if test "$lt_cv_ld_force_load" = "yes"; then
19334 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\"`'
19336 whole_archive_flag_spec_CXX
=''
19338 link_all_deplibs_CXX
=yes
19339 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19340 case $cc_basename in
19341 ifort
*) _lt_dar_can_shared
=yes ;;
19342 *) _lt_dar_can_shared
=$GCC ;;
19344 if test "$_lt_dar_can_shared" = "yes"; then
19345 output_verbose_link_cmd
=func_echo_all
19346 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}"
19347 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19348 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}"
19349 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}"
19350 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19351 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}"
19352 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}"
19362 case $cc_basename in
19364 # FIXME: insert proper C++ library support
19368 # Green Hills C++ Compiler
19369 # FIXME: insert proper C++ library support
19373 # FIXME: insert proper C++ library support
19380 # C++ shared libraries reported to be fairly broken before
19386 archive_cmds_need_lc_CXX
=no
19389 freebsd
* | dragonfly
*)
19390 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19399 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19400 link_all_deplibs_CXX
=yes
19404 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19405 hardcode_libdir_separator_CXX
=:
19406 export_dynamic_flag_spec_CXX
='${wl}-E'
19407 hardcode_direct_CXX
=yes
19408 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19409 # but as the default
19410 # location of the library.
19412 case $cc_basename in
19414 # FIXME: insert proper C++ library support
19418 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'
19419 # Commands to make compiler produce verbose output that lists
19420 # what "hidden" libraries, object files and flags are used when
19421 # linking a shared library.
19423 # There doesn't appear to be a way to prevent this compiler from
19424 # explicitly linking system object files so we need to strip them
19425 # from the output so that they don't get included in the library
19427 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"'
19430 if test "$GXX" = yes; then
19431 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'
19433 # FIXME: insert proper C++ library support
19441 if test $with_gnu_ld = no
; then
19442 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19443 hardcode_libdir_separator_CXX
=:
19449 export_dynamic_flag_spec_CXX
='${wl}-E'
19455 hardcode_direct_CXX
=no
19456 hardcode_shlibpath_var_CXX
=no
19459 hardcode_direct_CXX
=yes
19460 hardcode_direct_absolute_CXX
=yes
19461 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19462 # but as the default
19463 # location of the library.
19467 case $cc_basename in
19469 # FIXME: insert proper C++ library support
19475 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19478 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19481 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19484 # Commands to make compiler produce verbose output that lists
19485 # what "hidden" libraries, object files and flags are used when
19486 # linking a shared library.
19488 # There doesn't appear to be a way to prevent this compiler from
19489 # explicitly linking system object files so we need to strip them
19490 # from the output so that they don't get included in the library
19492 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"'
19495 if test "$GXX" = yes; then
19496 if test $with_gnu_ld = no
; then
19499 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19502 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19505 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'
19510 # FIXME: insert proper C++ library support
19518 hardcode_direct_CXX
=no
19519 hardcode_shlibpath_var_CXX
=no
19520 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19521 export_dynamic_flag_spec_CXX
='${wl}-E'
19522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19523 # Instead, shared libraries are loaded at an image base (0x10000000 by
19524 # default) and relocated if they conflict, which is a slow very memory
19525 # consuming and fragmenting process. To avoid this, we pick a random,
19526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19528 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'
19529 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'
19532 case $cc_basename in
19535 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'
19537 # Archives containing C++ object files must be created using
19538 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19539 # necessary to make sure instantiated templates are included
19541 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19544 if test "$GXX" = yes; then
19545 if test "$with_gnu_ld" = no
; then
19546 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'
19548 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'
19551 link_all_deplibs_CXX
=yes
19554 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19555 hardcode_libdir_separator_CXX
=:
19556 inherit_rpath_CXX
=yes
19559 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19560 case $cc_basename in
19562 # Kuck and Associates, Inc. (KAI) C++ Compiler
19564 # KCC will only create a shared library if the output file
19565 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19566 # to its proper name (with version) after linking.
19567 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'
19568 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'
19569 # Commands to make compiler produce verbose output that lists
19570 # what "hidden" libraries, object files and flags are used when
19571 # linking a shared library.
19573 # There doesn't appear to be a way to prevent this compiler from
19574 # explicitly linking system object files so we need to strip them
19575 # from the output so that they don't get included in the library
19577 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"'
19579 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19580 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19582 # Archives containing C++ object files must be created using
19583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19584 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19589 # version 8.0 and above of icpc choke on multiply defined symbols
19590 # if we add $predep_objects and $postdep_objects, however 7.1 and
19591 # earlier do not add the objects themselves.
19592 case `$CC -V 2>&1` in
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 ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19597 *) # Version 8.0 or newer
19600 ia64
*) tmp_idyn
=' -i_dynamic';;
19602 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19603 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'
19606 archive_cmds_need_lc_CXX
=no
19607 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19608 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19609 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19612 # Portland Group C++ compiler
19614 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19615 prelink_cmds_CXX
='tpldir=Template.dir~
19617 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19618 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19619 old_archive_cmds_CXX
='tpldir=Template.dir~
19621 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19622 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19624 archive_cmds_CXX
='tpldir=Template.dir~
19626 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19627 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19628 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19630 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19631 $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'
19633 *) # Version 6 and above use weak symbols
19634 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19635 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'
19639 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19640 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19641 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'
19645 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19646 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'
19648 runpath_var
=LD_RUN_PATH
19649 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19650 hardcode_libdir_separator_CXX
=:
19652 # Commands to make compiler produce verbose output that lists
19653 # what "hidden" libraries, object files and flags are used when
19654 # linking a shared library.
19656 # There doesn't appear to be a way to prevent this compiler from
19657 # explicitly linking system object files so we need to strip them
19658 # from the output so that they don't get included in the library
19660 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'
19662 xl
* | mpixl
* | bgxl
*)
19663 # IBM XL 8.0 on PPC, with GNU ld
19664 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19665 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19666 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19667 if test "x$supports_anon_versioning" = xyes
; then
19668 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19670 echo "local: *; };" >> $output_objdir/$libname.ver~
19671 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19675 case `$CC -V 2>&1 | sed 5q` in
19678 no_undefined_flag_CXX
=' -zdefs'
19679 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19680 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'
19681 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19682 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'
19683 compiler_needs_object_CXX
=yes
19685 # Not sure whether something based on
19686 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19688 output_verbose_link_cmd
='func_echo_all'
19690 # Archives containing C++ object files must be created using
19691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19692 # necessary to make sure instantiated templates are included
19694 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19702 # FIXME: insert proper C++ library support
19707 # FIXME: insert proper C++ library support
19712 case $cc_basename in
19714 # FIXME: insert proper C++ library support
19718 # FIXME: insert proper C++ library support
19725 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19726 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19728 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19729 hardcode_direct_CXX
=yes
19730 hardcode_shlibpath_var_CXX
=no
19732 # Workaround some broken pre-1.5 toolchains
19733 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19741 # C++ shared libraries are fairly broken
19746 if test -f /usr
/libexec
/ld.so
; then
19747 hardcode_direct_CXX
=yes
19748 hardcode_shlibpath_var_CXX
=no
19749 hardcode_direct_absolute_CXX
=yes
19750 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19751 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19753 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19754 export_dynamic_flag_spec_CXX
='${wl}-E'
19755 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19757 output_verbose_link_cmd
=func_echo_all
19763 osf3
* | osf4
* | osf5
*)
19764 case $cc_basename in
19766 # Kuck and Associates, Inc. (KAI) C++ Compiler
19768 # KCC will only create a shared library if the output file
19769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19770 # to its proper name (with version) after linking.
19771 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'
19773 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19774 hardcode_libdir_separator_CXX
=:
19776 # Archives containing C++ object files must be created using
19777 # the KAI C++ compiler.
19779 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19780 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19784 # Rational C++ 2.4.1
19785 # FIXME: insert proper C++ library support
19791 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19792 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'
19793 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19796 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19797 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'
19798 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19799 echo "-hidden">> $lib.exp~
19800 $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~
19802 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19806 hardcode_libdir_separator_CXX
=:
19808 # Commands to make compiler produce verbose output that lists
19809 # what "hidden" libraries, object files and flags are used when
19810 # linking a shared library.
19812 # There doesn't appear to be a way to prevent this compiler from
19813 # explicitly linking system object files so we need to strip them
19814 # from the output so that they don't get included in the library
19816 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"'
19819 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19820 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19823 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'
19826 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'
19830 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19831 hardcode_libdir_separator_CXX
=:
19833 # Commands to make compiler produce verbose output that lists
19834 # what "hidden" libraries, object files and flags are used when
19835 # linking a shared library.
19836 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19839 # FIXME: insert proper C++ library support
19847 # FIXME: insert proper C++ library support
19852 case $cc_basename in
19855 # FIXME: insert proper C++ library support
19860 # FIXME: insert proper C++ library support
19864 # FIXME: insert proper C++ library support
19871 case $cc_basename in
19873 # Sun C++ 4.2, 5.x and Centerline C++
19874 archive_cmds_need_lc_CXX
=yes
19875 no_undefined_flag_CXX
=' -zdefs'
19876 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19877 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19878 $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'
19880 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19881 hardcode_shlibpath_var_CXX
=no
19883 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19885 # The compiler driver will combine and reorder linker options,
19886 # but understands `-z linker_flag'.
19887 # Supported since Solaris 2.6 (maybe 2.5.1?)
19888 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19891 link_all_deplibs_CXX
=yes
19893 output_verbose_link_cmd
='func_echo_all'
19895 # Archives containing C++ object files must be created using
19896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19897 # necessary to make sure instantiated templates are included
19899 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19902 # Green Hills C++ Compiler
19903 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19905 # The C++ compiler must be used to create the archive.
19906 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19909 # GNU C++ compiler with Solaris linker
19910 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19911 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19912 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19913 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19914 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19915 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19917 # Commands to make compiler produce verbose output that lists
19918 # what "hidden" libraries, object files and flags are used when
19919 # linking a shared library.
19920 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19924 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19925 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19926 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19928 # Commands to make compiler produce verbose output that lists
19929 # what "hidden" libraries, object files and flags are used when
19930 # linking a shared library.
19931 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19934 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19936 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19938 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19946 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19947 no_undefined_flag_CXX
='${wl}-z,text'
19948 archive_cmds_need_lc_CXX
=no
19949 hardcode_shlibpath_var_CXX
=no
19950 runpath_var
='LD_RUN_PATH'
19952 case $cc_basename in
19954 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19955 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19958 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19959 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19964 sysv5
* | sco3.2v5
* | sco5v6
*)
19965 # Note: We can NOT use -z defs as we might desire, because we do not
19966 # link with -lc, and that would cause any symbols used from libc to
19967 # always be unresolved, which means just about no library would
19968 # ever link correctly. If we're not using GNU ld we use -z text
19969 # though, which does catch some bad symbols but isn't as heavy-handed
19971 no_undefined_flag_CXX
='${wl}-z,text'
19972 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19973 archive_cmds_need_lc_CXX
=no
19974 hardcode_shlibpath_var_CXX
=no
19975 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19976 hardcode_libdir_separator_CXX
=':'
19977 link_all_deplibs_CXX
=yes
19978 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19979 runpath_var
='LD_RUN_PATH'
19981 case $cc_basename in
19983 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19984 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19985 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19986 '"$old_archive_cmds_CXX"
19987 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19988 '"$reload_cmds_CXX"
19991 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19992 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19998 case $cc_basename in
20000 # NonStop-UX NCC 3.20
20001 # FIXME: insert proper C++ library support
20005 # FIXME: insert proper C++ library support
20012 # FIXME: insert proper C++ library support
20017 # FIXME: insert proper C++ library support
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20023 $as_echo "$ld_shlibs_CXX" >&6; }
20024 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20030 ## There is no encapsulation within the following macros, do not change
20031 ## the running order or otherwise move them around unless you know exactly
20032 ## what you are doing...
20033 # Dependencies to place before and after the object being linked:
20034 predep_objects_CXX
=
20035 postdep_objects_CXX
=
20038 compiler_lib_search_path_CXX
=
20040 cat > conftest.
$ac_ext <<_LT_EOF
20044 Foo (void) { a = 0; }
20050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20051 (eval $ac_compile) 2>&5
20053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20054 test $ac_status = 0; }; then
20055 # Parse the compiler output and extract the necessary
20056 # objects, libraries and library flags.
20058 # Sentinel used to keep track of whether or not we are before
20059 # the conftest object file.
20060 pre_test_object_deps_done
=no
20062 for p
in `eval "$output_verbose_link_cmd"`; do
20066 # Some compilers place space between "-{L,R}" and the path.
20067 # Remove the space.
20068 if test $p = "-L" ||
20069 test $p = "-R"; then
20076 if test "$pre_test_object_deps_done" = no
; then
20079 # Internal compiler library paths should come after those
20080 # provided the user. The postdeps already come after the
20081 # user supplied libs so there is no need to process them.
20082 if test -z "$compiler_lib_search_path_CXX"; then
20083 compiler_lib_search_path_CXX
="${prev}${p}"
20085 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20088 # The "-l" case would never come before the object being
20089 # linked, so don't bother handling this case.
20092 if test -z "$postdeps_CXX"; then
20093 postdeps_CXX
="${prev}${p}"
20095 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20101 # This assumes that the test object file only shows up
20102 # once in the compiler output.
20103 if test "$p" = "conftest.$objext"; then
20104 pre_test_object_deps_done
=yes
20108 if test "$pre_test_object_deps_done" = no
; then
20109 if test -z "$predep_objects_CXX"; then
20110 predep_objects_CXX
="$p"
20112 predep_objects_CXX
="$predep_objects_CXX $p"
20115 if test -z "$postdep_objects_CXX"; then
20116 postdep_objects_CXX
="$p"
20118 postdep_objects_CXX
="$postdep_objects_CXX $p"
20123 *) ;; # Ignore the rest.
20131 echo "libtool.m4: error: problem compiling CXX test program"
20134 $RM -f confest.
$objext
20136 # PORTME: override above test on systems where it is broken
20139 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20140 # hack all around it, let's just trust "g++" to DTRT.
20141 predep_objects_CXX
=
20142 postdep_objects_CXX
=
20147 case `$CC -V 2>&1 | sed 5q` in
20151 # The more standards-conforming stlport4 library is
20152 # incompatible with the Cstd library. Avoid specifying
20153 # it if it's in CXXFLAGS. Ignore libCrun as
20154 # -library=stlport4 depends on it.
20155 case " $CXX $CXXFLAGS " in
20156 *" -library=stlport4 "*)
20157 solaris_use_stlport4
=yes
20161 if test "$solaris_use_stlport4" != yes; then
20162 postdeps_CXX
='-library=Cstd -library=Crun'
20169 case $cc_basename in
20171 # The more standards-conforming stlport4 library is
20172 # incompatible with the Cstd library. Avoid specifying
20173 # it if it's in CXXFLAGS. Ignore libCrun as
20174 # -library=stlport4 depends on it.
20175 case " $CXX $CXXFLAGS " in
20176 *" -library=stlport4 "*)
20177 solaris_use_stlport4
=yes
20181 # Adding this requires a known-good setup of shared libraries for
20182 # Sun compiler versions before 5.6, else PIC objects from an old
20183 # archive will be linked into the output, leading to subtle bugs.
20184 if test "$solaris_use_stlport4" != yes; then
20185 postdeps_CXX
='-library=Cstd -library=Crun'
20193 case " $postdeps_CXX " in
20194 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20196 compiler_lib_search_dirs_CXX
=
20197 if test -n "${compiler_lib_search_path_CXX}"; then
20198 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20231 lt_prog_compiler_wl_CXX
=
20232 lt_prog_compiler_pic_CXX
=
20233 lt_prog_compiler_static_CXX
=
20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20236 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20238 # C++ specific cases for pic, static, wl, etc.
20239 if test "$GXX" = yes; then
20240 lt_prog_compiler_wl_CXX
='-Wl,'
20241 lt_prog_compiler_static_CXX
='-static'
20245 # All AIX code is PIC.
20246 if test "$host_cpu" = ia64
; then
20247 # AIX 5 now supports IA64 processor
20248 lt_prog_compiler_static_CXX
='-Bstatic'
20250 lt_prog_compiler_pic_CXX
='-fPIC'
20256 # see comment about AmigaOS4 .so support
20257 lt_prog_compiler_pic_CXX
='-fPIC'
20260 # FIXME: we need at least 68020 code to build shared libraries, but
20261 # adding the `-m68020' flag to GCC prevents building anything better,
20263 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20268 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20269 # PIC is the default for these OSes.
20271 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20272 # This hack is so that the source file can tell whether it is being
20273 # built for inclusion in a dll (and should export symbols for example).
20274 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20275 # (--disable-auto-import) libraries
20276 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20278 darwin
* | rhapsody
*)
20279 # PIC is the default on this platform
20280 # Common symbols not allowed in MH_DYLIB files
20281 lt_prog_compiler_pic_CXX
='-fno-common'
20284 # DJGPP does not support shared libraries at all
20285 lt_prog_compiler_pic_CXX
=
20288 # PIC is the default for Haiku.
20289 # The "-static" flag exists, but is broken.
20290 lt_prog_compiler_static_CXX
=
20293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20294 # Instead, we relocate shared libraries at runtime.
20297 if test -d /usr
/nec
; then
20298 lt_prog_compiler_pic_CXX
=-Kconform_pic
20302 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20303 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20304 # sets the default TLS model and affects inlining.
20309 lt_prog_compiler_pic_CXX
='-fPIC'
20314 # QNX uses GNU C++, but need to define -shared option too, otherwise
20315 # it will coredump.
20316 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20319 lt_prog_compiler_pic_CXX
='-fPIC'
20325 # All AIX code is PIC.
20326 if test "$host_cpu" = ia64
; then
20327 # AIX 5 now supports IA64 processor
20328 lt_prog_compiler_static_CXX
='-Bstatic'
20330 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20334 case $cc_basename in
20336 # Green Hills C++ Compiler
20337 # _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"
20342 case $cc_basename in
20344 lt_prog_compiler_pic_CXX
='-KPIC'
20347 # Green Hills C++ Compiler
20348 lt_prog_compiler_pic_CXX
='-pic'
20354 freebsd
* | dragonfly
*)
20355 # FreeBSD uses GNU C++
20357 hpux9
* | hpux10
* | hpux11
*)
20358 case $cc_basename in
20360 lt_prog_compiler_wl_CXX
='-Wl,'
20361 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20362 if test "$host_cpu" != ia64
; then
20363 lt_prog_compiler_pic_CXX
='+Z'
20367 lt_prog_compiler_wl_CXX
='-Wl,'
20368 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20374 lt_prog_compiler_pic_CXX
='+Z'
20383 # This is c89, which is MS Visual C++ (no shared libs)
20384 # Anyone wants to do a port?
20386 irix5
* | irix6
* | nonstopux
*)
20387 case $cc_basename in
20389 lt_prog_compiler_wl_CXX
='-Wl,'
20390 lt_prog_compiler_static_CXX
='-non_shared'
20391 # CC pic flag -KPIC is the default.
20397 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20398 case $cc_basename in
20401 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20402 lt_prog_compiler_pic_CXX
='-fPIC'
20405 # old Intel C++ for x86_64 which still supported -KPIC.
20406 lt_prog_compiler_wl_CXX
='-Wl,'
20407 lt_prog_compiler_pic_CXX
='-KPIC'
20408 lt_prog_compiler_static_CXX
='-static'
20411 # Intel C++, used to be incompatible with GCC.
20412 # ICC 10 doesn't accept -KPIC any more.
20413 lt_prog_compiler_wl_CXX
='-Wl,'
20414 lt_prog_compiler_pic_CXX
='-fPIC'
20415 lt_prog_compiler_static_CXX
='-static'
20418 # Portland Group C++ compiler
20419 lt_prog_compiler_wl_CXX
='-Wl,'
20420 lt_prog_compiler_pic_CXX
='-fpic'
20421 lt_prog_compiler_static_CXX
='-Bstatic'
20425 # Make sure the PIC flag is empty. It appears that all Alpha
20426 # Linux and Compaq Tru64 Unix objects are PIC.
20427 lt_prog_compiler_pic_CXX
=
20428 lt_prog_compiler_static_CXX
='-non_shared'
20430 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20431 # IBM XL 8.0, 9.0 on PPC and BlueGene
20432 lt_prog_compiler_wl_CXX
='-Wl,'
20433 lt_prog_compiler_pic_CXX
='-qpic'
20434 lt_prog_compiler_static_CXX
='-qstaticlink'
20437 case `$CC -V 2>&1 | sed 5q` in
20440 lt_prog_compiler_pic_CXX
='-KPIC'
20441 lt_prog_compiler_static_CXX
='-Bstatic'
20442 lt_prog_compiler_wl_CXX
='-Qoption ld '
20453 case $cc_basename in
20455 lt_prog_compiler_pic_CXX
='-W c,exportall'
20464 # QNX uses GNU C++, but need to define -shared option too, otherwise
20465 # it will coredump.
20466 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20468 osf3
* | osf4
* | osf5
*)
20469 case $cc_basename in
20471 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20474 # Rational C++ 2.4.1
20475 lt_prog_compiler_pic_CXX
='-pic'
20478 # Digital/Compaq C++
20479 lt_prog_compiler_wl_CXX
='-Wl,'
20480 # Make sure the PIC flag is empty. It appears that all Alpha
20481 # Linux and Compaq Tru64 Unix objects are PIC.
20482 lt_prog_compiler_pic_CXX
=
20483 lt_prog_compiler_static_CXX
='-non_shared'
20492 case $cc_basename in
20494 # Sun C++ 4.2, 5.x and Centerline C++
20495 lt_prog_compiler_pic_CXX
='-KPIC'
20496 lt_prog_compiler_static_CXX
='-Bstatic'
20497 lt_prog_compiler_wl_CXX
='-Qoption ld '
20500 # Green Hills C++ Compiler
20501 lt_prog_compiler_pic_CXX
='-PIC'
20508 case $cc_basename in
20511 lt_prog_compiler_pic_CXX
='-pic'
20512 lt_prog_compiler_static_CXX
='-Bstatic'
20516 lt_prog_compiler_pic_CXX
='-pic'
20522 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20523 case $cc_basename in
20525 lt_prog_compiler_wl_CXX
='-Wl,'
20526 lt_prog_compiler_pic_CXX
='-KPIC'
20527 lt_prog_compiler_static_CXX
='-Bstatic'
20532 case $cc_basename in
20534 # NonStop-UX NCC 3.20
20535 lt_prog_compiler_pic_CXX
='-KPIC'
20544 lt_prog_compiler_can_build_shared_CXX
=no
20550 # For platforms which do not support PIC, -DPIC is meaningless:
20552 lt_prog_compiler_pic_CXX
=
20555 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20559 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20564 # Check to make sure the PIC flag actually works.
20566 if test -n "$lt_prog_compiler_pic_CXX"; then
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20568 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20569 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20570 $as_echo_n "(cached) " >&6
20572 lt_cv_prog_compiler_pic_works_CXX
=no
20573 ac_outfile
=conftest.
$ac_objext
20574 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20575 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20576 # Insert the option either (1) after the last *FLAGS variable, or
20577 # (2) before a word containing "conftest.", or (3) at the end.
20578 # Note that $ac_compile itself does not contain backslashes and begins
20579 # with a dollar sign (not a hyphen), so the echo should work correctly.
20580 # The option is referenced via a variable to avoid confusing sed.
20581 lt_compile
=`echo "$ac_compile" | $SED \
20582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20584 -e 's:$: $lt_compiler_flag:'`
20585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20586 (eval "$lt_compile" 2>conftest.err
)
20588 cat conftest.err
>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 if (exit $ac_status) && test -s "$ac_outfile"; then
20591 # The compiler can only warn and ignore the option if not recognized
20592 # So say no if there are warnings other than the usual output.
20593 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20594 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20595 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20596 lt_cv_prog_compiler_pic_works_CXX
=yes
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20603 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20605 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20606 case $lt_prog_compiler_pic_CXX in
20608 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20611 lt_prog_compiler_pic_CXX
=
20612 lt_prog_compiler_can_build_shared_CXX
=no
20620 # Check to make sure the static flag actually works.
20622 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20624 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20625 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20626 $as_echo_n "(cached) " >&6
20628 lt_cv_prog_compiler_static_works_CXX
=no
20629 save_LDFLAGS
="$LDFLAGS"
20630 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20631 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20632 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20633 # The linker can only warn and ignore the option if not recognized
20634 # So say no if there are warnings
20635 if test -s conftest.err
; then
20636 # Append any errors to the config.log.
20637 cat conftest.err
1>&5
20638 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20639 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20640 if diff conftest.exp conftest.er2
>/dev
/null
; then
20641 lt_cv_prog_compiler_static_works_CXX
=yes
20644 lt_cv_prog_compiler_static_works_CXX
=yes
20648 LDFLAGS
="$save_LDFLAGS"
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20652 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20654 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20657 lt_prog_compiler_static_CXX
=
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20664 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20665 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20666 $as_echo_n "(cached) " >&6
20668 lt_cv_prog_compiler_c_o_CXX
=no
20669 $RM -r conftest
2>/dev
/null
20673 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20675 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20676 # Insert the option either (1) after the last *FLAGS variable, or
20677 # (2) before a word containing "conftest.", or (3) at the end.
20678 # Note that $ac_compile itself does not contain backslashes and begins
20679 # with a dollar sign (not a hyphen), so the echo should work correctly.
20680 lt_compile
=`echo "$ac_compile" | $SED \
20681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20683 -e 's:$: $lt_compiler_flag:'`
20684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20685 (eval "$lt_compile" 2>out
/conftest.err
)
20687 cat out
/conftest.err
>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20691 # The compiler can only warn and ignore the option if not recognized
20692 # So say no if there are warnings
20693 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20694 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20695 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20696 lt_cv_prog_compiler_c_o_CXX
=yes
20701 # SGI C++ compiler will create directory out/ii_files/ for
20702 # template instantiation
20703 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20704 $RM out
/* && rmdir out
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20711 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20716 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20717 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20718 $as_echo_n "(cached) " >&6
20720 lt_cv_prog_compiler_c_o_CXX
=no
20721 $RM -r conftest
2>/dev
/null
20725 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20727 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20728 # Insert the option either (1) after the last *FLAGS variable, or
20729 # (2) before a word containing "conftest.", or (3) at the end.
20730 # Note that $ac_compile itself does not contain backslashes and begins
20731 # with a dollar sign (not a hyphen), so the echo should work correctly.
20732 lt_compile
=`echo "$ac_compile" | $SED \
20733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20735 -e 's:$: $lt_compiler_flag:'`
20736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20737 (eval "$lt_compile" 2>out
/conftest.err
)
20739 cat out
/conftest.err
>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20743 # The compiler can only warn and ignore the option if not recognized
20744 # So say no if there are warnings
20745 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20746 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20747 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20748 lt_cv_prog_compiler_c_o_CXX
=yes
20753 # SGI C++ compiler will create directory out/ii_files/ for
20754 # template instantiation
20755 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20756 $RM out
/* && rmdir out
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20763 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20768 hard_links
="nottested"
20769 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20770 # do not overwrite the value of need_locks provided by the user
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20772 $as_echo_n "checking if we can lock with hard links... " >&6; }
20775 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20777 ln conftest.a conftest.b
2>&5 || hard_links
=no
20778 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20780 $as_echo "$hard_links" >&6; }
20781 if test "$hard_links" = no
; then
20782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20783 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20793 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20795 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20798 # If we're using GNU nm, then we don't want the "-C" option.
20799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20800 # Also, AIX nm treats weak defined symbols like other global defined
20801 # symbols, whereas GNU nm marks them as "W".
20802 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20803 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'
20805 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'
20809 export_symbols_cmds_CXX
="$ltdll_cmds"
20811 cygwin
* | mingw
* | cegcc
*)
20812 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'
20815 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20818 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20821 $as_echo "$ld_shlibs_CXX" >&6; }
20822 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20824 with_gnu_ld_CXX
=$with_gnu_ld
20832 # Do we need to explicitly link libc?
20834 case "x$archive_cmds_need_lc_CXX" in
20836 # Assume -lc should be added
20837 archive_cmds_need_lc_CXX
=yes
20839 if test "$enable_shared" = yes && test "$GCC" = yes; then
20840 case $archive_cmds_CXX in
20842 # FIXME: we may have to deal with multi-command sequences.
20845 # Test whether the compiler implicitly links with -lc since on some
20846 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20847 # to ld, don't add -lc before -lgcc.
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20849 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20850 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20851 $as_echo_n "(cached) " >&6
20854 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20857 (eval $ac_compile) 2>&5
20859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20860 test $ac_status = 0; } 2>conftest.err
; then
20863 libobjs
=conftest.
$ac_objext
20865 wl
=$lt_prog_compiler_wl_CXX
20866 pic_flag
=$lt_prog_compiler_pic_CXX
20872 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20873 allow_undefined_flag_CXX
=
20874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20875 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20878 test $ac_status = 0; }
20880 lt_cv_archive_cmds_need_lc_CXX
=no
20882 lt_cv_archive_cmds_need_lc_CXX
=yes
20884 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20886 cat conftest.err
1>&5
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20892 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20893 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20964 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20966 library_names_spec
=
20967 libname_spec
='lib$name'
20971 postuninstall_cmds
=
20975 shlibpath_overrides_runpath
=unknown
20977 dynamic_linker
="$host_os ld.so"
20978 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20979 need_lib_prefix
=unknown
20980 hardcode_into_libs
=no
20982 # when you set need_version to no, make sure it does not cause -set_version
20983 # flags to be left without arguments
20984 need_version
=unknown
20989 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20990 shlibpath_var
=LIBPATH
20992 # AIX 3 has no versioning support, so we append a major version to the name.
20993 soname_spec
='${libname}${release}${shared_ext}$major'
21000 hardcode_into_libs
=yes
21001 if test "$host_cpu" = ia64
; then
21002 # AIX 5 supports IA64
21003 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21004 shlibpath_var
=LD_LIBRARY_PATH
21006 # With GCC up to 2.95.x, collect2 would create an import file
21007 # for dependence libraries. The import file would start with
21008 # the line `#! .'. This would cause the generated library to
21009 # depend on `.', always an invalid library. This was fixed in
21010 # development snapshots of GCC prior to 3.0.
21012 aix4 | aix4.
[01] | aix4.
[01].
*)
21013 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21015 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21018 can_build_shared
=no
21022 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21023 # soname into executable. Probably we can add versioning support to
21024 # collect2, so additional links can be useful in future.
21025 if test "$aix_use_runtimelinking" = yes; then
21026 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21027 # instead of lib<name>.a to let people know that these are not
21028 # typical AIX shared libraries.
21029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21031 # We preserve .a as extension for shared libraries through AIX4.2
21032 # and later when we are not doing run time linking.
21033 library_names_spec
='${libname}${release}.a $libname.a'
21034 soname_spec
='${libname}${release}${shared_ext}$major'
21036 shlibpath_var
=LIBPATH
21043 # Since July 2007 AmigaOS4 officially supports .so libraries.
21044 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21048 library_names_spec
='$libname.ixlibrary $libname.a'
21049 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21050 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'
21056 library_names_spec
='${libname}${shared_ext}'
21057 dynamic_linker
="$host_os ld.so"
21058 shlibpath_var
=LIBRARY_PATH
21064 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21065 soname_spec
='${libname}${release}${shared_ext}$major'
21066 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21067 shlibpath_var
=LD_LIBRARY_PATH
21068 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21069 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21070 # the default ld.so.conf also contains /usr/contrib/lib and
21071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21072 # libtool to hard-code these into programs
21075 cygwin
* | mingw
* | pw32
* | cegcc
*)
21076 version_type
=windows
21081 case $GCC,$host_os in
21082 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21083 library_names_spec
='$libname.dll.a'
21084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21085 postinstall_cmds
='base_file=`basename \${file}`~
21086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21087 dldir=$destdir/`dirname \$dlpath`~
21088 test -d \$dldir || mkdir -p \$dldir~
21089 $install_prog $dir/$dlname \$dldir/$dlname~
21090 chmod a+x \$dldir/$dlname~
21091 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21092 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21094 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21095 dlpath=$dir/\$dldll~
21097 shlibpath_overrides_runpath
=yes
21101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21102 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21106 # MinGW DLLs use traditional 'lib' prefix
21107 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21110 # pw32 DLLs use 'pw' prefix rather than 'lib'
21111 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21117 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21120 dynamic_linker
='Win32 ld.exe'
21121 # FIXME: first we should search . and the directory the executable is in
21125 darwin
* | rhapsody
*)
21126 dynamic_linker
="$host_os dyld"
21127 version_type
=darwin
21130 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21131 soname_spec
='${libname}${release}${major}$shared_ext'
21132 shlibpath_overrides_runpath
=yes
21133 shlibpath_var
=DYLD_LIBRARY_PATH
21134 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21136 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21143 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21144 soname_spec
='${libname}${release}${shared_ext}$major'
21145 shlibpath_var
=LD_LIBRARY_PATH
21148 freebsd
* | dragonfly
*)
21149 # DragonFly does not have aout. When/if they implement a new
21150 # versioning mechanism, adjust this.
21151 if test -x /usr
/bin
/objformat
; then
21152 objformat
=`/usr/bin/objformat`
21155 freebsd
[23].
*) objformat
=aout
;;
21156 *) objformat
=elf
;;
21159 version_type
=freebsd-
$objformat
21160 case $version_type in
21162 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21167 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21171 shlibpath_var
=LD_LIBRARY_PATH
21174 shlibpath_overrides_runpath
=yes
21176 freebsd3.
[01]* | freebsdelf3.
[01]*)
21177 shlibpath_overrides_runpath
=yes
21178 hardcode_into_libs
=yes
21180 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21181 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21182 shlibpath_overrides_runpath
=no
21183 hardcode_into_libs
=yes
21185 *) # from 4.6 on, and DragonFly
21186 shlibpath_overrides_runpath
=yes
21187 hardcode_into_libs
=yes
21196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21197 soname_spec
='${libname}${release}${shared_ext}$major'
21198 shlibpath_var
=LD_LIBRARY_PATH
21199 hardcode_into_libs
=yes
21206 dynamic_linker
="$host_os runtime_loader"
21207 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21208 soname_spec
='${libname}${release}${shared_ext}$major'
21209 shlibpath_var
=LIBRARY_PATH
21210 shlibpath_overrides_runpath
=yes
21211 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21212 hardcode_into_libs
=yes
21215 hpux9
* | hpux10
* | hpux11
*)
21216 # Give a soname corresponding to the major version so that dld.sl refuses to
21217 # link against other versions.
21224 hardcode_into_libs
=yes
21225 dynamic_linker
="$host_os dld.so"
21226 shlibpath_var
=LD_LIBRARY_PATH
21227 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21229 soname_spec
='${libname}${release}${shared_ext}$major'
21230 if test "X$HPUX_IA64_MODE" = X32
; then
21231 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21233 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21235 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21239 hardcode_into_libs
=yes
21240 dynamic_linker
="$host_os dld.sl"
21241 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21242 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21244 soname_spec
='${libname}${release}${shared_ext}$major'
21245 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21246 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21250 dynamic_linker
="$host_os dld.sl"
21251 shlibpath_var
=SHLIB_PATH
21252 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21254 soname_spec
='${libname}${release}${shared_ext}$major'
21257 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21258 postinstall_cmds
='chmod 555 $lib'
21259 # or fails outright, so override atomically:
21260 install_override_mode
=555
21267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21268 soname_spec
='${libname}${release}${shared_ext}$major'
21269 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21270 shlibpath_var
=LD_LIBRARY_PATH
21271 shlibpath_overrides_runpath
=no
21272 hardcode_into_libs
=yes
21275 irix5
* | irix6
* | nonstopux
*)
21277 nonstopux
*) version_type
=nonstopux
;;
21279 if test "$lt_cv_prog_gnu_ld" = yes; then
21287 soname_spec
='${libname}${release}${shared_ext}$major'
21288 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21290 irix5
* | nonstopux
*)
21291 libsuff
= shlibsuff
=
21294 case $LD in # libtool.m4 will add one of these switches to LD
21295 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21296 libsuff
= shlibsuff
= libmagic
=32-bit;;
21297 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21298 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21299 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21300 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21301 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21305 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21306 shlibpath_overrides_runpath
=no
21307 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21308 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21309 hardcode_into_libs
=yes
21312 # No shared lib support for Linux oldld, aout, or coff.
21313 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21317 # This must be Linux ELF.
21318 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21323 soname_spec
='${libname}${release}${shared_ext}$major'
21324 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21325 shlibpath_var
=LD_LIBRARY_PATH
21326 shlibpath_overrides_runpath
=no
21328 # Some binutils ld are patched to set DT_RUNPATH
21329 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21330 $as_echo_n "(cached) " >&6
21332 lt_cv_shlibpath_overrides_runpath
=no
21333 save_LDFLAGS
=$LDFLAGS
21334 save_libdir
=$libdir
21335 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21336 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h. */
21348 if ac_fn_cxx_try_link
"$LINENO"; then :
21349 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21350 lt_cv_shlibpath_overrides_runpath
=yes
21353 rm -f core conftest.err conftest.
$ac_objext \
21354 conftest
$ac_exeext conftest.
$ac_ext
21355 LDFLAGS
=$save_LDFLAGS
21356 libdir
=$save_libdir
21360 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21362 # This implies no fast_install, which is unacceptable.
21363 # Some rework will be needed to allow for fast_install
21364 # before this can be enabled.
21365 hardcode_into_libs
=yes
21367 # Append ld.so.conf contents to the search path
21368 if test -f /etc
/ld.so.conf
; then
21369 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' ' '`
21370 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21373 # We used to test for /lib/ld.so.1 and disable shared libraries on
21374 # powerpc, because MkLinux only supported shared libraries with the
21375 # GNU dynamic linker. Since this was broken with cross compilers,
21376 # most powerpc-linux boxes support dynamic linking these days and
21377 # people can always --disable-shared, the test was removed, and we
21378 # assume the GNU/Linux dynamic linker is in use.
21379 dynamic_linker
='GNU/Linux ld.so'
21386 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21387 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21388 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21389 dynamic_linker
='NetBSD (a.out) ld.so'
21391 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21392 soname_spec
='${libname}${release}${shared_ext}$major'
21393 dynamic_linker
='NetBSD ld.elf_so'
21395 shlibpath_var
=LD_LIBRARY_PATH
21396 shlibpath_overrides_runpath
=yes
21397 hardcode_into_libs
=yes
21402 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21403 shlibpath_var
=LD_LIBRARY_PATH
21404 shlibpath_overrides_runpath
=yes
21411 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21412 soname_spec
='${libname}${release}${shared_ext}$major'
21413 shlibpath_var
=LD_LIBRARY_PATH
21414 shlibpath_overrides_runpath
=no
21415 hardcode_into_libs
=yes
21416 dynamic_linker
='ldqnx.so'
21421 sys_lib_dlsearch_path_spec
="/usr/lib"
21423 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21425 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21426 *) need_version
=no
;;
21428 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21429 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21430 shlibpath_var
=LD_LIBRARY_PATH
21431 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21433 openbsd2.
[89] | openbsd2.
[89].
*)
21434 shlibpath_overrides_runpath
=no
21437 shlibpath_overrides_runpath
=yes
21441 shlibpath_overrides_runpath
=yes
21446 libname_spec
='$name'
21449 library_names_spec
='$libname${shared_ext} $libname.a'
21450 dynamic_linker
='OS/2 ld.exe'
21451 shlibpath_var
=LIBPATH
21454 osf3
* | osf4
* | osf5
*)
21458 soname_spec
='${libname}${release}${shared_ext}$major'
21459 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21460 shlibpath_var
=LD_LIBRARY_PATH
21461 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21462 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21473 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21474 soname_spec
='${libname}${release}${shared_ext}$major'
21475 shlibpath_var
=LD_LIBRARY_PATH
21476 shlibpath_overrides_runpath
=yes
21477 hardcode_into_libs
=yes
21478 # ldd complains unless libraries are executable
21479 postinstall_cmds
='chmod +x $lib'
21484 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21485 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21486 shlibpath_var
=LD_LIBRARY_PATH
21487 shlibpath_overrides_runpath
=yes
21488 if test "$with_gnu_ld" = yes; then
21496 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21497 soname_spec
='${libname}${release}${shared_ext}$major'
21498 shlibpath_var
=LD_LIBRARY_PATH
21499 case $host_vendor in
21501 shlibpath_overrides_runpath
=no
21503 runpath_var
=LD_RUN_PATH
21511 shlibpath_overrides_runpath
=no
21512 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21518 if test -d /usr
/nec
;then
21520 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21521 soname_spec
='$libname${shared_ext}.$major'
21522 shlibpath_var
=LD_LIBRARY_PATH
21526 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21527 version_type
=freebsd-elf
21530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21531 soname_spec
='${libname}${release}${shared_ext}$major'
21532 shlibpath_var
=LD_LIBRARY_PATH
21533 shlibpath_overrides_runpath
=yes
21534 hardcode_into_libs
=yes
21535 if test "$with_gnu_ld" = yes; then
21536 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21538 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21541 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21545 sys_lib_dlsearch_path_spec
='/usr/lib'
21549 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21553 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21554 shlibpath_var
=LD_LIBRARY_PATH
21555 shlibpath_overrides_runpath
=no
21556 hardcode_into_libs
=yes
21561 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21562 soname_spec
='${libname}${release}${shared_ext}$major'
21563 shlibpath_var
=LD_LIBRARY_PATH
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21571 $as_echo "$dynamic_linker" >&6; }
21572 test "$dynamic_linker" = no
&& can_build_shared
=no
21574 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21575 if test "$GCC" = yes; then
21576 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21579 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21580 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21582 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21583 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21624 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21625 hardcode_action_CXX
=
21626 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21627 test -n "$runpath_var_CXX" ||
21628 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21630 # We can hardcode non-existent directories.
21631 if test "$hardcode_direct_CXX" != no
&&
21632 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21633 # have to relink, otherwise we might link with an installed library
21634 # when we should be linking with a yet-to-be-installed one
21635 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21636 test "$hardcode_minus_L_CXX" != no
; then
21637 # Linking always hardcodes the temporary library directory.
21638 hardcode_action_CXX
=relink
21640 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21641 hardcode_action_CXX
=immediate
21644 # We cannot hardcode anything, or else we can only hardcode existing
21646 hardcode_action_CXX
=unsupported
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21649 $as_echo "$hardcode_action_CXX" >&6; }
21651 if test "$hardcode_action_CXX" = relink ||
21652 test "$inherit_rpath_CXX" = yes; then
21653 # Fast installation is not supported
21654 enable_fast_install
=no
21655 elif test "$shlibpath_overrides_runpath" = yes ||
21656 test "$enable_shared" = no
; then
21657 # Fast installation is not necessary
21658 enable_fast_install
=needless
21667 fi # test -n "$compiler"
21673 with_gnu_ld
=$lt_save_with_gnu_ld
21674 lt_cv_path_LDCXX
=$lt_cv_path_LD
21675 lt_cv_path_LD
=$lt_save_path_LD
21676 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21677 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21678 fi # test "$_lt_caught_CXX_error" != yes
21681 ac_cpp
='$CXXCPP $CPPFLAGS'
21682 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21683 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21684 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21701 # Only expand once:
21707 # Identify the assembler which will work hand-in-glove with the newly
21708 # built GCC, so that we can examine its features. This is the assembler
21709 # which will be driven by the driver program.
21711 # If build != host, and we aren't building gas in-tree, we identify a
21712 # build->target assembler and hope that it will have the same features
21713 # as the host->target assembler we'll be using.
21714 gcc_cv_gas_major_version
=
21715 gcc_cv_gas_minor_version
=
21716 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21718 if test "${gcc_cv_as+set}" = set; then :
21722 if test -x "$DEFAULT_ASSEMBLER"; then
21723 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21724 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21725 && test -f ..
/gas
/Makefile \
21726 && test x
$build = x
$host; then
21727 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21728 elif test -x as
$build_exeext; then
21729 # Build using assembler in the current directory.
21730 gcc_cv_as
=.
/as
$build_exeext
21731 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21732 gcc_cv_as
="$AS_FOR_TARGET"
21734 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21735 set dummy
$AS_FOR_TARGET; ac_word
=$2
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21737 $as_echo_n "checking for $ac_word... " >&6; }
21738 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21739 $as_echo_n "(cached) " >&6
21743 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21747 for as_dir
in $PATH
21750 test -z "$as_dir" && as_dir
=.
21751 for ac_exec_ext
in '' $ac_executable_extensions; do
21752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21753 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21764 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21765 if test -n "$gcc_cv_as"; then
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21767 $as_echo "$gcc_cv_as" >&6; }
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21770 $as_echo "no" >&6; }
21777 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21779 case "$ORIGINAL_AS_FOR_TARGET" in
21780 .
/as | .
/as
$build_exeext) ;;
21781 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21786 $as_echo_n "checking what assembler to use... " >&6; }
21787 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21788 # Single tree build which includes gas. We want to prefer it
21789 # over whatever linker top-level may have detected, since
21790 # we'll use what we're building after installation anyway.
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21792 $as_echo "newly built gas" >&6; }
21794 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21795 for f
in $gcc_cv_as_bfd_srcdir/configure \
21796 $gcc_cv_as_gas_srcdir/configure \
21797 $gcc_cv_as_gas_srcdir/configure.ac \
21798 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21799 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21800 if test x
$gcc_cv_gas_version != x
; then
21804 case $gcc_cv_gas_version in
21806 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21808 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21809 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21810 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21811 case $gcc_cv_gas_patch_version in
21812 "") gcc_cv_gas_patch_version
="0" ;;
21814 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21815 + $gcc_cv_gas_minor_version \) \* 1000 \
21816 + $gcc_cv_gas_patch_version`
21818 in_tree_gas_is_elf
=no
21819 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21820 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21821 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21823 in_tree_gas_is_elf
=yes
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21827 $as_echo "$gcc_cv_as" >&6; }
21832 # Check whether --enable-ld was given.
21833 if test "${enable_ld+set}" = set; then :
21834 enableval
=$enable_ld; case "${enableval}" in
21842 install_gold_as_default
=no
21843 # Check whether --enable-gold was given.
21844 if test "${enable_gold+set}" = set; then :
21845 enableval
=$enable_gold; case "${enableval}" in
21847 install_gold_as_default
=yes
21850 if test x
${default_ld} != x
; then
21851 install_gold_as_default
=yes
21857 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21863 # Identify the linker which will work hand-in-glove with the newly
21864 # built GCC, so that we can examine its features. This is the linker
21865 # which will be driven by the driver program.
21867 # If build != host, and we aren't building gas in-tree, we identify a
21868 # build->target linker and hope that it will have the same features
21869 # as the host->target linker we'll be using.
21870 gcc_cv_gld_major_version
=
21871 gcc_cv_gld_minor_version
=
21872 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21873 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21874 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21876 if test "${gcc_cv_ld+set}" = set; then :
21880 if test -x "$DEFAULT_LINKER"; then
21881 gcc_cv_ld
="$DEFAULT_LINKER"
21882 elif test $install_gold_as_default = yes \
21883 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21884 && test -f ..
/gold
/Makefile \
21885 && test x
$build = x
$host; then
21886 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21887 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21888 && test -f ..
/ld
/Makefile \
21889 && test x
$build = x
$host; then
21890 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21891 elif test -x collect-ld
$build_exeext; then
21892 # Build using linker in the current directory.
21893 gcc_cv_ld
=.
/collect-ld
$build_exeext
21894 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21895 gcc_cv_ld
="$LD_FOR_TARGET"
21897 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21898 set dummy
$LD_FOR_TARGET; ac_word
=$2
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21900 $as_echo_n "checking for $ac_word... " >&6; }
21901 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21902 $as_echo_n "(cached) " >&6
21906 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21910 for as_dir
in $PATH
21913 test -z "$as_dir" && as_dir
=.
21914 for ac_exec_ext
in '' $ac_executable_extensions; do
21915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21916 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21927 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21928 if test -n "$gcc_cv_ld"; then
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21930 $as_echo "$gcc_cv_ld" >&6; }
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21940 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21941 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21942 # if the PLUGIN_LD is set ld-new, just have it as ld
21943 # as that is the installed named.
21944 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21945 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21946 PLUGIN_LD_SUFFIX
=ld
21949 # Check whether --with-plugin-ld was given.
21950 if test "${with_plugin_ld+set}" = set; then :
21951 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21952 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21953 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21959 cat >>confdefs.h
<<_ACEOF
21960 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21964 # Check to see if we are using gold instead of ld
21965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21966 $as_echo_n "checking whether we are using gold... " >&6; }
21968 if test x
$gcc_cv_ld != x
; then
21969 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21970 |
grep "GNU gold" > /dev
/null
; then
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21975 $as_echo "$ld_is_gold" >&6; }
21977 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21979 case "$ORIGINAL_LD_FOR_TARGET" in
21980 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21981 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21986 $as_echo_n "checking what linker to use... " >&6; }
21987 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21988 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21989 # Single tree build which includes ld. We want to prefer it
21990 # over whatever linker top-level may have detected, since
21991 # we'll use what we're building after installation anyway.
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21993 $as_echo "newly built ld" >&6; }
21995 in_tree_ld_is_elf
=no
21996 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21997 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21998 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21999 in_tree_ld_is_elf
=yes
22000 elif test "$ld_is_gold" = yes; then
22001 in_tree_ld_is_elf
=yes
22003 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.ac
$gcc_cv_ld_gld_srcdir/Makefile.
in
22005 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22006 if test x
$gcc_cv_gld_version != x
; then
22010 case $gcc_cv_gld_version in
22012 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22014 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22015 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22016 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22017 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22020 $as_echo "$gcc_cv_ld" >&6; }
22022 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22023 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22024 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22030 # Figure out what nm we will be using.
22031 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22032 if test "${gcc_cv_nm+set}" = set; then :
22036 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22037 && test -f ..
/binutils
/Makefile \
22038 && test x
$build = x
$host; then
22039 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22040 elif test -x nm
$build_exeext; then
22041 gcc_cv_nm
=.
/nm
$build_exeext
22042 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22043 gcc_cv_nm
="$NM_FOR_TARGET"
22045 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22046 set dummy
$NM_FOR_TARGET; ac_word
=$2
22047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22048 $as_echo_n "checking for $ac_word... " >&6; }
22049 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22050 $as_echo_n "(cached) " >&6
22054 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22058 for as_dir
in $PATH
22061 test -z "$as_dir" && as_dir
=.
22062 for ac_exec_ext
in '' $ac_executable_extensions; do
22063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22064 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22075 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22076 if test -n "$gcc_cv_nm"; then
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22078 $as_echo "$gcc_cv_nm" >&6; }
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22081 $as_echo "no" >&6; }
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22089 $as_echo_n "checking what nm to use... " >&6; }
22090 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22091 # Single tree build which includes binutils.
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22093 $as_echo "newly built nm" >&6; }
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22097 $as_echo "$gcc_cv_nm" >&6; }
22101 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22103 case "$ORIGINAL_NM_FOR_TARGET" in
22104 .
/nm | .
/nm
$build_exeext) ;;
22105 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22110 # Figure out what objdump we will be using.
22111 if test "${gcc_cv_objdump+set}" = set; then :
22115 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22116 && test -f ..
/binutils
/Makefile \
22117 && test x
$build = x
$host; then
22118 # Single tree build which includes binutils.
22119 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22120 elif test -x objdump
$build_exeext; then
22121 gcc_cv_objdump
=.
/objdump
$build_exeext
22122 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22123 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22125 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22126 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22128 $as_echo_n "checking for $ac_word... " >&6; }
22129 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22130 $as_echo_n "(cached) " >&6
22132 case $gcc_cv_objdump in
22134 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22138 for as_dir
in $PATH
22141 test -z "$as_dir" && as_dir
=.
22142 for ac_exec_ext
in '' $ac_executable_extensions; do
22143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22144 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22155 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22156 if test -n "$gcc_cv_objdump"; then
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22158 $as_echo "$gcc_cv_objdump" >&6; }
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22161 $as_echo "no" >&6; }
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22169 $as_echo_n "checking what objdump to use... " >&6; }
22170 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22171 # Single tree build which includes binutils.
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22173 $as_echo "newly built objdump" >&6; }
22174 elif test x
$gcc_cv_objdump = x
; then
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22176 $as_echo "not found" >&6; }
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22179 $as_echo "$gcc_cv_objdump" >&6; }
22182 # Figure out what readelf we will be using.
22183 if test "${gcc_cv_readelf+set}" = set; then :
22187 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22188 && test -f ..
/binutils
/Makefile \
22189 && test x
$build = x
$host; then
22190 # Single tree build which includes binutils.
22191 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22192 elif test -x readelf
$build_exeext; then
22193 gcc_cv_readelf
=.
/readelf
$build_exeext
22195 # Extract the first word of "readelf", so it can be a program name with args.
22196 set dummy readelf
; ac_word
=$2
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22198 $as_echo_n "checking for $ac_word... " >&6; }
22199 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22200 $as_echo_n "(cached) " >&6
22202 case $gcc_cv_readelf in
22204 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22208 for as_dir
in $PATH
22211 test -z "$as_dir" && as_dir
=.
22212 for ac_exec_ext
in '' $ac_executable_extensions; do
22213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22214 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22225 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22226 if test -n "$gcc_cv_readelf"; then
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22228 $as_echo "$gcc_cv_readelf" >&6; }
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22231 $as_echo "no" >&6; }
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22239 $as_echo_n "checking what readelf to use... " >&6; }
22240 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22241 # Single tree build which includes binutils.
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22243 $as_echo "newly built readelf" >&6; }
22244 elif test x
$gcc_cv_readelf = x
; then
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22246 $as_echo "not found" >&6; }
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22249 $as_echo "$gcc_cv_readelf" >&6; }
22252 # Figure out what assembler alignment features are present.
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22254 $as_echo_n "checking assembler flags... " >&6; }
22255 if test "${gcc_cv_as_flags+set}" = set; then :
22256 $as_echo_n "(cached) " >&6
22259 i
[34567]86-*-linux*)
22260 gcc_cv_as_flags
=--32
22262 x86_64-
*-linux-gnux32)
22263 gcc_cv_as_flags
=--x32
22266 gcc_cv_as_flags
=--64
22268 powerpc
*-*-darwin*)
22269 gcc_cv_as_flags
="-arch ppc"
22272 gcc_cv_as_flags
=" "
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22277 $as_echo "$gcc_cv_as_flags" >&6; }
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22280 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22281 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22282 $as_echo_n "(cached) " >&6
22284 gcc_cv_as_balign_and_p2align
=no
22285 if test $in_tree_gas = yes; then
22286 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22287 then gcc_cv_as_balign_and_p2align
=yes
22289 elif test x
$gcc_cv_as != x
; then
22290 $as_echo '.balign 4
22291 .p2align 2' > conftest.s
22292 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22294 (eval $ac_try) 2>&5
22296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22297 test $ac_status = 0; }; }
22299 gcc_cv_as_balign_and_p2align
=yes
22301 echo "configure: failed program was" >&5
22304 rm -f conftest.o conftest.s
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22308 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22309 if test $gcc_cv_as_balign_and_p2align = yes; then
22311 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22316 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22317 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22318 $as_echo_n "(cached) " >&6
22320 gcc_cv_as_max_skip_p2align
=no
22321 if test $in_tree_gas = yes; then
22322 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22323 then gcc_cv_as_max_skip_p2align
=yes
22325 elif test x
$gcc_cv_as != x
; then
22326 $as_echo '.p2align 4,,7' > conftest.s
22327 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22329 (eval $ac_try) 2>&5
22331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22332 test $ac_status = 0; }; }
22334 gcc_cv_as_max_skip_p2align
=yes
22336 echo "configure: failed program was" >&5
22339 rm -f conftest.o conftest.s
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22343 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22344 if test $gcc_cv_as_max_skip_p2align = yes; then
22346 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22351 $as_echo_n "checking assembler for .literal16... " >&6; }
22352 if test "${gcc_cv_as_literal16+set}" = set; then :
22353 $as_echo_n "(cached) " >&6
22355 gcc_cv_as_literal16
=no
22356 if test $in_tree_gas = yes; then
22357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22358 then gcc_cv_as_literal16
=yes
22360 elif test x
$gcc_cv_as != x
; then
22361 $as_echo '.literal16' > conftest.s
22362 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22364 (eval $ac_try) 2>&5
22366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22367 test $ac_status = 0; }; }
22369 gcc_cv_as_literal16
=yes
22371 echo "configure: failed program was" >&5
22374 rm -f conftest.o conftest.s
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22378 $as_echo "$gcc_cv_as_literal16" >&6; }
22379 if test $gcc_cv_as_literal16 = yes; then
22381 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22386 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22387 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22388 $as_echo_n "(cached) " >&6
22390 gcc_cv_as_subsection_m1
=no
22391 if test $in_tree_gas = yes; then
22392 if test $in_tree_gas_is_elf = yes \
22393 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22394 then gcc_cv_as_subsection_m1
=yes
22396 elif test x
$gcc_cv_as != x
; then
22397 $as_echo 'conftest_label1: .word 0
22399 conftest_label2: .word 0
22400 .previous' > conftest.s
22401 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403 (eval $ac_try) 2>&5
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; }
22408 if test x
$gcc_cv_nm != x
; then
22409 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22410 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22411 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22413 else gcc_cv_as_subsection_m1
=yes
22415 rm -f conftest.nm1 conftest.nm2
22418 echo "configure: failed program was" >&5
22421 rm -f conftest.o conftest.s
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22425 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22426 if test $gcc_cv_as_subsection_m1 = yes; then
22428 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22433 $as_echo_n "checking assembler for .weak... " >&6; }
22434 if test "${gcc_cv_as_weak+set}" = set; then :
22435 $as_echo_n "(cached) " >&6
22438 if test $in_tree_gas = yes; then
22439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22440 then gcc_cv_as_weak
=yes
22442 elif test x
$gcc_cv_as != x
; then
22443 $as_echo ' .weak foobar' > conftest.s
22444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22446 (eval $ac_try) 2>&5
22448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22449 test $ac_status = 0; }; }
22453 echo "configure: failed program was" >&5
22456 rm -f conftest.o conftest.s
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22460 $as_echo "$gcc_cv_as_weak" >&6; }
22461 if test $gcc_cv_as_weak = yes; then
22463 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22468 $as_echo_n "checking assembler for .weakref... " >&6; }
22469 if test "${gcc_cv_as_weakref+set}" = set; then :
22470 $as_echo_n "(cached) " >&6
22472 gcc_cv_as_weakref
=no
22473 if test $in_tree_gas = yes; then
22474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22475 then gcc_cv_as_weakref
=yes
22477 elif test x
$gcc_cv_as != x
; then
22478 $as_echo ' .weakref foobar, barfnot' > conftest.s
22479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22481 (eval $ac_try) 2>&5
22483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22484 test $ac_status = 0; }; }
22486 gcc_cv_as_weakref
=yes
22488 echo "configure: failed program was" >&5
22491 rm -f conftest.o conftest.s
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22495 $as_echo "$gcc_cv_as_weakref" >&6; }
22496 if test $gcc_cv_as_weakref = yes; then
22498 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22503 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22504 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22505 $as_echo_n "(cached) " >&6
22507 gcc_cv_as_nsubspa_comdat
=no
22508 if test $in_tree_gas = yes; then
22509 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22510 then gcc_cv_as_nsubspa_comdat
=yes
22512 elif test x
$gcc_cv_as != x
; then
22513 $as_echo ' .SPACE $TEXT$
22514 .NSUBSPA $CODE$,COMDAT' > conftest.s
22515 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22517 (eval $ac_try) 2>&5
22519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22520 test $ac_status = 0; }; }
22522 gcc_cv_as_nsubspa_comdat
=yes
22524 echo "configure: failed program was" >&5
22527 rm -f conftest.o conftest.s
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22531 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22532 if test $gcc_cv_as_nsubspa_comdat = yes; then
22534 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22538 # .hidden needs to be supported in both the assembler and the linker,
22539 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22540 # This is irritatingly difficult to feature test for; we have to check the
22541 # date string after the version number. If we've got an in-tree
22542 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22544 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22546 $as_echo_n "checking assembler for .hidden... " >&6; }
22547 if test "${gcc_cv_as_hidden+set}" = set; then :
22548 $as_echo_n "(cached) " >&6
22550 gcc_cv_as_hidden
=no
22551 if test $in_tree_gas = yes; then
22552 if test $in_tree_gas_is_elf = yes \
22553 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22554 then gcc_cv_as_hidden
=yes
22556 elif test x
$gcc_cv_as != x
; then
22557 $as_echo ' .hidden foobar
22558 foobar:' > conftest.s
22559 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22561 (eval $ac_try) 2>&5
22563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22564 test $ac_status = 0; }; }
22566 gcc_cv_as_hidden
=yes
22568 echo "configure: failed program was" >&5
22571 rm -f conftest.o conftest.s
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22575 $as_echo "$gcc_cv_as_hidden" >&6; }
22577 case "${target}" in
22579 # Darwin as has some visibility support, though with a different syntax.
22580 gcc_cv_as_hidden
=yes
22584 # gnu_indirect_function type is an extension proposed at
22585 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22586 # selection of function implementation
22587 # Check whether --enable-gnu-indirect-function was given.
22588 if test "${enable_gnu_indirect_function+set}" = set; then :
22589 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22591 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22592 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22595 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22599 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22601 cat >>confdefs.h
<<_ACEOF
22602 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22607 if test $in_tree_ld != yes ; then
22608 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22609 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22610 if test x
"$ld_is_gold" = xyes
; then
22611 # GNU gold --version looks like this:
22613 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22615 # We extract the binutils version which is more familiar and specific
22616 # than the gold version.
22617 ld_vers
=`echo $ld_ver | sed -n \
22618 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22620 # GNU ld --version looks like this:
22622 # GNU ld (GNU Binutils) 2.21.51.20110225
22623 ld_vers
=`echo $ld_ver | sed -n \
22624 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22626 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'`
22627 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22628 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22629 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22631 case "${target}" in
22633 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22636 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22637 # /usr/ccs/bin/ld has been configured.
22638 ld_ver
=`$gcc_cv_ld -V 2>&1`
22639 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22640 ld_vers
=`echo $ld_ver | sed -n \
22641 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22642 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22643 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22651 $as_echo_n "checking linker for .hidden support... " >&6; }
22652 if test "${gcc_cv_ld_hidden+set}" = set; then :
22653 $as_echo_n "(cached) " >&6
22655 if test $in_tree_ld = yes ; then
22656 gcc_cv_ld_hidden
=no
22657 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 \
22658 && test $in_tree_ld_is_elf = yes; then
22659 gcc_cv_ld_hidden
=yes
22662 gcc_cv_ld_hidden
=yes
22663 if test x
"$ld_is_gold" = xyes
; then
22665 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22666 case "${target}" in
22667 mmix-knuth-mmixware
)
22668 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22669 gcc_cv_ld_hidden
=no
22672 if test 0"$ld_date" -lt 20020404; then
22673 if test -n "$ld_date"; then
22674 # If there was date string, but was earlier than 2002-04-04, fail
22675 gcc_cv_ld_hidden
=no
22676 elif test -z "$ld_vers"; then
22677 # If there was no date string nor ld version number, something is wrong
22678 gcc_cv_ld_hidden
=no
22680 test -z "$ld_vers_patch" && ld_vers_patch
=0
22681 if test "$ld_vers_major" -lt 2; then
22682 gcc_cv_ld_hidden
=no
22683 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22684 gcc_cv_ld_hidden
="no"
22685 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22686 gcc_cv_ld_hidden
=no
22691 case "${target}" in
22693 # Darwin ld has some visibility support.
22694 gcc_cv_ld_hidden
=yes
22696 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22697 gcc_cv_ld_hidden
=yes
22699 *-*-solaris2.1
[0-9]*)
22700 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22701 # .symbolic was only added in Solaris 9 12/02.
22702 gcc_cv_ld_hidden
=yes
22705 gcc_cv_ld_hidden
=no
22711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22712 $as_echo "$gcc_cv_ld_hidden" >&6; }
22713 libgcc_visibility
=no
22716 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22717 libgcc_visibility
=yes
22719 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22724 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22725 gcc_cv_ld_ro_rw_mix
=unknown
22726 if test $in_tree_ld = yes ; then
22727 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 \
22728 && test $in_tree_ld_is_elf = yes; then
22729 gcc_cv_ld_ro_rw_mix
=read-write
22731 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22732 echo '.section myfoosect, "a"' > conftest1.s
22733 echo '.section myfoosect, "aw"' > conftest2.s
22734 echo '.byte 1' >> conftest2.s
22735 echo '.section myfoosect, "a"' > conftest3.s
22736 echo '.byte 0' >> conftest3.s
22737 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22738 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22739 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22740 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22741 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22742 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22743 | sed -e '/myfoosect/!d' -e N`
22744 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22745 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22746 gcc_cv_ld_ro_rw_mix
=read-only
22748 gcc_cv_ld_ro_rw_mix
=read-write
22752 rm -f conftest.
* conftest
[123].
*
22754 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22756 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22760 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22762 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22763 case "${target}" in
22766 # Solaris 2 ld -V output looks like this for a regular version:
22768 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22770 # but test versions add stuff at the end:
22772 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22774 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22775 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22776 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22777 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22778 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22779 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22785 # Check whether --enable-initfini-array was given.
22786 if test "${enable_initfini_array+set}" = set; then :
22787 enableval
=$enable_initfini_array;
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22791 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22792 if test "${gcc_cv_initfini_array+set}" = set; then :
22793 $as_echo_n "(cached) " >&6
22795 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22796 case "${target}" in
22798 if test "$cross_compiling" = yes; then :
22799 gcc_cv_initfini_array
=no
22801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22802 /* end confdefs.h. */
22805 #error Not an ELF OS
22807 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22808 if it can be used. */
22810 int main (void) { return x; }
22811 int foo (void) { x = 0; }
22812 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22815 if ac_fn_cxx_try_run
"$LINENO"; then :
22816 gcc_cv_initfini_array
=yes
22818 gcc_cv_initfini_array
=no
22820 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22821 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22825 gcc_cv_initfini_array
=no
22826 if test $in_tree_ld = yes ; then
22827 if test "$gcc_cv_gld_major_version" -eq 2 \
22828 -a "$gcc_cv_gld_minor_version" -ge 22 \
22829 -o "$gcc_cv_gld_major_version" -gt 2 \
22830 && test $in_tree_ld_is_elf = yes; then
22831 gcc_cv_initfini_array
=yes
22833 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22834 cat > conftest.s
<<\EOF
22835 .section .dtors
,"a",%progbits
22837 .byte
'A', 'A', 'A', 'A'
22838 .section .ctors
,"a",%progbits
22840 .byte
'B', 'B', 'B', 'B'
22841 .section .fini_array
.65530,"a",%progbits
22843 .byte
'C', 'C', 'C', 'C'
22844 .section .init_array
.65530,"a",%progbits
22846 .byte
'D', 'D', 'D', 'D'
22847 .section .dtors
.64528,"a",%progbits
22849 .byte
'E', 'E', 'E', 'E'
22850 .section .ctors
.64528,"a",%progbits
22852 .byte
'F', 'F', 'F', 'F'
22853 .section .fini_array
.01005,"a",%progbits
22855 .byte
'G', 'G', 'G', 'G'
22856 .section .init_array
.01005,"a",%progbits
22858 .byte
'H', 'H', 'H', 'H'
22863 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22864 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22865 && $gcc_cv_objdump -s -j .init_array conftest \
22866 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22867 && $gcc_cv_objdump -s -j .fini_array conftest \
22868 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22869 gcc_cv_initfini_array
=yes
22871 rm -f conftest conftest.
*
22873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22874 /* end confdefs.h. */
22877 # error Not an ELF OS
22879 #include <stdlib.h>
22880 #if defined __GLIBC_PREREQ
22881 # if __GLIBC_PREREQ (2, 4)
22883 # error GLIBC 2.4 required
22886 # if defined __sun__ && defined __svr4__
22887 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22889 # error The C library not known to support .init_array/.fini_array
22894 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22897 gcc_cv_initfini_array
=no
22899 rm -f conftest.err conftest.
$ac_ext;;
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22903 $as_echo_n "checking cross compile... guessing... " >&6; }
22904 gcc_cv_initfini_array
=no
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22908 $as_echo "$gcc_cv_initfini_array" >&6; }
22909 enable_initfini_array
=$gcc_cv_initfini_array
22913 if test $enable_initfini_array = yes; then
22915 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22919 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22921 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22922 if test "${gcc_cv_as_leb128+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22925 gcc_cv_as_leb128
=no
22926 if test $in_tree_gas = yes; then
22927 if test $in_tree_gas_is_elf = yes \
22928 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22929 then gcc_cv_as_leb128
=yes
22931 elif test x
$gcc_cv_as != x
; then
22938 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; }
22945 # GAS versions before 2.11 do not support uleb128,
22946 # despite appearing to.
22947 # ??? There exists an elf-specific test that will crash
22948 # the assembler. Perhaps it's better to figure out whether
22949 # arbitrary sections are supported and try the test.
22950 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22951 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22952 as_vers
=`echo $as_ver | sed -n \
22953 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22954 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22955 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22956 if test $as_major -eq 2 && test $as_minor -lt 11
22958 else gcc_cv_as_leb128
=yes
22962 echo "configure: failed program was" >&5
22965 rm -f conftest.o conftest.s
22968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22969 $as_echo "$gcc_cv_as_leb128" >&6; }
22970 if test $gcc_cv_as_leb128 = yes; then
22972 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22976 # Check if we have assembler support for unwind directives.
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22978 $as_echo_n "checking assembler for cfi directives... " >&6; }
22979 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22980 $as_echo_n "(cached) " >&6
22982 gcc_cv_as_cfi_directive
=no
22983 if test x
$gcc_cv_as != x
; then
22989 .cfi_escape 1, 2, 3, 4, 5
22990 .cfi_endproc' > conftest.s
22991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22993 (eval $ac_try) 2>&5
22995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22996 test $ac_status = 0; }; }
23000 # If the linker used on Solaris (like Sun ld) isn't capable of merging
23001 # read-only and read-write sections, we need to make sure that the
23002 # assembler used emits read-write .eh_frame sections.
23003 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23004 if test "x$gcc_cv_objdump" != x
; then
23005 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23006 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23007 gcc_cv_as_cfi_directive
=no
23010 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23011 # On Solaris/x86, make sure that GCC and assembler agree on using
23012 # read-only .eh_frame sections for 64-bit.
23013 if test x
$gas = xyes
; then
23014 as_ix86_64_opt
="--64"
23016 as_ix86_64_opt
="-xarch=amd64"
23018 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23019 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23020 sed -e /.eh_frame
/!d
-e N | \
23021 grep READONLY
> /dev
/null
; then
23022 gcc_cv_as_cfi_directive
=yes
23024 gcc_cv_as_cfi_directive
=no
23028 gcc_cv_as_cfi_directive
=yes
23033 # no objdump, err on the side of caution
23034 gcc_cv_as_cfi_directive
=no
23037 gcc_cv_as_cfi_directive
=yes
23041 gcc_cv_as_cfi_directive
=yes
23045 echo "configure: failed program was" >&5
23048 rm -f conftest.o conftest.s
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23052 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23054 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23056 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23057 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23058 $as_echo_n "(cached) " >&6
23060 gcc_cv_as_cfi_advance_working
=no
23061 if test x
$gcc_cv_as != x
; then
23064 .cfi_adjust_cfa_offset 64
23066 .cfi_adjust_cfa_offset 128
23067 .cfi_endproc' > conftest.s
23068 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23070 (eval $ac_try) 2>&5
23072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23073 test $ac_status = 0; }; }
23076 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23077 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23078 gcc_cv_as_cfi_advance_working
=yes
23082 echo "configure: failed program was" >&5
23085 rm -f conftest.o conftest.s
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23089 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23092 # no objdump, err on the side of caution
23093 gcc_cv_as_cfi_advance_working
=no
23097 cat >>confdefs.h
<<_ACEOF
23098 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23099 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23105 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23106 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23107 $as_echo_n "(cached) " >&6
23109 gcc_cv_as_cfi_personality_directive
=no
23110 if test x
$gcc_cv_as != x
; then
23113 .cfi_personality 0, symbol
23114 .cfi_endproc' > conftest.s
23115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23117 (eval $ac_try) 2>&5
23119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23120 test $ac_status = 0; }; }
23122 gcc_cv_as_cfi_personality_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_personality_directive" >&5
23131 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23134 cat >>confdefs.h
<<_ACEOF
23135 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23136 then echo 1; else echo 0; fi`
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23141 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23142 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23143 $as_echo_n "(cached) " >&6
23145 gcc_cv_as_cfi_sections_directive
=no
23146 if test x
$gcc_cv_as != x
; then
23148 .cfi_sections .debug_frame, .eh_frame
23150 .cfi_endproc' > conftest.s
23151 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23153 (eval $ac_try) 2>&5
23155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23156 test $ac_status = 0; }; }
23159 win32 | pe | cygwin
* | mingw32
* | uwin
*)
23160 # Need to check that we generated the correct relocation for the
23161 # .debug_frame section. This was fixed for binutils 2.21.
23162 gcc_cv_as_cfi_sections_directive
=no
23163 if test "x$gcc_cv_objdump" != x
; then
23164 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23165 grep secrel
> /dev
/null
; then
23166 gcc_cv_as_cfi_sections_directive
=yes
23171 gcc_cv_as_cfi_sections_directive
=yes
23175 echo "configure: failed program was" >&5
23178 rm -f conftest.o conftest.s
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23182 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23186 cat >>confdefs.h
<<_ACEOF
23187 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23188 then echo 1; else echo 0; fi`
23192 # GAS versions up to and including 2.11.0 may mis-optimize
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23195 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23196 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23197 $as_echo_n "(cached) " >&6
23199 gcc_cv_as_eh_frame
=no
23200 if test $in_tree_gas = yes; then
23201 if test $in_tree_gas_is_elf = yes \
23202 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23203 then gcc_cv_as_eh_frame
=yes
23205 elif test x
$gcc_cv_as != x
; then
23212 .section .eh_frame,"aw",@progbits
23214 .4byte .LECIE1-.LSCIE1
23228 .4byte .LEFDE1-.LASFDE1
23230 .4byte .LASFDE1-__FRAME_BEGIN__
23237 .LEFDE1:' > conftest.s
23238 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23240 (eval $ac_try) 2>&5
23242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23243 test $ac_status = 0; }; }
23245 cat > conftest.lit
<<EOF
23246 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23247 0010 01000000 12000000 18000000 00000000 ................
23248 0020 08000000 04080000 0044 .........D
23250 cat > conftest.big
<<EOF
23251 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23252 0010 00000001 00000012 00000018 00000000 ................
23253 0020 00000008 04000000 0844 .........D
23255 # If the assembler didn't choke, and we can objdump,
23256 # and we got the correct data, then succeed.
23257 # The text in the here-document typically retains its unix-style line
23258 # endings, while the output of objdump will use host line endings.
23259 # Therefore, use diff -b for the comparisons.
23260 if test x
$gcc_cv_objdump != x \
23261 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23262 |
tail -3 > conftest.got \
23263 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23264 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23266 gcc_cv_as_eh_frame
=yes
23267 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }; then
23273 gcc_cv_as_eh_frame
=buggy
23275 # Uh oh, what do we do now?
23276 gcc_cv_as_eh_frame
=no
23279 echo "configure: failed program was" >&5
23282 rm -f conftest.o conftest.s
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23286 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23289 if test $gcc_cv_as_eh_frame = buggy
; then
23291 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23296 $as_echo_n "checking assembler for section merging support... " >&6; }
23297 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23298 $as_echo_n "(cached) " >&6
23300 gcc_cv_as_shf_merge
=no
23301 if test $in_tree_gas = yes; then
23302 if test $in_tree_gas_is_elf = yes \
23303 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23304 then gcc_cv_as_shf_merge
=yes
23306 elif test x
$gcc_cv_as != x
; then
23307 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23308 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; }
23315 gcc_cv_as_shf_merge
=yes
23317 echo "configure: failed program was" >&5
23320 rm -f conftest.o conftest.s
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23324 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23326 if test $gcc_cv_as_shf_merge = no
; then
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23328 $as_echo_n "checking assembler for section merging support... " >&6; }
23329 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23330 $as_echo_n "(cached) " >&6
23332 gcc_cv_as_shf_merge
=no
23333 if test $in_tree_gas = yes; then
23334 if test $in_tree_gas_is_elf = yes \
23335 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23336 then gcc_cv_as_shf_merge
=yes
23338 elif test x
$gcc_cv_as != x
; then
23339 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23340 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23342 (eval $ac_try) 2>&5
23344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23345 test $ac_status = 0; }; }
23347 gcc_cv_as_shf_merge
=yes
23349 echo "configure: failed program was" >&5
23352 rm -f conftest.o conftest.s
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23356 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23360 cat >>confdefs.h
<<_ACEOF
23361 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23366 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23367 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23368 $as_echo_n "(cached) " >&6
23370 gcc_cv_as_comdat_group
=no
23371 if test $in_tree_gas = yes; then
23372 if test $in_tree_gas_is_elf = yes \
23373 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23374 then gcc_cv_as_comdat_group
=yes
23376 elif test x
$gcc_cv_as != x
; then
23377 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23378 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380 (eval $ac_try) 2>&5
23382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383 test $ac_status = 0; }; }
23385 gcc_cv_as_comdat_group
=yes
23387 echo "configure: failed program was" >&5
23390 rm -f conftest.o conftest.s
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23394 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23396 if test $gcc_cv_as_comdat_group = yes; then
23397 gcc_cv_as_comdat_group_percent
=no
23398 gcc_cv_as_comdat_group_group
=no
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23401 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23402 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23403 $as_echo_n "(cached) " >&6
23405 gcc_cv_as_comdat_group_percent
=no
23406 if test $in_tree_gas = yes; then
23407 if test $in_tree_gas_is_elf = yes \
23408 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23409 then gcc_cv_as_comdat_group_percent
=yes
23411 elif test x
$gcc_cv_as != x
; then
23412 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23413 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23415 (eval $ac_try) 2>&5
23417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23418 test $ac_status = 0; }; }
23420 gcc_cv_as_comdat_group_percent
=yes
23422 echo "configure: failed program was" >&5
23425 rm -f conftest.o conftest.s
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23429 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23431 if test $gcc_cv_as_comdat_group_percent = yes; then
23432 gcc_cv_as_comdat_group_group
=no
23434 case "${target}" in
23435 # Sun as uses a completely different syntax.
23437 case "${target}" in
23438 sparc
*-*-solaris2*)
23440 .group foo,".text%foo",#comdat
23441 .section ".text%foo", #alloc,#execinstr,#progbits
23446 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23448 .group foo,.text%foo,#comdat
23449 .section .text%foo, "ax", @progbits
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23456 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23457 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23458 $as_echo_n "(cached) " >&6
23460 gcc_cv_as_comdat_group_group
=no
23461 if test x
$gcc_cv_as != x
; then
23462 $as_echo "$conftest_s" > conftest.s
23463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23465 (eval $ac_try) 2>&5
23467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23468 test $ac_status = 0; }; }
23470 gcc_cv_as_comdat_group_group
=yes
23472 echo "configure: failed program was" >&5
23475 rm -f conftest.o conftest.s
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23479 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23483 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23484 gcc_cv_as_comdat_group_group
=no
23488 if test x
"$ld_is_gold" = xyes
; then
23490 elif test $in_tree_ld = yes ; then
23492 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 \
23493 && test $in_tree_ld_is_elf = yes; then
23496 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23498 if test 0"$ld_date" -lt 20050308; then
23499 if test -n "$ld_date"; then
23500 # If there was date string, but was earlier than 2005-03-08, fail
23502 elif test "$ld_vers_major" -lt 2; then
23504 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23509 case "${target}" in
23510 *-*-solaris2.1
[1-9]*)
23512 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23513 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23516 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23517 # least ld version 1.2267.
23518 if test "$ld_vers_major" -gt 1; then
23520 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23522 elif test "$ld_vers_minor" -ge 2267; then
23527 # Assume linkers other than GNU ld don't support COMDAT group.
23532 # Allow overriding the automatic COMDAT group tests above.
23533 # Check whether --enable-comdat was given.
23534 if test "${enable_comdat+set}" = set; then :
23535 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23538 if test $comdat_group = no
; then
23539 gcc_cv_as_comdat_group
=no
23540 gcc_cv_as_comdat_group_percent
=no
23541 gcc_cv_as_comdat_group_group
=no
23544 cat >>confdefs.h
<<_ACEOF
23545 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23546 || test $gcc_cv_as_comdat_group_percent = yes \
23547 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23552 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23553 if test "${gcc_cv_as_discriminator+set}" = set; then :
23554 $as_echo_n "(cached) " >&6
23556 gcc_cv_as_discriminator
=no
23557 if test $in_tree_gas = yes; then
23558 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23559 then gcc_cv_as_discriminator
=yes
23561 elif test x
$gcc_cv_as != x
; then
23564 .loc 1 1 0 discriminator 1' > conftest.s
23565 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23567 (eval $ac_try) 2>&5
23569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23570 test $ac_status = 0; }; }
23572 gcc_cv_as_discriminator
=yes
23574 echo "configure: failed program was" >&5
23577 rm -f conftest.o conftest.s
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23581 $as_echo "$gcc_cv_as_discriminator" >&6; }
23582 if test $gcc_cv_as_discriminator = yes; then
23584 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23588 # Thread-local storage - the check is heavily parameterized.
23596 .section ".tdata","awT",@progbits
23599 ldq $27,__tls_get_addr($29) !literal!1
23600 lda $16,foo($29) !tlsgd!1
23601 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23602 ldq $27,__tls_get_addr($29) !literal!2
23603 lda $16,foo($29) !tlsldm!2
23604 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23605 ldq $1,foo($29) !gotdtprel
23606 ldah $2,foo($29) !dtprelhi
23607 lda $3,foo($2) !dtprello
23608 lda $4,foo($29) !dtprel
23609 ldq $1,foo($29) !gottprel
23610 ldah $2,foo($29) !tprelhi
23611 lda $3,foo($2) !tprello
23612 lda $4,foo($29) !tprel'
23615 tls_as_opt
=--fatal-warnings
23617 cris-
*-*|crisv32-
*-*)
23619 .section ".tdata","awT",@progbits
23626 tls_as_opt
=--fatal-warnings
23630 .section ".tdata","awT",@progbits
23633 call #gettlsoff(x)'
23642 .section ".tdata","awT",@progbits
23646 addil LT%foo-$tls_gdidx$,gp
23647 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23650 addil LT%foo-$tls_ldidx$,gp
23652 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23653 addil LR%foo-$tls_dtpoff$,%ret0
23654 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23656 addil LT%foo-$tls_ieoff$,gp
23657 ldw RT%foo-$tls_ieoff$(%r1),%t2
23660 addil LR%foo-$tls_leoff$,%t1
23661 ldo RR%foo-$tls_leoff$(%r1),%t2'
23664 tls_as_opt
=--fatal-warnings
23668 .section ".tdata","awT",%progbits
23671 .word foo(gottpoff)
23679 i
[34567]86-*-* | x86_64-
*-*)
23681 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23688 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23690 .section .tdata,"awt",@progbits'
23695 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23699 .section ".tdata","awT",@progbits'
23703 tls_as_opt
="--fatal-warnings"
23707 conftest_s
="$conftest_s
23711 leal foo@tlsgd(,%ebx,1), %eax
23712 leal foo@tlsldm(%ebx), %eax
23713 leal foo@dtpoff(%eax), %edx
23714 movl foo@gottpoff(%ebx), %eax
23715 subl foo@gottpoff(%ebx), %eax
23716 addl foo@gotntpoff(%ebx), %eax
23717 movl foo@indntpoff, %eax
23718 movl \$foo@tpoff, %eax
23719 subl \$foo@tpoff, %eax
23720 leal foo@ntpoff(%ecx), %eax"
23723 if test x
$on_solaris = xyes
; then
23725 yes) tls_as_opt
="$tls_as_opt --64" ;;
23726 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23729 conftest_s
="$conftest_s
23733 leaq foo@tlsgd(%rip), %rdi
23734 leaq foo@tlsld(%rip), %rdi
23735 leaq foo@dtpoff(%rax), %rdx
23736 movq foo@gottpoff(%rip), %rax
23737 movq \$foo@tpoff, %rax"
23743 .section ".tdata","awT",@progbits
23746 addl r16 = @ltoff(@dtpmod(foo#)), gp
23747 addl r17 = @ltoff(@dtprel(foo#)), gp
23748 addl r18 = @ltoff(@tprel(foo#)), gp
23749 addl r19 = @dtprel(foo#), gp
23750 adds r21 = @dtprel(foo#), r13
23751 movl r23 = @dtprel(foo#)
23752 addl r20 = @tprel(foo#), gp
23753 adds r22 = @tprel(foo#), r13
23754 movl r24 = @tprel(foo#)'
23757 tls_as_opt
=--fatal-warnings
23761 .section .tdata,"awT",@progbits
23765 addik r5,r20,x@TLSGD
23766 addik r5,r20,x@TLSLDM'
23769 tls_as_opt
='--fatal-warnings'
23773 .section .tdata,"awT",@progbits
23777 addiu $4, $28, %tlsgd(x)
23778 addiu $4, $28, %tlsldm(x)
23779 lui $4, %dtprel_hi(x)
23780 addiu $4, $4, %dtprel_lo(x)
23781 lw $4, %gottprel(x)($28)
23782 lui $4, %tprel_hi(x)
23783 addiu $4, $4, %tprel_lo(x)'
23786 tls_as_opt
='-32 --fatal-warnings'
23790 .section .tdata,"awT",@progbits
23795 move.l x@TLSGD(%a5),%a0
23796 move.l x@TLSLDM(%a5),%a0
23797 move.l x@TLSLDO(%a5),%a0
23798 move.l x@TLSIE(%a5),%a0
23799 move.l x@TLSLE(%a5),%a0'
23802 tls_as_opt
='--fatal-warnings'
23806 .section ".tdata","awT",@progbits'
23809 tls_as_opt
="--fatal-warnings"
23813 .section ".tdata","awT",%progbits
23817 add x0, x0, #:tlsgd_lo12:x
23822 tls_as_opt
='--fatal-warnings'
23826 .extern __get_tpointer
23844 .section ".tdata","awT",@progbits
23852 addi 3,2,ld0@got@tlsgd
23858 addi 3,2,x1@got@tlsld
23864 addis 9,3,x2@dtprel@ha
23865 addi 9,9,x2@dtprel@l
23868 ld 9,x3@got@dtprel(2)
23874 tls_as_opt
="-a64 --fatal-warnings"
23878 .section ".tdata","awT",@progbits
23886 addi 3,31,ld0@got@tlsgd
23888 addi 3,31,x1@got@tlsld
23891 addis 9,3,x2@dtprel@ha
23892 addi 9,9,x2@dtprel@l
23893 lwz 9,x3@got@tprel(31)
23896 addis 9,2,x2@tprel@ha
23897 addi 9,9,x2@tprel@l'
23900 tls_as_opt
="-a32 --fatal-warnings"
23904 .section ".tdata","awT",@progbits
23911 .long foo@GOTNTPOFF
23912 .long foo@INDNTPOFF
23913 l %r1,foo@GOTNTPOFF(%r12)
23914 l %r1,0(%r1):tls_load:foo
23915 bas %r14,0(%r1,%r13):tls_gdcall:foo
23916 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23919 tls_as_opt
="-m31 --fatal-warnings"
23923 .section ".tdata","awT",@progbits
23930 .quad foo@GOTNTPOFF
23931 lg %r1,foo@GOTNTPOFF(%r12)
23932 larl %r1,foo@INDNTPOFF
23933 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23934 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23937 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23939 sh-
*-* | sh
[34]-*-*)
23941 .section ".tdata","awT",@progbits
23951 tls_as_opt
=--fatal-warnings
23955 sparc
*-sun-solaris2.
*)
23962 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23964 .section ".tdata",#alloc,#write,#tls'
23969 .section ".tdata","awT",@progbits'
23972 tls_as_opt
="-32 --fatal-warnings"
23974 conftest_s
="$conftest_s
23977 sethi %tgd_hi22(foo), %o0
23978 add %o0, %tgd_lo10(foo), %o1
23979 add %l7, %o1, %o0, %tgd_add(foo)
23980 call __tls_get_addr, %tgd_call(foo)
23981 sethi %tldm_hi22(foo), %l1
23982 add %l1, %tldm_lo10(foo), %l2
23983 add %l7, %l2, %o0, %tldm_add(foo)
23984 call __tls_get_addr, %tldm_call(foo)
23985 sethi %tldo_hix22(foo), %l3
23986 xor %l3, %tldo_lox10(foo), %l4
23987 add %o0, %l4, %l5, %tldo_add(foo)
23988 sethi %tie_hi22(foo), %o3
23989 add %o3, %tie_lo10(foo), %o3
23990 ld [%l7 + %o3], %o2, %tie_ld(foo)
23991 add %g7, %o2, %o4, %tie_add(foo)
23992 sethi %tle_hix22(foo), %l1
23993 xor %l1, %tle_lox10(foo), %o5
23994 ld [%g7 + %o5], %o1"
23998 .section ".tdata","awT",@progbits
24001 addli r0, zero, tls_gd(foo)
24002 auli r0, zero, tls_gd_ha16(foo)
24003 addli r0, r0, tls_gd_lo16(foo)
24005 addli r0, zero, tls_ie(foo)
24006 auli r0, r0, tls_ie_ha16(foo)
24007 addli r0, r0, tls_ie_lo16(foo)'
24010 tls_as_opt
="--fatal-warnings"
24014 .section ".tdata","awT",@progbits
24017 shl16insli r0, zero, hw0_last_tls_gd(foo)
24018 shl16insli r0, zero, hw1_last_tls_gd(foo)
24019 shl16insli r0, r0, hw0_tls_gd(foo)
24021 shl16insli r0, zero, hw1_last_tls_ie(foo)
24022 shl16insli r0, r0, hw0_tls_ie(foo)'
24025 tls_as_opt
="--fatal-warnings"
24029 .section ".tdata","awT",@progbits
24032 movi a8, foo@TLSFUNC
24033 movi a10, foo@TLSARG
24034 callx8.tls a8, foo@TLSCALL'
24040 if test "x$enable_tls" = xno
; then
24041 : # TLS explicitly disabled.
24042 elif test "x$enable_tls" = xyes
; then
24043 set_have_as_tls
=yes # TLS explicitly enabled.
24044 elif test -z "$tls_first_major"; then
24045 : # If we don't have a check, assume no support.
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24048 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24049 if test "${gcc_cv_as_tls+set}" = set; then :
24050 $as_echo_n "(cached) " >&6
24053 if test $in_tree_gas = yes; then
24054 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24055 then gcc_cv_as_tls
=yes
24057 elif test x
$gcc_cv_as != x
; then
24058 $as_echo "$conftest_s" > conftest.s
24059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24061 (eval $ac_try) 2>&5
24063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24064 test $ac_status = 0; }; }
24068 echo "configure: failed program was" >&5
24071 rm -f conftest.o conftest.s
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24075 $as_echo "$gcc_cv_as_tls" >&6; }
24076 if test $gcc_cv_as_tls = yes; then
24077 set_have_as_tls
=yes
24080 if test $set_have_as_tls = yes ; then
24082 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24086 # Target-specific assembler checks.
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24089 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24090 gcc_cv_ld_static_dynamic
=no
24091 gcc_cv_ld_static_option
='-Bstatic'
24092 gcc_cv_ld_dynamic_option
='-Bdynamic'
24093 if test $in_tree_ld = yes ; then
24094 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
24095 gcc_cv_ld_static_dynamic
=yes
24097 elif test x
$gcc_cv_ld != x
; then
24098 # Check if linker supports -Bstatic/-Bdynamic option
24099 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24100 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24101 gcc_cv_ld_static_dynamic
=yes
24104 # AIX ld uses -b flags
24105 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24106 gcc_cv_ld_static_dynamic
=yes
24107 gcc_cv_ld_static_option
="-bstatic"
24108 gcc_cv_ld_dynamic_option
="-bdynamic"
24110 # HP-UX ld uses -a flags to select between shared and archive.
24112 if test x
"$gnu_ld" = xno
; then
24113 gcc_cv_ld_static_dynamic
=yes
24114 gcc_cv_ld_static_option
="-aarchive_shared"
24115 gcc_cv_ld_dynamic_option
="-adefault"
24118 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24120 gcc_cv_ld_static_dynamic
=yes
24125 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24127 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24130 cat >>confdefs.h
<<_ACEOF
24131 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24135 cat >>confdefs.h
<<_ACEOF
24136 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24141 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24143 if test x
"$demangler_in_ld" = xyes
; then
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24145 $as_echo_n "checking linker --demangle support... " >&6; }
24146 gcc_cv_ld_demangle
=no
24147 if test $in_tree_ld = yes; then
24148 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 \
24149 gcc_cv_ld_demangle
=yes
24151 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24152 # Check if the GNU linker supports --demangle option
24153 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24154 gcc_cv_ld_demangle
=yes
24157 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24159 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24163 $as_echo "$gcc_cv_ld_demangle" >&6; }
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24167 $as_echo_n "checking linker plugin support... " >&6; }
24168 gcc_cv_lto_plugin
=0
24169 if test -f liblto_plugin.la
; then
24170 save_ld_ver
="$ld_ver"
24171 save_ld_vers_major
="$ld_vers_major"
24172 save_ld_vers_minor
="$ld_vers_minor"
24173 save_ld_is_gold
="$ld_is_gold"
24177 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24179 # FIXME: ld_is_gold?
24180 ld_vers_major
="$gcc_cv_gld_major_version"
24181 ld_vers_minor
="$gcc_cv_gld_minor_version"
24183 # Determine plugin linker version.
24184 # FIXME: Partial duplicate from above, generalize.
24185 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24186 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24187 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24189 ld_vers
=`echo $ld_ver | sed -n \
24190 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24192 ld_vers
=`echo $ld_ver | sed -n \
24193 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24195 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24196 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24200 # Determine plugin support.
24201 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24202 # Require GNU ld or gold 2.21+ for plugin support by default.
24203 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24204 gcc_cv_lto_plugin
=2
24205 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24206 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24207 gcc_cv_lto_plugin
=1
24211 ld_ver
="$save_ld_ver"
24212 ld_vers_major
="$save_ld_vers_major"
24213 ld_vers_minor
="$save_ld_vers_minor"
24214 ld_is_gold
="$save_ld_is_gold"
24217 cat >>confdefs.h
<<_ACEOF
24218 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24222 $as_echo "$gcc_cv_lto_plugin" >&6; }
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24227 $as_echo_n "checking assembler for -mabi option... " >&6; }
24228 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24229 $as_echo_n "(cached) " >&6
24231 gcc_cv_as_aarch64_mabi
=no
24232 if test x
$gcc_cv_as != x
; then
24233 $as_echo '.text' > conftest.s
24234 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24236 (eval $ac_try) 2>&5
24238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24239 test $ac_status = 0; }; }
24241 gcc_cv_as_aarch64_mabi
=yes
24243 echo "configure: failed program was" >&5
24246 rm -f conftest.o conftest.s
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24250 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24252 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24254 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24257 if test x
$with_abi = xilp32
; then
24258 as_fn_error
"Assembler does not support -mabi=ilp32.\
24259 Upgrade the Assembler." "$LINENO" 5
24261 if test x
"$with_multilib_list" = xdefault
; then
24262 TM_MULTILIB_CONFIG
=lp64
24264 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24265 for aarch64_multilib
in ${aarch64_multilibs}; do
24266 case ${aarch64_multilib} in
24268 as_fn_error
"Assembler does not support -mabi=ilp32.\
24269 Upgrade the Assembler." "$LINENO" 5
24277 # Check if we have binutils support for relocations types needed by -fpic
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24279 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24280 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24281 $as_echo_n "(cached) " >&6
24283 gcc_cv_as_aarch64_picreloc
=no
24284 if test x
$gcc_cv_as != x
; then
24287 ldr x0, [x2, #:gotpage_lo15:globalsym]
24289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24291 (eval $ac_try) 2>&5
24293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24294 test $ac_status = 0; }; }
24296 gcc_cv_as_aarch64_picreloc
=yes
24298 echo "configure: failed program was" >&5
24301 rm -f conftest.o conftest.s
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24305 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24306 if test $gcc_cv_as_aarch64_picreloc = yes; then
24308 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24311 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24312 # Check whether --enable-fix-cortex-a53-835769 was given.
24313 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24314 enableval
=$enable_fix_cortex_a53_835769;
24317 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24322 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24323 Valid choices are 'yes' and 'no'." "$LINENO" 5
24330 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24331 # Check whether --enable-fix-cortex-a53-843419 was given.
24332 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24333 enableval
=$enable_fix_cortex_a53_843419;
24336 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24341 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24342 Valid choices are 'yes' and 'no'." "$LINENO" 5
24351 # All TARGET_ABI_OSF targets.
24352 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24354 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24355 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24356 $as_echo_n "(cached) " >&6
24358 gcc_cv_as_alpha_explicit_relocs
=no
24359 if test $in_tree_gas = yes; then
24360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24361 then gcc_cv_as_alpha_explicit_relocs
=yes
24363 elif test x
$gcc_cv_as != x
; then
24364 $as_echo ' .set nomacro
24366 extbl $3, $2, $3 !lituse_bytoff!1
24367 ldq $2, a($29) !literal!1
24368 ldq $4, b($29) !literal!2
24369 ldq_u $3, 0($2) !lituse_base!1
24370 ldq $27, f($29) !literal!5
24371 jsr $26, ($27), f !lituse_jsr!5
24372 ldah $29, 0($26) !gpdisp!3
24373 lda $0, c($29) !gprel
24374 ldah $1, d($29) !gprelhigh
24375 lda $1, d($1) !gprellow
24376 lda $29, 0($29) !gpdisp!3' > conftest.s
24377 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24379 (eval $ac_try) 2>&5
24381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382 test $ac_status = 0; }; }
24384 gcc_cv_as_alpha_explicit_relocs
=yes
24386 echo "configure: failed program was" >&5
24389 rm -f conftest.o conftest.s
24392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24393 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24394 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24396 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24400 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24401 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24402 $as_echo_n "(cached) " >&6
24404 gcc_cv_as_alpha_jsrdirect_relocs
=no
24405 if test $in_tree_gas = yes; then
24406 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24407 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24409 elif test x
$gcc_cv_as != x
; then
24410 $as_echo ' .set nomacro
24412 ldq $27, a($29) !literal!1
24413 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24414 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24416 (eval $ac_try) 2>&5
24418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24419 test $ac_status = 0; }; }
24421 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24423 echo "configure: failed program was" >&5
24426 rm -f conftest.o conftest.s
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24430 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24431 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24433 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24440 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24441 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24442 $as_echo_n "(cached) " >&6
24444 gcc_cv_as_avr_mlink_relax
=no
24445 if test x
$gcc_cv_as != x
; then
24446 $as_echo '.text' > conftest.s
24447 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24449 (eval $ac_try) 2>&5
24451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24452 test $ac_status = 0; }; }
24454 gcc_cv_as_avr_mlink_relax
=yes
24456 echo "configure: failed program was" >&5
24459 rm -f conftest.o conftest.s
24462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24463 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24464 if test $gcc_cv_as_avr_mlink_relax = yes; then
24466 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24471 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24472 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24473 $as_echo_n "(cached) " >&6
24475 gcc_cv_as_avr_mrmw
=no
24476 if test x
$gcc_cv_as != x
; then
24477 $as_echo '.text' > conftest.s
24478 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24480 (eval $ac_try) 2>&5
24482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24483 test $ac_status = 0; }; }
24485 gcc_cv_as_avr_mrmw
=yes
24487 echo "configure: failed program was" >&5
24490 rm -f conftest.o conftest.s
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24494 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24495 if test $gcc_cv_as_avr_mrmw = yes; then
24497 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24504 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24505 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24506 $as_echo_n "(cached) " >&6
24508 gcc_cv_as_cris_no_mul_bug
=no
24509 if test $in_tree_gas = yes; then
24510 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24511 then gcc_cv_as_cris_no_mul_bug
=yes
24513 elif test x
$gcc_cv_as != x
; then
24514 $as_echo '.text' > conftest.s
24515 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24517 (eval $ac_try) 2>&5
24519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24520 test $ac_status = 0; }; }
24522 gcc_cv_as_cris_no_mul_bug
=yes
24524 echo "configure: failed program was" >&5
24527 rm -f conftest.o conftest.s
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24531 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24532 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24534 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24541 $as_echo_n "checking assembler for .register... " >&6; }
24542 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24543 $as_echo_n "(cached) " >&6
24545 gcc_cv_as_sparc_register_op
=no
24546 if test x
$gcc_cv_as != x
; then
24547 $as_echo '.register %g2, #scratch' > conftest.s
24548 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24550 (eval $ac_try) 2>&5
24552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24553 test $ac_status = 0; }; }
24555 gcc_cv_as_sparc_register_op
=yes
24557 echo "configure: failed program was" >&5
24560 rm -f conftest.o conftest.s
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24564 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24565 if test $gcc_cv_as_sparc_register_op = yes; then
24567 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24572 $as_echo_n "checking assembler for #nobits... " >&6; }
24573 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24574 $as_echo_n "(cached) " >&6
24576 gcc_cv_as_sparc_nobits
=no
24577 if test x
$gcc_cv_as != x
; then
24578 $as_echo '.section "nobits",#alloc,#write,#nobits
24579 .section "progbits",#alloc,#write,#progbits' > conftest.s
24580 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24587 gcc_cv_as_sparc_nobits
=yes
24589 echo "configure: failed program was" >&5
24592 rm -f conftest.o conftest.s
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24596 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24599 cat >>confdefs.h
<<_ACEOF
24600 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24605 $as_echo_n "checking assembler for -relax option... " >&6; }
24606 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24607 $as_echo_n "(cached) " >&6
24609 gcc_cv_as_sparc_relax
=no
24610 if test x
$gcc_cv_as != x
; then
24611 $as_echo '.text' > conftest.s
24612 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24614 (eval $ac_try) 2>&5
24616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24617 test $ac_status = 0; }; }
24619 gcc_cv_as_sparc_relax
=yes
24621 echo "configure: failed program was" >&5
24624 rm -f conftest.o conftest.s
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24628 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24629 if test $gcc_cv_as_sparc_relax = yes; then
24631 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24636 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24637 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24638 $as_echo_n "(cached) " >&6
24640 gcc_cv_as_sparc_gotdata_op
=no
24641 if test x
$gcc_cv_as != x
; then
24647 sethi %gdop_hix22(foo), %g1
24648 xor %g1, %gdop_lox10(foo), %g1
24649 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24650 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24652 (eval $ac_try) 2>&5
24654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24655 test $ac_status = 0; }; }
24657 if test x
$gcc_cv_ld != x \
24658 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24659 if test x
$gcc_cv_objdump != x
; then
24660 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24661 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24662 gcc_cv_as_sparc_gotdata_op
=no
24664 gcc_cv_as_sparc_gotdata_op
=yes
24670 echo "configure: failed program was" >&5
24673 rm -f conftest.o conftest.s
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24677 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24678 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24680 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24685 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24686 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24689 gcc_cv_as_sparc_ua_pcrel
=no
24690 if test x
$gcc_cv_as != x
; then
24697 .uaword %r_disp32(foo)' > conftest.s
24698 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24700 (eval $ac_try) 2>&5
24702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24703 test $ac_status = 0; }; }
24705 if test x
$gcc_cv_ld != x \
24706 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24707 gcc_cv_as_sparc_ua_pcrel
=yes
24711 echo "configure: failed program was" >&5
24714 rm -f conftest.o conftest.s
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24718 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24719 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24721 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24725 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24726 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24727 $as_echo_n "(cached) " >&6
24729 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24730 if test x
$gcc_cv_as != x
; then
24734 .uaword %r_disp32(foo)
24735 .byte 0x32, 0x33, 0x34
24739 .skip 4' > conftest.s
24740 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24742 (eval $ac_try) 2>&5
24744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24745 test $ac_status = 0; }; }
24747 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24748 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24749 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24750 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24751 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24752 |
grep 'DISP32' > /dev
/null
2>&1; then
24755 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24760 echo "configure: failed program was" >&5
24763 rm -f conftest.o conftest.s
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24767 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24768 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24770 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24774 fi # unaligned pcrel relocs
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24777 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24778 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24779 $as_echo_n "(cached) " >&6
24781 gcc_cv_as_sparc_offsetable_lo10
=no
24782 if test x
$gcc_cv_as != x
; then
24784 or %g1, %lo(ab) + 12, %g1
24785 or %g1, %lo(ab + 12), %g1' > conftest.s
24786 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24788 (eval $ac_try) 2>&5
24790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24791 test $ac_status = 0; }; }
24793 if test x
$gcc_cv_objdump != x \
24794 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24795 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24796 gcc_cv_as_sparc_offsetable_lo10
=yes
24799 echo "configure: failed program was" >&5
24802 rm -f conftest.o conftest.s
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24806 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24807 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24809 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24814 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24815 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24816 $as_echo_n "(cached) " >&6
24818 gcc_cv_as_sparc_fmaf
=no
24819 if test x
$gcc_cv_as != x
; then
24821 .register %g2, #scratch
24822 .register %g3, #scratch
24824 fmaddd %f0, %f2, %f4, %f6
24825 addxccc %g1, %g2, %g3
24826 fsrl32 %f2, %f4, %f8
24827 fnaddd %f10, %f12, %f14' > conftest.s
24828 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24830 (eval $ac_try) 2>&5
24832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24833 test $ac_status = 0; }; }
24835 gcc_cv_as_sparc_fmaf
=yes
24837 echo "configure: failed program was" >&5
24840 rm -f conftest.o conftest.s
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24844 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24845 if test $gcc_cv_as_sparc_fmaf = yes; then
24847 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24852 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24853 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24854 $as_echo_n "(cached) " >&6
24856 gcc_cv_as_sparc_sparc4
=no
24857 if test x
$gcc_cv_as != x
; then
24859 .register %g2, #scratch
24860 .register %g3, #scratch
24863 1: cwbneg %g2, %g3, 1f
24866 aes_kexpand0 %f4, %f6, %f8
24867 des_round %f38, %f40, %f42, %f44
24868 camellia_f %f54, %f56, %f58, %f60
24869 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24870 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24872 (eval $ac_try) 2>&5
24874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24875 test $ac_status = 0; }; }
24877 gcc_cv_as_sparc_sparc4
=yes
24879 echo "configure: failed program was" >&5
24882 rm -f conftest.o conftest.s
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24886 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24887 if test $gcc_cv_as_sparc_sparc4 = yes; then
24889 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24894 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24895 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24896 $as_echo_n "(cached) " >&6
24898 gcc_cv_as_sparc_leon
=no
24899 if test x
$gcc_cv_as != x
; then
24901 .register %g2, #scratch
24902 .register %g3, #scratch
24906 casa [%g2] 0xb, %g3, %g1' > conftest.s
24907 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24909 (eval $ac_try) 2>&5
24911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24912 test $ac_status = 0; }; }
24914 gcc_cv_as_sparc_leon
=yes
24916 echo "configure: failed program was" >&5
24919 rm -f conftest.o conftest.s
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24923 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24924 if test $gcc_cv_as_sparc_leon = yes; then
24926 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24931 i
[34567]86-*-* | x86_64-
*-*)
24934 # Full C++ conformance when using a shared libstdc++-v3 requires some
24935 # support from the Cygwin DLL, which in more recent versions exports
24936 # wrappers to aid in interposing and redirecting operators new, delete,
24937 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24938 # are configuring for a version of Cygwin that exports the wrappers.
24939 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24940 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24941 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24942 gcc_ac_cygwin_dll_wrappers
=yes
24944 gcc_ac_cygwin_dll_wrappers
=no
24948 # Can't check presence of libc functions during cross-compile, so
24949 # we just have to assume we're building for an up-to-date target.
24950 gcc_ac_cygwin_dll_wrappers
=yes
24953 cat >>confdefs.h
<<_ACEOF
24954 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24959 cygwin
* | pe | mingw32
* | interix
*)
24960 # Recent binutils allows the three-operand form of ".comm" on PE. This
24961 # definition is used unconditionally to initialise the default state of
24962 # the target option variable that governs usage of the feature.
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24964 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24965 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24966 $as_echo_n "(cached) " >&6
24968 gcc_cv_as_comm_has_align
=no
24969 if test $in_tree_gas = yes; then
24970 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24971 then gcc_cv_as_comm_has_align
=yes
24973 elif test x
$gcc_cv_as != x
; then
24974 $as_echo '.comm foo,1,32' > conftest.s
24975 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24977 (eval $ac_try) 2>&5
24979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24980 test $ac_status = 0; }; }
24982 gcc_cv_as_comm_has_align
=yes
24984 echo "configure: failed program was" >&5
24987 rm -f conftest.o conftest.s
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24991 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24994 cat >>confdefs.h
<<_ACEOF
24995 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24998 # Used for DWARF 2 in PE
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
25000 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
25001 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
25002 $as_echo_n "(cached) " >&6
25004 gcc_cv_as_ix86_pe_secrel32
=no
25005 if test $in_tree_gas = yes; then
25006 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25007 then gcc_cv_as_ix86_pe_secrel32
=yes
25009 elif test x
$gcc_cv_as != x
; then
25013 .secrel32 foo' > conftest.s
25014 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25016 (eval $ac_try) 2>&5
25018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25019 test $ac_status = 0; }; }
25021 if test x
$gcc_cv_ld != x \
25022 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25023 gcc_cv_as_ix86_pe_secrel32
=yes
25027 echo "configure: failed program was" >&5
25030 rm -f conftest.o conftest.s
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25034 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25035 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25037 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25040 # Test if the assembler supports the extended form of the .section
25041 # directive that specifies section alignment. LTO support uses this,
25042 # but normally only after installation, so we warn but don't fail the
25043 # configure if LTO is enabled but the assembler does not support it.
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25045 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25046 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25047 $as_echo_n "(cached) " >&6
25049 gcc_cv_as_section_has_align
=no
25050 if test $in_tree_gas = yes; then
25051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25052 then gcc_cv_as_section_has_align
=yes
25054 elif test x
$gcc_cv_as != x
; then
25055 $as_echo '.section lto_test,"dr0"' > conftest.s
25056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; }
25063 gcc_cv_as_section_has_align
=yes
25065 echo "configure: failed program was" >&5
25068 rm -f conftest.o conftest.s
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25072 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25074 if test x
$gcc_cv_as_section_has_align != xyes
; then
25075 case ",$enable_languages," in
25077 { $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
25078 $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;}
25085 # Test if the assembler supports the section flag 'e' for specifying
25086 # an excluded section.
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25088 $as_echo_n "checking assembler for .section with e... " >&6; }
25089 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25092 gcc_cv_as_section_has_e
=no
25093 if test $in_tree_gas = yes; then
25094 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25095 then gcc_cv_as_section_has_e
=yes
25097 elif test x
$gcc_cv_as != x
; then
25098 $as_echo '.section foo1,"e"
25099 .byte 0,0,0,0' > conftest.s
25100 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25102 (eval $ac_try) 2>&5
25104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25105 test $ac_status = 0; }; }
25107 gcc_cv_as_section_has_e
=yes
25109 echo "configure: failed program was" >&5
25112 rm -f conftest.o conftest.s
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25116 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25119 cat >>confdefs.h
<<_ACEOF
25120 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25125 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25126 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25129 gcc_cv_as_ix86_filds
=no
25130 if test x
$gcc_cv_as != x
; then
25131 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25132 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134 (eval $ac_try) 2>&5
25136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137 test $ac_status = 0; }; }
25139 gcc_cv_as_ix86_filds
=yes
25141 echo "configure: failed program was" >&5
25144 rm -f conftest.o conftest.s
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25148 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25149 if test $gcc_cv_as_ix86_filds = yes; then
25151 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25156 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25157 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25158 $as_echo_n "(cached) " >&6
25160 gcc_cv_as_ix86_fildq
=no
25161 if test x
$gcc_cv_as != x
; then
25162 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25165 (eval $ac_try) 2>&5
25167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25168 test $ac_status = 0; }; }
25170 gcc_cv_as_ix86_fildq
=yes
25172 echo "configure: failed program was" >&5
25175 rm -f conftest.o conftest.s
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25179 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25180 if test $gcc_cv_as_ix86_fildq = yes; then
25182 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25187 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25188 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25189 $as_echo_n "(cached) " >&6
25191 gcc_cv_as_ix86_cmov_sun_syntax
=no
25192 if test x
$gcc_cv_as != x
; then
25193 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25194 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25196 (eval $ac_try) 2>&5
25198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25199 test $ac_status = 0; }; }
25201 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25203 echo "configure: failed program was" >&5
25206 rm -f conftest.o conftest.s
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25210 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25211 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25213 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25218 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25219 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25220 $as_echo_n "(cached) " >&6
25222 gcc_cv_as_ix86_ffreep
=no
25223 if test x
$gcc_cv_as != x
; then
25224 $as_echo 'ffreep %st(1)' > conftest.s
25225 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25227 (eval $ac_try) 2>&5
25229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25230 test $ac_status = 0; }; }
25232 gcc_cv_as_ix86_ffreep
=yes
25234 echo "configure: failed program was" >&5
25237 rm -f conftest.o conftest.s
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25241 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25242 if test $gcc_cv_as_ix86_ffreep = yes; then
25244 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25249 $as_echo_n "checking assembler for .quad directive... " >&6; }
25250 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25251 $as_echo_n "(cached) " >&6
25253 gcc_cv_as_ix86_quad
=no
25254 if test x
$gcc_cv_as != x
; then
25255 $as_echo '.quad 0' > conftest.s
25256 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258 (eval $ac_try) 2>&5
25260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }; }
25263 gcc_cv_as_ix86_quad
=yes
25265 echo "configure: failed program was" >&5
25268 rm -f conftest.o conftest.s
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25272 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25273 if test $gcc_cv_as_ix86_quad = yes; then
25275 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25280 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25281 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25282 $as_echo_n "(cached) " >&6
25284 gcc_cv_as_ix86_sahf
=no
25285 if test x
$gcc_cv_as != x
; then
25288 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25290 (eval $ac_try) 2>&5
25292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25293 test $ac_status = 0; }; }
25295 gcc_cv_as_ix86_sahf
=yes
25297 echo "configure: failed program was" >&5
25300 rm -f conftest.o conftest.s
25303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25304 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25305 if test $gcc_cv_as_ix86_sahf = yes; then
25307 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25312 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25313 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25314 $as_echo_n "(cached) " >&6
25316 gcc_cv_as_ix86_interunit_movq
=no
25317 if test x
$gcc_cv_as != x
; then
25320 movq %rax, %xmm0' > conftest.s
25321 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25323 (eval $ac_try) 2>&5
25325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25326 test $ac_status = 0; }; }
25328 gcc_cv_as_ix86_interunit_movq
=yes
25330 echo "configure: failed program was" >&5
25333 rm -f conftest.o conftest.s
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25337 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25340 cat >>confdefs.h
<<_ACEOF
25341 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25346 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25347 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25350 gcc_cv_as_ix86_hle
=no
25351 if test x
$gcc_cv_as != x
; then
25352 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25353 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25355 (eval $ac_try) 2>&5
25357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25358 test $ac_status = 0; }; }
25360 gcc_cv_as_ix86_hle
=yes
25362 echo "configure: failed program was" >&5
25365 rm -f conftest.o conftest.s
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25369 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25370 if test $gcc_cv_as_ix86_hle = yes; then
25372 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25377 $as_echo_n "checking assembler for swap suffix... " >&6; }
25378 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25379 $as_echo_n "(cached) " >&6
25381 gcc_cv_as_ix86_swap
=no
25382 if test x
$gcc_cv_as != x
; then
25383 $as_echo 'movl.s %esp, %ebp' > conftest.s
25384 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25386 (eval $ac_try) 2>&5
25388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25389 test $ac_status = 0; }; }
25391 gcc_cv_as_ix86_swap
=yes
25393 echo "configure: failed program was" >&5
25396 rm -f conftest.o conftest.s
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25400 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25401 if test $gcc_cv_as_ix86_swap = yes; then
25403 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25408 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25409 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25410 $as_echo_n "(cached) " >&6
25412 gcc_cv_as_ix86_diff_sect_delta
=no
25413 if test x
$gcc_cv_as != x
; then
25414 $as_echo '.section .rodata
25420 .L2: nop' > conftest.s
25421 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25423 (eval $ac_try) 2>&5
25425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25426 test $ac_status = 0; }; }
25428 gcc_cv_as_ix86_diff_sect_delta
=yes
25430 echo "configure: failed program was" >&5
25433 rm -f conftest.o conftest.s
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25437 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25438 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25440 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25444 # These two are used unconditionally by i386.[ch]; it is to be defined
25445 # to 1 if the feature is present, 0 otherwise.
25446 as_ix86_gotoff_in_data_opt
=
25447 if test x
$gas = xyes
; then
25448 as_ix86_gotoff_in_data_opt
="--32"
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25451 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25452 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25453 $as_echo_n "(cached) " >&6
25455 gcc_cv_as_ix86_gotoff_in_data
=no
25456 if test $in_tree_gas = yes; then
25457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25458 then gcc_cv_as_ix86_gotoff_in_data
=yes
25460 elif test x
$gcc_cv_as != x
; then
25465 .long .L0@GOTOFF' > conftest.s
25466 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25468 (eval $ac_try) 2>&5
25470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25471 test $ac_status = 0; }; }
25473 gcc_cv_as_ix86_gotoff_in_data
=yes
25475 echo "configure: failed program was" >&5
25478 rm -f conftest.o conftest.s
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25482 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25485 cat >>confdefs.h
<<_ACEOF
25486 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25491 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25492 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25493 $as_echo_n "(cached) " >&6
25495 gcc_cv_as_ix86_rep_lock_prefix
=no
25496 if test x
$gcc_cv_as != x
; then
25497 $as_echo 'rep movsl
25502 lock addl %edi, (%eax,%esi)
25503 lock orl $0, (%esp)' > conftest.s
25504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25506 (eval $ac_try) 2>&5
25508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25509 test $ac_status = 0; }; }
25511 gcc_cv_as_ix86_rep_lock_prefix
=yes
25513 echo "configure: failed program was" >&5
25516 rm -f conftest.o conftest.s
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25520 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25521 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25523 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25528 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25529 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25530 $as_echo_n "(cached) " >&6
25532 gcc_cv_as_ix86_ud2
=no
25533 if test x
$gcc_cv_as != x
; then
25534 $as_echo 'ud2' > conftest.s
25535 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25537 (eval $ac_try) 2>&5
25539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25540 test $ac_status = 0; }; }
25542 gcc_cv_as_ix86_ud2
=yes
25544 echo "configure: failed program was" >&5
25547 rm -f conftest.o conftest.s
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25551 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25552 if test $gcc_cv_as_ix86_ud2 = yes; then
25554 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25559 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25560 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25561 $as_echo_n "(cached) " >&6
25563 gcc_cv_as_ix86_tlsgdplt
=no
25564 if test x
$gcc_cv_as != x
; then
25565 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25566 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25568 (eval $ac_try) 2>&5
25570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25571 test $ac_status = 0; }; }
25573 if test x
$gcc_cv_ld != x \
25574 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25575 gcc_cv_as_ix86_tlsgdplt
=yes
25579 echo "configure: failed program was" >&5
25582 rm -f conftest.o conftest.s
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25586 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25587 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25589 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25594 .section .tdata,"aw'$tls_section_flag'",@progbits
25596 .section .text,"ax",@progbits
25597 call tls_ld@tlsldmplt'
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25599 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25600 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25601 $as_echo_n "(cached) " >&6
25603 gcc_cv_as_ix86_tlsldmplt
=no
25604 if test x
$gcc_cv_as != x
; then
25605 $as_echo "$conftest_s" > conftest.s
25606 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25608 (eval $ac_try) 2>&5
25610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25611 test $ac_status = 0; }; }
25613 if test x
$gcc_cv_ld != x \
25614 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25615 gcc_cv_as_ix86_tlsldmplt
=yes
25619 echo "configure: failed program was" >&5
25622 rm -f conftest.o conftest.s
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25626 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25629 cat >>confdefs.h
<<_ACEOF
25630 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25634 # Enforce 32-bit output with gas and gld.
25635 if test x
$gas = xyes
; then
25636 as_ix86_tls_ldm_opt
="--32"
25638 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25639 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25640 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25642 ld_ix86_tls_ldm_opt
="-melf_i386"
25646 .section .text,"ax",@progbits
25648 .type _start, @function
25650 leal value@tlsldm(%ebx), %eax
25651 call ___tls_get_addr@plt
25653 .section .tdata,"aw'$tls_section_flag'",@progbits
25654 .type value, @object
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25657 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25658 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25659 $as_echo_n "(cached) " >&6
25661 gcc_cv_as_ix86_tlsldm
=no
25662 if test x
$gcc_cv_as != x
; then
25663 $as_echo "$conftest_s" > conftest.s
25664 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25666 (eval $ac_try) 2>&5
25668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25669 test $ac_status = 0; }; }
25671 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25672 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25673 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25674 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25675 gcc_cv_as_ix86_tlsldm
=yes
25680 echo "configure: failed program was" >&5
25683 rm -f conftest.o conftest.s
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25687 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25690 cat >>confdefs.h
<<_ACEOF
25691 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25699 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25700 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25701 $as_echo_n "(cached) " >&6
25703 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25704 if test $in_tree_gas = yes; then
25705 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25706 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25708 elif test x
$gcc_cv_as != x
; then
25710 addl r15 = @ltoffx(x#), gp
25712 ld8.mov r16 = [r15], x#' > conftest.s
25713 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25715 (eval $ac_try) 2>&5
25717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25718 test $ac_status = 0; }; }
25720 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25722 echo "configure: failed program was" >&5
25725 rm -f conftest.o conftest.s
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25729 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25730 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25732 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25740 *-*-aix*) conftest_s
=' .machine "pwr5"
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25745 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25746 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25747 $as_echo_n "(cached) " >&6
25749 gcc_cv_as_machine_directive
=no
25750 if test x
$gcc_cv_as != x
; then
25751 $as_echo ' .machine ppc7400' > conftest.s
25752 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25754 (eval $ac_try) 2>&5
25756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25757 test $ac_status = 0; }; }
25759 gcc_cv_as_machine_directive
=yes
25761 echo "configure: failed program was" >&5
25764 rm -f conftest.o conftest.s
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25768 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25770 if test x
$gcc_cv_as_machine_directive != xyes
; then
25771 echo "*** This target requires an assembler supporting \".machine\"" >&2
25772 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25773 test x
$build = x
$target && exit 1
25777 *) conftest_s
=' .machine power4
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25783 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25784 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25785 $as_echo_n "(cached) " >&6
25787 gcc_cv_as_powerpc_mfcrf
=no
25788 if test $in_tree_gas = yes; then
25789 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25790 then gcc_cv_as_powerpc_mfcrf
=yes
25792 elif test x
$gcc_cv_as != x
; then
25793 $as_echo "$conftest_s" > conftest.s
25794 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25796 (eval $ac_try) 2>&5
25798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25799 test $ac_status = 0; }; }
25801 gcc_cv_as_powerpc_mfcrf
=yes
25803 echo "configure: failed program was" >&5
25806 rm -f conftest.o conftest.s
25809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25810 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25811 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25813 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25818 *-*-aix*) conftest_s
=' .machine "pwr5"
25821 *) conftest_s
=' .machine power5
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25827 $as_echo_n "checking assembler for popcntb support... " >&6; }
25828 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25829 $as_echo_n "(cached) " >&6
25831 gcc_cv_as_powerpc_popcntb
=no
25832 if test $in_tree_gas = yes; then
25833 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25834 then gcc_cv_as_powerpc_popcntb
=yes
25836 elif test x
$gcc_cv_as != x
; then
25837 $as_echo "$conftest_s" > conftest.s
25838 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25840 (eval $ac_try) 2>&5
25842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25843 test $ac_status = 0; }; }
25845 gcc_cv_as_powerpc_popcntb
=yes
25847 echo "configure: failed program was" >&5
25850 rm -f conftest.o conftest.s
25853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25854 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25855 if test $gcc_cv_as_powerpc_popcntb = yes; then
25857 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25862 *-*-aix*) conftest_s
=' .machine "pwr5x"
25865 *) conftest_s
=' .machine power5
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25871 $as_echo_n "checking assembler for fp round support... " >&6; }
25872 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25873 $as_echo_n "(cached) " >&6
25875 gcc_cv_as_powerpc_fprnd
=no
25876 if test $in_tree_gas = yes; then
25877 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25878 then gcc_cv_as_powerpc_fprnd
=yes
25880 elif test x
$gcc_cv_as != x
; then
25881 $as_echo "$conftest_s" > conftest.s
25882 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25884 (eval $ac_try) 2>&5
25886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25887 test $ac_status = 0; }; }
25889 gcc_cv_as_powerpc_fprnd
=yes
25891 echo "configure: failed program was" >&5
25894 rm -f conftest.o conftest.s
25897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25898 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25899 if test $gcc_cv_as_powerpc_fprnd = yes; then
25901 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25906 *-*-aix*) conftest_s
=' .machine "pwr6"
25909 *) conftest_s
=' .machine power6
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25915 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25916 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25917 $as_echo_n "(cached) " >&6
25919 gcc_cv_as_powerpc_mfpgpr
=no
25920 if test $in_tree_gas = yes; then
25921 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25922 then gcc_cv_as_powerpc_mfpgpr
=yes
25924 elif test x
$gcc_cv_as != x
; then
25925 $as_echo "$conftest_s" > conftest.s
25926 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25928 (eval $ac_try) 2>&5
25930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25931 test $ac_status = 0; }; }
25933 gcc_cv_as_powerpc_mfpgpr
=yes
25935 echo "configure: failed program was" >&5
25938 rm -f conftest.o conftest.s
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25942 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25943 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25945 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25950 *-*-aix*) conftest_s
=' .csect .text[PR]
25952 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25956 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25957 *) conftest_s
=' .text
25959 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25963 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25964 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25965 $as_echo_n "(cached) " >&6
25967 gcc_cv_as_powerpc_rel16
=no
25968 if test $in_tree_gas = yes; then
25969 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25970 then gcc_cv_as_powerpc_rel16
=yes
25972 elif test x
$gcc_cv_as != x
; then
25973 $as_echo "$conftest_s" > conftest.s
25974 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25976 (eval $ac_try) 2>&5
25978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25979 test $ac_status = 0; }; }
25981 gcc_cv_as_powerpc_rel16
=yes
25983 echo "configure: failed program was" >&5
25986 rm -f conftest.o conftest.s
25989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25990 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25991 if test $gcc_cv_as_powerpc_rel16 = yes; then
25993 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25998 *-*-aix*) conftest_s
=' .machine "pwr6"
26001 *) conftest_s
=' .machine power6
26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26007 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26008 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26009 $as_echo_n "(cached) " >&6
26011 gcc_cv_as_powerpc_cmpb
=no
26012 if test $in_tree_gas = yes; then
26013 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26014 then gcc_cv_as_powerpc_cmpb
=yes
26016 elif test x
$gcc_cv_as != x
; then
26017 $as_echo "$conftest_s" > conftest.s
26018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; }
26025 gcc_cv_as_powerpc_cmpb
=yes
26027 echo "configure: failed program was" >&5
26030 rm -f conftest.o conftest.s
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26034 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26035 if test $gcc_cv_as_powerpc_cmpb = yes; then
26037 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26042 *-*-aix*) conftest_s
=' .machine "pwr6"
26045 *) conftest_s
=' .machine power6
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26051 $as_echo_n "checking assembler for decimal float support... " >&6; }
26052 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26053 $as_echo_n "(cached) " >&6
26055 gcc_cv_as_powerpc_dfp
=no
26056 if test $in_tree_gas = yes; then
26057 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26058 then gcc_cv_as_powerpc_dfp
=yes
26060 elif test x
$gcc_cv_as != x
; then
26061 $as_echo "$conftest_s" > conftest.s
26062 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26064 (eval $ac_try) 2>&5
26066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26067 test $ac_status = 0; }; }
26069 gcc_cv_as_powerpc_dfp
=yes
26071 echo "configure: failed program was" >&5
26074 rm -f conftest.o conftest.s
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26078 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26079 if test $gcc_cv_as_powerpc_dfp = yes; then
26081 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26086 *-*-aix*) conftest_s
=' .machine "pwr7"
26089 *) conftest_s
=' .machine power7
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26095 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26096 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26097 $as_echo_n "(cached) " >&6
26099 gcc_cv_as_powerpc_vsx
=no
26100 if test $in_tree_gas = yes; then
26101 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26102 then gcc_cv_as_powerpc_vsx
=yes
26104 elif test x
$gcc_cv_as != x
; then
26105 $as_echo "$conftest_s" > conftest.s
26106 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26108 (eval $ac_try) 2>&5
26110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26111 test $ac_status = 0; }; }
26113 gcc_cv_as_powerpc_vsx
=yes
26115 echo "configure: failed program was" >&5
26118 rm -f conftest.o conftest.s
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26122 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26123 if test $gcc_cv_as_powerpc_vsx = yes; then
26125 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26130 *-*-aix*) conftest_s
=' .machine "pwr7"
26133 *) conftest_s
=' .machine power7
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26139 $as_echo_n "checking assembler for popcntd support... " >&6; }
26140 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26141 $as_echo_n "(cached) " >&6
26143 gcc_cv_as_powerpc_popcntd
=no
26144 if test $in_tree_gas = yes; then
26145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26146 then gcc_cv_as_powerpc_popcntd
=yes
26148 elif test x
$gcc_cv_as != x
; then
26149 $as_echo "$conftest_s" > conftest.s
26150 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26152 (eval $ac_try) 2>&5
26154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26155 test $ac_status = 0; }; }
26157 gcc_cv_as_powerpc_popcntd
=yes
26159 echo "configure: failed program was" >&5
26162 rm -f conftest.o conftest.s
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26166 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26167 if test $gcc_cv_as_powerpc_popcntd = yes; then
26169 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26174 *-*-aix*) conftest_s
=' .machine "pwr8"
26175 .csect .text[PR]';;
26176 *) conftest_s
=' .machine power8
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26181 $as_echo_n "checking assembler for power8 support... " >&6; }
26182 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26183 $as_echo_n "(cached) " >&6
26185 gcc_cv_as_powerpc_power8
=no
26186 if test $in_tree_gas = yes; then
26187 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26188 then gcc_cv_as_powerpc_power8
=yes
26190 elif test x
$gcc_cv_as != x
; then
26191 $as_echo "$conftest_s" > conftest.s
26192 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26194 (eval $ac_try) 2>&5
26196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26197 test $ac_status = 0; }; }
26199 gcc_cv_as_powerpc_power8
=yes
26201 echo "configure: failed program was" >&5
26204 rm -f conftest.o conftest.s
26207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26208 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26209 if test $gcc_cv_as_powerpc_power8 = yes; then
26211 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26216 *-*-aix*) conftest_s
=' .csect .text[PR]
26218 *) conftest_s
=' .text
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26223 $as_echo_n "checking assembler for lwsync support... " >&6; }
26224 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26225 $as_echo_n "(cached) " >&6
26227 gcc_cv_as_powerpc_lwsync
=no
26228 if test $in_tree_gas = yes; then
26229 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26230 then gcc_cv_as_powerpc_lwsync
=yes
26232 elif test x
$gcc_cv_as != x
; then
26233 $as_echo "$conftest_s" > conftest.s
26234 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26236 (eval $ac_try) 2>&5
26238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26239 test $ac_status = 0; }; }
26241 gcc_cv_as_powerpc_lwsync
=yes
26243 echo "configure: failed program was" >&5
26246 rm -f conftest.o conftest.s
26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26250 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26251 if test $gcc_cv_as_powerpc_lwsync = yes; then
26253 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26258 *-*-aix*) conftest_s
=' .machine "476"
26261 *) conftest_s
=' .machine "476"
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26267 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26268 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26269 $as_echo_n "(cached) " >&6
26271 gcc_cv_as_powerpc_dci
=no
26272 if test $in_tree_gas = yes; then
26273 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26274 then gcc_cv_as_powerpc_dci
=yes
26276 elif test x
$gcc_cv_as != x
; then
26277 $as_echo "$conftest_s" > conftest.s
26278 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26280 (eval $ac_try) 2>&5
26282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26283 test $ac_status = 0; }; }
26285 gcc_cv_as_powerpc_dci
=yes
26287 echo "configure: failed program was" >&5
26290 rm -f conftest.o conftest.s
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26294 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26295 if test $gcc_cv_as_powerpc_dci = yes; then
26297 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26302 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26303 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26304 $as_echo_n "(cached) " >&6
26306 gcc_cv_as_powerpc_gnu_attribute
=no
26307 if test $in_tree_gas = yes; then
26308 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26309 then gcc_cv_as_powerpc_gnu_attribute
=yes
26311 elif test x
$gcc_cv_as != x
; then
26312 $as_echo '.gnu_attribute 4,1' > conftest.s
26313 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26315 (eval $ac_try) 2>&5
26317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26318 test $ac_status = 0; }; }
26320 gcc_cv_as_powerpc_gnu_attribute
=yes
26322 echo "configure: failed program was" >&5
26325 rm -f conftest.o conftest.s
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26329 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26330 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26332 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26337 $as_echo_n "checking assembler for tls marker support... " >&6; }
26338 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26339 $as_echo_n "(cached) " >&6
26341 gcc_cv_as_powerpc_tls_markers
=no
26342 if test $in_tree_gas = yes; then
26343 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26344 then gcc_cv_as_powerpc_tls_markers
=yes
26346 elif test x
$gcc_cv_as != x
; then
26347 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26348 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26350 (eval $ac_try) 2>&5
26352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26353 test $ac_status = 0; }; }
26355 gcc_cv_as_powerpc_tls_markers
=yes
26357 echo "configure: failed program was" >&5
26360 rm -f conftest.o conftest.s
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26364 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26365 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26367 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26374 $as_echo_n "checking assembler for .ref support... " >&6; }
26375 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26376 $as_echo_n "(cached) " >&6
26378 gcc_cv_as_aix_ref
=no
26379 if test $in_tree_gas = yes; then
26380 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26381 then gcc_cv_as_aix_ref
=yes
26383 elif test x
$gcc_cv_as != x
; then
26384 $as_echo ' .csect stuff[rw]
26390 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26392 (eval $ac_try) 2>&5
26394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26395 test $ac_status = 0; }; }
26397 gcc_cv_as_aix_ref
=yes
26399 echo "configure: failed program was" >&5
26402 rm -f conftest.o conftest.s
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26406 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26407 if test $gcc_cv_as_aix_ref = yes; then
26409 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26418 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26419 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26420 $as_echo_n "(cached) " >&6
26422 gcc_cv_as_mips_explicit_relocs
=no
26423 if test $in_tree_gas = yes; then
26424 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26425 then gcc_cv_as_mips_explicit_relocs
=yes
26427 elif test x
$gcc_cv_as != x
; then
26428 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26429 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26431 (eval $ac_try) 2>&5
26433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26434 test $ac_status = 0; }; }
26436 gcc_cv_as_mips_explicit_relocs
=yes
26438 echo "configure: failed program was" >&5
26441 rm -f conftest.o conftest.s
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26445 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26446 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26447 if test x
$target_cpu_default = x
26448 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26449 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26453 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26454 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26455 $as_echo_n "(cached) " >&6
26457 gcc_cv_as_mips_no_shared
=no
26458 if test $in_tree_gas = yes; then
26459 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26460 then gcc_cv_as_mips_no_shared
=yes
26462 elif test x
$gcc_cv_as != x
; then
26463 $as_echo 'nop' > conftest.s
26464 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; }
26471 gcc_cv_as_mips_no_shared
=yes
26473 echo "configure: failed program was" >&5
26476 rm -f conftest.o conftest.s
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26480 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26481 if test $gcc_cv_as_mips_no_shared = yes; then
26483 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26488 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26489 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26490 $as_echo_n "(cached) " >&6
26492 gcc_cv_as_mips_gnu_attribute
=no
26493 if test $in_tree_gas = yes; then
26494 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26495 then gcc_cv_as_mips_gnu_attribute
=yes
26497 elif test x
$gcc_cv_as != x
; then
26498 $as_echo '.gnu_attribute 4,1' > conftest.s
26499 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26501 (eval $ac_try) 2>&5
26503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26504 test $ac_status = 0; }; }
26506 gcc_cv_as_mips_gnu_attribute
=yes
26508 echo "configure: failed program was" >&5
26511 rm -f conftest.o conftest.s
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26515 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26516 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26518 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26523 $as_echo_n "checking assembler for .module support... " >&6; }
26524 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26525 $as_echo_n "(cached) " >&6
26527 gcc_cv_as_mips_dot_module
=no
26528 if test x
$gcc_cv_as != x
; then
26529 $as_echo '.module mips2
26530 .module fp=xx' > conftest.s
26531 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26533 (eval $ac_try) 2>&5
26535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26536 test $ac_status = 0; }; }
26538 gcc_cv_as_mips_dot_module
=yes
26540 echo "configure: failed program was" >&5
26543 rm -f conftest.o conftest.s
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26547 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26548 if test $gcc_cv_as_mips_dot_module = yes; then
26550 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26553 if test x
$gcc_cv_as_mips_dot_module = xno \
26554 && test x
$with_fp_32 != x
; then
26555 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26559 $as_echo_n "checking assembler for .micromips support... " >&6; }
26560 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26561 $as_echo_n "(cached) " >&6
26563 gcc_cv_as_micromips_support
=no
26564 if test x
$gcc_cv_as != x
; then
26565 $as_echo '.set micromips' > conftest.s
26566 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26568 (eval $ac_try) 2>&5
26570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26571 test $ac_status = 0; }; }
26573 gcc_cv_as_micromips_support
=yes
26575 echo "configure: failed program was" >&5
26578 rm -f conftest.o conftest.s
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26582 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26583 if test $gcc_cv_as_micromips_support = yes; then
26585 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26590 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26591 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26592 $as_echo_n "(cached) " >&6
26594 gcc_cv_as_mips_dtprelword
=no
26595 if test $in_tree_gas = yes; then
26596 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26597 then gcc_cv_as_mips_dtprelword
=yes
26599 elif test x
$gcc_cv_as != x
; then
26600 $as_echo '.section .tdata,"awT",@progbits
26604 .dtprelword x+0x8000' > conftest.s
26605 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26607 (eval $ac_try) 2>&5
26609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26610 test $ac_status = 0; }; }
26612 gcc_cv_as_mips_dtprelword
=yes
26614 echo "configure: failed program was" >&5
26617 rm -f conftest.o conftest.s
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26621 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26622 if test $gcc_cv_as_mips_dtprelword = yes; then
26624 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26629 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26630 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26631 $as_echo_n "(cached) " >&6
26633 gcc_cv_as_mips_dspr1_mult
=no
26634 if test x
$gcc_cv_as != x
; then
26635 $as_echo ' .set mips32r2
26643 multu $ac3,$4,$5' > conftest.s
26644 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26646 (eval $ac_try) 2>&5
26648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26649 test $ac_status = 0; }; }
26651 gcc_cv_as_mips_dspr1_mult
=yes
26653 echo "configure: failed program was" >&5
26656 rm -f conftest.o conftest.s
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26660 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26661 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26663 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26668 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26669 gcc_cv_as_ld_jalr_reloc
=no
26670 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26671 if test $in_tree_ld = yes ; then
26672 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 \
26673 && test $in_tree_ld_is_elf = yes; then
26674 gcc_cv_as_ld_jalr_reloc
=yes
26676 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26677 echo ' .ent x' > conftest.s
26678 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26679 echo ' lw $25,%call16(y)($28)' >> conftest.s
26680 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26681 echo '1: jalr $25' >> conftest.s
26682 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26683 echo '1: jalr $25' >> conftest.s
26684 echo ' .end x' >> conftest.s
26685 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26686 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26687 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26688 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26689 gcc_cv_as_ld_jalr_reloc
=yes
26695 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26696 if test x
$target_cpu_default = x
; then
26697 target_cpu_default
=MASK_RELAX_PIC_CALLS
26699 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26703 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26706 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26707 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26708 $as_echo_n "(cached) " >&6
26710 gcc_cv_ld_mips_personality_relaxation
=no
26711 if test $in_tree_ld = yes ; then
26712 if test "$gcc_cv_gld_major_version" -eq 2 \
26713 -a "$gcc_cv_gld_minor_version" -ge 21 \
26714 -o "$gcc_cv_gld_major_version" -gt 2; then
26715 gcc_cv_ld_mips_personality_relaxation
=yes
26717 elif test x
$gcc_cv_as != x \
26718 -a x
$gcc_cv_ld != x \
26719 -a x
$gcc_cv_readelf != x
; then
26720 cat > conftest.s
<<EOF
26722 .cfi_personality 0x80,indirect_ptr
26729 .section .data,"aw",@progbits
26733 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26734 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26735 if $gcc_cv_readelf -d conftest
2>&1 \
26736 |
grep TEXTREL
> /dev
/null
2>&1; then
26738 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26739 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26742 gcc_cv_ld_mips_personality_relaxation
=yes
26746 rm -f conftest.s conftest.o conftest
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26749 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26750 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26752 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26757 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26758 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26759 $as_echo_n "(cached) " >&6
26761 gcc_cv_as_mips_nan
=no
26762 if test x
$gcc_cv_as != x
; then
26763 $as_echo '' > conftest.s
26764 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26766 (eval $ac_try) 2>&5
26768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26769 test $ac_status = 0; }; }
26771 gcc_cv_as_mips_nan
=yes
26773 echo "configure: failed program was" >&5
26776 rm -f conftest.o conftest.s
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26780 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26781 if test $gcc_cv_as_mips_nan = yes; then
26783 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26786 if test x
$gcc_cv_as_mips_nan = xno \
26787 && test x
$with_nan != x
; then
26788 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26793 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26794 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26795 $as_echo_n "(cached) " >&6
26797 gcc_cv_as_s390_gnu_attribute
=no
26798 if test $in_tree_gas = yes; then
26799 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26800 then gcc_cv_as_s390_gnu_attribute
=yes
26802 elif test x
$gcc_cv_as != x
; then
26803 $as_echo '.gnu_attribute 8,1' > conftest.s
26804 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26806 (eval $ac_try) 2>&5
26808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26809 test $ac_status = 0; }; }
26811 gcc_cv_as_s390_gnu_attribute
=yes
26813 echo "configure: failed program was" >&5
26816 rm -f conftest.o conftest.s
26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26820 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26821 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26823 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26829 # Mips and HP-UX need the GNU assembler.
26830 # Linux on IA64 might be able to use the Intel assembler.
26833 mips
*-*-* |
*-*-hpux* )
26834 if test x
$gas_flag = xyes \
26835 ||
test x
"$host" != x
"$build" \
26836 ||
test ! -x "$gcc_cv_as" \
26837 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26840 echo "*** This configuration requires the GNU assembler" >&2
26846 # ??? Not all targets support dwarf2 debug_line, even within a version
26847 # of gas. Moreover, we need to emit a valid instruction to trigger any
26848 # info to the output file. So, as supported targets are added to gas 2.11,
26849 # add some instruction here to (also) show we expect this might work.
26850 # ??? Once 2.11 is released, probably need to add first known working
26851 # version to the per-target configury.
26852 case "$cpu_type" in
26853 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26854 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26855 | visium | xstormy16 | xtensa
)
26865 if test x
"$insn" != x
; then
26867 .file 1 \"conftest.s\"
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26871 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26872 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26873 $as_echo_n "(cached) " >&6
26875 gcc_cv_as_dwarf2_debug_line
=no
26876 if test $in_tree_gas = yes; then
26877 if test $in_tree_gas_is_elf = yes \
26878 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26879 then gcc_cv_as_dwarf2_debug_line
=yes
26881 elif test x
$gcc_cv_as != x
; then
26882 $as_echo "$conftest_s" > conftest.s
26883 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26885 (eval $ac_try) 2>&5
26887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26888 test $ac_status = 0; }; }
26890 if test x
$gcc_cv_objdump != x \
26891 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26892 |
grep debug_line
> /dev
/null
2>&1; then
26893 gcc_cv_as_dwarf2_debug_line
=yes
26896 echo "configure: failed program was" >&5
26899 rm -f conftest.o conftest.s
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26903 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26906 # The .debug_line file table must be in the exact order that
26907 # we specified the files, since these indices are also used
26908 # by DW_AT_decl_file. Approximate this test by testing if
26909 # the assembler bitches if the same index is assigned twice.
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26911 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26912 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26913 $as_echo_n "(cached) " >&6
26915 gcc_cv_as_dwarf2_file_buggy
=no
26916 if test x
$gcc_cv_as != x
; then
26917 $as_echo ' .file 1 "foo.s"
26918 .file 1 "bar.s"' > conftest.s
26919 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26921 (eval $ac_try) 2>&5
26923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26924 test $ac_status = 0; }; }
26926 gcc_cv_as_dwarf2_file_buggy
=yes
26928 echo "configure: failed program was" >&5
26931 rm -f conftest.o conftest.s
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26935 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26938 if test $gcc_cv_as_dwarf2_debug_line = yes \
26939 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26941 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26946 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26947 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26948 $as_echo_n "(cached) " >&6
26950 gcc_cv_as_gdwarf2_flag
=no
26951 if test $in_tree_gas = yes; then
26952 if test $in_tree_gas_is_elf = yes \
26953 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26954 then gcc_cv_as_gdwarf2_flag
=yes
26956 elif test x
$gcc_cv_as != x
; then
26957 $as_echo "$insn" > conftest.s
26958 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26960 (eval $ac_try) 2>&5
26962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26963 test $ac_status = 0; }; }
26965 gcc_cv_as_gdwarf2_flag
=yes
26967 echo "configure: failed program was" >&5
26970 rm -f conftest.o conftest.s
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26974 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26975 if test $gcc_cv_as_gdwarf2_flag = yes; then
26977 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26982 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26983 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26984 $as_echo_n "(cached) " >&6
26986 gcc_cv_as_gstabs_flag
=no
26987 if test $in_tree_gas = yes; then
26988 if test $in_tree_gas_is_elf = yes \
26989 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26990 then gcc_cv_as_gstabs_flag
=yes
26992 elif test x
$gcc_cv_as != x
; then
26993 $as_echo "$insn" > conftest.s
26994 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26996 (eval $ac_try) 2>&5
26998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26999 test $ac_status = 0; }; }
27001 gcc_cv_as_gstabs_flag
=yes
27003 echo "configure: failed program was" >&5
27006 rm -f conftest.o conftest.s
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27010 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27011 if test $gcc_cv_as_gstabs_flag = yes; then
27013 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27018 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27019 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27020 $as_echo_n "(cached) " >&6
27022 gcc_cv_as_debug_prefix_map_flag
=no
27023 if test $in_tree_gas = yes; then
27024 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27025 then gcc_cv_as_debug_prefix_map_flag
=yes
27027 elif test x
$gcc_cv_as != x
; then
27028 $as_echo "$insn" > conftest.s
27029 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27031 (eval $ac_try) 2>&5
27033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27034 test $ac_status = 0; }; }
27036 gcc_cv_as_debug_prefix_map_flag
=yes
27038 echo "configure: failed program was" >&5
27041 rm -f conftest.o conftest.s
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27045 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27046 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27048 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27054 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27055 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27056 $as_echo_n "(cached) " >&6
27058 gcc_cv_as_compress_debug
=no
27059 if test x
$gcc_cv_as != x
; then
27060 $as_echo '' > conftest.s
27061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27063 (eval $ac_try) 2>&5
27065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27066 test $ac_status = 0; }; }
27068 # gas compiled without zlib cannot compress debug sections and warns
27069 # about it, but still exits successfully. So check for this, too.
27070 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27072 gcc_cv_as_compress_debug
=0
27073 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27075 gcc_cv_as_compress_debug
=1
27076 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27077 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27079 gcc_cv_as_compress_debug
=0
27080 # FIXME: Future gas versions will support ELF gABI style via
27081 # --compress-debug-sections[=type].
27084 echo "configure: failed program was" >&5
27087 rm -f conftest.o conftest.s
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27091 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27094 cat >>confdefs.h
<<_ACEOF
27095 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27099 cat >>confdefs.h
<<_ACEOF
27100 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27104 cat >>confdefs.h
<<_ACEOF
27105 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27110 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27111 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27112 $as_echo_n "(cached) " >&6
27114 gcc_cv_as_lcomm_with_alignment
=no
27115 if test x
$gcc_cv_as != x
; then
27116 $as_echo '.lcomm bar,4,16' > conftest.s
27117 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27119 (eval $ac_try) 2>&5
27121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27122 test $ac_status = 0; }; }
27124 gcc_cv_as_lcomm_with_alignment
=yes
27126 echo "configure: failed program was" >&5
27129 rm -f conftest.o conftest.s
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27133 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27134 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27136 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27140 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27141 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27142 && test "$prefix" != "NONE"; then
27144 cat >>confdefs.h
<<_ACEOF
27145 #define PREFIX_INCLUDE_DIR "$prefix/include"
27150 # Determine the version of glibc, if any, used on the target.
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27152 $as_echo_n "checking for target glibc version... " >&6; }
27154 # Check whether --with-glibc-version was given.
27155 if test "${with_glibc_version+set}" = set; then :
27156 withval
=$with_glibc_version;
27157 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27158 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27159 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27161 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27165 glibc_version_major
=0
27166 glibc_version_minor
=0
27167 if test -f $target_header_dir/features.h \
27168 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27169 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27170 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27171 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27176 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27178 cat >>confdefs.h
<<_ACEOF
27179 #define TARGET_GLIBC_MAJOR $glibc_version_major
27183 cat >>confdefs.h
<<_ACEOF
27184 #define TARGET_GLIBC_MINOR $glibc_version_minor
27188 # Check whether --enable-gnu-unique-object was given.
27189 if test "${enable_gnu_unique_object+set}" = set; then :
27190 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27192 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27193 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27197 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27198 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27199 $as_echo_n "(cached) " >&6
27201 gcc_cv_as_gnu_unique_object
=no
27202 if test $in_tree_gas = yes; then
27203 if test $in_tree_gas_is_elf = yes \
27204 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27205 then gcc_cv_as_gnu_unique_object
=yes
27207 elif test x
$gcc_cv_as != x
; then
27208 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27211 (eval $ac_try) 2>&5
27213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27214 test $ac_status = 0; }; }
27216 gcc_cv_as_gnu_unique_object
=yes
27218 echo "configure: failed program was" >&5
27221 rm -f conftest.o conftest.s
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27225 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27226 if test $gcc_cv_as_gnu_unique_object = yes; then
27227 # We need to unquote above to to use the definition from config.gcc.
27228 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27230 if test $glibc_version_major -gt 2 \
27231 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27232 enable_gnu_unique_object
=yes
27238 if test x
$enable_gnu_unique_object = xyes
; then
27240 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27245 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27246 if test "${gcc_cv_as_line_zero+set}" = set; then :
27247 $as_echo_n "(cached) " >&6
27249 gcc_cv_as_line_zero
=no
27250 if test $in_tree_gas = yes; then
27251 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27252 then gcc_cv_as_line_zero
=yes
27254 elif test "x$gcc_cv_as" != x
; then
27255 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27256 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27258 (eval $ac_try) 2>&5
27260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27261 test $ac_status = 0; }; } &&
27262 test "x`cat conftest.out`" = x
27264 gcc_cv_as_line_zero
=yes
27266 echo "configure: failed program was" >&5
27268 echo "configure: error output was" >&5
27269 cat conftest.out
>&5
27271 rm -f conftest.o conftest.s conftest.out
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27275 $as_echo "$gcc_cv_as_line_zero" >&6; }
27276 if test "x$gcc_cv_as_line_zero" = xyes
; then
27278 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27283 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27284 gcc_cv_ld_eh_frame_hdr
=no
27285 if test $in_tree_ld = yes ; then
27286 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 \
27287 && test $in_tree_ld_is_elf = yes; then
27288 gcc_cv_ld_eh_frame_hdr
=yes
27290 elif test x
$gcc_cv_ld != x
; then
27291 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27292 # Check if linker supports --eh-frame-hdr option
27293 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27294 gcc_cv_ld_eh_frame_hdr
=yes
27299 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27300 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27301 gcc_cv_ld_eh_frame_hdr
=yes
27308 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27310 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27314 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27317 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27318 gcc_cv_ld_eh_frame_ciev3
=no
27319 if test $in_tree_ld = yes ; then
27320 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 \
27321 && test $in_tree_ld_is_elf = yes; then
27322 gcc_cv_ld_eh_frame_ciev3
=yes
27324 elif test x
$gcc_cv_ld != x
; then
27325 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27326 gcc_cv_ld_eh_frame_ciev3
=yes
27327 if test 0"$ld_date" -lt 20040513; then
27328 if test -n "$ld_date"; then
27329 # If there was date string, but was earlier than 2004-05-13, fail
27330 gcc_cv_ld_eh_frame_ciev3
=no
27331 elif test "$ld_vers_major" -lt 2; then
27332 gcc_cv_ld_eh_frame_ciev3
=no
27333 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27334 gcc_cv_ld_eh_frame_ciev3
=no
27340 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27341 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27342 gcc_cv_ld_eh_frame_ciev3
=yes
27349 cat >>confdefs.h
<<_ACEOF
27350 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27354 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27357 $as_echo_n "checking linker position independent executable support... " >&6; }
27359 if test $in_tree_ld = yes ; then
27360 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 \
27361 && test $in_tree_ld_is_elf = yes; then
27364 elif test x
$gcc_cv_ld != x
; then
27365 # Check if linker supports -pie option
27366 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27370 if test x
"$gcc_cv_ld_pie" = xyes
; then
27372 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27376 $as_echo "$gcc_cv_ld_pie" >&6; }
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27379 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27380 gcc_cv_ld_pie_copyreloc
=no
27381 if test $gcc_cv_ld_pie = yes ; then
27382 if test $in_tree_ld = yes ; then
27383 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
27384 gcc_cv_ld_pie_copyreloc
=yes
27386 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27387 # Check if linker supports -pie option with copy reloc
27389 i?
86-*-linux* | x86_64-
*-linux*)
27390 cat > conftest1.s
<<EOF
27393 .type a_glob, @object
27398 cat > conftest2.s
<<EOF
27401 .type main, @function
27403 movl %eax, a_glob(%rip)
27406 .section .data.rel,"aw",@progbits
27411 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27412 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27413 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27414 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27415 gcc_cv_ld_pie_copyreloc
=yes
27417 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27423 cat >>confdefs.h
<<_ACEOF
27424 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27428 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27431 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27432 gcc_cv_ld_eh_gc_sections
=no
27433 if test $in_tree_ld = yes ; then
27434 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 \
27435 && test $in_tree_ld_is_elf = yes; then
27436 gcc_cv_ld_eh_gc_sections
=yes
27438 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27439 cat > conftest.s
<<EOF
27442 .type _start, @function
27445 .size _start, .-_start
27446 .section .text.foo,"ax",@progbits
27447 .type foo, @function
27451 .section .gcc_except_table.foo,"a",@progbits
27454 .section .eh_frame,"a",@progbits
27457 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27458 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27459 |
grep "gc-sections option ignored" > /dev
/null
; then
27460 gcc_cv_ld_eh_gc_sections
=no
27461 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27462 |
grep gcc_except_table
> /dev
/null
; then
27463 gcc_cv_ld_eh_gc_sections
=yes
27464 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27465 if test x
$gcc_cv_as_comdat_group != xyes
; then
27466 gcc_cv_ld_eh_gc_sections
=no
27467 cat > conftest.s
<<EOF
27470 .type _start, @function
27473 .size _start, .-_start
27474 .section .gnu.linkonce.t.foo,"ax",@progbits
27475 .type foo, @function
27479 .section .gcc_except_table.foo,"a",@progbits
27482 .section .eh_frame,"a",@progbits
27485 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27486 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27487 |
grep "gc-sections option ignored" > /dev
/null
; then
27488 gcc_cv_ld_eh_gc_sections
=no
27489 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27490 |
grep gcc_except_table
> /dev
/null
; then
27491 gcc_cv_ld_eh_gc_sections
=yes
27497 rm -f conftest.s conftest.o conftest
27501 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27502 gcc_cv_ld_eh_gc_sections
=no
27505 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27507 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27511 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27514 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27515 gcc_cv_ld_eh_gc_sections_bug
=no
27516 if test $in_tree_ld = yes ; then
27517 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 \
27518 && test $in_tree_ld_is_elf = yes; then
27519 gcc_cv_ld_eh_gc_sections_bug
=yes
27521 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
27522 gcc_cv_ld_eh_gc_sections_bug
=yes
27523 cat > conftest.s
<<EOF
27526 .type _start, @function
27529 .size _start, .-_start
27530 .section .text.startup.foo,"ax",@progbits
27531 .type foo, @function
27535 .section .gcc_except_table.foo,"a",@progbits
27538 .section .eh_frame,"a",@progbits
27541 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27542 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27543 |
grep "gc-sections option ignored" > /dev
/null
; then
27545 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27546 |
grep gcc_except_table
> /dev
/null
; then
27547 gcc_cv_ld_eh_gc_sections_bug
=no
27550 rm -f conftest.s conftest.o conftest
27552 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27554 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27558 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27561 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27562 # gold/gld support compressed debug sections since binutils 2.19/2.21
27563 if test $in_tree_ld = yes ; then
27564 gcc_cv_ld_compress_debug
=0
27565 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 \
27566 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27567 gcc_cv_ld_compress_debug
=2
27568 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27569 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 \
27570 && test $in_tree_ld_is_elf = yes; then
27571 gcc_cv_ld_compress_debug
=1
27573 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27574 gcc_cv_ld_compress_debug
=1
27575 if test 0"$ld_date" -lt 20050308; then
27576 if test -n "$ld_date"; then
27577 # If there was date string, but was earlier than 2005-03-08, fail
27578 gcc_cv_ld_compress_debug
=0
27579 elif test "$ld_vers_major" -lt 2; then
27580 gcc_cv_ld_compress_debug
=0
27581 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27582 gcc_cv_ld_compress_debug
=0
27585 if test $ld_is_gold = yes; then
27586 gcc_cv_ld_compress_debug
=2
27587 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27590 case "${target}" in
27592 # Introduced in Solaris 11.2.
27593 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27594 gcc_cv_ld_compress_debug
=3
27595 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27597 gcc_cv_ld_compress_debug
=0
27601 # Assume linkers other than GNU ld don't support compessed debug
27603 gcc_cv_ld_compress_debug
=0
27608 cat >>confdefs.h
<<_ACEOF
27609 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27613 cat >>confdefs.h
<<_ACEOF
27614 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27618 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27625 $as_echo_n "checking linker --as-needed support... " >&6; }
27626 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27627 $as_echo_n "(cached) " >&6
27629 gcc_cv_ld_as_needed
=no
27630 gcc_cv_ld_as_needed_option
='--as-needed'
27631 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27632 if test $in_tree_ld = yes ; then
27633 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 \
27634 && test $in_tree_ld_is_elf = yes; then
27635 gcc_cv_ld_as_needed
=yes
27637 elif test x
$gcc_cv_ld != x
; then
27638 # Check if linker supports --as-needed and --no-as-needed options
27639 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27640 gcc_cv_ld_as_needed
=yes
27643 # Solaris 2 ld always supports -z ignore/-z record.
27645 gcc_cv_ld_as_needed
=yes
27646 gcc_cv_ld_as_needed_option
="-z ignore"
27647 gcc_cv_ld_no_as_needed_option
="-z record"
27652 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27653 # dl_iterate_phdr, i.e. since Solaris 11.
27655 *-*-solaris2.1
[1-9]*)
27657 i?
86-*-* | x86_64-
*-*)
27658 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27659 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27660 gcc_cv_ld_as_needed
=no
27666 gcc_cv_ld_as_needed
=no
27671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27672 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27673 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27675 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27678 cat >>confdefs.h
<<_ACEOF
27679 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27683 cat >>confdefs.h
<<_ACEOF
27684 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27690 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27691 saved_LDFLAGS
="$LDFLAGS"
27692 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27693 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27695 /* end confdefs.h. */
27696 int main(void) {return 0;}
27698 if ac_fn_cxx_try_link
"$LINENO"; then :
27699 gcc_cv_ld_clearcap
=yes; break
27701 gcc_cv_ld_clearcap
=no
27703 rm -f core conftest.err conftest.
$ac_objext \
27704 conftest
$ac_exeext conftest.
$ac_ext
27706 LDFLAGS
="$saved_LDFLAGS"
27707 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27709 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27711 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27715 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27717 case "$target:$tm_file" in
27718 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27721 emul_name
="-melf64lppc"
27724 emul_name
="-melf64ppc"
27727 emul_name
="-melf64ppc_fbsd"
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27731 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27732 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27733 $as_echo_n "(cached) " >&6
27735 gcc_cv_ld_no_dot_syms
=no
27736 if test x
"$ld_is_gold" = xyes
; then
27737 gcc_cv_ld_no_dot_syms
=yes
27738 elif test $in_tree_ld = yes ; then
27739 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
27740 gcc_cv_ld_no_dot_syms
=yes
27742 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27743 cat > conftest1.s
<<EOF
27747 cat > conftest2.s
<<EOF
27748 .section ".opd","aw"
27751 .type foo,@function
27753 .quad .LEfoo,.TOC.@tocbase,0
27759 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27760 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27761 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27762 gcc_cv_ld_no_dot_syms
=yes
27764 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27769 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27770 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27772 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27777 $as_echo_n "checking linker large toc support... " >&6; }
27778 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27779 $as_echo_n "(cached) " >&6
27781 gcc_cv_ld_large_toc
=no
27782 if test x
"$ld_is_gold" = xyes
; then
27783 gcc_cv_ld_large_toc
=yes
27784 elif test $in_tree_ld = yes ; then
27785 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
27786 gcc_cv_ld_large_toc
=yes
27788 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27789 cat > conftest.s
<<EOF
27790 .section ".tbss","awT",@nobits
27796 addis 9,13,ie0@got@tprel@ha
27797 ld 9,ie0@got@tprel@l(9)
27799 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27800 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27801 gcc_cv_ld_large_toc
=yes
27803 rm -f conftest conftest.o conftest.s
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27808 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27809 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27811 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27816 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27817 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27818 $as_echo_n "(cached) " >&6
27820 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
27821 cat > conftest.s
<<EOF
27826 .section .data.rel.ro,"aw",@progbits
27831 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27832 && $gcc_cv_ld $emul_name -o conftest conftest.o
> /dev
/null
2>&1; then
27833 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)) }'`
27835 rm -f conftest conftest.o conftest.s
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27840 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27841 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27843 cat >>confdefs.h
<<_ACEOF
27844 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27854 $as_echo_n "checking linker large toc support... " >&6; }
27855 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27856 $as_echo_n "(cached) " >&6
27858 gcc_cv_ld_large_toc
=no
27859 if test x
$gcc_cv_as != x
; then
27860 cat > conftest.s
<<EOF
27870 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27871 gcc_cv_ld_large_toc
=yes
27873 rm -f conftest conftest.o conftest.s
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27878 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27879 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27881 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27888 $as_echo_n "checking linker --build-id support... " >&6; }
27889 if test "${gcc_cv_ld_buildid+set}" = set; then :
27890 $as_echo_n "(cached) " >&6
27892 gcc_cv_ld_buildid
=no
27893 if test $in_tree_ld = yes ; then
27894 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27895 "$gcc_cv_gld_minor_version" -ge 18 -o \
27896 "$gcc_cv_gld_major_version" -gt 2 \
27897 && test $in_tree_ld_is_elf = yes; then
27898 gcc_cv_ld_buildid
=yes
27900 elif test x
$gcc_cv_ld != x
; then
27901 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27902 gcc_cv_ld_buildid
=yes
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27907 $as_echo "$gcc_cv_ld_buildid" >&6; }
27908 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27910 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27914 # Check whether --enable-linker-build-id was given.
27915 if test "${enable_linker_build_id+set}" = set; then :
27916 enableval
=$enable_linker_build_id;
27918 enable_linker_build_id
=no
27922 if test x
"$enable_linker_build_id" = xyes
; then
27923 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27925 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27929 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27933 # In binutils 2.21, GNU ld gained support for new emulations fully
27934 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27936 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27937 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27938 $as_echo_n "(cached) " >&6
27940 gcc_cv_ld_sol2_emulation
=no
27941 if test $in_tree_ld = yes ; then
27942 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27943 "$gcc_cv_gld_minor_version" -ge 21 -o \
27944 "$gcc_cv_gld_major_version" -gt 2 \
27945 && test $in_tree_ld_is_elf = yes; then
27946 gcc_cv_ld_sol2_emulation
=yes
27948 elif test x
$gcc_cv_ld != x
; then
27949 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27950 grep _sol2
> /dev
/null
; then
27951 gcc_cv_ld_sol2_emulation
=yes
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27956 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27957 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27959 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27964 $as_echo_n "checking linker --sysroot support... " >&6; }
27965 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27966 $as_echo_n "(cached) " >&6
27968 gcc_cv_ld_sysroot
=no
27969 if test $in_tree_ld = yes ; then
27970 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
27971 gcc_cv_ld_sysroot
=yes
27973 elif test x
$gcc_cv_ld != x
; then
27974 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27975 gcc_cv_ld_sysroot
=yes
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27980 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27981 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27983 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27987 # Test for stack protector support in target C library.
27988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27989 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27990 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27991 $as_echo_n "(cached) " >&6
27993 gcc_cv_libc_provides_ssp
=no
27996 # All versions of musl provide stack protector
27997 gcc_cv_libc_provides_ssp
=yes;;
27998 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27999 # glibc 2.4 and later provides __stack_chk_fail and
28000 # either __stack_chk_guard, or TLS access to stack guard canary.
28002 if test $glibc_version_major -gt 2 \
28003 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28004 gcc_cv_libc_provides_ssp
=yes
28007 if test -f $target_header_dir/features.h \
28008 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28009 $target_header_dir/features.h
> /dev
/null
; then
28010 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28011 $target_header_dir/features.h
> /dev
/null
&& \
28012 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28013 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28014 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28015 gcc_cv_libc_provides_ssp
=yes
28017 # all versions of Bionic support stack protector
28018 elif test -f $target_header_dir/sys
/cdefs.h \
28019 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28020 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28021 gcc_cv_libc_provides_ssp
=yes
28026 # Avoid complicated tests (see
28027 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28028 # simply assert that glibc does provide this, which is true for all
28029 # realistically usable GNU/Hurd configurations.
28030 # All supported versions of musl provide it as well
28031 gcc_cv_libc_provides_ssp
=yes;;
28032 *-*-darwin* |
*-*-freebsd*)
28033 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28034 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28035 gcc_cv_libc_provides_ssp
=yes
28037 echo "no __stack_chk_fail on this target"
28041 *) gcc_cv_libc_provides_ssp
=no
;;
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28045 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28047 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28049 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28053 # Check whether --enable-default-ssp was given.
28054 # Check whether --enable-default-ssp was given.
28055 if test "${enable_default_ssp+set}" = set; then :
28056 enableval
=$enable_default_ssp;
28057 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28059 ia64
*-*-*) enable_default_ssp
=no
;;
28060 *) enable_default_ssp
=$enableval ;;
28063 enable_default_ssp
=no
28066 enable_default_ssp
=no
28069 if test x
$enable_default_ssp == xyes
; then
28071 $as_echo "#define ENABLE_DEFAULT_SSP 1" >>confdefs.h
28076 # Test for <sys/sdt.h> on the target.
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28079 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28081 if test -f $target_header_dir/sys
/sdt.h
; then
28084 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28088 $as_echo "$have_sys_sdt_h" >&6; }
28090 # Check if TFmode long double should be used by default or not.
28091 # Some glibc targets used DFmode long double, but with glibc 2.4
28092 # and later they can use TFmode.
28094 powerpc
*-*-linux* | \
28095 sparc
*-*-linux* | \
28099 # Check whether --with-long-double-128 was given.
28100 if test "${with_long_double_128+set}" = set; then :
28101 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28104 if test $glibc_version_major -gt 2 \
28105 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28106 gcc_cv_target_ldbl128
=yes
28109 gcc_cv_target_ldbl128
=no
28110 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28111 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28112 && gcc_cv_target_ldbl128
=yes
28119 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28121 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28126 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28127 gcc_cv_target_dl_iterate_phdr
=unknown
28129 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28130 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28131 # libdl there, both complicating its use and breaking compatibility
28132 # between Solaris 10 updates.
28133 *-*-solaris2.1
[1-9]*)
28134 # <link.h> needs both a dl_iterate_phdr declaration and support for
28135 # compilation with largefile support.
28136 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28137 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28138 gcc_cv_target_dl_iterate_phdr
=yes
28140 gcc_cv_target_dl_iterate_phdr
=no
28143 *-*-dragonfly* |
*-*-freebsd*)
28144 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28145 gcc_cv_target_dl_iterate_phdr
=yes
28147 gcc_cv_target_dl_iterate_phdr
=no
28151 gcc_cv_target_dl_iterate_phdr
=yes
28155 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28157 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28161 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28163 # We no longer support different GC mechanisms. Emit an error if
28164 # the user configures with --with-gc.
28166 # Check whether --with-gc was given.
28167 if test "${with_gc+set}" = set; then :
28168 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28172 # Libraries to use on the host. This will normally be set by the top
28173 # level Makefile. Here we simply capture the value for our Makefile.
28174 if test -z "${HOST_LIBS+set}"; then
28179 # Use the system's zlib library.
28181 # Use the system's zlib library.
28182 zlibdir
="-L\$(top_builddir)/../zlib"
28183 zlibinc
="-I\$(top_srcdir)/../zlib"
28185 # Check whether --with-system-zlib was given.
28186 if test "${with_system_zlib+set}" = set; then :
28187 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28200 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28201 # Check whether --enable-maintainer-mode was given.
28202 if test "${enable_maintainer_mode+set}" = set; then :
28203 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28210 $as_echo "$maintainer_mode" >&6; }
28212 if test "$maintainer_mode" = "yes"; then
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28220 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28221 # Check whether --enable-link-mutex was given.
28222 if test "${enable_link_mutex+set}" = set; then :
28223 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28229 $as_echo "$do_link_mutex" >&6; }
28231 if test "$do_link_mutex" = "yes"; then
28234 DO_LINK_MUTEX
=false
28242 # Make empty files to contain the specs and options for each language.
28243 # Then add #include lines to for a compiler that has specs and/or options.
28249 # These (without "all_") are set in each config-lang.in.
28250 # `language' must be a single word so is spelled singularly.
28253 all_outputs
='Makefile'
28254 # List of language makefile fragments.
28255 all_lang_makefrags
=
28256 # Additional files for gengtype
28257 all_gtfiles
="$target_gtfiles"
28259 # These are the languages that are set in --enable-languages,
28260 # and are available in the GCC tree.
28261 all_selected_languages
=
28263 # Add the language fragments.
28264 # Languages are added via two mechanisms. Some information must be
28265 # recorded in makefile variables, these are defined in config-lang.in.
28266 # We accumulate them and plug them into the main Makefile.
28267 # The other mechanism is a set of hooks for each of the main targets
28268 # like `clean', `install', etc.
28270 language_hooks
="Make-hooks"
28272 for lang
in ${srcdir}/*/config-lang.
in
28274 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28276 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28277 if test "x$lang_alias" = x
28279 echo "$lang doesn't set \$language." 1>&2
28282 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28283 subdirs
="$subdirs $subdir"
28285 # $gcc_subdir is where the gcc integration files are to be found
28286 # for a language, both for internal compiler purposes (compiler
28287 # sources implementing front-end to GCC tree converters), and for
28288 # build infrastructure purposes (Make-lang.in, etc.)
28290 # This will be <subdir> (relative to $srcdir) if a line like
28291 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28292 # is found in <langdir>/config-lang.in, and will remain <langdir>
28295 # Except for the language alias (fetched above), the regular
28296 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28297 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28298 # only this and the language alias.
28300 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28301 if [ "$gcc_subdir" = "" ]; then
28302 gcc_subdir
="$subdir"
28305 case ",$enable_languages," in
28307 all_selected_languages
="$all_selected_languages $lang_alias"
28308 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28309 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28320 .
${srcdir}/$gcc_subdir/config-lang.
in
28321 if test "x$language" = x
28323 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28328 case ",$enable_languages," in
28329 *,$lang_alias,*) ;;
28331 for i
in $subdir_requires; do
28332 test -f "${srcdir}/$i/config-lang.in" && continue
28340 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28341 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28342 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28343 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28345 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28346 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28348 all_languages
="$all_languages $language"
28349 all_compilers
="$all_compilers $compilers"
28350 all_outputs
="$all_outputs $outputs"
28351 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28352 case ",$enable_languages," in
28355 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28365 for language
in $all_selected_languages
28367 check_languages
="$check_languages check-$language"
28370 # We link each language in with a set of hooks, reached indirectly via
28371 # lang.${target}. Only do so for selected languages.
28375 target_list
="all.cross start.encap rest.encap tags \
28376 install-common install-man install-info install-pdf install-html dvi \
28377 pdf html uninstall info man srcextra srcman srcinfo \
28378 mostlyclean clean distclean maintainer-clean install-plugin"
28380 for t
in $target_list
28383 for lang
in $all_selected_languages
28387 echo "lang.$t: $x" >> Make-hooks
28391 # Option include files
28394 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
28395 option_includes
="option-includes.mk"
28404 echo "dir ." > .gdbinit
28405 echo "dir ${srcdir}" >> .gdbinit
28406 if test x
$gdb_needs_out_file_path = xyes
28408 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28410 if test "x$subdirs" != x
; then
28413 echo "dir ${srcdir}/$s" >> .gdbinit
28416 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28417 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28419 # Put a breakpoint on __asan_report_error to help with debugging buffer
28422 *-fsanitize=address
*)
28423 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28427 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28431 # Find a directory in which to install a shared libgcc.
28433 # Check whether --enable-version-specific-runtime-libs was given.
28434 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28435 enableval
=$enable_version_specific_runtime_libs;
28439 # Substitute configuration variables
28503 if test x
${build} = x
${host} ; then
28504 if test x
${host} = x
${target} ; then
28505 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28507 echo "Links are now set up to build a cross-compiler" 1>&2
28508 echo " from ${host} to ${target}." 1>&2
28511 if test x
${host} = x
${target} ; then
28512 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28513 echo " for ${target}." 1>&2
28515 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28516 echo " from ${host} to ${target}." 1>&2
28525 if test "x${ISLLIBS}" != "x" ; then
28527 $as_echo "#define HAVE_isl 1" >>confdefs.h
28531 # Check whether isl_schedule_constraints_compute_schedule is available;
28532 # it's new in ISL-0.13.
28533 # Check whether isl_options_set_schedule_serialize_sccs is available;
28534 # it's new in ISL-0.15.
28535 if test "x${ISLLIBS}" != "x" ; then
28536 saved_CXXFLAGS
="$CXXFLAGS"
28537 CXXFLAGS
="$CXXFLAGS $ISLINC"
28539 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28542 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28544 /* end confdefs.h. */
28545 #include <isl/schedule.h>
28549 isl_schedule_constraints_compute_schedule (NULL);
28554 if ac_fn_cxx_try_link
"$LINENO"; then :
28555 ac_has_isl_schedule_constraints_compute_schedule
=yes
28557 ac_has_isl_schedule_constraints_compute_schedule
=no
28559 rm -f core conftest.err conftest.
$ac_objext \
28560 conftest
$ac_exeext conftest.
$ac_ext
28561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28562 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28565 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28567 /* end confdefs.h. */
28568 #include <isl/schedule.h>
28572 isl_options_set_schedule_serialize_sccs (NULL, 0);
28577 if ac_fn_cxx_try_link
"$LINENO"; then :
28578 ac_has_isl_options_set_schedule_serialize_sccs
=yes
28580 ac_has_isl_options_set_schedule_serialize_sccs
=no
28582 rm -f core conftest.err conftest.
$ac_objext \
28583 conftest
$ac_exeext conftest.
$ac_ext
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28585 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28588 CXXFLAGS
="$saved_CXXFLAGS"
28590 if test x
"$ac_has_isl_schedule_constraints_compute_schedule" = x
"yes"; then
28592 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28596 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
28598 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28603 # Check for plugin support
28604 # Check whether --enable-plugin was given.
28605 if test "${enable_plugin+set}" = set; then :
28606 enableval
=$enable_plugin; enable_plugin
=$enableval
28608 enable_plugin
=yes; default_plugin
=yes
28616 if test x
$build = x
$host; then
28617 export_sym_check
="nm${exeext} -g"
28618 elif test x
$host = x
$target; then
28619 export_sym_check
="$gcc_cv_nm -g"
28625 if test x
$build = x
$host; then
28626 export_sym_check
="objdump${exeext} -T"
28627 elif test x
$host = x
$target; then
28628 export_sym_check
="$gcc_cv_objdump -T"
28635 if test x
"$enable_plugin" = x
"yes"; then
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28638 $as_echo_n "checking for exported symbols... " >&6; }
28639 if test "x$export_sym_check" != x
; then
28640 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28641 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28642 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28643 : # No need to use a flag
28644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28645 $as_echo "yes" >&6; }
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28648 $as_echo "yes" >&6; }
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28650 $as_echo_n "checking for -rdynamic... " >&6; }
28651 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28652 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28653 plugin_rdynamic
=yes
28654 pluginlibs
="-rdynamic"
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28660 $as_echo "$plugin_rdynamic" >&6; }
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28664 $as_echo "unable to check" >&6; }
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28670 $as_echo_n "checking for library containing dlopen... " >&6; }
28671 if test "${ac_cv_search_dlopen+set}" = set; then :
28672 $as_echo_n "(cached) " >&6
28674 ac_func_search_save_LIBS
=$LIBS
28675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28676 /* end confdefs.h. */
28678 /* Override any GCC internal prototype to avoid an error.
28679 Use char because int might match the return type of a GCC
28680 builtin and then its argument prototype would still apply. */
28693 for ac_lib
in '' dl
; do
28694 if test -z "$ac_lib"; then
28695 ac_res
="none required"
28698 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28700 if ac_fn_cxx_try_link
"$LINENO"; then :
28701 ac_cv_search_dlopen
=$ac_res
28703 rm -f core conftest.err conftest.
$ac_objext \
28705 if test "${ac_cv_search_dlopen+set}" = set; then :
28709 if test "${ac_cv_search_dlopen+set}" = set; then :
28712 ac_cv_search_dlopen
=no
28714 rm conftest.
$ac_ext
28715 LIBS
=$ac_func_search_save_LIBS
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28718 $as_echo "$ac_cv_search_dlopen" >&6; }
28719 ac_res
=$ac_cv_search_dlopen
28720 if test "$ac_res" != no
; then :
28721 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28725 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28726 pluginlibs
="$pluginlibs -ldl"
28730 # Check that we can build shared objects with -fPIC -shared
28731 saved_LDFLAGS
="$LDFLAGS"
28732 saved_CFLAGS
="$CFLAGS"
28735 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28736 CFLAGS
="$CFLAGS -fPIC"
28737 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28740 CFLAGS
="$CFLAGS -fPIC"
28741 LDFLAGS
="$LDFLAGS -fPIC -shared"
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28745 $as_echo_n "checking for -fPIC -shared... " >&6; }
28746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28747 /* end confdefs.h. */
28757 if ac_fn_cxx_try_link
"$LINENO"; then :
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28759 $as_echo "yes" >&6; }; have_pic_shared
=yes
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28762 $as_echo "no" >&6; }; have_pic_shared
=no
28764 rm -f core conftest.err conftest.
$ac_objext \
28765 conftest
$ac_exeext conftest.
$ac_ext
28766 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28770 LDFLAGS
="$saved_LDFLAGS"
28771 CFLAGS
="$saved_CFLAGS"
28773 # If plugin support had been requested but not available, fail.
28774 if test x
"$enable_plugin" = x
"no" ; then
28775 if test x
"$default_plugin" != x
"yes"; then
28777 Building GCC with plugin support requires a host that supports
28778 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28785 if test x
"$enable_plugin" = x
"yes"; then
28787 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28792 # Enable --enable-host-shared
28793 # Check whether --enable-host-shared was given.
28794 if test "${enable_host_shared+set}" = set; then :
28795 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28804 # Check whether --enable-libquadmath-support was given.
28805 if test "${enable_libquadmath_support+set}" = set; then :
28806 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28808 ENABLE_LIBQUADMATH_SUPPORT
=yes
28811 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28813 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28818 # Specify what hash style to use by default.
28820 # Check whether --with-linker-hash-style was given.
28821 if test "${with_linker_hash_style+set}" = set; then :
28822 withval
=$with_linker_hash_style; case x
"$withval" in
28824 LINKER_HASH_STYLE
=sysv
28827 LINKER_HASH_STYLE
=gnu
28830 LINKER_HASH_STYLE
=both
28833 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28837 LINKER_HASH_STYLE
=''
28840 if test x
"${LINKER_HASH_STYLE}" != x
; then
28842 cat >>confdefs.h
<<_ACEOF
28843 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28848 # Specify what should be the default of -fdiagnostics-color option.
28850 # Check whether --with-diagnostics-color was given.
28851 if test "${with_diagnostics_color+set}" = set; then :
28852 withval
=$with_diagnostics_color; case x
"$withval" in
28854 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
28857 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28860 DIAGNOSTICS_COLOR_DEFAULT
=-1
28863 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
28866 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28870 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28874 cat >>confdefs.h
<<_ACEOF
28875 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28879 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28880 # of jit/jit-playback.c.
28881 cat > gcc-driver-name.h
<<EOF
28882 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28885 # Check whether --enable-default-pie was given.
28886 # Check whether --enable-default-pie was given.
28887 if test "${enable_default_pie+set}" = set; then :
28888 enableval
=$enable_default_pie; enable_default_pie
=$enableval
28890 enable_default_pie
=no
28893 if test x
$enable_default_pie == xyes
; then
28895 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28900 # Check if -fno-PIE works.
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28902 $as_echo_n "checking for -fno-PIE option... " >&6; }
28903 if test "${gcc_cv_c_no_fpie+set}" = set; then :
28904 $as_echo_n "(cached) " >&6
28906 saved_CXXFLAGS
="$CXXFLAGS"
28907 CXXFLAGS
="$CXXFLAGS -fno-PIE"
28908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28909 /* end confdefs.h. */
28910 int main(void) {return 0;}
28912 if ac_fn_cxx_try_compile
"$LINENO"; then :
28913 gcc_cv_c_no_fpie
=yes
28915 gcc_cv_c_no_fpie
=no
28917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28918 CXXFLAGS
="$saved_CXXFLAGS"
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28921 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28922 if test "$gcc_cv_c_no_fpie" = "yes"; then
28923 NO_PIE_CFLAGS
="-fno-PIE"
28927 # Check if -no-pie works.
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28929 $as_echo_n "checking for -no-pie option... " >&6; }
28930 if test "${gcc_cv_no_pie+set}" = set; then :
28931 $as_echo_n "(cached) " >&6
28933 saved_LDFLAGS
="$LDFLAGS"
28934 LDFLAGS
="$LDFLAGS -no-pie"
28935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28936 /* end confdefs.h. */
28937 int main(void) {return 0;}
28939 if ac_fn_cxx_try_link
"$LINENO"; then :
28944 rm -f core conftest.err conftest.
$ac_objext \
28945 conftest
$ac_exeext conftest.
$ac_ext
28946 LDFLAGS
="$saved_LDFLAGS"
28948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28949 $as_echo "$gcc_cv_no_pie" >&6; }
28950 if test "$gcc_cv_no_pie" = "yes"; then
28951 NO_PIE_FLAG
="-no-pie"
28955 # Check linker supports '-z bndplt'
28956 ld_bndplt_support
=no
28957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
28958 $as_echo_n "checking linker -z bndplt option... " >&6; }
28959 if test x
"$ld_is_gold" = xno
; then
28960 if test $in_tree_ld = yes ; then
28961 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
28962 ld_bndplt_support
=yes
28964 elif test x
$gcc_cv_ld != x
; then
28965 # Check if linker supports -a bndplt option
28966 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
28967 ld_bndplt_support
=yes
28971 if test x
"$ld_bndplt_support" = xyes
; then
28973 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
28977 $as_echo "$ld_bndplt_support" >&6; }
28979 # Configure the subdirectories
28980 # AC_CONFIG_SUBDIRS($subdirs)
28982 # Create the Makefile
28983 # and configure language subdirectories
28984 ac_config_files
="$ac_config_files $all_outputs"
28987 ac_config_commands
="$ac_config_commands default"
28989 cat >confcache
<<\_ACEOF
28990 # This file is a shell script that caches the results of configure
28991 # tests run on this system so they can be shared between configure
28992 # scripts and configure runs, see configure's option --config-cache.
28993 # It is not useful on other systems. If it contains results you don't
28994 # want to keep, you may remove or edit it.
28996 # config.status only pays attention to the cache file if you give it
28997 # the --recheck option to rerun configure.
28999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29001 # following values.
29005 # The following way of writing the cache mishandles newlines in values,
29006 # but we know of no workaround that is simple, portable, and efficient.
29007 # So, we kill variables containing newlines.
29008 # Ultrix sh set writes to stderr and can't be redirected directly,
29009 # and sets the high bit in the cache file unless we assign to the vars.
29011 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29012 eval ac_val
=\$
$ac_var
29016 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29020 _ | IFS | as_nl
) ;; #(
29021 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
29022 *) { eval $ac_var=; unset $ac_var;} ;;
29028 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29029 *${as_nl}ac_space
=\
*)
29030 # `set' does not quote correctly, so add quotes: double-quote
29031 # substitution turns \\\\ into \\, and sed turns \\ into \.
29034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29037 # `set' quotes correctly as required by POSIX, so do not add quotes.
29038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29047 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29049 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29051 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29052 if test -w "$cache_file"; then
29053 test "x$cache_file" != "x/dev/null" &&
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29055 $as_echo "$as_me: updating cache $cache_file" >&6;}
29056 cat confcache
>$cache_file
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29059 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29064 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29065 # Let make expand exec_prefix.
29066 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29068 DEFS
=-DHAVE_CONFIG_H
29072 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29073 # 1. Remove the extension, and $U if already installed.
29074 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29075 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29077 # will be set to the directory where LIBOBJS objects are built.
29078 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29079 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29081 LIBOBJS
=$ac_libobjs
29083 LTLIBOBJS
=$ac_ltlibobjs
29088 : ${CONFIG_STATUS=./config.status}
29090 ac_clean_files_save
=$ac_clean_files
29091 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29093 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29095 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29097 # Generated by $as_me.
29098 # Run this file to recreate the current configuration.
29099 # Compiler output produced by configure, useful for debugging
29100 # configure, is in config.log if it exists.
29103 ac_cs_recheck=false
29106 SHELL=\${CONFIG_SHELL-$SHELL}
29109 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29110 ## -------------------- ##
29111 ## M4sh Initialization. ##
29112 ## -------------------- ##
29114 # Be more Bourne compatible
29115 DUALCASE
=1; export DUALCASE
# for MKS sh
29116 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29120 # is contrary to our usage. Disable this feature.
29121 alias -g '${1+"$@"}'='"$@"'
29122 setopt NO_GLOB_SUBST
29124 case `(set -o) 2>/dev/null` in #(
29136 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29137 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29138 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29140 # Prefer a ksh shell builtin over an external printf program on Solaris,
29141 # but without wasting forks for bash or zsh.
29142 if test -z "$BASH_VERSION$ZSH_VERSION" \
29143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29144 as_echo='print
-r --'
29145 as_echo_n='print
-rn --'
29146 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29147 as_echo='printf %s
\n'
29148 as_echo_n='printf %s
'
29150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29151 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29152 as_echo_n='/usr
/ucb
/echo -n'
29154 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29155 as_echo_n_body='eval
29159 expr "X$arg" : "X\\(.*\\)$as_nl";
29160 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29162 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29164 export as_echo_n_body
29165 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29167 export as_echo_body
29168 as_echo='sh
-c $as_echo_body as_echo
'
29171 # The user is always right.
29172 if test "${PATH_SEPARATOR+set}" != set; then
29174 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29175 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29182 # We need space, tab and new line, in precisely that order. Quoting is
29183 # there to prevent editors from complaining about space-tab.
29184 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29185 # splitting by setting IFS to empty value.)
29188 # Find who we are. Look in the path if we contain no directory separator.
29190 *[\\/]* ) as_myself=$0 ;;
29191 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29192 for as_dir in $PATH
29195 test -z "$as_dir" && as_dir=.
29196 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29202 # We did not find ourselves, most probably we were run as `sh COMMAND'
29203 # in which case we are not to be found in the path.
29204 if test "x$as_myself" = x
; then
29207 if test ! -f "$as_myself"; then
29208 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29212 # Unset variables that we do not need and which cause bugs (e.g. in
29213 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29214 # suppresses any "Segmentation fault" message there. '((' could
29215 # trigger a bug in pdksh 5.2.14.
29216 for as_var
in BASH_ENV ENV MAIL MAILPATH
29217 do eval test x\
${$as_var+set} = xset \
29218 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29231 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29234 # as_fn_error ERROR [LINENO LOG_FD]
29235 # ---------------------------------
29236 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29237 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29238 # script with status $?, using 1 if that was 0.
29241 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29243 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29244 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29246 $as_echo "$as_me: error: $1" >&2
29247 as_fn_exit
$as_status
29251 # as_fn_set_status STATUS
29252 # -----------------------
29253 # Set $? to STATUS, without forking.
29254 as_fn_set_status
()
29257 } # as_fn_set_status
29259 # as_fn_exit STATUS
29260 # -----------------
29261 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29265 as_fn_set_status
$1
29271 # Portably unset VAR.
29274 { eval $1=; unset $1;}
29276 as_unset
=as_fn_unset
29277 # as_fn_append VAR VALUE
29278 # ----------------------
29279 # Append the text in VALUE to the end of the definition contained in VAR. Take
29280 # advantage of any shell optimizations that allow amortized linear growth over
29281 # repeated appends, instead of the typical quadratic growth present in naive
29283 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29284 eval 'as_fn_append ()
29295 # as_fn_arith ARG...
29296 # ------------------
29297 # Perform arithmetic evaluation on the ARGs, and store the result in the
29298 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29299 # must be portable across $(()) and expr.
29300 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29301 eval 'as_fn_arith ()
29308 as_val
=`expr "$@" || test $? -eq 1`
29313 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29314 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29320 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29321 as_basename
=basename
29326 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29332 as_me
=`$as_basename -- "$0" ||
29333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29334 X"$0" : 'X\(//\)$' \| \
29335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29337 sed '/^.*\/\([^/][^/]*\)\/*$/{
29351 # Avoid depending upon Character Ranges.
29352 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29353 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29354 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29355 as_cr_digits
='0123456789'
29356 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29358 ECHO_C
= ECHO_N
= ECHO_T
=
29359 case `echo -n x` in #(((((
29361 case `echo 'xy\c'` in
29362 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29364 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29371 rm -f conf$$ conf$$.exe conf$$.
file
29372 if test -d conf$$.dir
; then
29373 rm -f conf$$.dir
/conf$$.
file
29376 mkdir conf$$.dir
2>/dev
/null
29378 if (echo >conf$$.
file) 2>/dev
/null
; then
29379 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29381 # ... but there are two gotchas:
29382 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29383 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29384 # In both cases, we have to default to `cp -p'.
29385 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29387 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29395 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29396 rmdir conf$$.dir
2>/dev
/null
29401 # Create "$as_dir" as a directory, including parents if necessary.
29406 -*) as_dir
=.
/$as_dir;;
29408 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29412 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29413 *) as_qdir
=$as_dir;;
29415 as_dirs
="'$as_qdir' $as_dirs"
29416 as_dir
=`$as_dirname -- "$as_dir" ||
29417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29418 X"$as_dir" : 'X\(//\)[^/]' \| \
29419 X"$as_dir" : 'X\(//\)$' \| \
29420 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29421 $as_echo X"$as_dir" |
29422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29426 /^X\(\/\/\)[^/].*/{
29439 test -d "$as_dir" && break
29441 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29442 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29446 if mkdir
-p .
2>/dev
/null
; then
29447 as_mkdir_p
='mkdir -p "$as_dir"'
29449 test -d .
/-p && rmdir .
/-p
29453 if test -x / >/dev
/null
2>&1; then
29454 as_test_x
='test -x'
29456 if ls -dL / >/dev
/null
2>&1; then
29463 if test -d "$1"; then
29469 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29470 ???[sx]*):;;*)false;;esac;fi
29474 as_executable_p
=$as_test_x
29476 # Sed expression to map a string onto a valid CPP name.
29477 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29479 # Sed expression to map a string onto a valid variable name.
29480 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29484 ## ----------------------------------- ##
29485 ## Main body of $CONFIG_STATUS script. ##
29486 ## ----------------------------------- ##
29488 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29491 # Save the log message, to keep $0 and so on meaningful, and to
29492 # report actual input values of CONFIG_FILES etc. instead of their
29493 # values after options handling.
29495 This file was extended by $as_me, which was
29496 generated by GNU Autoconf 2.64. Invocation command line was
29498 CONFIG_FILES = $CONFIG_FILES
29499 CONFIG_HEADERS = $CONFIG_HEADERS
29500 CONFIG_LINKS = $CONFIG_LINKS
29501 CONFIG_COMMANDS = $CONFIG_COMMANDS
29504 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29509 case $ac_config_files in *"
29510 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29513 case $ac_config_headers in *"
29514 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29519 # Files that config.status was made for.
29520 config_files="$ac_config_files"
29521 config_headers="$ac_config_headers"
29522 config_links="$ac_config_links"
29523 config_commands="$ac_config_commands"
29527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29529 \`$as_me' instantiates files and other configuration actions
29530 from templates according to the current configuration. Unless the files
29531 and actions are specified as TAGs, all are instantiated by default.
29533 Usage: $0 [OPTION]... [TAG]...
29535 -h, --help print this help, then exit
29536 -V, --version print version number and configuration settings, then exit
29537 -q, --quiet, --silent
29538 do not print progress messages
29539 -d, --debug don't remove temporary files
29540 --recheck update $as_me by reconfiguring in the same conditions
29541 --file=FILE[:TEMPLATE]
29542 instantiate the configuration file FILE
29543 --header=FILE[:TEMPLATE]
29544 instantiate the configuration header FILE
29546 Configuration files:
29549 Configuration headers:
29552 Configuration links:
29555 Configuration commands:
29558 Report bugs to the package provider."
29561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29564 configured by $0, generated by GNU Autoconf 2.64,
29565 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29567 Copyright (C) 2009 Free Software Foundation, Inc.
29568 This config.status script is free software; the Free Software Foundation
29569 gives unlimited permission to copy, distribute and modify it."
29574 test -n "\$AWK" || AWK=awk
29577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29578 # The default lists apply if the user does not specify any file.
29584 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29585 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29596 # Handling of the options.
29597 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29599 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29600 $as_echo "$ac_cs_version"; exit ;;
29601 --debug |
--debu |
--deb |
--de |
--d |
-d )
29603 --file |
--fil |
--fi |
--f )
29606 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29608 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29609 ac_need_defaults
=false
;;
29610 --header |
--heade |
--head |
--hea )
29613 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29615 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29616 ac_need_defaults
=false
;;
29618 # Conflict between --help and --header
29619 as_fn_error
"ambiguous option: \`$1'
29620 Try \`$0 --help' for more information.";;
29621 --help |
--hel |
-h )
29622 $as_echo "$ac_cs_usage"; exit ;;
29623 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29624 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29627 # This is an error.
29628 -*) as_fn_error
"unrecognized option: \`$1'
29629 Try \`$0 --help' for more information." ;;
29631 *) as_fn_append ac_config_targets
" $1"
29632 ac_need_defaults
=false
;;
29638 ac_configure_extra_args
=
29640 if $ac_cs_silent; then
29642 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29647 if \$ac_cs_recheck; then
29648 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29650 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29651 CONFIG_SHELL='$SHELL'
29652 export CONFIG_SHELL
29657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29661 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29662 ## Running $as_me. ##
29668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29672 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29673 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29680 # Handling of arguments.
29681 for ac_config_target
in $ac_config_targets
29683 case $ac_config_target in
29684 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29685 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29686 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29687 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29688 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29689 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29690 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29691 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29692 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29694 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29699 # If the user did not use the arguments to specify the items to instantiate,
29700 # then the envvar interface is used. Set only those that are not.
29701 # We use the long form for the default assignment because of an extremely
29702 # bizarre bug on SunOS 4.1.3.
29703 if $ac_need_defaults; then
29704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29705 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29706 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29707 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29710 # Have a temporary directory for convenience. Make it in the build tree
29711 # simply because there is no reason against having it here, and in addition,
29712 # creating and moving files from /tmp can sometimes cause problems.
29713 # Hook for its removal unless debugging.
29714 # Note that there is a small window in which the directory will not be cleaned:
29715 # after its creation but before its name has been assigned to `$tmp'.
29719 trap 'exit_status=$?
29720 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29722 trap 'as_fn_exit 1' 1 2 13 15
29724 # Create a (secure) tmp directory for tmp files.
29727 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29728 test -n "$tmp" && test -d "$tmp"
29731 tmp
=.
/conf$$
-$RANDOM
29732 (umask 077 && mkdir
"$tmp")
29733 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29735 # Set up the scripts for CONFIG_FILES section.
29736 # No need to generate them if there are no CONFIG_FILES.
29737 # This happens for instance with `./config.status config.h'.
29738 if test -n "$CONFIG_FILES"; then
29740 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29741 ac_cs_awk_getline
=:
29742 ac_cs_awk_pipe_init
=
29743 ac_cs_awk_read_file
='
29744 while ((getline aline < (F[key])) > 0)
29747 ac_cs_awk_pipe_fini
=
29749 ac_cs_awk_getline
=false
29750 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29751 ac_cs_awk_read_file
='
29753 print "cat " F[key] " &&"
29754 '$ac_cs_awk_pipe_init
29755 # The final `:' finishes the AND list.
29756 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29758 ac_cr
=`echo X | tr X '\015'`
29759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29760 # But we know of no other shell where ac_cr would be empty at this
29761 # point, so we can use a bashism as a fallback.
29762 if test "x$ac_cr" = x
; then
29763 eval ac_cr
=\$
\'\\r
\'
29765 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29769 ac_cs_awk_cr
=$ac_cr
29772 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29775 # Create commands to substitute file output variables.
29777 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29778 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29779 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29782 } >conf$
$files.sh
&&
29783 . .
/conf$
$files.sh ||
29784 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29785 rm -f conf$
$files.sh
29788 echo "cat >conf$$subs.awk <<_ACEOF" &&
29789 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29791 } >conf$$subs.sh ||
29792 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29793 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29795 for ac_last_try in false false false false false :; do
29796 . ./conf$$subs.sh ||
29797 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29799 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29800 if test $ac_delim_n = $ac_delim_num; then
29802 elif $ac_last_try; then
29803 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29805 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29808 rm -f conf$$subs.sh
29810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29811 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29815 s/^/S["/; s
/!.
*/"]=/
29825 s/\(.\{148\}\).*/\1/
29827 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29832 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29839 s/\(.\{148\}\).*/\1/
29841 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29845 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29850 ' <conf$$subs.awk | sed '
29855 ' >>$CONFIG_STATUS || ac_write_fail=1
29856 rm -f conf$$subs.awk
29857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29859 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29860 for (key in S) S_is_set[key] = 1
29862 \$ac_cs_awk_pipe_init
29866 nfields = split(line, field, "@
")
29868 len = length(field[1])
29869 for (i = 2; i < nfields; i++) {
29871 keylen = length(key)
29872 if (S_is_set[key]) {
29874 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29875 len += length(value) + length(field[++i])
29880 if (nfields == 3 && !substed) {
29882 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29883 \$ac_cs_awk_read_file
29889 \$ac_cs_awk_pipe_fini
29892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29893 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29894 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29897 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29898 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29901 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29902 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29903 # trailing colons and then remove the whole line if VPATH becomes empty
29904 # (actually we leave an empty line to preserve line numbers).
29905 if test "x
$srcdir" = x.; then
29906 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29907 s/:*\$(srcdir):*/:/
29908 s/:*\${srcdir}:*/:/
29910 s/^\([^=]*=[ ]*\):*/\1/
29916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29917 fi # test -n "$CONFIG_FILES"
29919 # Set up the scripts for CONFIG_HEADERS section.
29920 # No need to generate them if there are no CONFIG_HEADERS.
29921 # This happens for instance with `./config.status Makefile'.
29922 if test -n "$CONFIG_HEADERS"; then
29923 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29927 # Transform confdefs.h into an awk script `defines.awk', embedded as
29928 # here-document in config.status, that substitutes the proper values into
29929 # config.h.in to produce config.h.
29931 # Create a delimiter string that does not exist in confdefs.h, to ease
29932 # handling of long lines.
29934 for ac_last_try in false false :; do
29935 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29936 if test -z "$ac_t"; then
29938 elif $ac_last_try; then
29939 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29941 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29945 # For the awk script, D is an array of macro values keyed by name,
29946 # likewise P contains macro parameters if any. Preserve backslash
29947 # newline sequences.
29949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29951 s/.\{148\}/&'"$ac_delim"'/g
29954 s/^[ ]*#[ ]*define[ ][ ]*/ /
29961 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29963 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29968 D["\
1"]=" \
3\\\\\\n
"\\/p
29970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29975 s/.\{148\}/&'"$ac_delim"'/g
29980 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29983 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29985 ' <confdefs.h | sed '
29986 s/'"$ac_delim"'/"\\\
29987 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29990 for (key in D) D_is_set[key] = 1
29993 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29995 split(line, arg, " ")
29996 if (arg[1] == "#") {
30000 defundef
= substr
(arg
[1], 2)
30003 split(mac1
, mac2
, "(") #)
30005 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
30006 if (D_is_set
[macro
]) {
30007 # Preserve the white space surrounding the "#".
30008 print prefix
"define", macro P
[macro
] D
[macro
]
30011 # Replace #undef with comments. This is necessary, for example,
30012 # in the case of _POSIX_SOURCE, which is predefined and required
30013 # on some systems where configure will not decide to define it.
30014 if (defundef
== "undef") {
30015 print
"/*", prefix defundef
, macro
, "*/"
30023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30024 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
30025 fi # test -n "$CONFIG_HEADERS"
30028 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30033 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30035 case $ac_mode$ac_tag in
30037 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30038 :[FH
]-) ac_tag
=-:-;;
30039 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30056 -) ac_f
="$tmp/stdin";;
30057 *) # Look for the file first in the build tree, then in the source tree
30058 # (if the path is not absolute). The absolute path cannot be DOS-style,
30059 # because $ac_f cannot contain `:'.
30063 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30065 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30067 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30068 as_fn_append ac_file_inputs
" '$ac_f'"
30071 # Let's still pretend it is `configure' which instantiates (i.e., don't
30072 # use $as_me), people would be surprised to read:
30073 # /* config.h. Generated by config.status. */
30074 configure_input
='Generated from '`
30075 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30077 if test x
"$ac_file" != x-
; then
30078 configure_input
="$ac_file. $configure_input"
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30080 $as_echo "$as_me: creating $ac_file" >&6;}
30082 # Neutralize special characters interpreted by sed in replacement strings.
30083 case $configure_input in #(
30084 *\
&* |
*\|
* |
*\\* )
30085 ac_sed_conf_input
=`$as_echo "$configure_input" |
30086 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30087 *) ac_sed_conf_input
=$configure_input;;
30091 *:-:* |
*:-) cat >"$tmp/stdin" \
30092 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30097 ac_dir
=`$as_dirname -- "$ac_file" ||
30098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30099 X"$ac_file" : 'X\(//\)[^/]' \| \
30100 X"$ac_file" : 'X\(//\)$' \| \
30101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30102 $as_echo X"$ac_file" |
30103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30107 /^X\(\/\/\)[^/].*/{
30120 as_dir
="$ac_dir"; as_fn_mkdir_p
30124 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30126 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30127 # A ".." for each directory in $ac_dir_suffix.
30128 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30129 case $ac_top_builddir_sub in
30130 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30131 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30134 ac_abs_top_builddir
=$ac_pwd
30135 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30136 # for backward compatibility:
30137 ac_top_builddir
=$ac_top_build_prefix
30140 .
) # We are building in place.
30142 ac_top_srcdir
=$ac_top_builddir_sub
30143 ac_abs_top_srcdir
=$ac_pwd ;;
30144 [\\/]* | ?
:[\\/]* ) # Absolute name.
30145 ac_srcdir
=$srcdir$ac_dir_suffix;
30146 ac_top_srcdir
=$srcdir
30147 ac_abs_top_srcdir
=$srcdir ;;
30148 *) # Relative name.
30149 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30150 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30151 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30153 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30165 # If the template does not know about datarootdir, expand it.
30166 # FIXME: This hack should be removed a few years after 2.60.
30167 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30178 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30179 *datarootdir
*) ac_datarootdir_seen
=yes;;
30180 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30182 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30185 ac_datarootdir_hack='
30186 s&@datadir@&$datadir&g
30187 s&@docdir@&$docdir&g
30188 s&@infodir@&$infodir&g
30189 s&@localedir@&$localedir&g
30190 s&@mandir@&$mandir&g
30191 s&\\\${datarootdir}&$datarootdir&g' ;;
30195 # Neutralize VPATH when `$srcdir' = `.'.
30196 # Shell code in configure.ac might set extrasub.
30197 # FIXME: do we really want to maintain this feature?
30198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30199 ac_sed_extra="$ac_vpsub
30202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30204 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30205 s|@configure_input@|
$ac_sed_conf_input|
;t t
30206 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30207 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30208 s
&@srcdir@
&$ac_srcdir&;t t
30209 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30210 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30211 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30212 s
&@builddir@
&$ac_builddir&;t t
30213 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30214 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30215 $ac_datarootdir_hack
30217 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30218 if $ac_cs_awk_getline; then
30219 $AWK -f "$tmp/subs.
awk"
30221 $AWK -f "$tmp/subs.
awk" | $SHELL
30223 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30225 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30226 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30227 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30229 which seems to be undefined. Please make sure it is defined." >&5
30230 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30231 which seems to be undefined. Please make sure it is defined." >&2;}
30235 -) cat "$tmp/out" && rm -f "$tmp/out";;
30236 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30238 || as_fn_error "could not create $ac_file" "$LINENO" 5
30244 if test x"$ac_file" != x-; then
30246 $as_echo "/* $configure_input */" \
30247 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30248 } >"$tmp/config.h" \
30249 || as_fn_error "could not create $ac_file" "$LINENO" 5
30250 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30252 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30255 mv "$tmp/config.h" "$ac_file" \
30256 || as_fn_error "could not create $ac_file" "$LINENO" 5
30259 $as_echo "/* $configure_input */" \
30260 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30261 || as_fn_error "could not create -" "$LINENO" 5
30269 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30272 # Prefer the file from the source tree if names are identical.
30273 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30274 ac_source=$srcdir/$ac_source
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30278 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30280 if test ! -r "$ac_source"; then
30281 as_fn_error "$ac_source: file not found" "$LINENO" 5
30285 # Try a relative symlink, then a hard link, then a copy.
30287 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30288 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30290 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30291 ln "$ac_source" "$ac_file" 2>/dev/null ||
30292 cp -p "$ac_source" "$ac_file" ||
30293 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30296 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30297 $as_echo "$as_me: executing $ac_file commands" >&6;}
30302 case $ac_file$ac_mode in
30303 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30305 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30306 for lang in $subdirs c-family common
30308 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30310 "as":F) chmod +x as ;;
30311 "collect-ld":F) chmod +x collect-ld ;;
30312 "nm":F) chmod +x nm ;;
30314 case ${CONFIG_HEADERS} in
30315 *auto-host.h:config.in*)
30318 # Make sure all the subdirs exist.
30319 for d in $subdirs doc build common c-family
30321 test -d $d || mkdir $d
30331 ac_clean_files=$ac_clean_files_save
30333 test $ac_write_fail = 0 ||
30334 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30337 # configure is writing to config.log, and then calls config.status.
30338 # config.status does its own redirection, appending to config.log.
30339 # Unfortunately, on DOS this fails, as config.log is still kept open
30340 # by configure, so config.status won't be able to
write to it
; its
30341 # output is simply discarded. So we exec the FD to /dev/null,
30342 # effectively closing config.log, so it can be properly (re)opened and
30343 # appended to by config.status. When coming back to configure, we
30344 # need to make the FD available again.
30345 if test "$no_create" != yes; then
30347 ac_config_status_args
=
30348 test "$silent" = yes &&
30349 ac_config_status_args
="$ac_config_status_args --quiet"
30351 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30353 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30354 # would make configure fail if this is the last instruction.
30355 $ac_cs_success || as_fn_exit $?
30357 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30359 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}