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
684 ORIGINAL_NM_FOR_TARGET
686 ORIGINAL_LD_GOLD_FOR_TARGET
687 ORIGINAL_LD_BFD_FOR_TARGET
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
691 ORIGINAL_AS_FOR_TARGET
733 NATIVE_SYSTEM_HEADER_DIR
766 real_target_noncanonical
767 enable_as_accelerator
781 valgrind_path_defines
811 CROSS_SYSTEM_HEADER_DIR
812 TARGET_SYSTEM_ROOT_DEFINE
814 SYSROOT_CFLAGS_FOR_TARGET
859 program_transform_name
870 ac_subst_files
='option_includes
873 enable_option_checking
876 with_native_system_header_dir
881 enable_generated_files_in_srcdir
888 enable_build_format_warnings
892 enable_gather_detailed_mem_stats
893 enable_valgrind_annotations
912 enable_sjlj_exceptions
914 enable_leading_mingw64_underscores
917 enable_win32_registry
925 enable_gnu_indirect_function
926 enable_initfini_array
928 enable_fix_cortex_a53_835769
929 enable_fix_cortex_a53_843419
931 enable_gnu_unique_object
932 enable_linker_build_id
936 enable_maintainer_mode
938 enable_version_specific_runtime_libs
941 enable_libquadmath_support
942 with_linker_hash_style
943 with_diagnostics_color
946 ac_precious_vars
='build_alias
965 # Initialize some variables set by options.
967 ac_init_version
=false
968 ac_unrecognized_opts
=
970 # The variables have the same names as the options, with
971 # dashes changed to underlines.
979 program_transform_name
=s
,x
,x
,
987 # Installation directory options.
988 # These are left unexpanded so users can "make install exec_prefix=/foo"
989 # and all the variables that are supposed to be based on exec_prefix
990 # by default will actually change.
991 # Use braces instead of parens because sh, perl, etc. also accept them.
992 # (The list follows the same order as the GNU Coding Standards.)
993 bindir
='${exec_prefix}/bin'
994 sbindir
='${exec_prefix}/sbin'
995 libexecdir
='${exec_prefix}/libexec'
996 datarootdir
='${prefix}/share'
997 datadir
='${datarootdir}'
998 sysconfdir
='${prefix}/etc'
999 sharedstatedir
='${prefix}/com'
1000 localstatedir
='${prefix}/var'
1001 includedir
='${prefix}/include'
1002 oldincludedir
='/usr/include'
1003 docdir
='${datarootdir}/doc/${PACKAGE}'
1004 infodir
='${datarootdir}/info'
1009 libdir
='${exec_prefix}/lib'
1010 localedir
='${datarootdir}/locale'
1011 mandir
='${datarootdir}/man'
1017 # If the previous option needs an argument, assign it.
1018 if test -n "$ac_prev"; then
1019 eval $ac_prev=\
$ac_option
1025 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1031 case $ac_dashdash$ac_option in
1035 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1037 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1038 bindir
=$ac_optarg ;;
1040 -build |
--build |
--buil |
--bui |
--bu)
1041 ac_prev
=build_alias
;;
1042 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1043 build_alias
=$ac_optarg ;;
1045 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1046 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1047 ac_prev
=cache_file
;;
1048 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1049 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1050 cache_file
=$ac_optarg ;;
1052 --config-cache |
-C)
1053 cache_file
=config.cache
;;
1055 -datadir |
--datadir |
--datadi |
--datad)
1057 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1058 datadir
=$ac_optarg ;;
1060 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1061 |
--dataroo |
--dataro |
--datar)
1062 ac_prev
=datarootdir
;;
1063 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1064 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1065 datarootdir
=$ac_optarg ;;
1067 -disable-* |
--disable-*)
1068 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1071 as_fn_error
"invalid feature name: $ac_useropt"
1072 ac_useropt_orig
=$ac_useropt
1073 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1076 "enable_
$ac_useropt"
1078 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep
=', ';;
1081 eval enable_
$ac_useropt=no
;;
1083 -docdir |
--docdir |
--docdi |
--doc |
--do)
1085 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1086 docdir
=$ac_optarg ;;
1088 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1090 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1091 dvidir
=$ac_optarg ;;
1093 -enable-* |
--enable-*)
1094 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1097 as_fn_error
"invalid feature name: $ac_useropt"
1098 ac_useropt_orig
=$ac_useropt
1099 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_
$ac_useropt"
1104 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep
=', ';;
1107 eval enable_
$ac_useropt=\
$ac_optarg ;;
1109 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1110 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1111 |
--exec |
--exe |
--ex)
1112 ac_prev
=exec_prefix
;;
1113 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1114 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1115 |
--exec=* |
--exe=* |
--ex=*)
1116 exec_prefix
=$ac_optarg ;;
1118 -gas |
--gas |
--ga |
--g)
1119 # Obsolete; use --with-gas.
1122 -help |
--help |
--hel |
--he |
-h)
1123 ac_init_help
=long
;;
1124 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1125 ac_init_help
=recursive
;;
1126 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1127 ac_init_help
=short
;;
1129 -host |
--host |
--hos |
--ho)
1130 ac_prev
=host_alias
;;
1131 -host=* |
--host=* |
--hos=* |
--ho=*)
1132 host_alias
=$ac_optarg ;;
1134 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1136 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1138 htmldir
=$ac_optarg ;;
1140 -includedir |
--includedir |
--includedi |
--included |
--include \
1141 |
--includ |
--inclu |
--incl |
--inc)
1142 ac_prev
=includedir
;;
1143 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1144 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1145 includedir
=$ac_optarg ;;
1147 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1149 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1150 infodir
=$ac_optarg ;;
1152 -libdir |
--libdir |
--libdi |
--libd)
1154 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1155 libdir
=$ac_optarg ;;
1157 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1158 |
--libexe |
--libex |
--libe)
1159 ac_prev
=libexecdir
;;
1160 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1161 |
--libexe=* |
--libex=* |
--libe=*)
1162 libexecdir
=$ac_optarg ;;
1164 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1165 ac_prev
=localedir
;;
1166 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1167 localedir
=$ac_optarg ;;
1169 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1170 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1171 ac_prev
=localstatedir
;;
1172 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1173 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1174 localstatedir
=$ac_optarg ;;
1176 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1178 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1179 mandir
=$ac_optarg ;;
1181 -nfp |
--nfp |
--nf)
1182 # Obsolete; use --without-fp.
1185 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1186 |
--no-cr |
--no-c |
-n)
1189 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1190 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1193 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1194 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1195 |
--oldin |
--oldi |
--old |
--ol |
--o)
1196 ac_prev
=oldincludedir
;;
1197 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1198 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1199 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1200 oldincludedir
=$ac_optarg ;;
1202 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1204 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1205 prefix
=$ac_optarg ;;
1207 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1208 |
--program-pre |
--program-pr |
--program-p)
1209 ac_prev
=program_prefix
;;
1210 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1211 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1212 program_prefix
=$ac_optarg ;;
1214 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1215 |
--program-suf |
--program-su |
--program-s)
1216 ac_prev
=program_suffix
;;
1217 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1218 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1219 program_suffix
=$ac_optarg ;;
1221 -program-transform-name |
--program-transform-name \
1222 |
--program-transform-nam |
--program-transform-na \
1223 |
--program-transform-n |
--program-transform- \
1224 |
--program-transform |
--program-transfor \
1225 |
--program-transfo |
--program-transf \
1226 |
--program-trans |
--program-tran \
1227 |
--progr-tra |
--program-tr |
--program-t)
1228 ac_prev
=program_transform_name
;;
1229 -program-transform-name=* |
--program-transform-name=* \
1230 |
--program-transform-nam=* |
--program-transform-na=* \
1231 |
--program-transform-n=* |
--program-transform-=* \
1232 |
--program-transform=* |
--program-transfor=* \
1233 |
--program-transfo=* |
--program-transf=* \
1234 |
--program-trans=* |
--program-tran=* \
1235 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1236 program_transform_name
=$ac_optarg ;;
1238 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1240 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1241 pdfdir
=$ac_optarg ;;
1243 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1245 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1248 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1249 |
-silent |
--silent |
--silen |
--sile |
--sil)
1252 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1254 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1256 sbindir
=$ac_optarg ;;
1258 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1259 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1260 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1262 ac_prev
=sharedstatedir
;;
1263 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1264 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1265 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1267 sharedstatedir
=$ac_optarg ;;
1269 -site |
--site |
--sit)
1271 -site=* |
--site=* |
--sit=*)
1274 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1276 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1277 srcdir
=$ac_optarg ;;
1279 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1280 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1281 ac_prev
=sysconfdir
;;
1282 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1283 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1284 sysconfdir
=$ac_optarg ;;
1286 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1287 ac_prev
=target_alias
;;
1288 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1289 target_alias
=$ac_optarg ;;
1291 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1294 -version |
--version |
--versio |
--versi |
--vers |
-V)
1295 ac_init_version
=: ;;
1298 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1301 as_fn_error
"invalid package name: $ac_useropt"
1302 ac_useropt_orig
=$ac_useropt
1303 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep
=', ';;
1311 eval with_
$ac_useropt=\
$ac_optarg ;;
1313 -without-* |
--without-*)
1314 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1317 as_fn_error
"invalid package name: $ac_useropt"
1318 ac_useropt_orig
=$ac_useropt
1319 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1320 case $ac_user_opts in
1324 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1325 ac_unrecognized_sep
=', ';;
1327 eval with_
$ac_useropt=no
;;
1330 # Obsolete; use --with-x.
1333 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1334 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1335 ac_prev
=x_includes
;;
1336 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1337 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1338 x_includes
=$ac_optarg ;;
1340 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1341 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1342 ac_prev
=x_libraries
;;
1343 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1344 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1345 x_libraries
=$ac_optarg ;;
1347 -*) as_fn_error
"unrecognized option: \`$ac_option'
1348 Try \`$0 --help' for more information."
1352 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1353 # Reject names that are not valid shell variable names.
1354 case $ac_envvar in #(
1355 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1356 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1358 eval $ac_envvar=\
$ac_optarg
1359 export $ac_envvar ;;
1362 # FIXME: should be removed in autoconf 3.0.
1363 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1365 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1372 if test -n "$ac_prev"; then
1373 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1374 as_fn_error
"missing argument to $ac_option"
1377 if test -n "$ac_unrecognized_opts"; then
1378 case $enable_option_checking in
1380 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1381 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1385 # Check all directory arguments for consistency.
1386 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1387 datadir sysconfdir sharedstatedir localstatedir includedir \
1388 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1389 libdir localedir mandir
1391 eval ac_val
=\$
$ac_var
1392 # Remove trailing slashes.
1395 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1396 eval $ac_var=\
$ac_val;;
1398 # Be sure to have absolute directory names.
1400 [\\/$
]* | ?
:[\\/]* ) continue;;
1401 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1403 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1411 target
=$target_alias
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x
; then
1415 if test "x$build_alias" = x
; then
1416 cross_compiling
=maybe
1417 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1425 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1427 test "$silent" = yes && exec 6>/dev
/null
1430 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di
=`ls -di .` &&
1432 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1433 as_fn_error
"working directory cannot be determined"
1434 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1435 as_fn_error
"pwd does not report name of working directory"
1438 # Find the source files, if location was not specified.
1439 if test -z "$srcdir"; then
1440 ac_srcdir_defaulted
=yes
1441 # Try the directory containing this script, then the parent directory.
1442 ac_confdir
=`$as_dirname -- "$as_myself" ||
1443 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1444 X"$as_myself" : 'X\(//\)[^/]' \| \
1445 X"$as_myself" : 'X\(//\)$' \| \
1446 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1447 $as_echo X"$as_myself" |
1448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1470 ac_srcdir_defaulted
=no
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1473 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1474 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1476 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1478 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1480 # When building in place, set srcdir=.
1481 if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 # Remove unnecessary trailing slashes from srcdir.
1485 # Double slashes in file names in object file debugging info
1486 # mess up M-x gdb in Emacs.
1488 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1490 for ac_var
in $ac_precious_vars; do
1491 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1492 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1493 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1494 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1498 # Report the --help message.
1500 if test "$ac_init_help" = "long"; then
1501 # Omit some internal or obsolete options to make the list less imposing.
1502 # This message is too long to be a string in the A/UX 3.1 sh.
1504 \`configure' configures this package to adapt to many kinds of systems.
1506 Usage: $0 [OPTION]... [VAR=VALUE]...
1508 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1509 VAR=VALUE. See below for descriptions of some of the useful variables.
1511 Defaults for the options are specified in brackets.
1514 -h, --help display this help and exit
1515 --help=short display options specific to this package
1516 --help=recursive display the short help of all the included packages
1517 -V, --version display version information and exit
1518 -q, --quiet, --silent do not print \`checking...' messages
1519 --cache-file=FILE cache test results in FILE [disabled]
1520 -C, --config-cache alias for \`--cache-file=config.cache'
1521 -n, --no-create do not create output files
1522 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1524 Installation directories:
1525 --prefix=PREFIX install architecture-independent files in PREFIX
1526 [$ac_default_prefix]
1527 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1530 By default, \`make install' will install all the files in
1531 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1532 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1533 for instance \`--prefix=\$HOME'.
1535 For better control, use the options below.
1537 Fine tuning of the installation directories:
1538 --bindir=DIR user executables [EPREFIX/bin]
1539 --sbindir=DIR system admin executables [EPREFIX/sbin]
1540 --libexecdir=DIR program executables [EPREFIX/libexec]
1541 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1542 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1543 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1544 --libdir=DIR object code libraries [EPREFIX/lib]
1545 --includedir=DIR C header files [PREFIX/include]
1546 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1547 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1548 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1549 --infodir=DIR info documentation [DATAROOTDIR/info]
1550 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1551 --mandir=DIR man documentation [DATAROOTDIR/man]
1552 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1553 --htmldir=DIR html documentation [DOCDIR]
1554 --dvidir=DIR dvi documentation [DOCDIR]
1555 --pdfdir=DIR pdf documentation [DOCDIR]
1556 --psdir=DIR ps documentation [DOCDIR]
1562 --program-prefix=PREFIX prepend PREFIX to installed program names
1563 --program-suffix=SUFFIX append SUFFIX to installed program names
1564 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1567 --build=BUILD configure
for building on BUILD
[guessed
]
1568 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1569 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1573 if test -n "$ac_init_help"; then
1578 --disable-option-checking ignore unrecognized
--enable/--with options
1579 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1580 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1581 --enable-generated-files-in-srcdir
1582 put copies of generated files
in source dir intended
1583 for creating
source tarballs
for users without
1584 texinfo bison or flex
1585 --disable-largefile omit support
for large files
1586 --disable-build-format-warnings
1587 don
't use -Wformat while building GCC
1588 --enable-werror-always enable -Werror despite compiler version
1589 --enable-checking[=LIST]
1590 enable expensive run-time checks. With LIST, enable
1591 only specific categories of checks. Categories are:
1592 yes,no,all,none,release. Flags are:
1593 assert,df,fold,gc,gcac,gimple,misc,
1594 rtlflag,rtl,runtime,tree,valgrind,types
1595 --enable-coverage[=LEVEL]
1596 enable compiler's code coverage collection. Use to
1597 measure compiler performance and
locate unused parts
1598 of the compiler. With LEVEL
, specify optimization.
1599 Values are opt
, noopt
, default is noopt
1600 --enable-gather-detailed-mem-stats
1601 enable detailed memory allocation stats gathering
1602 --enable-valgrind-annotations
1603 enable valgrind runtime interaction
1604 --enable-multilib enable library support
for multiple ABIs
1605 --enable-multiarch enable support
for multiarch paths
1606 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1607 --enable-decimal-float={no
,yes,bid
,dpd
}
1608 enable decimal float extension to C. Selecting
'bid'
1609 or
'dpd' choses
which decimal floating point format
1611 --enable-fixed-point enable fixed-point arithmetic extension to C
1612 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1614 --enable-tls enable or disable generation of tls code overriding
1615 the assembler check
for tls support
1616 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1617 GNU Objective-C runtime
1618 --disable-shared don't provide a shared libgcc
1619 --enable-languages=LIST specify
which front-ends to build
1620 --disable-rpath do not hardcode runtime library paths
1621 --enable-sjlj-exceptions
1622 arrange to use setjmp
/longjmp exception handling
1623 --enable-secureplt enable -msecure-plt by default
for PowerPC
1624 --enable-leading-mingw64-underscores
1625 enable leading underscores on
64 bit mingw targets
1626 --enable-cld enable -mcld by default
for 32bit x86
1627 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1629 --disable-win32-registry
1630 disable lookup of installation paths
in the Registry
1632 --enable-win32-registry enable registry lookup
(default
)
1633 --enable-win32-registry=KEY
1634 use KEY instead of GCC version as the last portion
1636 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1637 --enable-static[=PKGS
] build static libraries
[default
=yes]
1638 --enable-fast-install[=PKGS
]
1639 optimize
for fast installation
[default
=yes]
1640 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1641 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1642 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1643 --enable-gnu-indirect-function
1644 enable the use of the @gnu_indirect_function to
1646 --enable-initfini-array use .init_array
/.fini_array sections
1647 --enable-comdat enable COMDAT group support
1649 --enable-fix-cortex-a53-835769
1650 enable workaround
for AArch64 Cortex-A53 erratum
1652 --disable-fix-cortex-a53-835769
1653 disable workaround
for AArch64 Cortex-A53 erratum
1657 --enable-fix-cortex-a53-843419
1658 enable workaround
for AArch64 Cortex-A53 erratum
1660 --disable-fix-cortex-a53-843419
1661 disable workaround
for AArch64 Cortex-A53 erratum
1664 --enable-gnu-unique-object
1665 enable the use of the @gnu_unique_object ELF
1666 extension on glibc systems
1667 --enable-linker-build-id
1668 compiler will always pass
--build-id to linker
1669 --enable-maintainer-mode
1670 enable make rules and dependencies not useful
(and
1671 sometimes confusing
) to the casual installer
1672 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1673 thrashing on the build machine
1674 --enable-version-specific-runtime-libs
1675 specify that runtime libraries should be installed
1676 in a compiler-specific directory
1677 --enable-plugin enable plugin support
1678 --enable-host-shared build
host code as shared libraries
1679 --disable-libquadmath-support
1680 disable libquadmath support
for Fortran
1681 --enable-default-pie enable Position Independent Executable as default
1684 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1685 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1686 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1687 --with-local-prefix=DIR specifies directory to put
local include
1688 --with-native-system-header-dir=dir
1689 use dir as the directory to
look for standard
1690 system header files
in. Defaults to
/usr
/include.
1691 --with-build-sysroot=sysroot
1692 use sysroot as the system root during the build
1693 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1694 --with-gxx-include-dir=DIR
1695 specifies directory to put g
++ header files
1696 --with-cpp-install-dir=DIR
1697 install the user visible C preprocessor
in DIR
1698 (relative to PREFIX
) as well as PREFIX
/bin
1699 --with-gnu-ld arrange to work with GNU ld
1700 --with-ld arrange to use the specified ld
(full pathname
)
1701 --with-demangler-in-ld try to use demangler
in GNU ld
1702 --with-gnu-as arrange to work with GNU as
1703 --with-as arrange to use the specified as
(full pathname
)
1704 --with-stabs arrange to use stabs instead of
host debug format
1705 --with-dwarf2 force the default debug format to be DWARF
2
1706 --with-specs=SPECS add SPECS to driver command-line processing
1707 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1708 --with-bugurl=URL Direct users to URL to report a bug
1709 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1710 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1711 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1712 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1713 --with-pic try to use only PIC/non-PIC objects [default=use
1715 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1716 --with-plugin-ld=[ARG] specify the plugin linker
1717 --with-glibc-version=M.N
1718 assume GCC used with glibc version M.N or later
1719 --with-long-double-128 use 128-bit long double by default
1720 --with-gc={page,zone} this option is not supported anymore. It used to
1721 choose the garbage collection mechanism to use with
1723 --with-system-zlib use installed libz
1724 --with-linker-hash-style={sysv,gnu,both}
1725 specify the linker hash style
1726 --with-diagnostics-color={never,auto,auto-if-env,always}
1727 specify the default of -fdiagnostics-color option
1728 auto-if-env stands for -fdiagnostics-color=auto if
1729 GCC_COLOR environment variable is present and
1730 -fdiagnostics-color=never otherwise
1732 Some influential environment variables:
1733 CC C compiler command
1734 CFLAGS C compiler flags
1735 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1736 nonstandard directory <lib dir>
1737 LIBS libraries to pass to the linker, e.g. -l<library>
1738 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1739 you have headers in a nonstandard directory <include dir>
1740 CXX C++ compiler command
1741 CXXFLAGS C++ compiler flags
1742 CXXCPP C++ preprocessor
1744 GMPLIBS How to link GMP
1745 GMPINC How to find GMP include files
1746 ISLLIBS How to link ISL
1747 ISLINC How to find ISL include files
1749 Use these variables to override the choices made by `configure' or to
help
1750 it to
find libraries and programs with nonstandard names
/locations.
1752 Report bugs to the package provider.
1757 if test "$ac_init_help" = "recursive"; then
1758 # If there are subdirs, report their specific --help.
1759 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1760 test -d "$ac_dir" ||
1761 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1766 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1768 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1769 # A ".." for each directory in $ac_dir_suffix.
1770 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1771 case $ac_top_builddir_sub in
1772 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1773 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1776 ac_abs_top_builddir
=$ac_pwd
1777 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1778 # for backward compatibility:
1779 ac_top_builddir
=$ac_top_build_prefix
1782 .
) # We are building in place.
1784 ac_top_srcdir
=$ac_top_builddir_sub
1785 ac_abs_top_srcdir
=$ac_pwd ;;
1786 [\\/]* | ?
:[\\/]* ) # Absolute name.
1787 ac_srcdir
=$srcdir$ac_dir_suffix;
1788 ac_top_srcdir
=$srcdir
1789 ac_abs_top_srcdir
=$srcdir ;;
1791 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1792 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1793 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1795 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1797 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1798 # Check for guested configure.
1799 if test -f "$ac_srcdir/configure.gnu"; then
1801 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1802 elif test -f "$ac_srcdir/configure"; then
1804 $SHELL "$ac_srcdir/configure" --help=recursive
1806 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1808 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1812 test -n "$ac_init_help" && exit $ac_status
1813 if $ac_init_version; then
1816 generated by GNU Autoconf
2.64
1818 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1819 This configure
script is free software
; the Free Software Foundation
1820 gives unlimited permission to copy
, distribute and modify it.
1825 ## ------------------------ ##
1826 ## Autoconf initialization. ##
1827 ## ------------------------ ##
1829 # ac_fn_c_try_compile LINENO
1830 # --------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_c_try_compile
()
1834 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1835 rm -f conftest.
$ac_objext
1836 if { { ac_try
="$ac_compile"
1838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 } # ac_fn_c_try_compile
1867 # ac_fn_cxx_try_compile LINENO
1868 # ----------------------------
1869 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_compile ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext
1874 if { { ac_try="$ac_compile"
1876 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1877 *) ac_try_echo
=$ac_try;;
1879 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_compile") 2>conftest.err
1883 if test -s conftest.err
; then
1884 grep -v '^ *+' conftest.err
>conftest.er1
1885 cat conftest.er1
>&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest.
$ac_objext; then :
1895 $as_echo "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.
$ac_ext >&5
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1903 } # ac_fn_cxx_try_compile
1905 # ac_fn_cxx_try_cpp LINENO
1906 # ------------------------
1907 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1908 ac_fn_cxx_try_cpp
()
1910 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1911 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } >/dev/null && {
1927 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1928 test ! -s conftest.err
1932 $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1937 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940 } # ac_fn_cxx_try_cpp
1942 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # ---------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1947 ac_fn_cxx_check_header_mongrel ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1968 if ac_fn_cxx_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1971 ac_header_compiler=no
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1984 if ac_fn_cxx_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1987 ac_header_preproc=no
1989 rm -f conftest.err conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2019 eval "$3=\$ac_header_compiler"
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027 } # ac_fn_cxx_check_header_mongrel
2029 # ac_fn_cxx_try_run LINENO
2030 # ------------------------
2031 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2032 # that executables *can* be run.
2033 ac_fn_cxx_try_run ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 if { { ac_try="$ac_link"
2038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2039 *) ac_try_echo
=$ac_try;;
2041 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2042 $as_echo "$ac_try_echo"; } >&5
2043 (eval "$ac_link") 2>&5
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2047 { { case "(($ac_try" in
2048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2049 *) ac_try_echo=$ac_try;;
2051 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2052 $as_echo "$ac_try_echo"; } >&5
2053 (eval "$ac_try") 2>&5
2055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2056 test $ac_status = 0; }; }; then :
2059 $as_echo "$as_me: program exited with status $ac_status" >&5
2060 $as_echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2063 ac_retval=$ac_status
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 } # ac_fn_cxx_try_run
2071 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2072 # ---------------------------------------------------------
2073 # Tests whether HEADER exists and can be compiled using the include files in
2074 # INCLUDES, setting the cache variable VAR accordingly.
2075 ac_fn_cxx_check_header_compile ()
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2088 if ac_fn_cxx_try_compile "$LINENO"; then :
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100 } # ac_fn_cxx_check_header_compile
2102 # ac_fn_c_try_cpp LINENO
2103 # ----------------------
2104 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 if { { ac_try="$ac_cpp conftest.$ac_ext"
2110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2111 *) ac_try_echo
=$ac_try;;
2113 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2117 if test -s conftest.err
; then
2118 grep -v '^ *+' conftest.err
>conftest.er1
2119 cat conftest.er1
>&5
2120 mv -f conftest.er1 conftest.err
2122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123 test $ac_status = 0; } >/dev
/null
&& {
2124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2125 test ! -s conftest.err
2129 $as_echo "$as_me: failed program was:" >&5
2130 sed 's/^/| /' conftest.
$ac_ext >&5
2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2139 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2140 # ----------------------------------------------
2141 # Tries to find the compile-time value of EXPR in a program that includes
2142 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2144 ac_fn_cxx_compute_int
()
2146 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2147 if test "$cross_compiling" = yes; then
2148 # Depending upon the size, compute the lo and hi bounds.
2149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2155 static int test_array [1 - 2 * !(($2) >= 0)];
2162 if ac_fn_cxx_try_compile
"$LINENO"; then :
2165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2171 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2178 if ac_fn_cxx_try_compile
"$LINENO"; then :
2179 ac_hi
=$ac_mid; break
2181 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2182 if test $ac_lo -le $ac_mid; then
2186 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) < 0)];
2204 if ac_fn_cxx_try_compile
"$LINENO"; then :
2207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2213 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2220 if ac_fn_cxx_try_compile
"$LINENO"; then :
2221 ac_lo
=$ac_mid; break
2223 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2224 if test $ac_mid -le $ac_hi; then
2228 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2237 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2238 # Binary search between lo and hi bounds.
2239 while test "x$ac_lo" != "x$ac_hi"; do
2240 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2247 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2254 if ac_fn_cxx_try_compile
"$LINENO"; then :
2257 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2262 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2269 static long int longval () { return $2; }
2270 static unsigned long int ulongval () { return $2; }
2277 FILE *f = fopen ("conftest.val", "w");
2282 long int i = longval ();
2285 fprintf (f, "%ld", i);
2289 unsigned long int i = ulongval ();
2292 fprintf (f, "%lu", i);
2294 /* Do not output a trailing newline, as this causes \r\n confusion
2295 on some platforms. */
2296 return ferror (f) || fclose (f) != 0;
2302 if ac_fn_cxx_try_run
"$LINENO"; then :
2303 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2307 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2308 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2315 } # ac_fn_cxx_compute_int
2317 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2318 # ---------------------------------------------
2319 # Tests whether TYPE exists after having included INCLUDES, setting cache
2320 # variable VAR accordingly.
2321 ac_fn_cxx_check_type
()
2323 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2325 $as_echo_n "checking for $2... " >&6; }
2326 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2342 if ac_fn_cxx_try_compile
"$LINENO"; then :
2343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2344 /* end confdefs.h. */
2355 if ac_fn_cxx_try_compile
"$LINENO"; then :
2360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2366 $as_echo "$ac_res" >&6; }
2367 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2369 } # ac_fn_cxx_check_type
2371 # ac_fn_c_find_intX_t LINENO BITS VAR
2372 # -----------------------------------
2373 # Finds a signed integer type with width BITS, setting cache variable VAR
2375 ac_fn_c_find_intX_t
()
2377 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2379 $as_echo_n "checking for int$2_t... " >&6; }
2380 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2381 $as_echo_n "(cached) " >&6
2384 for ac_type
in int
$2_t 'int' 'long int' \
2385 'long long int' 'short int' 'signed char'; do
2386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2388 $ac_includes_default
2392 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2399 if ac_fn_cxx_try_compile
"$LINENO"; then :
2400 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2401 /* end confdefs.h. */
2402 $ac_includes_default
2406 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2407 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2414 if ac_fn_cxx_try_compile
"$LINENO"; then :
2421 eval "$3=\$ac_type" ;;
2424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2428 if test "x$as_val" = x
""no
; then :
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2437 $as_echo "$ac_res" >&6; }
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2440 } # ac_fn_c_find_intX_t
2442 # ac_fn_cxx_try_link LINENO
2443 # -------------------------
2444 # Try to link conftest.$ac_ext, and return whether this succeeded.
2445 ac_fn_cxx_try_link
()
2447 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2448 rm -f conftest.
$ac_objext conftest
$ac_exeext
2449 if { { ac_try
="$ac_link"
2451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2455 $as_echo "$ac_try_echo"; } >&5
2456 (eval "$ac_link") 2>conftest.err
2458 if test -s conftest.err; then
2459 grep -v '^ *+' conftest.err >conftest.er1
2460 cat conftest.er1 >&5
2461 mv -f conftest.er1 conftest.err
2463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2464 test $ac_status = 0; } && {
2465 test -z "$ac_cxx_werror_flag" ||
2466 test ! -s conftest.err
2467 } && test -s conftest$ac_exeext && {
2468 test "$cross_compiling" = yes ||
2469 $as_test_x conftest$ac_exeext
2473 $as_echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2478 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2479 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2480 # interfere with the next link command; also delete a directory that is
2481 # left behind by Apple's compiler. We do this before executing the actions.
2482 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2486 } # ac_fn_cxx_try_link
2488 # ac_fn_c_find_uintX_t LINENO BITS VAR
2489 # ------------------------------------
2490 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2492 ac_fn_c_find_uintX_t ()
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2496 $as_echo_n "checking for uint$2_t... " >&6; }
2497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2498 $as_echo_n "(cached) " >&6
2501 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2502 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2505 $ac_includes_default
2509 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2516 if ac_fn_cxx_try_compile "$LINENO"; then :
2521 eval "$3=\$ac_type" ;;
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 if test "x$as_val" = x""no; then :
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2535 $as_echo "$ac_res" >&6; }
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2538 } # ac_fn_c_find_uintX_t
2540 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2541 # ------------------------------------------------
2542 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2543 ac_fn_cxx_check_header_preproc ()
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2555 if ac_fn_cxx_try_cpp "$LINENO"; then :
2560 rm -f conftest.err conftest.$ac_ext
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2564 $as_echo "$ac_res" >&6; }
2565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2567 } # ac_fn_cxx_check_header_preproc
2569 # ac_fn_cxx_check_func LINENO FUNC VAR
2570 # ------------------------------------
2571 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2572 ac_fn_cxx_check_func ()
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2576 $as_echo_n "checking for $2... " >&6; }
2577 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2578 $as_echo_n "(cached) " >&6
2580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h. */
2582 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2584 #define $2 innocuous_$2
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char $2 (); below.
2588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2589 <limits.h> exists even on freestanding compilers. */
2592 # include <limits.h>
2594 # include <assert.h>
2599 /* Override any GCC internal prototype to avoid an error.
2600 Use char because int might match the return type of a GCC
2601 builtin and then its argument prototype would still apply. */
2606 /* The GNU C library defines this for functions which it implements
2607 to always fail with ENOSYS. Some functions are actually named
2608 something starting with __ and the normal name is an alias. */
2609 #if defined __stub_$2 || defined __stub___$2
2621 if ac_fn_cxx_try_link "$LINENO"; then :
2626 rm -f core conftest.err conftest.$ac_objext \
2627 conftest$ac_exeext conftest.$ac_ext
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2631 $as_echo "$ac_res" >&6; }
2632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2634 } # ac_fn_cxx_check_func
2636 # ac_fn_cxx_check_decl LINENO SYMBOL VAR
2637 # --------------------------------------
2638 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2639 ac_fn_cxx_check_decl ()
2641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2642 as_decl_name=`echo $2|
sed 's/ *(.*//'`
2643 as_decl_use=`echo $2|
sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2645 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2647 $as_echo_n "(cached) " >&6
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2655 #ifndef $as_decl_name
2657 (void) $as_decl_use;
2659 (void) $as_decl_name;
2667 if ac_fn_cxx_try_compile "$LINENO"; then :
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2676 $as_echo "$ac_res" >&6; }
2677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2679 } # ac_fn_cxx_check_decl
2681 # ac_fn_c_try_link LINENO
2682 # -----------------------
2683 # Try to link conftest.$ac_ext, and return whether this succeeded.
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 rm -f conftest.$ac_objext conftest$ac_exeext
2688 if { { ac_try="$ac_link"
2690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2691 *) ac_try_echo
=$ac_try;;
2693 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2694 $as_echo "$ac_try_echo"; } >&5
2695 (eval "$ac_link") 2>conftest.err
2697 if test -s conftest.err
; then
2698 grep -v '^ *+' conftest.err
>conftest.er1
2699 cat conftest.er1
>&5
2700 mv -f conftest.er1 conftest.err
2702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703 test $ac_status = 0; } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest
$ac_exeext && {
2707 test "$cross_compiling" = yes ||
2708 $as_test_x conftest
$ac_exeext
2712 $as_echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.
$ac_ext >&5
2717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2719 # interfere with the next link command; also delete a directory that is
2720 # left behind by Apple's compiler. We do this before executing the actions.
2721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2725 } # ac_fn_c_try_link
2727 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2728 # ----------------------------------------------
2729 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2730 ac_fn_c_check_header_preproc
()
2732 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2734 $as_echo_n "checking for $2... " >&6; }
2735 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2736 $as_echo_n "(cached) " >&6
2738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2742 if ac_fn_c_try_cpp
"$LINENO"; then :
2747 rm -f conftest.err conftest.
$ac_ext
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751 $as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2754 } # ac_fn_c_check_header_preproc
2756 # ac_fn_c_check_func LINENO FUNC VAR
2757 # ----------------------------------
2758 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2759 ac_fn_c_check_func
()
2761 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2763 $as_echo_n "checking for $2... " >&6; }
2764 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2765 $as_echo_n "(cached) " >&6
2767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2771 #define $2 innocuous_$2
2773 /* System header to define __stub macros and hopefully few prototypes,
2774 which can conflict with char $2 (); below.
2775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2776 <limits.h> exists even on freestanding compilers. */
2779 # include <limits.h>
2781 # include <assert.h>
2786 /* Override any GCC internal prototype to avoid an error.
2787 Use char because int might match the return type of a GCC
2788 builtin and then its argument prototype would still apply. */
2793 /* The GNU C library defines this for functions which it implements
2794 to always fail with ENOSYS. Some functions are actually named
2795 something starting with __ and the normal name is an alias. */
2796 #if defined __stub_$2 || defined __stub___$2
2808 if ac_fn_c_try_link
"$LINENO"; then :
2813 rm -f core conftest.err conftest.
$ac_objext \
2814 conftest
$ac_exeext conftest.
$ac_ext
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2818 $as_echo "$ac_res" >&6; }
2819 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2821 } # ac_fn_c_check_func
2822 cat >config.log
<<_ACEOF
2823 This file contains any messages produced by compilers while
2824 running configure, to aid debugging if configure makes a mistake.
2826 It was created by $as_me, which was
2827 generated by GNU Autoconf 2.64. Invocation command line was
2839 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2840 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2841 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2842 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2843 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2845 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2846 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2848 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2849 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2850 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2851 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2852 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2853 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2854 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2858 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2862 test -z "$as_dir" && as_dir
=.
2863 $as_echo "PATH: $as_dir"
2879 # Keep a trace of the command line.
2880 # Strip out --no-create and --no-recursion so they do not pile up.
2881 # Strip out --silent because we don't want to record it for future runs.
2882 # Also quote any args containing shell meta-characters.
2883 # Make two passes to allow for proper duplicate-argument suppression.
2887 ac_must_keep_next
=false
2893 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2894 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2895 |
-silent |
--silent |
--silen |
--sile |
--sil)
2898 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2901 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2903 as_fn_append ac_configure_args1
" '$ac_arg'"
2904 if test $ac_must_keep_next = true
; then
2905 ac_must_keep_next
=false
# Got value, back to normal.
2908 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2909 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2910 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2911 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2912 case "$ac_configure_args0 " in
2913 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2916 -* ) ac_must_keep_next
=true
;;
2919 as_fn_append ac_configure_args
" '$ac_arg'"
2924 { ac_configure_args0
=; unset ac_configure_args0
;}
2925 { ac_configure_args1
=; unset ac_configure_args1
;}
2927 # When interrupted or exit'd, cleanup temporary files, and complete
2928 # config.log. We remove comments because anyway the quotes in there
2929 # would cause problems or look ugly.
2930 # WARNING: Use '\'' to represent an apostrophe within the trap.
2931 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2932 trap 'exit_status=$?
2933 # Save into config.log some information that might help in debugging.
2938 ## ---------------- ##
2939 ## Cache variables. ##
2940 ## ---------------- ##
2943 # The following way of writing the cache mishandles newlines in values,
2945 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2946 eval ac_val=\$$ac_var
2950 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2951 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2954 _ | IFS | as_nl) ;; #(
2955 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2956 *) { eval $ac_var=; unset $ac_var;} ;;
2961 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2962 *${as_nl}ac_space=\ *)
2964 "s/'\''/'\''\\\\'\'''\''/g;
2965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2968 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2976 ## ----------------- ##
2977 ## Output variables. ##
2978 ## ----------------- ##
2981 for ac_var in $ac_subst_vars
2983 eval ac_val=\$$ac_var
2985 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2987 $as_echo "$ac_var='\''$ac_val'\''"
2991 if test -n "$ac_subst_files"; then
2993 ## ------------------- ##
2994 ## File substitutions. ##
2995 ## ------------------- ##
2998 for ac_var
in $ac_subst_files
3000 eval ac_val
=\$
$ac_var
3002 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3004 $as_echo "$ac_var='\''$ac_val'\''"
3009 if test -s confdefs.h; then
3019 test "$ac_signal" != 0 &&
3020 $as_echo "$as_me: caught signal $ac_signal"
3021 $as_echo "$as_me: exit $exit_status"
3023 rm -f core *.core core.conftest.* &&
3024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3027 for ac_signal
in 1 2 13 15; do
3028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3033 rm -f -r conftest
* confdefs.h
3035 $as_echo "/* confdefs.h */" > confdefs.h
3037 # Predefined preprocessor variables.
3039 cat >>confdefs.h
<<_ACEOF
3040 #define PACKAGE_NAME "$PACKAGE_NAME"
3043 cat >>confdefs.h
<<_ACEOF
3044 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3047 cat >>confdefs.h
<<_ACEOF
3048 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3051 cat >>confdefs.h
<<_ACEOF
3052 #define PACKAGE_STRING "$PACKAGE_STRING"
3055 cat >>confdefs.h
<<_ACEOF
3056 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3059 cat >>confdefs.h
<<_ACEOF
3060 #define PACKAGE_URL "$PACKAGE_URL"
3064 # Let the site file select an alternate cache file if it wants to.
3065 # Prefer an explicitly selected file to automatically selected ones.
3068 if test -n "$CONFIG_SITE"; then
3069 ac_site_file1
=$CONFIG_SITE
3070 elif test "x$prefix" != xNONE
; then
3071 ac_site_file1
=$prefix/share
/config.site
3072 ac_site_file2
=$prefix/etc
/config.site
3074 ac_site_file1
=$ac_default_prefix/share
/config.site
3075 ac_site_file2
=$ac_default_prefix/etc
/config.site
3077 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
3079 test "x$ac_site_file" = xNONE
&& continue
3080 if test -r "$ac_site_file"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3082 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3083 sed 's/^/| /' "$ac_site_file" >&5
3088 if test -r "$cache_file"; then
3089 # Some versions of bash will fail to source /dev/null (special
3090 # files actually), so we avoid doing that.
3091 if test -f "$cache_file"; then
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3093 $as_echo "$as_me: loading cache $cache_file" >&6;}
3095 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3096 *) .
"./$cache_file";;
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3101 $as_echo "$as_me: creating cache $cache_file" >&6;}
3105 # Check that the precious variables saved in the cache have kept the same
3107 ac_cache_corrupted
=false
3108 for ac_var
in $ac_precious_vars; do
3109 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3110 eval ac_new_set
=\
$ac_env_${ac_var}_set
3111 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3112 eval ac_new_val
=\
$ac_env_${ac_var}_value
3113 case $ac_old_set,$ac_new_set in
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3117 ac_cache_corrupted
=: ;;
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3121 ac_cache_corrupted
=: ;;
3124 if test "x$ac_old_val" != "x$ac_new_val"; then
3125 # differences in whitespace do not lead to failure.
3126 ac_old_val_w
=`echo x $ac_old_val`
3127 ac_new_val_w
=`echo x $ac_new_val`
3128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3131 ac_cache_corrupted
=:
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3135 eval $ac_var=\
$ac_old_val
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3143 # Pass precious variables to config.status.
3144 if test "$ac_new_set" = set; then
3146 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 *) ac_arg
=$ac_var=$ac_new_val ;;
3149 case " $ac_configure_args " in
3150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3151 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3155 if $ac_cache_corrupted; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3160 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3162 ## -------------------- ##
3163 ## Main body of script. ##
3164 ## -------------------- ##
3167 ac_cpp
='$CPP $CPPFLAGS'
3168 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3177 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3180 gcc_version
=`cat $srcdir/BASE-VER`
3182 # Determine the host, build, and target systems
3184 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3185 for ac_t
in install-sh
install.sh shtool
; do
3186 if test -f "$ac_dir/$ac_t"; then
3188 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3193 if test -z "$ac_aux_dir"; then
3194 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3197 # These three variables are undocumented and unsupported,
3198 # and are intended to be withdrawn in a future Autoconf release.
3199 # They can cause serious problems if a builder's source tree is in a directory
3200 # whose full name contains unusual characters.
3201 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3202 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3203 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3206 # Make sure we can run config.sub.
3207 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3208 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3211 $as_echo_n "checking build system type... " >&6; }
3212 if test "${ac_cv_build+set}" = set; then :
3213 $as_echo_n "(cached) " >&6
3215 ac_build_alias
=$build_alias
3216 test "x$ac_build_alias" = x
&&
3217 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3218 test "x$ac_build_alias" = x
&&
3219 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3220 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3221 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3225 $as_echo "$ac_cv_build" >&6; }
3226 case $ac_cv_build in
3228 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3231 ac_save_IFS
=$IFS; IFS
='-'
3237 # Remember, the first character of IFS is used to create $*,
3238 # except with old shells:
3241 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3245 $as_echo_n "checking host system type... " >&6; }
3246 if test "${ac_cv_host+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3249 if test "x$host_alias" = x
; then
3250 ac_cv_host
=$ac_cv_build
3252 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3253 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3258 $as_echo "$ac_cv_host" >&6; }
3261 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3264 ac_save_IFS
=$IFS; IFS
='-'
3270 # Remember, the first character of IFS is used to create $*,
3271 # except with old shells:
3274 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3278 $as_echo_n "checking target system type... " >&6; }
3279 if test "${ac_cv_target+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3282 if test "x$target_alias" = x
; then
3283 ac_cv_target
=$ac_cv_host
3285 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3286 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3291 $as_echo "$ac_cv_target" >&6; }
3292 case $ac_cv_target in
3294 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3296 target
=$ac_cv_target
3297 ac_save_IFS
=$IFS; IFS
='-'
3303 # Remember, the first character of IFS is used to create $*,
3304 # except with old shells:
3307 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3310 # The aliases save the names the user supplied, while $host etc.
3311 # will get canonicalized.
3312 test -n "$target_alias" &&
3313 test "$program_prefix$program_suffix$program_transform_name" = \
3315 program_prefix
=${target_alias}-
3317 # Determine the noncanonical target name, for directory use.
3318 case ${build_alias} in
3319 "") build_noncanonical
=${build} ;;
3320 *) build_noncanonical
=${build_alias} ;;
3323 case ${host_alias} in
3324 "") host_noncanonical
=${build_noncanonical} ;;
3325 *) host_noncanonical
=${host_alias} ;;
3328 case ${target_alias} in
3329 "") target_noncanonical
=${host_noncanonical} ;;
3330 *) target_noncanonical
=${target_alias} ;;
3336 # Used for constructing correct paths for offload compilers.
3337 real_target_noncanonical
=${target_noncanonical}
3340 # Determine the target- and build-specific subdirectories
3342 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3343 # have matching libraries, they should use host libraries: Makefile.tpl
3344 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3345 # However, they still use the build modules, because the corresponding
3346 # host modules (e.g. bison) are only built for the host when bootstrap
3348 # - build_subdir is where we find build modules, and never changes.
3349 # - build_libsubdir is where we find build libraries, and can be overridden.
3351 # Prefix 'build-' so this never conflicts with target_subdir.
3352 build_subdir
="build-${build_noncanonical}"
3354 # Check whether --with-build-libsubdir was given.
3355 if test "${with_build_libsubdir+set}" = set; then :
3356 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3358 build_libsubdir
="$build_subdir"
3361 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3362 if ( test $srcdir = .
&& test -d gcc
) \
3363 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3364 host_subdir
="host-${host_noncanonical}"
3369 target_subdir
=${target_noncanonical}
3372 # Set program_transform_name
3373 test "$program_prefix" != NONE
&&
3374 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3375 # Use a double $ so make ignores it.
3376 test "$program_suffix" != NONE
&&
3377 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3378 # Double any \ or $.
3379 # By default was `s,x,x', remove it if useless.
3380 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3381 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3384 # Check for bogus environment variables.
3385 # Test if LIBRARY_PATH contains the notation for the current directory
3386 # since this would lead to problems installing/building glibc.
3387 # LIBRARY_PATH contains the current directory if one of the following
3389 # - one of the terminals (":" and ";") is the first or last sign
3390 # - two terminals occur directly after each other
3391 # - the path contains an element with a dot in it
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3393 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3394 case ${LIBRARY_PATH} in
3395 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3396 library_path_setting
="contains current directory"
3399 library_path_setting
="ok"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3403 $as_echo "$library_path_setting" >&6; }
3404 if test "$library_path_setting" != "ok"; then
3406 *** LIBRARY_PATH shouldn't contain the current directory when
3407 *** building gcc. Please change the environment variable
3408 *** and run configure again." "$LINENO" 5
3411 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3412 # since this would lead to problems installing/building glibc.
3413 # GCC_EXEC_PREFIX contains the current directory if one of the following
3415 # - one of the terminals (":" and ";") is the first or last sign
3416 # - two terminals occur directly after each other
3417 # - the path contains an element with a dot in it
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3419 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3420 case ${GCC_EXEC_PREFIX} in
3421 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3422 gcc_exec_prefix_setting
="contains current directory"
3425 gcc_exec_prefix_setting
="ok"
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3429 $as_echo "$gcc_exec_prefix_setting" >&6; }
3430 if test "$gcc_exec_prefix_setting" != "ok"; then
3432 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3433 *** building gcc. Please change the environment variable
3434 *** and run configure again." "$LINENO" 5
3441 # Specify the local prefix
3444 # Check whether --with-local-prefix was given.
3445 if test "${with_local_prefix+set}" = set; then :
3446 withval
=$with_local_prefix; case "${withval}" in
3447 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3449 *) local_prefix
=$with_local_prefix ;;
3454 # Default local prefix if it is empty
3455 if test x
$local_prefix = x
; then
3456 local_prefix
=/usr
/local
3460 # Check whether --with-native-system-header-dir was given.
3461 if test "${with_native_system_header_dir+set}" = set; then :
3462 withval
=$with_native_system_header_dir;
3463 case ${with_native_system_header_dir} in
3464 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
3465 /* |
[A-Za-z
]:[\\/]*) ;;
3466 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
3468 configured_native_system_header_dir
="${withval}"
3471 configured_native_system_header_dir
=
3476 # Check whether --with-build-sysroot was given.
3477 if test "${with_build_sysroot+set}" = set; then :
3478 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
3479 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
3482 SYSROOT_CFLAGS_FOR_TARGET
=
3487 if test "x$prefix" = xNONE
; then
3488 test_prefix
=/usr
/local
3492 if test "x$exec_prefix" = xNONE
; then
3493 test_exec_prefix
=$test_prefix
3495 test_exec_prefix
=$exec_prefix
3499 # Check whether --with-sysroot was given.
3500 if test "${with_sysroot+set}" = set; then :
3501 withval
=$with_sysroot;
3502 case ${with_sysroot} in
3504 */) with_sysroot
=`echo $with_sysroot | sed 's,/$,,'` ;;
3506 case ${with_sysroot} in
3507 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
3508 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
3511 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
3512 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
3514 case ${TARGET_SYSTEM_ROOT} in
3515 "${test_prefix}"|
"${test_prefix}/"*|\
3516 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
3517 '${prefix}'|
'${prefix}/'*|\
3518 '${exec_prefix}'|
'${exec_prefix}/'*)
3519 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
3520 TARGET_SYSTEM_ROOT_DEFINE
="$t"
3527 TARGET_SYSTEM_ROOT_DEFINE
=
3528 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
3536 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3537 # passed in by the toplevel make and thus we'd get different behavior
3538 # depending on where we built the sources.
3539 gcc_gxx_include_dir
=
3540 # Specify the g++ header file directory
3542 # Check whether --with-gxx-include-dir was given.
3543 if test "${with_gxx_include_dir+set}" = set; then :
3544 withval
=$with_gxx_include_dir; case "${withval}" in
3545 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3547 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3552 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3553 if test x
${gcc_gxx_include_dir} = x
; then
3554 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3555 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3557 libstdcxx_incdir
='include/c++/$(version)'
3558 if test x
$host != x
$target; then
3559 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3561 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3565 gcc_gxx_include_dir_add_sysroot
=0
3566 if test "${with_sysroot+set}" = set; then
3567 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3568 if test "${gcc_gxx_without_sysroot}"; then
3569 if test x
${with_sysroot} != x
/; then
3570 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3572 gcc_gxx_include_dir_add_sysroot
=1
3577 # Check whether --with-cpp_install_dir was given.
3578 if test "${with_cpp_install_dir+set}" = set; then :
3579 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3580 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3581 elif test x
$withval != xno
; then
3582 cpp_install_dir
=$withval
3587 # We would like to our source tree to be readonly. However when releases or
3588 # pre-releases are generated, the flex/bison generated files as well as the
3589 # various formats of manuals need to be included along with the rest of the
3590 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3594 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3595 # Check whether --enable-generated-files-in-srcdir was given.
3596 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3597 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3599 generated_files_in_srcdir
=no
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3604 $as_echo "$generated_files_in_srcdir" >&6; }
3606 if test "$generated_files_in_srcdir" = "yes"; then
3613 # -------------------
3614 # Find default linker
3615 # -------------------
3619 # Check whether --with-gnu-ld was given.
3620 if test "${with_gnu_ld+set}" = set; then :
3621 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3627 # With pre-defined ld
3629 # Check whether --with-ld was given.
3630 if test "${with_ld+set}" = set; then :
3631 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3634 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3635 if test ! -x "$DEFAULT_LINKER"; then
3636 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3637 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3641 cat >>confdefs.h
<<_ACEOF
3642 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3648 $as_echo_n "checking whether a default linker was specified... " >&6; }
3649 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3650 if test x
"$gnu_ld_flag" = x
"no"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3652 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3655 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3662 # With demangler in GNU ld
3664 # Check whether --with-demangler-in-ld was given.
3665 if test "${with_demangler_in_ld+set}" = set; then :
3666 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3672 # ----------------------
3673 # Find default assembler
3674 # ----------------------
3678 # Check whether --with-gnu-as was given.
3679 if test "${with_gnu_as+set}" = set; then :
3680 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3687 # Check whether --with-as was given.
3688 if test "${with_as+set}" = set; then :
3689 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3692 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3693 if test ! -x "$DEFAULT_ASSEMBLER"; then
3694 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3695 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3699 cat >>confdefs.h
<<_ACEOF
3700 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3706 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3707 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3708 if test x
"$gas_flag" = x
"no"; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3710 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3713 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3724 # If a non-executable a.out is present (e.g. created by GNU as above even if
3725 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3726 # file, even when creating an executable, so an execution test fails.
3727 # Remove possible default executable files to avoid this.
3729 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3730 # Autoconf includes it.
3731 rm -f a.out a.exe b.out
3733 # Find the native compiler
3735 ac_cpp
='$CPP $CPPFLAGS'
3736 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3741 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3743 $as_echo_n "checking for $ac_word... " >&6; }
3744 if test "${ac_cv_prog_CC+set}" = set; then :
3745 $as_echo_n "(cached) " >&6
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC
="$CC" # Let the user override the test.
3750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir
=.
3755 for ac_exec_ext
in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 if test -n "$CC"; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770 $as_echo "$CC" >&6; }
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3778 if test -z "$ac_cv_prog_CC"; then
3780 # Extract the first word of "gcc", so it can be a program name with args.
3781 set dummy gcc
; ac_word
=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir
=.
3795 for ac_exec_ext
in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_ac_ct_CC
="gcc"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3816 if test "x$ac_ct_CC" = x
; then
3819 case $cross_compiling:$ac_tool_warned in
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned
=yes ;;
3831 if test -z "$CC"; then
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3834 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if test "${ac_cv_prog_CC+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC
="$CC" # Let the user override the test.
3843 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir
=.
3848 for ac_exec_ext
in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 if test -n "$CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863 $as_echo "$CC" >&6; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3872 if test -z "$CC"; then
3873 # Extract the first word of "cc", so it can be a program name with args.
3874 set dummy cc
; ac_word
=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if test "${ac_cv_prog_CC+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3880 if test -n "$CC"; then
3881 ac_cv_prog_CC
="$CC" # Let the user override the test.
3884 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir
=.
3889 for ac_exec_ext
in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3892 ac_prog_rejected
=yes
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 if test $ac_prog_rejected = yes; then
3904 # We found a bogon in the path, so make sure we never use it.
3905 set dummy
$ac_cv_prog_CC
3907 if test $# != 0; then
3908 # We chose a different compiler from the bogus one.
3909 # However, it has the same basename, so the bogon will be chosen
3910 # first if we set CC to just the basename; use the full file name.
3912 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3928 if test -z "$CC"; then
3929 if test -n "$ac_tool_prefix"; then
3930 for ac_prog
in cl.exe
3932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3933 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3935 $as_echo_n "checking for $ac_word... " >&6; }
3936 if test "${ac_cv_prog_CC+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3939 if test -n "$CC"; then
3940 ac_cv_prog_CC
="$CC" # Let the user override the test.
3942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir
=.
3947 for ac_exec_ext
in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960 if test -n "$CC"; then
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962 $as_echo "$CC" >&6; }
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965 $as_echo "no" >&6; }
3969 test -n "$CC" && break
3972 if test -z "$CC"; then
3974 for ac_prog
in cl.exe
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy
$ac_prog; ac_word
=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3983 if test -n "$ac_ct_CC"; then
3984 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir
=.
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3993 ac_cv_prog_ac_ct_CC
="$ac_prog"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4004 if test -n "$ac_ct_CC"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4006 $as_echo "$ac_ct_CC" >&6; }
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4013 test -n "$ac_ct_CC" && break
4016 if test "x$ac_ct_CC" = x
; then
4019 case $cross_compiling:$ac_tool_warned in
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned
=yes ;;
4032 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4034 as_fn_error
"no acceptable C compiler found in \$PATH
4035 See \`config.log' for more details." "$LINENO" 5; }
4037 # Provide some information about the compiler.
4038 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4041 for ac_option
in --version -v -V -qversion; do
4042 { { ac_try
="$ac_compiler $ac_option >&5"
4044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4048 $as_echo "$ac_try_echo"; } >&5
4049 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4051 if test -s conftest.err; then
4053 ... rest of stderr output deleted ...
4054 10q' conftest.err >conftest.er1
4055 cat conftest.er1 >&5
4056 rm -f conftest.er1 conftest.err
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4073 ac_clean_files_save=$ac_clean_files
4074 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4075 # Try to create an executable without -o first, disregard a.out.
4076 # It will help us diagnose broken compilers, and finding out an intuition
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4079 $as_echo_n "checking for C compiler default output file name... " >&6; }
4080 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4082 # The possible output files:
4083 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4086 for ac_file in $ac_files
4089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4095 if { { ac_try="$ac_link_default"
4097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4098 *) ac_try_echo
=$ac_try;;
4100 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_link_default") 2>&5
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4107 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4108 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4109 # so that the user can short-circuit this test for compilers unknown to
4111 for ac_file
in $ac_files ''
4113 test -f "$ac_file" ||
continue
4115 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4118 # We found the default executable, but exeext='' is most
4122 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4124 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4126 # We set ac_cv_exeext here because the later test for it is not
4127 # safe: cross compilers may not add the suffix if given an `-o'
4128 # argument, so we may need to know it at that point already.
4129 # Even if this section looks crufty: it has the advantage of
4136 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4142 $as_echo "$ac_file" >&6; }
4143 if test -z "$ac_file"; then :
4144 $as_echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.
$ac_ext >&5
4147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4149 { as_fn_set_status
77
4150 as_fn_error
"C compiler cannot create executables
4151 See \`config.log' for more details." "$LINENO" 5; }; }
4153 ac_exeext
=$ac_cv_exeext
4155 # Check that the compiler produces executables we can run. If not, either
4156 # the compiler is broken, or we cross compile.
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4158 $as_echo_n "checking whether the C compiler works... " >&6; }
4159 # If not cross compiling, check that we can run a simple program.
4160 if test "$cross_compiling" != yes; then
4161 if { ac_try
='./$ac_file'
4162 { { case "(($ac_try" in
4163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4167 $as_echo "$ac_try_echo"; } >&5
4168 (eval "$ac_try") 2>&5
4170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4171 test $ac_status = 0; }; }; then
4174 if test "$cross_compiling" = maybe; then
4177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4179 as_fn_error "cannot run C compiled programs.
4180 If you meant to cross compile
, use \
`--host'.
4181 See \`config.log
' for more details." "$LINENO" 5; }
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4186 $as_echo "yes" >&6; }
4188 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4189 ac_clean_files=$ac_clean_files_save
4190 # Check that the compiler produces executables we can run. If not, either
4191 # the compiler is broken, or we cross compile.
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4193 $as_echo_n "checking whether we are cross compiling... " >&6; }
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4195 $as_echo "$cross_compiling" >&6; }
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4198 $as_echo_n "checking for suffix of executables... " >&6; }
4199 if { { ac_try="$ac_link"
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_link") 2>&5
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; then :
4210 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4211 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4212 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4214 for ac_file
in conftest.exe conftest conftest.
*; do
4215 test -f "$ac_file" ||
continue
4217 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4218 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4226 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4227 See \`config.log' for more details." "$LINENO" 5; }
4229 rm -f conftest
$ac_cv_exeext
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4231 $as_echo "$ac_cv_exeext" >&6; }
4233 rm -f conftest.
$ac_ext
4234 EXEEXT
=$ac_cv_exeext
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4237 $as_echo_n "checking for suffix of object files... " >&6; }
4238 if test "${ac_cv_objext+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4252 rm -f conftest.o conftest.obj
4253 if { { ac_try
="$ac_compile"
4255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4256 *) ac_try_echo=$ac_try;;
4258 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4259 $as_echo "$ac_try_echo"; } >&5
4260 (eval "$ac_compile") 2>&5
4262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4263 test $ac_status = 0; }; then :
4264 for ac_file in conftest.o conftest.obj conftest.*; do
4265 test -f "$ac_file" || continue;
4267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4278 as_fn_error "cannot compute suffix of object files
: cannot compile
4279 See \
`config.log' for more details." "$LINENO" 5; }
4281 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4284 $as_echo "$ac_cv_objext" >&6; }
4285 OBJEXT=$ac_cv_objext
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4288 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4289 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4306 if ac_fn_c_try_compile "$LINENO"; then :
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4316 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4317 if test $ac_compiler_gnu = yes; then
4322 ac_test_CFLAGS=${CFLAGS+set}
4323 ac_save_CFLAGS=$CFLAGS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4325 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4326 if test "${ac_cv_prog_cc_g+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4329 ac_save_c_werror_flag=$ac_c_werror_flag
4330 ac_c_werror_flag=yes
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4344 if ac_fn_c_try_compile "$LINENO"; then :
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4359 if ac_fn_c_try_compile "$LINENO"; then :
4362 ac_c_werror_flag=$ac_save_c_werror_flag
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4375 if ac_fn_c_try_compile "$LINENO"; then :
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_c_werror_flag=$ac_save_c_werror_flag
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4386 $as_echo "$ac_cv_prog_cc_g" >&6; }
4387 if test "$ac_test_CFLAGS" = set; then
4388 CFLAGS=$ac_save_CFLAGS
4389 elif test $ac_cv_prog_cc_g = yes; then
4390 if test "$GCC" = yes; then
4396 if test "$GCC" = yes; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4403 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4404 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4407 ac_cv_prog_cc_c89=no
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4413 #include <sys/types.h>
4414 #include <sys/stat.h>
4415 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4416 struct buf { int x; };
4417 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4418 static char *e (p, i)
4424 static char *f (char * (*g) (char **, int), char **p, ...)
4429 s = g (p, va_arg (v,int));
4434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4435 function prototypes and stuff, but not '\xHH' hex character constants.
4436 These don't provoke an error unfortunately, instead are silently treated
4437 as 'x'. The following induces an error, until -std is added to get
4438 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4439 array size at least. It's necessary to write '\x00'==0 to get something
4440 that's true only with -std. */
4441 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4444 inside strings and character constants. */
4446 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4448 int test (int i, double x);
4449 struct s1 {int (*f) (int a);};
4450 struct s2 {int (*f) (double a);};
4451 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4457 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4462 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4463 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4465 CC="$ac_save_CC $ac_arg"
4466 if ac_fn_c_try_compile "$LINENO"; then :
4467 ac_cv_prog_cc_c89=$ac_arg
4469 rm -f core conftest.err conftest.$ac_objext
4470 test "x$ac_cv_prog_cc_c89" != "xno" && break
4472 rm -f conftest.$ac_ext
4477 case "x$ac_cv_prog_cc_c89" in
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4480 $as_echo "none needed" >&6; } ;;
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4483 $as_echo "unsupported" >&6; } ;;
4485 CC="$CC $ac_cv_prog_cc_c89"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4487 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4489 if test "x$ac_cv_prog_cc_c89" != xno; then :
4494 ac_cpp='$CPP $CPPFLAGS'
4495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4500 ac_cpp='$CXXCPP $CPPFLAGS'
4501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4504 if test -z "$CXX"; then
4505 if test -n "$CCC"; then
4508 if test -n "$ac_tool_prefix"; then
4509 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4511 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4512 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_CXX+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4518 if test -n "$CXX"; then
4519 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 if test -n "$CXX"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4541 $as_echo "$CXX" >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4548 test -n "$CXX" && break
4551 if test -z "$CXX"; then
4553 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4560 $as_echo_n "(cached) " >&6
4562 if test -n "$ac_ct_CXX"; then
4563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_ac_ct_CXX="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4583 if test -n "$ac_ct_CXX"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4585 $as_echo "$ac_ct_CXX" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$ac_ct_CXX" && break
4595 if test "x$ac_ct_CXX" = x; then
4598 case $cross_compiling:$ac_tool_warned in
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4602 ac_tool_warned=yes ;;
4610 # Provide some information about the compiler.
4611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4614 for ac_option in --version -v -V -qversion; do
4615 { { ac_try="$ac_compiler $ac_option >&5"
4617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4618 *) ac_try_echo
=$ac_try;;
4620 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4624 if test -s conftest.err
; then
4626 ... rest of stderr output deleted ...
4627 10q' conftest.err
>conftest.er1
4628 cat conftest.er1
>&5
4629 rm -f conftest.er1 conftest.err
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4636 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4637 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4654 if ac_fn_cxx_try_compile
"$LINENO"; then :
4659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4660 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4664 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4665 if test $ac_compiler_gnu = yes; then
4670 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4671 ac_save_CXXFLAGS
=$CXXFLAGS
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4673 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4674 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4675 $as_echo_n "(cached) " >&6
4677 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4678 ac_cxx_werror_flag
=yes
4681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4692 if ac_fn_cxx_try_compile
"$LINENO"; then :
4693 ac_cv_prog_cxx_g
=yes
4696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4707 if ac_fn_cxx_try_compile
"$LINENO"; then :
4710 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4723 if ac_fn_cxx_try_compile
"$LINENO"; then :
4724 ac_cv_prog_cxx_g
=yes
4726 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4731 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4734 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4735 if test "$ac_test_CXXFLAGS" = set; then
4736 CXXFLAGS
=$ac_save_CXXFLAGS
4737 elif test $ac_cv_prog_cxx_g = yes; then
4738 if test "$GXX" = yes; then
4744 if test "$GXX" = yes; then
4751 ac_cpp
='$CPP $CPPFLAGS'
4752 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4753 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4754 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4759 if test -n "$ac_tool_prefix"; then
4760 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4761 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4767 if test -n "$GNATBIND"; then
4768 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4774 test -z "$as_dir" && as_dir
=.
4775 for ac_exec_ext
in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4777 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 GNATBIND
=$ac_cv_prog_GNATBIND
4788 if test -n "$GNATBIND"; then
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4790 $as_echo "$GNATBIND" >&6; }
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793 $as_echo "no" >&6; }
4798 if test -z "$ac_cv_prog_GNATBIND"; then
4799 ac_ct_GNATBIND
=$GNATBIND
4800 # Extract the first word of "gnatbind", so it can be a program name with args.
4801 set dummy gnatbind
; ac_word
=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4807 if test -n "$ac_ct_GNATBIND"; then
4808 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4814 test -z "$as_dir" && as_dir
=.
4815 for ac_exec_ext
in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4828 if test -n "$ac_ct_GNATBIND"; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4830 $as_echo "$ac_ct_GNATBIND" >&6; }
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4836 if test "x$ac_ct_GNATBIND" = x
; then
4839 case $cross_compiling:$ac_tool_warned in
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843 ac_tool_warned
=yes ;;
4845 GNATBIND
=$ac_ct_GNATBIND
4848 GNATBIND
="$ac_cv_prog_GNATBIND"
4851 if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4853 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855 $as_echo_n "checking for $ac_word... " >&6; }
4856 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4859 if test -n "$GNATMAKE"; then
4860 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4866 test -z "$as_dir" && as_dir
=.
4867 for ac_exec_ext
in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 GNATMAKE
=$ac_cv_prog_GNATMAKE
4880 if test -n "$GNATMAKE"; then
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4882 $as_echo "$GNATMAKE" >&6; }
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4890 if test -z "$ac_cv_prog_GNATMAKE"; then
4891 ac_ct_GNATMAKE
=$GNATMAKE
4892 # Extract the first word of "gnatmake", so it can be a program name with args.
4893 set dummy gnatmake
; ac_word
=$2
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895 $as_echo_n "checking for $ac_word... " >&6; }
4896 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
4899 if test -n "$ac_ct_GNATMAKE"; then
4900 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir
=.
4907 for ac_exec_ext
in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4920 if test -n "$ac_ct_GNATMAKE"; then
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4922 $as_echo "$ac_ct_GNATMAKE" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925 $as_echo "no" >&6; }
4928 if test "x$ac_ct_GNATMAKE" = x
; then
4931 case $cross_compiling:$ac_tool_warned in
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935 ac_tool_warned
=yes ;;
4937 GNATMAKE
=$ac_ct_GNATMAKE
4940 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4944 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4945 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
4948 cat >conftest.adb
<<EOF
4949 procedure conftest is begin null; end conftest;
4951 acx_cv_cc_gcc_supports_ada
=no
4952 # There is a bug in old released versions of GCC which causes the
4953 # driver to exit successfully when the appropriate language module
4954 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4955 # Therefore we must check for the error message as well as an
4956 # unsuccessful exit.
4957 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4958 # given a .adb file, but produce no object file. So we must check
4959 # if an object file was really produced to guard against this.
4960 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4961 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4962 acx_cv_cc_gcc_supports_ada
=yes
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4967 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4969 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4976 # Do configure tests with the C++ compiler, since that's what we build with.
4978 ac_cpp
='$CXXCPP $CPPFLAGS'
4979 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4980 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4981 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4984 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4985 # optimizations to be activated explicitly by the toplevel.
4987 */prev-gcc
/xgcc
*) ;;
4988 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4989 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4994 # Determine PICFLAG for target gnatlib.
5000 # PIC is the default on some targets or must not be used.
5002 # For darwin, common symbols are not allowed in MH_DYLIB files
5004 # If we are using a compiler supporting mdynamic-no-pic
5005 # and the option has been tested as safe to add, then cancel
5006 # it here, since the code generated is incompatible with shared
5008 *-mdynamic-no-pic*) PICFLAG_FOR_TARGET
='-fno-common -mno-dynamic-no-pic' ;;
5009 *) PICFLAG_FOR_TARGET
=-fno-common ;;
5013 # PIC is the default.
5016 # PIC is the default for 64-bit PA HP-UX.
5018 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
5020 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
5022 i
[34567]86-*-interix[3-9]*)
5023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5024 # Instead, we relocate shared libraries at runtime.
5026 i
[34567]86-*-nto-qnx*)
5027 # QNX uses GNU C++, but need to define -shared option too, otherwise
5029 PICFLAG_FOR_TARGET
='-fPIC -shared'
5031 i
[34567]86-pc-msdosdjgpp*)
5032 # DJGPP does not support shared libraries at all.
5035 # On IA64 HP-UX, PIC is the default but the pic flag
5036 # sets the default TLS model and affects inlining.
5037 PICFLAG_FOR_TARGET
=-fPIC
5040 # PIC is the default.
5042 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
5043 # All AIX code is PIC.
5046 # Some targets support both -fPIC and -fpic, but prefer the latter.
5048 i
[34567]86-*-* | x86_64-
*-*)
5049 PICFLAG_FOR_TARGET
=-fpic
5051 # FIXME: Override -fPIC default in libgcc only?
5052 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
5053 PICFLAG_FOR_TARGET
=-fpic
5055 # FIXME: Simplify to sh*-*-netbsd*?
5056 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
5057 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
5058 PICFLAG_FOR_TARGET
=-fpic
5060 # Default to -fPIC unless specified otherwise.
5062 PICFLAG_FOR_TARGET
=-fPIC
5066 # If the user explicitly uses -fpic/-fPIC, keep that.
5067 case "${CFLAGS_FOR_TARGET}" in
5069 PICFLAG_FOR_TARGET
=-fpic
5072 PICFLAG_FOR_TARGET
=-fPIC
5078 # -------------------------
5079 # Check C compiler features
5080 # -------------------------
5084 ac_cpp
='$CXXCPP $CPPFLAGS'
5085 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5089 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5090 if test -z "$CXXCPP"; then
5091 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5094 # Double quotes because CXXCPP needs to be expanded
5095 for CXXCPP
in "$CXX -E" "/lib/cpp"
5098 for ac_cxx_preproc_warn_flag
in '' yes
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5109 # include <limits.h>
5111 # include <assert.h>
5115 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5118 # Broken: fails on valid input.
5121 rm -f conftest.err conftest.
$ac_ext
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5129 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5130 # Broken: success on invalid input.
5133 # Passes both tests.
5137 rm -f conftest.err conftest.
$ac_ext
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.err conftest.
$ac_ext
5142 if $ac_preproc_ok; then :
5147 ac_cv_prog_CXXCPP
=$CXXCPP
5150 CXXCPP
=$ac_cv_prog_CXXCPP
5152 ac_cv_prog_CXXCPP
=$CXXCPP
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5155 $as_echo "$CXXCPP" >&6; }
5157 for ac_cxx_preproc_warn_flag
in '' yes
5159 # Use a header file that comes with gcc, so configuring glibc
5160 # with a fresh cross-compiler works.
5161 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 # <limits.h> exists even on freestanding compilers.
5163 # On the NeXT, cc -E runs the code through the compiler's parser,
5164 # not just through cpp. "Syntax error" is here to catch this case.
5165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5168 # include <limits.h>
5170 # include <assert.h>
5174 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5177 # Broken: fails on valid input.
5180 rm -f conftest.err conftest.
$ac_ext
5182 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how.
5184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <ac_nonexistent.h>
5188 if ac_fn_cxx_try_cpp
"$LINENO"; then :
5189 # Broken: success on invalid input.
5192 # Passes both tests.
5196 rm -f conftest.err conftest.
$ac_ext
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.err conftest.
$ac_ext
5201 if $ac_preproc_ok; then :
5204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5206 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
5207 See \`config.log' for more details." "$LINENO" 5; }
5211 ac_cpp
='$CXXCPP $CPPFLAGS'
5212 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5218 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5219 if test "${ac_cv_path_GREP+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5222 if test -z "$GREP"; then
5223 ac_path_GREP_found
=false
5224 # Loop through the user's path and test for each of PROGNAME-LIST
5225 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5226 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5229 test -z "$as_dir" && as_dir
=.
5230 for ac_prog
in grep ggrep
; do
5231 for ac_exec_ext
in '' $ac_executable_extensions; do
5232 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5233 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5234 # Check for GNU ac_path_GREP and select it if it is found.
5235 # Check for GNU $ac_path_GREP
5236 case `"$ac_path_GREP" --version 2>&1` in
5238 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5241 $as_echo_n 0123456789 >"conftest.in"
5244 cat "conftest.in" "conftest.in" >"conftest.tmp"
5245 mv "conftest.tmp" "conftest.in"
5246 cp "conftest.in" "conftest.nl"
5247 $as_echo 'GREP' >> "conftest.nl"
5248 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5249 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5250 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5251 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5252 # Best one so far, save it but keep looking for a better one
5253 ac_cv_path_GREP
="$ac_path_GREP"
5254 ac_path_GREP_max
=$ac_count
5256 # 10*(2^10) chars as input seems more than enough
5257 test $ac_count -gt 10 && break
5259 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5262 $ac_path_GREP_found && break 3
5267 if test -z "$ac_cv_path_GREP"; then
5268 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5271 ac_cv_path_GREP
=$GREP
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5276 $as_echo "$ac_cv_path_GREP" >&6; }
5277 GREP
="$ac_cv_path_GREP"
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5281 $as_echo_n "checking for egrep... " >&6; }
5282 if test "${ac_cv_path_EGREP+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5285 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5286 then ac_cv_path_EGREP
="$GREP -E"
5288 if test -z "$EGREP"; then
5289 ac_path_EGREP_found
=false
5290 # Loop through the user's path and test for each of PROGNAME-LIST
5291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5292 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5295 test -z "$as_dir" && as_dir
=.
5296 for ac_prog
in egrep; do
5297 for ac_exec_ext
in '' $ac_executable_extensions; do
5298 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5299 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5300 # Check for GNU ac_path_EGREP and select it if it is found.
5301 # Check for GNU $ac_path_EGREP
5302 case `"$ac_path_EGREP" --version 2>&1` in
5304 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5307 $as_echo_n 0123456789 >"conftest.in"
5310 cat "conftest.in" "conftest.in" >"conftest.tmp"
5311 mv "conftest.tmp" "conftest.in"
5312 cp "conftest.in" "conftest.nl"
5313 $as_echo 'EGREP' >> "conftest.nl"
5314 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5315 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5316 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5317 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5318 # Best one so far, save it but keep looking for a better one
5319 ac_cv_path_EGREP
="$ac_path_EGREP"
5320 ac_path_EGREP_max
=$ac_count
5322 # 10*(2^10) chars as input seems more than enough
5323 test $ac_count -gt 10 && break
5325 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5328 $ac_path_EGREP_found && break 3
5333 if test -z "$ac_cv_path_EGREP"; then
5334 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5337 ac_cv_path_EGREP
=$EGREP
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5343 $as_echo "$ac_cv_path_EGREP" >&6; }
5344 EGREP
="$ac_cv_path_EGREP"
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5348 $as_echo_n "checking for ANSI C header files... " >&6; }
5349 if test "${ac_cv_header_stdc+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5367 if ac_fn_cxx_try_compile
"$LINENO"; then :
5368 ac_cv_header_stdc
=yes
5370 ac_cv_header_stdc
=no
5372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5374 if test $ac_cv_header_stdc = yes; then
5375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5376 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5377 /* end confdefs.h. */
5381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5382 $EGREP "memchr" >/dev
/null
2>&1; then :
5385 ac_cv_header_stdc
=no
5391 if test $ac_cv_header_stdc = yes; then
5392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "free" >/dev
/null
2>&1; then :
5402 ac_cv_header_stdc
=no
5408 if test $ac_cv_header_stdc = yes; then
5409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5410 if test "$cross_compiling" = yes; then :
5413 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5417 #if ((' ' & 0x0FF) == 0x020)
5418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5421 # define ISLOWER(c) \
5422 (('a' <= (c) && (c) <= 'i') \
5423 || ('j' <= (c) && (c) <= 'r') \
5424 || ('s' <= (c) && (c) <= 'z'))
5425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5433 for (i = 0; i < 256; i++)
5434 if (XOR (islower (i), ISLOWER (i))
5435 || toupper (i) != TOUPPER (i))
5440 if ac_fn_cxx_try_run
"$LINENO"; then :
5443 ac_cv_header_stdc
=no
5445 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5446 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5452 $as_echo "$ac_cv_header_stdc" >&6; }
5453 if test $ac_cv_header_stdc = yes; then
5455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5459 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5460 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5461 inttypes.h stdint.h unistd.h
5463 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5464 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5466 eval as_val
=\$
$as_ac_Header
5467 if test "x$as_val" = x
""yes; then :
5468 cat >>confdefs.h
<<_ACEOF
5469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5478 ac_fn_cxx_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5479 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5486 if test "$MINIX" = yes; then
5488 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5491 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5494 $as_echo "#define _MINIX 1" >>confdefs.h
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5500 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5501 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h. */
5507 # define __EXTENSIONS__ 1
5508 $ac_includes_default
5517 if ac_fn_cxx_try_compile
"$LINENO"; then :
5518 ac_cv_safe_to_define___extensions__
=yes
5520 ac_cv_safe_to_define___extensions__
=no
5522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5525 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5526 test $ac_cv_safe_to_define___extensions__ = yes &&
5527 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5529 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5531 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5533 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5535 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5539 ac_cpp
='$CPP $CPPFLAGS'
5540 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5545 # On Suns, sometimes $CPP names a directory.
5546 if test -n "$CPP" && test -d "$CPP"; then
5549 if test -z "$CPP"; then
5550 if test "${ac_cv_prog_CPP+set}" = set; then :
5551 $as_echo_n "(cached) " >&6
5553 # Double quotes because CPP needs to be expanded
5554 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5557 for ac_c_preproc_warn_flag
in '' yes
5559 # Use a header file that comes with gcc, so configuring glibc
5560 # with a fresh cross-compiler works.
5561 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5562 # <limits.h> exists even on freestanding compilers.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
5565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5568 # include <limits.h>
5570 # include <assert.h>
5574 if ac_fn_c_try_cpp
"$LINENO"; then :
5577 # Broken: fails on valid input.
5580 rm -f conftest.err conftest.
$ac_ext
5582 # OK, works on sane cases. Now check whether nonexistent headers
5583 # can be detected and how.
5584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5586 #include <ac_nonexistent.h>
5588 if ac_fn_c_try_cpp
"$LINENO"; then :
5589 # Broken: success on invalid input.
5592 # Passes both tests.
5596 rm -f conftest.err conftest.
$ac_ext
5599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5600 rm -f conftest.err conftest.
$ac_ext
5601 if $ac_preproc_ok; then :
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5614 $as_echo "$CPP" >&6; }
5616 for ac_c_preproc_warn_flag
in '' yes
5618 # Use a header file that comes with gcc, so configuring glibc
5619 # with a fresh cross-compiler works.
5620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5621 # <limits.h> exists even on freestanding compilers.
5622 # On the NeXT, cc -E runs the code through the compiler's parser,
5623 # not just through cpp. "Syntax error" is here to catch this case.
5624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5627 # include <limits.h>
5629 # include <assert.h>
5633 if ac_fn_c_try_cpp
"$LINENO"; then :
5636 # Broken: fails on valid input.
5639 rm -f conftest.err conftest.
$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <ac_nonexistent.h>
5647 if ac_fn_c_try_cpp
"$LINENO"; then :
5648 # Broken: success on invalid input.
5651 # Passes both tests.
5655 rm -f conftest.err conftest.
$ac_ext
5658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5659 rm -f conftest.err conftest.
$ac_ext
5660 if $ac_preproc_ok; then :
5663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5665 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5666 See \`config.log' for more details." "$LINENO" 5; }
5670 ac_cpp
='$CXXCPP $CPPFLAGS'
5671 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5676 $as_echo_n "checking for inline... " >&6; }
5677 if test "${ac_cv_c_inline+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5681 for ac_kw
in inline __inline__ __inline
; do
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5686 static $ac_kw foo_t static_foo () {return 0; }
5687 $ac_kw foo_t foo () {return 0; }
5691 if ac_fn_cxx_try_compile
"$LINENO"; then :
5692 ac_cv_c_inline
=$ac_kw
5694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5695 test "$ac_cv_c_inline" != no
&& break
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5700 $as_echo "$ac_cv_c_inline" >&6; }
5702 case $ac_cv_c_inline in
5705 case $ac_cv_c_inline in
5707 *) ac_val
=$ac_cv_c_inline;;
5709 cat >>confdefs.h
<<_ACEOF
5711 #define inline $ac_val
5718 # Check whether --enable-largefile was given.
5719 if test "${enable_largefile+set}" = set; then :
5720 enableval
=$enable_largefile;
5723 if test "$enable_largefile" != no
; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5726 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5727 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5730 ac_cv_sys_largefile_CC
=no
5731 if test "$GCC" != yes; then
5734 # IRIX 6.2 and later do not support large files by default,
5735 # so use the C compiler's -n32 option if that helps.
5736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5738 #include <sys/types.h>
5739 /* Check that off_t can represent 2**63 - 1 correctly.
5740 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5741 since some C++ compilers masquerading as C compilers
5742 incorrectly reject 9223372036854775807. */
5743 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5744 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5745 && LARGE_OFF_T % 2147483647 == 1)
5755 if ac_fn_cxx_try_compile
"$LINENO"; then :
5758 rm -f core conftest.err conftest.
$ac_objext
5760 if ac_fn_cxx_try_compile
"$LINENO"; then :
5761 ac_cv_sys_largefile_CC
=' -n32'; break
5763 rm -f core conftest.err conftest.
$ac_objext
5767 rm -f conftest.
$ac_ext
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5771 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5772 if test "$ac_cv_sys_largefile_CC" != no
; then
5773 CC
=$CC$ac_cv_sys_largefile_CC
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5777 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5778 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5779 $as_echo_n "(cached) " >&6
5782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 #include <sys/types.h>
5785 /* Check that off_t can represent 2**63 - 1 correctly.
5786 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5787 since some C++ compilers masquerading as C compilers
5788 incorrectly reject 9223372036854775807. */
5789 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5791 && LARGE_OFF_T % 2147483647 == 1)
5801 if ac_fn_cxx_try_compile
"$LINENO"; then :
5802 ac_cv_sys_file_offset_bits
=no
; break
5804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 #define _FILE_OFFSET_BITS 64
5808 #include <sys/types.h>
5809 /* Check that off_t can represent 2**63 - 1 correctly.
5810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5811 since some C++ compilers masquerading as C compilers
5812 incorrectly reject 9223372036854775807. */
5813 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5815 && LARGE_OFF_T % 2147483647 == 1)
5825 if ac_fn_cxx_try_compile
"$LINENO"; then :
5826 ac_cv_sys_file_offset_bits
=64; break
5828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5829 ac_cv_sys_file_offset_bits
=unknown
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5834 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5835 case $ac_cv_sys_file_offset_bits in #(
5838 cat >>confdefs.h
<<_ACEOF
5839 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5844 if test $ac_cv_sys_file_offset_bits = unknown
; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5846 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5847 if test "${ac_cv_sys_large_files+set}" = set; then :
5848 $as_echo_n "(cached) " >&6
5851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 #include <sys/types.h>
5854 /* Check that off_t can represent 2**63 - 1 correctly.
5855 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5856 since some C++ compilers masquerading as C compilers
5857 incorrectly reject 9223372036854775807. */
5858 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5859 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5860 && LARGE_OFF_T % 2147483647 == 1)
5870 if ac_fn_cxx_try_compile
"$LINENO"; then :
5871 ac_cv_sys_large_files
=no
; break
5873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5876 #define _LARGE_FILES 1
5877 #include <sys/types.h>
5878 /* Check that off_t can represent 2**63 - 1 correctly.
5879 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5880 since some C++ compilers masquerading as C compilers
5881 incorrectly reject 9223372036854775807. */
5882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5883 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5884 && LARGE_OFF_T % 2147483647 == 1)
5894 if ac_fn_cxx_try_compile
"$LINENO"; then :
5895 ac_cv_sys_large_files
=1; break
5897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5898 ac_cv_sys_large_files
=unknown
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5903 $as_echo "$ac_cv_sys_large_files" >&6; }
5904 case $ac_cv_sys_large_files in #(
5907 cat >>confdefs.h
<<_ACEOF
5908 #define _LARGE_FILES $ac_cv_sys_large_files
5917 # sizeof(char) is 1 by definition.
5918 # The cast to long int works around a bug in the HP C Compiler
5919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5921 # This bug is HP SR number 8606223364.
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5923 $as_echo_n "checking size of void *... " >&6; }
5924 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5927 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5930 if test "$ac_cv_type_void_p" = yes; then
5931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 { as_fn_set_status
77
5934 as_fn_error
"cannot compute sizeof (void *)
5935 See \`config.log' for more details." "$LINENO" 5; }; }
5937 ac_cv_sizeof_void_p
=0
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5943 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5947 cat >>confdefs.h
<<_ACEOF
5948 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5952 # The cast to long int works around a bug in the HP C Compiler
5953 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5954 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5955 # This bug is HP SR number 8606223364.
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5957 $as_echo_n "checking size of short... " >&6; }
5958 if test "${ac_cv_sizeof_short+set}" = set; then :
5959 $as_echo_n "(cached) " >&6
5961 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5964 if test "$ac_cv_type_short" = yes; then
5965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5967 { as_fn_set_status
77
5968 as_fn_error
"cannot compute sizeof (short)
5969 See \`config.log' for more details." "$LINENO" 5; }; }
5971 ac_cv_sizeof_short
=0
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5977 $as_echo "$ac_cv_sizeof_short" >&6; }
5981 cat >>confdefs.h
<<_ACEOF
5982 #define SIZEOF_SHORT $ac_cv_sizeof_short
5986 # The cast to long int works around a bug in the HP C Compiler
5987 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5988 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5989 # This bug is HP SR number 8606223364.
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5991 $as_echo_n "checking size of int... " >&6; }
5992 if test "${ac_cv_sizeof_int+set}" = set; then :
5993 $as_echo_n "(cached) " >&6
5995 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5998 if test "$ac_cv_type_int" = yes; then
5999 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6001 { as_fn_set_status
77
6002 as_fn_error
"cannot compute sizeof (int)
6003 See \`config.log' for more details." "$LINENO" 5; }; }
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
6011 $as_echo "$ac_cv_sizeof_int" >&6; }
6015 cat >>confdefs.h
<<_ACEOF
6016 #define SIZEOF_INT $ac_cv_sizeof_int
6020 # The cast to long int works around a bug in the HP C Compiler
6021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6023 # This bug is HP SR number 8606223364.
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6025 $as_echo_n "checking size of long... " >&6; }
6026 if test "${ac_cv_sizeof_long+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6029 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6032 if test "$ac_cv_type_long" = yes; then
6033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6035 { as_fn_set_status
77
6036 as_fn_error
"cannot compute sizeof (long)
6037 See \`config.log' for more details." "$LINENO" 5; }; }
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6045 $as_echo "$ac_cv_sizeof_long" >&6; }
6049 cat >>confdefs.h
<<_ACEOF
6050 #define SIZEOF_LONG $ac_cv_sizeof_long
6054 ac_fn_cxx_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
6055 if test "x$ac_cv_type_long_long" = x
""yes; then :
6057 cat >>confdefs.h
<<_ACEOF
6058 #define HAVE_LONG_LONG 1
6061 # The cast to long int works around a bug in the HP C Compiler
6062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6064 # This bug is HP SR number 8606223364.
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6066 $as_echo_n "checking size of long long... " >&6; }
6067 if test "${ac_cv_sizeof_long_long+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6070 if ac_fn_cxx_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6073 if test "$ac_cv_type_long_long" = yes; then
6074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6076 { as_fn_set_status
77
6077 as_fn_error
"cannot compute sizeof (long long)
6078 See \`config.log' for more details." "$LINENO" 5; }; }
6080 ac_cv_sizeof_long_long
=0
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6086 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6090 cat >>confdefs.h
<<_ACEOF
6091 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6097 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
6098 case $ac_cv_c_int8_t in #(
6102 cat >>confdefs.h
<<_ACEOF
6103 #define int8_t $ac_cv_c_int8_t
6108 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
6109 case $ac_cv_c_int16_t in #(
6113 cat >>confdefs.h
<<_ACEOF
6114 #define int16_t $ac_cv_c_int16_t
6119 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
6120 case $ac_cv_c_int32_t in #(
6124 cat >>confdefs.h
<<_ACEOF
6125 #define int32_t $ac_cv_c_int32_t
6130 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
6131 case $ac_cv_c_int64_t in #(
6135 cat >>confdefs.h
<<_ACEOF
6136 #define int64_t $ac_cv_c_int64_t
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6143 $as_echo_n "checking for long long int... " >&6; }
6144 if test "${ac_cv_type_long_long_int+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6148 /* end confdefs.h. */
6150 /* For now, do not test the preprocessor; as of 2007 there are too many
6151 implementations with broken preprocessors. Perhaps this can
6152 be revisited in 2012. In the meantime, code should not expect
6153 #if to work with literals wider than 32 bits. */
6154 /* Test literals. */
6155 long long int ll = 9223372036854775807ll;
6156 long long int nll = -9223372036854775807LL;
6157 unsigned long long int ull = 18446744073709551615ULL;
6158 /* Test constant expressions. */
6159 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6161 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6167 /* Test availability of runtime routines for shift and division. */
6168 long long int llmax = 9223372036854775807ll;
6169 unsigned long long int ullmax = 18446744073709551615ull;
6170 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6171 | (llmax / ll) | (llmax % ll)
6172 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6173 | (ullmax / ull) | (ullmax % ull));
6179 if ac_fn_cxx_try_link
"$LINENO"; then :
6180 if test "$cross_compiling" = yes; then :
6181 ac_cv_type_long_long_int
=yes
6183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6184 /* end confdefs.h. */
6188 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6189 # define LLONG_MAX (HALF - 1 + HALF)
6194 long long int n = 1;
6198 long long int m = n << i;
6201 if (LLONG_MAX / 2 < m)
6209 if ac_fn_cxx_try_run
"$LINENO"; then :
6210 ac_cv_type_long_long_int
=yes
6212 ac_cv_type_long_long_int
=no
6214 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6215 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6219 ac_cv_type_long_long_int
=no
6221 rm -f core conftest.err conftest.
$ac_objext \
6222 conftest
$ac_exeext conftest.
$ac_ext
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6225 $as_echo "$ac_cv_type_long_long_int" >&6; }
6226 if test $ac_cv_type_long_long_int = yes; then
6228 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6234 ac_fn_cxx_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6235 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6237 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6240 test $ac_cv_type_long_long_int = yes \
6241 && ac_type
='long long int' \
6242 || ac_type
='long int'
6244 cat >>confdefs.h
<<_ACEOF
6245 #define intmax_t $ac_type
6252 ac_fn_cxx_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6253 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6255 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6258 for ac_type
in 'int' 'long int' 'long long int'; do
6259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 $ac_includes_default
6265 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6272 if ac_fn_cxx_try_compile
"$LINENO"; then :
6274 cat >>confdefs.h
<<_ACEOF
6275 #define intptr_t $ac_type
6280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6281 test -z "$ac_type" && break
6286 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6287 case $ac_cv_c_uint8_t in #(
6291 $as_echo "#define _UINT8_T 1" >>confdefs.h
6294 cat >>confdefs.h
<<_ACEOF
6295 #define uint8_t $ac_cv_c_uint8_t
6300 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6301 case $ac_cv_c_uint16_t in #(
6306 cat >>confdefs.h
<<_ACEOF
6307 #define uint16_t $ac_cv_c_uint16_t
6312 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6313 case $ac_cv_c_uint32_t in #(
6317 $as_echo "#define _UINT32_T 1" >>confdefs.h
6320 cat >>confdefs.h
<<_ACEOF
6321 #define uint32_t $ac_cv_c_uint32_t
6326 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6327 case $ac_cv_c_uint64_t in #(
6331 $as_echo "#define _UINT64_T 1" >>confdefs.h
6334 cat >>confdefs.h
<<_ACEOF
6335 #define uint64_t $ac_cv_c_uint64_t
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6342 $as_echo_n "checking for unsigned long long int... " >&6; }
6343 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h. */
6349 /* For now, do not test the preprocessor; as of 2007 there are too many
6350 implementations with broken preprocessors. Perhaps this can
6351 be revisited in 2012. In the meantime, code should not expect
6352 #if to work with literals wider than 32 bits. */
6353 /* Test literals. */
6354 long long int ll = 9223372036854775807ll;
6355 long long int nll = -9223372036854775807LL;
6356 unsigned long long int ull = 18446744073709551615ULL;
6357 /* Test constant expressions. */
6358 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6360 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6366 /* Test availability of runtime routines for shift and division. */
6367 long long int llmax = 9223372036854775807ll;
6368 unsigned long long int ullmax = 18446744073709551615ull;
6369 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6370 | (llmax / ll) | (llmax % ll)
6371 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6372 | (ullmax / ull) | (ullmax % ull));
6378 if ac_fn_cxx_try_link
"$LINENO"; then :
6379 ac_cv_type_unsigned_long_long_int
=yes
6381 ac_cv_type_unsigned_long_long_int
=no
6383 rm -f core conftest.err conftest.
$ac_objext \
6384 conftest
$ac_exeext conftest.
$ac_ext
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6387 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6388 if test $ac_cv_type_unsigned_long_long_int = yes; then
6390 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6396 ac_fn_cxx_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6397 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6399 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6402 test $ac_cv_type_unsigned_long_long_int = yes \
6403 && ac_type
='unsigned long long int' \
6404 || ac_type
='unsigned long int'
6406 cat >>confdefs.h
<<_ACEOF
6407 #define uintmax_t $ac_type
6414 ac_fn_cxx_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6415 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6417 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6420 for ac_type
in 'unsigned int' 'unsigned long int' \
6421 'unsigned long long int'; do
6422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6424 $ac_includes_default
6428 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6435 if ac_fn_cxx_try_compile
"$LINENO"; then :
6437 cat >>confdefs.h
<<_ACEOF
6438 #define uintptr_t $ac_type
6443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6444 test -z "$ac_type" && break
6461 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6462 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6465 # check what underlying integer type int64_t uses
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6467 $as_echo_n "checking for int64_t underlying type... " >&6; }
6468 if test "${ac_cv_int64_t_type+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6475 #ifdef HAVE_STDINT_H
6478 template <typename T> struct X { };
6480 struct X<long> { typedef long t; };
6490 if ac_fn_cxx_try_compile
"$LINENO"; then :
6491 ac_cv_int64_t_type
=long
6493 ac_cv_int64_t_type
="long long"
6495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6498 $as_echo "$ac_cv_int64_t_type" >&6; }
6499 if test "$ac_cv_int64_t_type" = "long"; then
6501 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6507 #ifdef HAVE_STDINT_H
6510 template <typename T> struct X { };
6512 struct X<long long> { typedef long long t; };
6522 if ac_fn_cxx_try_compile
"$LINENO"; then :
6525 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6530 # Check whether compiler is affected by placement new aliasing bug (PR 29286).
6531 # If the host compiler is affected by the bug, and we build with optimization
6532 # enabled (which happens e.g. when cross-compiling), the pool allocator may
6533 # get miscompiled. Use -fno-strict-aliasing to work around this problem.
6534 # Since there is no reliable feature check for the presence of this bug,
6535 # we simply use a GCC version number check. (This should never trigger for
6536 # stages 2 or 3 of a native bootstrap.)
6538 if test "$GCC" = yes; then
6539 saved_CXXFLAGS
="$CXXFLAGS"
6541 # The following test compilation will succeed if and only if $CXX accepts
6542 # -fno-strict-aliasing *and* is older than GCC 4.3.
6543 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX is affected by placement new aliasing bug" >&5
6545 $as_echo_n "checking whether $CXX is affected by placement new aliasing bug... " >&6; }
6546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6549 #if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
6550 #error compiler not affected by placement new aliasing bug
6554 if ac_fn_cxx_try_compile
"$LINENO"; then :
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6556 $as_echo "yes" >&6; }; aliasing_flags
='-fno-strict-aliasing'
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559 $as_echo "no" >&6; }
6561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6563 CXXFLAGS
="$saved_CXXFLAGS"
6569 # ---------------------
6570 # Warnings and checking
6571 # ---------------------
6573 # Check $CC warning features (if it's GCC).
6574 # We want to use -pedantic, but we don't want warnings about
6577 # * overlong strings
6578 # * C++11 narrowing conversions in { }
6579 # So, we only use -pedantic if we can disable those warnings.
6581 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6582 # Check whether --enable-build-format-warnings was given.
6583 if test "${enable_build_format_warnings+set}" = set; then :
6584 enableval
=$enable_build_format_warnings;
6586 enable_build_format_warnings
=yes
6589 if test $enable_build_format_warnings = no
; then :
6595 ac_cpp
='$CXXCPP $CPPFLAGS'
6596 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6601 save_CXXFLAGS
="$CXXFLAGS"
6602 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6603 # Do the check with the no- prefix removed since gcc silently
6604 # accepts any -Wno-* option on purpose
6605 case $real_option in
6606 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6607 *) option
=$real_option ;;
6609 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6612 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6613 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6614 $as_echo_n "(cached) " >&6
6617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6628 if ac_fn_cxx_try_compile
"$LINENO"; then :
6629 eval "$as_acx_Woption=yes"
6631 eval "$as_acx_Woption=no"
6633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6636 eval ac_res
=\$
$as_acx_Woption
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6638 $as_echo "$ac_res" >&6; }
6639 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6640 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6643 CXXFLAGS
="$save_CXXFLAGS"
6645 ac_cpp
='$CXXCPP $CPPFLAGS'
6646 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6647 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6648 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6653 ac_cpp
='$CPP $CPPFLAGS'
6654 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6655 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6656 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6659 save_CFLAGS
="$CFLAGS"
6660 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6661 # Do the check with the no- prefix removed since gcc silently
6662 # accepts any -Wno-* option on purpose
6663 case $real_option in
6664 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6665 *) option
=$real_option ;;
6667 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6670 $as_echo_n "checking whether $CC supports $option... " >&6; }
6671 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6672 $as_echo_n "(cached) " >&6
6675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6686 if ac_fn_c_try_compile
"$LINENO"; then :
6687 eval "$as_acx_Woption=yes"
6689 eval "$as_acx_Woption=no"
6691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6694 eval ac_res
=\$
$as_acx_Woption
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6696 $as_echo "$ac_res" >&6; }
6697 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6698 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6701 CFLAGS
="$save_CFLAGS"
6703 ac_cpp
='$CXXCPP $CPPFLAGS'
6704 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6705 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6706 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6710 ac_cpp
='$CXXCPP $CPPFLAGS'
6711 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6712 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6713 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6716 save_CXXFLAGS
="$CXXFLAGS"
6717 for real_option
in -Wmissing-format-attribute; do
6718 # Do the check with the no- prefix removed since gcc silently
6719 # accepts any -Wno-* option on purpose
6720 case $real_option in
6721 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6722 *) option
=$real_option ;;
6724 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6727 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6728 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6729 $as_echo_n "(cached) " >&6
6732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h. */
6743 if ac_fn_cxx_try_compile
"$LINENO"; then :
6744 eval "$as_acx_Woption=yes"
6746 eval "$as_acx_Woption=no"
6748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6751 eval ac_res
=\$
$as_acx_Woption
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6753 $as_echo "$ac_res" >&6; }
6754 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6755 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6758 CXXFLAGS
="$save_CXXFLAGS"
6760 ac_cpp
='$CXXCPP $CPPFLAGS'
6761 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6762 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6763 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6767 ac_cpp
='$CXXCPP $CPPFLAGS'
6768 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6772 save_CXXFLAGS
="$CXXFLAGS"
6773 for real_option
in -Woverloaded-virtual; do
6774 # Do the check with the no- prefix removed since gcc silently
6775 # accepts any -Wno-* option on purpose
6776 case $real_option in
6777 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6778 *) option
=$real_option ;;
6780 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6783 $as_echo_n "checking whether $CXX supports $option... " >&6; }
6784 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6785 $as_echo_n "(cached) " >&6
6788 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6799 if ac_fn_cxx_try_compile
"$LINENO"; then :
6800 eval "$as_acx_Woption=yes"
6802 eval "$as_acx_Woption=no"
6804 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6807 eval ac_res
=\$
$as_acx_Woption
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6809 $as_echo "$ac_res" >&6; }
6810 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6811 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6814 CXXFLAGS
="$save_CXXFLAGS"
6816 ac_cpp
='$CXXCPP $CPPFLAGS'
6817 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6823 ac_cpp
='$CPP $CPPFLAGS'
6824 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6825 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6829 save_CFLAGS
="$CFLAGS"
6830 for real_option
in -Wold-style-definition -Wc++-compat; do
6831 # Do the check with the no- prefix removed since gcc silently
6832 # accepts any -Wno-* option on purpose
6833 case $real_option in
6834 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6835 *) option
=$real_option ;;
6837 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6840 $as_echo_n "checking whether $CC supports $option... " >&6; }
6841 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6842 $as_echo_n "(cached) " >&6
6845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6856 if ac_fn_c_try_compile
"$LINENO"; then :
6857 eval "$as_acx_Woption=yes"
6859 eval "$as_acx_Woption=no"
6861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6864 eval ac_res
=\$
$as_acx_Woption
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6866 $as_echo "$ac_res" >&6; }
6867 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6868 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6871 CFLAGS
="$save_CFLAGS"
6873 ac_cpp
='$CXXCPP $CPPFLAGS'
6874 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6875 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6876 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6880 ac_cpp
='$CXXCPP $CPPFLAGS'
6881 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6885 # Do the check with the no- prefix removed from the warning options
6886 # since gcc silently accepts any -Wno-* option on purpose
6887 if test "$GXX" = yes; then :
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6889 $as_echo_n "checking whether $CXX supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6890 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6893 save_CXXFLAGS
="$CXXFLAGS"
6894 CXXFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6906 if ac_fn_cxx_try_compile
"$LINENO"; then :
6907 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6909 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6912 CXXFLAGS
="$save_CXXFLAGS"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6915 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6916 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6917 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6922 ac_cpp
='$CXXCPP $CPPFLAGS'
6923 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6924 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6925 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6929 ac_cpp
='$CXXCPP $CPPFLAGS'
6930 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6931 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6932 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6934 # Check whether --enable-werror-always was given.
6935 if test "${enable_werror_always+set}" = set; then :
6936 enableval
=$enable_werror_always;
6938 enable_werror_always
=no
6941 if test $enable_werror_always = yes; then :
6942 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6946 ac_cpp
='$CXXCPP $CPPFLAGS'
6947 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6948 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6949 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6953 # The above macros do nothing if the compiler is not GCC. However, the
6954 # Makefile has more goo to add other flags, so these variables are used
6955 # to enable warnings only for GCC.
6958 if test "x$GCC" = "xyes"; then
6959 warn_cflags
='$(GCC_WARN_CFLAGS)'
6960 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6965 # Disable exceptions and RTTI if building with g++
6967 ac_cpp
='$CPP $CPPFLAGS'
6968 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6973 save_CFLAGS
="$CFLAGS"
6974 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6975 # Do the check with the no- prefix removed since gcc silently
6976 # accepts any -Wno-* option on purpose
6977 case $real_option in
6978 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6979 *) option
=$real_option ;;
6981 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6984 $as_echo_n "checking whether $CC supports $option... " >&6; }
6985 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6986 $as_echo_n "(cached) " >&6
6989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
7000 if ac_fn_c_try_compile
"$LINENO"; then :
7001 eval "$as_acx_Woption=yes"
7003 eval "$as_acx_Woption=no"
7005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7008 eval ac_res
=\$
$as_acx_Woption
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7010 $as_echo "$ac_res" >&6; }
7011 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
7012 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
7015 CFLAGS
="$save_CFLAGS"
7017 ac_cpp
='$CXXCPP $CPPFLAGS'
7018 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7024 # Enable expensive internal checks
7026 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
7030 # Check whether --enable-checking was given.
7031 if test "${enable_checking+set}" = set; then :
7032 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
7035 # Determine the default checks.
7036 if test x
$is_release = x
; then
7037 ac_checking_flags
=yes
7039 ac_checking_flags
=release
7043 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
7044 for check
in release
$ac_checking_flags
7047 # these set all the flags to specific states
7048 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
7049 ac_fold_checking
= ; ac_gc_checking
=1 ;
7050 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
7051 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7052 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7053 ac_types_checking
=1 ;;
7054 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
7055 ac_fold_checking
= ; ac_gc_checking
= ;
7056 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7057 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
7058 ac_tree_checking
= ; ac_valgrind_checking
= ;
7059 ac_types_checking
= ;;
7060 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
7061 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
7062 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
7063 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
7064 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
7065 ac_types_checking
=1 ;;
7066 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
7067 ac_fold_checking
= ; ac_gc_checking
= ;
7068 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
7069 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
7070 ac_tree_checking
= ; ac_valgrind_checking
= ;
7071 ac_types_checking
= ;;
7072 # these enable particular checks
7073 assert
) ac_assert_checking
=1 ;;
7074 df
) ac_df_checking
=1 ;;
7075 fold) ac_fold_checking
=1 ;;
7076 gc
) ac_gc_checking
=1 ;;
7077 gcac
) ac_gc_always_collect
=1 ;;
7078 gimple
) ac_gimple_checking
=1 ;;
7079 misc
) ac_checking
=1 ;;
7080 rtl
) ac_rtl_checking
=1 ;;
7081 rtlflag
) ac_rtlflag_checking
=1 ;;
7082 runtime
) ac_runtime_checking
=1 ;;
7083 tree
) ac_tree_checking
=1 ;;
7084 types
) ac_types_checking
=1 ;;
7085 valgrind
) ac_valgrind_checking
=1 ;;
7086 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
7092 if test x
$ac_checking != x
; then
7094 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7096 nocommon_flag
=-fno-common
7099 if test x
$ac_df_checking != x
; then
7101 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
7104 if test x
$ac_assert_checking != x
; then
7106 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7109 if test x
$ac_gimple_checking != x
; then
7111 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
7115 if test x
$ac_runtime_checking != x
; then
7117 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
7120 if test x
$ac_tree_checking != x
; then
7122 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
7126 if test x
$ac_types_checking != x
; then
7128 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
7132 if test x
$ac_rtl_checking != x
; then
7134 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
7137 if test x
$ac_rtlflag_checking != x
; then
7139 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
7142 if test x
$ac_gc_checking != x
; then
7144 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
7147 if test x
$ac_gc_always_collect != x
; then
7149 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
7152 if test x
$ac_fold_checking != x
; then
7154 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
7157 valgrind_path_defines
=
7160 ac_fn_cxx_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7161 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
7169 # It is certainly possible that there's valgrind but no valgrind.h.
7170 # GCC relies on making annotations so we must have both.
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7172 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7175 #include <valgrind/memcheck.h>
7176 #ifndef VALGRIND_DISCARD
7177 #error VALGRIND_DISCARD not defined
7180 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7181 gcc_cv_header_valgrind_memcheck_h
=yes
7183 gcc_cv_header_valgrind_memcheck_h
=no
7185 rm -f conftest.err conftest.
$ac_ext
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7187 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7189 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192 #include <memcheck.h>
7193 #ifndef VALGRIND_DISCARD
7194 #error VALGRIND_DISCARD not defined
7197 if ac_fn_cxx_try_cpp
"$LINENO"; then :
7198 gcc_cv_header_memcheck_h
=yes
7200 gcc_cv_header_memcheck_h
=no
7202 rm -f conftest.err conftest.
$ac_ext
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7204 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7205 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7207 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7210 if test $gcc_cv_header_memcheck_h = yes; then
7212 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7216 if test x
$ac_valgrind_checking != x
; then
7218 # Prepare PATH_SEPARATOR.
7219 # The user is always right.
7220 if test "${PATH_SEPARATOR+set}" != set; then
7221 echo "#! /bin/sh" >conf$$.sh
7222 echo "exit 0" >>conf$$.sh
7224 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7232 # Find out how to test for executable files. Don't use a zero-byte file,
7233 # as systems may use methods other than mode bits to determine executability.
7234 cat >conf$$.
file <<_ASEOF
7238 chmod +x conf$$.
file
7239 if test -x conf$$.
file >/dev
/null
2>&1; then
7240 ac_executable_p
="test -x"
7242 ac_executable_p
="test -f"
7246 # Extract the first word of "valgrind", so it can be a program name with args.
7247 set dummy valgrind
; ac_word
=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if test "${ac_cv_path_valgrind_path+set}" = set; then :
7251 $as_echo_n "(cached) " >&6
7253 case "$valgrind_path" in
7255 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
7258 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
7259 for ac_dir
in $PATH; do
7261 test -z "$ac_dir" && ac_dir
=.
7262 for ac_exec_ext
in '' $ac_executable_extensions; do
7263 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7264 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
7265 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
7275 valgrind_path
="$ac_cv_path_valgrind_path"
7276 if test -n "$valgrind_path"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
7278 $as_echo "$valgrind_path" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7284 if test "x$valgrind_path" = "x" \
7285 ||
(test $have_valgrind_h = no \
7286 && test $gcc_cv_header_memcheck_h = no \
7287 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7288 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7290 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
7291 valgrind_command
="$valgrind_path -q"
7293 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7299 # Enable code coverage collection
7300 # Check whether --enable-coverage was given.
7301 if test "${enable_coverage+set}" = set; then :
7302 enableval
=$enable_coverage; case "${enableval}" in
7304 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
7307 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
7310 # a.k.a. --disable-coverage
7314 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
7323 # Check whether --enable-gather-detailed-mem-stats was given.
7324 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
7325 enableval
=$enable_gather_detailed_mem_stats;
7327 enable_gather_detailed_mem_stats
=no
7330 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
7332 cat >>confdefs.h
<<_ACEOF
7333 #define GATHER_STATISTICS $gather_stats
7337 # Check whether --enable-valgrind-annotations was given.
7338 if test "${enable_valgrind_annotations+set}" = set; then :
7339 enableval
=$enable_valgrind_annotations;
7341 enable_valgrind_annotations
=no
7344 if test x
$enable_valgrind_annotations != xno \
7345 ||
test x
$ac_valgrind_checking != x
; then
7346 if (test $have_valgrind_h = no \
7347 && test $gcc_cv_header_memcheck_h = no \
7348 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7349 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7352 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7356 # -------------------------------
7357 # Miscenalleous configure options
7358 # -------------------------------
7362 # Check whether --with-stabs was given.
7363 if test "${with_stabs+set}" = set; then :
7364 withval
=$with_stabs; stabs
="$with_stabs"
7370 # Determine whether or not multilibs are enabled.
7371 # Check whether --enable-multilib was given.
7372 if test "${enable_multilib+set}" = set; then :
7373 enableval
=$enable_multilib;
7380 # Determine whether or not multiarch is enabled.
7381 # Check whether --enable-multiarch was given.
7382 if test "${enable_multiarch+set}" = set; then :
7383 enableval
=$enable_multiarch; case "${enableval}" in
7384 yes|no|auto
) enable_multiarch
=$enableval;;
7385 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7388 enable_multiarch
=auto
7391 if test x
${enable_multiarch} = xauto
; then
7392 if test x
${with_native_system_header_dir} != x
; then
7393 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7396 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7397 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7402 $as_echo_n "checking for multiarch configuration... " >&6; }
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7405 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7407 # needed for setting the multiarch name for soft-float/hard-float ABIs
7411 # Enable __cxa_atexit for C++.
7412 # Check whether --enable-__cxa_atexit was given.
7413 if test "${enable___cxa_atexit+set}" = set; then :
7414 enableval
=$enable___cxa_atexit;
7418 # Enable C extension for decimal float if target supports it.
7420 # Check whether --enable-decimal-float was given.
7421 if test "${enable_decimal_float+set}" = set; then :
7422 enableval
=$enable_decimal_float;
7423 case $enable_decimal_float in
7424 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7425 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7426 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7432 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7433 i?
86*-*-elfiamcu | i?
86*-*-gnu* | \
7434 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7435 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7436 enable_decimal_float
=yes
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7440 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7441 enable_decimal_float
=no
7448 # x86's use BID format instead of DPD
7449 case x
$enable_decimal_float in
7452 i?
86*-*-* | x86_64
*-*-*)
7453 enable_decimal_float
=bid
7456 enable_decimal_float
=dpd
7459 default_decimal_float
=$enable_decimal_float
7462 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7463 # dependency on libdecnumber.
7464 default_decimal_float
=dpd
7471 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7473 cat >>confdefs.h
<<_ACEOF
7474 #define ENABLE_DECIMAL_FLOAT $dfp
7478 # Use default_decimal_float for dependency.
7479 enable_decimal_float
=$default_decimal_float
7481 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7483 cat >>confdefs.h
<<_ACEOF
7484 #define ENABLE_DECIMAL_BID_FORMAT $bid
7488 # Enable C extension for fixed-point arithmetic.
7489 # Check whether --enable-fixed-point was given.
7490 if test "${enable_fixed_point+set}" = set; then :
7491 enableval
=$enable_fixed_point;
7496 enable_fixed_point
=yes
7500 enable_fixed_point
=yes
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7504 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7505 enable_fixed_point
=no
7513 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7515 cat >>confdefs.h
<<_ACEOF
7516 #define ENABLE_FIXED_POINT $fixedpoint
7521 # Pass with no value to take the default
7522 # Pass with a value to specify a thread package
7523 # Check whether --enable-threads was given.
7524 if test "${enable_threads+set}" = set; then :
7525 enableval
=$enable_threads;
7531 # Check whether --enable-tls was given.
7532 if test "${enable_tls+set}" = set; then :
7533 enableval
=$enable_tls;
7536 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7537 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7545 # Check whether --enable-objc-gc was given.
7546 if test "${enable_objc_gc+set}" = set; then :
7547 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7558 # Check whether --with-dwarf2 was given.
7559 if test "${with_dwarf2+set}" = set; then :
7560 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7566 # Check whether --enable-shared was given.
7567 if test "${enable_shared+set}" = set; then :
7568 enableval
=$enable_shared;
7569 case $enable_shared in
7573 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7574 for pkg
in $enableval; do
7575 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7590 # Check whether --with-specs was given.
7591 if test "${with_specs+set}" = set; then :
7592 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7602 # Check whether --with-pkgversion was given.
7603 if test "${with_pkgversion+set}" = set; then :
7604 withval
=$with_pkgversion; case "$withval" in
7605 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7607 *) PKGVERSION
="($withval) " ;;
7618 # Check whether --with-bugurl was given.
7619 if test "${with_bugurl+set}" = set; then :
7620 withval
=$with_bugurl; case "$withval" in
7621 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7624 *) BUGURL
="$withval"
7628 BUGURL
="http://gcc.gnu.org/bugs.html"
7638 REPORT_BUGS_TO
="<$BUGURL>"
7639 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7646 # Sanity check enable_languages in case someone does not run the toplevel
7647 # configure # script.
7648 # Check whether --enable-languages was given.
7649 if test "${enable_languages+set}" = set; then :
7650 enableval
=$enable_languages; case ,${enable_languages}, in
7652 # go safe -- we cannot be much sure without the toplevel
7654 # analysis of which target libs are present and usable
7658 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7663 enable_languages
=c
,${enable_languages}
7671 if test x
"$enable_as_accelerator_for" != x
; then
7673 $as_echo "#define ACCEL_COMPILER 1" >>confdefs.h
7675 enable_as_accelerator
=yes
7678 # In this case we expect offload compiler to be built as native, so we
7679 # need to rename the driver to avoid clashes with host's drivers.
7680 program_transform_name
="s&^&${target}-&" ;;
7682 sedscript
="s#${target_noncanonical}#${enable_as_accelerator_for}-accel-${target_noncanonical}#"
7683 program_transform_name
=`echo $program_transform_name | sed $sedscript`
7684 accel_dir_suffix
=/accel
/${target_noncanonical}
7685 real_target_noncanonical
=${enable_as_accelerator_for}
7691 for tgt
in `echo $enable_offload_targets | sed 's/,/ /g'`; do
7692 tgt
=`echo $tgt | sed 's/=.*//'`
7693 if test x
"$offload_targets" = x
; then
7694 offload_targets
=$tgt
7696 offload_targets
="$offload_targets:$tgt"
7700 cat >>confdefs.h
<<_ACEOF
7701 #define OFFLOAD_TARGETS "$offload_targets"
7704 if test x
"$offload_targets" != x
; then
7706 $as_echo "#define ENABLE_OFFLOADING 1" >>confdefs.h
7711 # Check whether --with-multilib-list was given.
7712 if test "${with_multilib_list+set}" = set; then :
7713 withval
=$with_multilib_list; :
7715 with_multilib_list
=default
7719 # -------------------------
7720 # Checks for other programs
7721 # -------------------------
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7724 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7726 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7727 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7728 $as_echo_n "(cached) " >&6
7730 cat >conftest.
make <<\_ACEOF
7733 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7736 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7738 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7740 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7744 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 $as_echo "yes" >&6; }
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 SET_MAKE
="MAKE=${MAKE-make}"
7755 # Find some useful tools
7756 for ac_prog
in gawk mawk nawk
awk
7758 # Extract the first word of "$ac_prog", so it can be a program name with args.
7759 set dummy
$ac_prog; ac_word
=$2
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761 $as_echo_n "checking for $ac_word... " >&6; }
7762 if test "${ac_cv_prog_AWK+set}" = set; then :
7763 $as_echo_n "(cached) " >&6
7765 if test -n "$AWK"; then
7766 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir
=.
7773 for ac_exec_ext
in '' $ac_executable_extensions; do
7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7775 ac_cv_prog_AWK
="$ac_prog"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7786 if test -n "$AWK"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7788 $as_echo "$AWK" >&6; }
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791 $as_echo "no" >&6; }
7795 test -n "$AWK" && break
7798 # We need awk to create options.c and options.h.
7799 # Bail out if it's missing.
7801 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7805 $as_echo_n "checking whether ln -s works... " >&6; }
7806 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7809 rm -f conftestdata_t
7810 echo >conftestdata_f
7811 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7813 gcc_cv_prog_LN_S
="ln -s"
7815 if ln conftestdata_f conftestdata_t
2>/dev
/null
7819 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7821 gcc_cv_prog_LN_S
="cp -p"
7827 rm -f conftestdata_f conftestdata_t
7830 LN_S
="$gcc_cv_prog_LN_S"
7831 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7835 if test "$gcc_cv_prog_LN_S" = "ln"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7837 $as_echo "no, using ln" >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7840 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7845 $as_echo_n "checking whether ln works... " >&6; }
7846 if test "${acx_cv_prog_LN+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7849 rm -f conftestdata_t
7850 echo >conftestdata_f
7851 if ln conftestdata_f conftestdata_t
2>/dev
/null
7857 rm -f conftestdata_f conftestdata_t
7860 if test $acx_cv_prog_LN = no
; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7863 $as_echo "no, using $LN" >&6; }
7865 LN
="$acx_cv_prog_LN"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7867 $as_echo "yes" >&6; }
7870 if test -n "$ac_tool_prefix"; then
7871 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7872 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7878 if test -n "$RANLIB"; then
7879 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7885 test -z "$as_dir" && as_dir
=.
7886 for ac_exec_ext
in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7888 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898 RANLIB
=$ac_cv_prog_RANLIB
7899 if test -n "$RANLIB"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7901 $as_echo "$RANLIB" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7909 if test -z "$ac_cv_prog_RANLIB"; then
7910 ac_ct_RANLIB
=$RANLIB
7911 # Extract the first word of "ranlib", so it can be a program name with args.
7912 set dummy ranlib
; ac_word
=$2
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914 $as_echo_n "checking for $ac_word... " >&6; }
7915 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7918 if test -n "$ac_ct_RANLIB"; then
7919 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7925 test -z "$as_dir" && as_dir
=.
7926 for ac_exec_ext
in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7928 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7939 if test -n "$ac_ct_RANLIB"; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7941 $as_echo "$ac_ct_RANLIB" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 $as_echo "no" >&6; }
7947 if test "x$ac_ct_RANLIB" = x
; then
7950 case $cross_compiling:$ac_tool_warned in
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned
=yes ;;
7956 RANLIB
=$ac_ct_RANLIB
7959 RANLIB
="$ac_cv_prog_RANLIB"
7965 # Find a good install program. We prefer a C program (faster),
7966 # so one script is as good as another. But avoid the broken or
7967 # incompatible versions:
7968 # SysV /etc/install, /usr/sbin/install
7969 # SunOS /usr/etc/install
7970 # IRIX /sbin/install
7972 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7973 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7974 # ./install, which can be erroneously created by make from ./install.sh.
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7976 $as_echo_n "checking for a BSD compatible install... " >&6; }
7977 if test -z "$INSTALL"; then
7978 if test "${ac_cv_path_install+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7981 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7982 for ac_dir
in $PATH; do
7983 # Account for people who put trailing slashes in PATH elements.
7985 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7987 # OSF1 and SCO ODT 3.0 have their own names for install.
7988 for ac_prog
in ginstall scoinst
install; do
7989 if test -f $ac_dir/$ac_prog; then
7990 if test $ac_prog = install &&
7991 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7992 # AIX install. It has an incompatible calling convention.
7993 # OSF/1 installbsd also uses dspmsg, but is usable.
7996 ac_cv_path_install
="$ac_dir/$ac_prog -c"
8007 if test "${ac_cv_path_install+set}" = set; then
8008 INSTALL
="$ac_cv_path_install"
8010 # As a last resort, use the slow shell script. We don't cache a
8011 # path for INSTALL within a source directory, because that will
8012 # break other packages using the cache if that directory is
8013 # removed, or if the path is relative.
8014 INSTALL
="$ac_install_sh"
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8018 $as_echo "$INSTALL" >&6; }
8020 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8021 # It thinks the first close brace ends the variable substitution.
8022 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8024 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8027 # See if cmp has --ignore-initial.
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
8029 $as_echo_n "checking for cmp's capabilities... " >&6; }
8030 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8035 gcc_cv_prog_cmp_skip
=slowcompare
8036 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
8037 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
8040 gcc_cv_prog_cmp_skip
=gnucompare
8043 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
8044 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
8045 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
8048 gcc_cv_prog_cmp_skip
=fastcompare
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
8056 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
8057 make_compare_target
=$gcc_cv_prog_cmp_skip
8061 # See if we have the mktemp command.
8062 # Extract the first word of "mktemp", so it can be a program name with args.
8063 set dummy mktemp
; ac_word
=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
8069 if test -n "$have_mktemp_command"; then
8070 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
8072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8076 test -z "$as_dir" && as_dir
=.
8077 for ac_exec_ext
in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079 ac_cv_prog_have_mktemp_command
="yes"
8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
8090 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
8091 if test -n "$have_mktemp_command"; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
8093 $as_echo "$have_mktemp_command" >&6; }
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8101 # See if makeinfo has been installed and is modern enough
8102 # that we can use it.
8104 # Extract the first word of "makeinfo", so it can be a program name with args.
8105 set dummy makeinfo
; ac_word
=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8111 if test -n "$MAKEINFO"; then
8112 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
8114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8118 test -z "$as_dir" && as_dir
=.
8119 for ac_exec_ext
in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_prog_MAKEINFO
="makeinfo"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 MAKEINFO
=$ac_cv_prog_MAKEINFO
8132 if test -n "$MAKEINFO"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8134 $as_echo "$MAKEINFO" >&6; }
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8141 if test -n "$MAKEINFO"; then
8142 # Found it, now check the version.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
8144 $as_echo_n "checking for modern makeinfo... " >&6; }
8145 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8148 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
8149 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
8151 case $ac_prog_version in
8152 '') gcc_cv_prog_makeinfo_modern
=no
;;
8153 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
8154 *) gcc_cv_prog_makeinfo_modern
=no
;;
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
8159 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
8161 gcc_cv_prog_makeinfo_modern
=no
8163 if test $gcc_cv_prog_makeinfo_modern = no
; then
8164 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
8167 if test $gcc_cv_prog_makeinfo_modern = no
; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8169 *** Makeinfo is missing or too old.
8170 *** Info documentation will not be built." >&5
8171 $as_echo "$as_me: WARNING:
8172 *** Makeinfo is missing or too old.
8173 *** Info documentation will not be built." >&2;}
8180 # Is pod2man recent enough to regenerate manpages?
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
8182 $as_echo_n "checking for recent Pod::Man... " >&6; }
8183 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8185 $as_echo "yes" >&6; }
8186 GENERATED_MANPAGES
=generated-manpages
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8194 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
8199 # Extract the first word of "$ac_prog", so it can be a program name with args.
8200 set dummy
$ac_prog; ac_word
=$2
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8202 $as_echo_n "checking for $ac_word... " >&6; }
8203 if test "${ac_cv_prog_FLEX+set}" = set; then :
8204 $as_echo_n "(cached) " >&6
8206 if test -n "$FLEX"; then
8207 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
8209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8213 test -z "$as_dir" && as_dir
=.
8214 for ac_exec_ext
in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_prog_FLEX
="$ac_prog"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8226 FLEX
=$ac_cv_prog_FLEX
8227 if test -n "$FLEX"; then
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8229 $as_echo "$FLEX" >&6; }
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8236 test -n "$FLEX" && break
8238 test -n "$FLEX" || FLEX
="$MISSING flex"
8242 for ac_prog
in bison
8244 # Extract the first word of "$ac_prog", so it can be a program name with args.
8245 set dummy
$ac_prog; ac_word
=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_prog_BISON+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8251 if test -n "$BISON"; then
8252 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
8254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8258 test -z "$as_dir" && as_dir
=.
8259 for ac_exec_ext
in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_BISON
="$ac_prog"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8271 BISON
=$ac_cv_prog_BISON
8272 if test -n "$BISON"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8274 $as_echo "$BISON" >&6; }
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8281 test -n "$BISON" && break
8283 test -n "$BISON" || BISON
="$MISSING bison"
8286 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
8287 # check for build == host before using them.
8290 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
8291 && test -d ..
/binutils
; then
8292 NM
='${objdir}/../binutils/nm-new'
8294 # Extract the first word of "nm", so it can be a program name with args.
8295 set dummy nm
; ac_word
=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_NM+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$NM"; then
8302 ac_cv_prog_NM
="$NM" # Let the user override the test.
8304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir
=.
8309 for ac_exec_ext
in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8323 if test -n "$NM"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8325 $as_echo "$NM" >&6; }
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8335 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8336 && test -d ..
/binutils
; then
8337 AR
='${objdir}/../binutils/ar'
8339 # Extract the first word of "ar", so it can be a program name with args.
8340 set dummy
ar; ac_word
=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if test "${ac_cv_prog_AR+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
8346 if test -n "$AR"; then
8347 ac_cv_prog_AR
="$AR" # Let the user override the test.
8349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8353 test -z "$as_dir" && as_dir
=.
8354 for ac_exec_ext
in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8368 if test -n "$AR"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8370 $as_echo "$AR" >&6; }
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8379 # The jit documentation looks better if built with sphinx, but can be
8380 # built with texinfo if sphinx is not available.
8381 # Set "doc_build_sys" to "sphinx" or "texinfo" accordingly.
8382 # Extract the first word of "sphinx-build", so it can be a program name with args.
8383 set dummy sphinx-build
; ac_word
=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if test "${ac_cv_prog_doc_build_sys+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8389 if test -n "$doc_build_sys"; then
8390 ac_cv_prog_doc_build_sys
="$doc_build_sys" # Let the user override the test.
8392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8396 test -z "$as_dir" && as_dir
=.
8397 for ac_exec_ext
in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_prog_doc_build_sys
="sphinx"
8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 test -z "$ac_cv_prog_doc_build_sys" && ac_cv_prog_doc_build_sys
="texinfo"
8410 doc_build_sys
=$ac_cv_prog_doc_build_sys
8411 if test -n "$doc_build_sys"; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $doc_build_sys" >&5
8413 $as_echo "$doc_build_sys" >&6; }
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416 $as_echo "no" >&6; }
8421 # --------------------
8422 # Checks for C headers
8423 # --------------------
8425 # Need to reject headers which give warnings, so that the -Werror bootstrap
8426 # works later. *sigh* This needs to come before all header checks.
8428 ac_c_preproc_warn_flag
=yes
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8431 $as_echo_n "checking for ANSI C header files... " >&6; }
8432 if test "${ac_cv_header_stdc+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8450 if ac_fn_cxx_try_compile
"$LINENO"; then :
8451 ac_cv_header_stdc
=yes
8453 ac_cv_header_stdc
=no
8455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8457 if test $ac_cv_header_stdc = yes; then
8458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8465 $EGREP "memchr" >/dev
/null
2>&1; then :
8468 ac_cv_header_stdc
=no
8474 if test $ac_cv_header_stdc = yes; then
8475 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8477 /* end confdefs.h. */
8481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8482 $EGREP "free" >/dev
/null
2>&1; then :
8485 ac_cv_header_stdc
=no
8491 if test $ac_cv_header_stdc = yes; then
8492 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8493 if test "$cross_compiling" = yes; then :
8496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8497 /* end confdefs.h. */
8500 #if ((' ' & 0x0FF) == 0x020)
8501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8504 # define ISLOWER(c) \
8505 (('a' <= (c) && (c) <= 'i') \
8506 || ('j' <= (c) && (c) <= 'r') \
8507 || ('s' <= (c) && (c) <= 'z'))
8508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8516 for (i = 0; i < 256; i++)
8517 if (XOR (islower (i), ISLOWER (i))
8518 || toupper (i) != TOUPPER (i))
8523 if ac_fn_cxx_try_run
"$LINENO"; then :
8526 ac_cv_header_stdc
=no
8528 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8529 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8535 $as_echo "$ac_cv_header_stdc" >&6; }
8536 if test $ac_cv_header_stdc = yes; then
8538 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8543 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8544 if test "${ac_cv_header_time+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8548 /* end confdefs.h. */
8549 #include <sys/types.h>
8550 #include <sys/time.h>
8556 if ((struct tm *) 0)
8562 if ac_fn_cxx_try_compile
"$LINENO"; then :
8563 ac_cv_header_time
=yes
8565 ac_cv_header_time
=no
8567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8570 $as_echo "$ac_cv_header_time" >&6; }
8571 if test $ac_cv_header_time = yes; then
8573 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8578 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8579 if test "${gcc_cv_header_string+set}" = set; then :
8580 $as_echo_n "(cached) " >&6
8582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8583 /* end confdefs.h. */
8585 #include <strings.h>
8594 if ac_fn_cxx_try_compile
"$LINENO"; then :
8595 gcc_cv_header_string
=yes
8597 gcc_cv_header_string
=no
8599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8602 $as_echo "$gcc_cv_header_string" >&6; }
8603 if test $gcc_cv_header_string = yes; then
8605 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8610 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8611 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8612 $as_echo_n "(cached) " >&6
8614 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 #include <sys/types.h>
8617 #include <sys/wait.h>
8619 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8622 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8630 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8635 if ac_fn_cxx_try_compile
"$LINENO"; then :
8636 ac_cv_header_sys_wait_h
=yes
8638 ac_cv_header_sys_wait_h
=no
8640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8643 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8644 if test $ac_cv_header_sys_wait_h = yes; then
8646 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8651 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8652 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8657 #include <sys/types.h>
8658 #include <termios.h>
8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8665 $EGREP "yes" >/dev
/null
2>&1; then :
8666 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8668 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8674 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8676 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8678 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8679 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8680 $as_echo_n "(cached) " >&6
8682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8684 #include <sys/types.h>
8685 #include <sys/ioctl.h>
8691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8692 $EGREP "yes" >/dev
/null
2>&1; then :
8693 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8695 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8701 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8703 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8705 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8710 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8711 fcntl.h ftw.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8712 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8713 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8715 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8716 ac_fn_cxx_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8717 eval as_val
=\$
$as_ac_Header
8718 if test "x$as_val" = x
""yes; then :
8719 cat >>confdefs.h
<<_ACEOF
8720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8727 # Check for thread headers.
8728 ac_fn_cxx_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8729 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8735 ac_fn_cxx_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8736 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8743 # These tests can't be done till we know if we have limits.h.
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8745 $as_echo_n "checking for CHAR_BIT... " >&6; }
8746 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
8749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 #ifdef HAVE_LIMITS_H
8758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8759 $EGREP "found" >/dev
/null
2>&1; then :
8760 gcc_cv_decl_char_bit
=yes
8762 gcc_cv_decl_char_bit
=no
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8769 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8770 if test $gcc_cv_decl_char_bit = no
; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8772 $as_echo_n "checking number of bits in a byte... " >&6; }
8773 if test "${gcc_cv_c_nbby+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8778 while test $i -lt 65; do
8779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8780 /* end confdefs.h. */
8786 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8787 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8793 if ac_fn_cxx_try_compile
"$LINENO"; then :
8794 gcc_cv_c_nbby
=$i; break
8796 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8799 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8803 $as_echo "$gcc_cv_c_nbby" >&6; }
8804 if test $gcc_cv_c_nbby = failed
; then
8805 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8808 cat >>confdefs.h
<<_ACEOF
8809 #define CHAR_BIT $gcc_cv_c_nbby
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8815 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8816 if test "${ac_cv_c_bigendian+set}" = set; then :
8817 $as_echo_n "(cached) " >&6
8819 ac_cv_c_bigendian
=unknown
8820 # See if we're dealing with a universal compiler.
8821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8822 /* end confdefs.h. */
8823 #ifndef __APPLE_CC__
8824 not a universal capable compiler
8829 if ac_fn_cxx_try_compile
"$LINENO"; then :
8831 # Check for potential -arch flags. It is not universal unless
8832 # there are at least two -arch flags with different values.
8835 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8836 if test -n "$ac_prev"; then
8838 i?
86 | x86_64 | ppc | ppc64
)
8839 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8842 ac_cv_c_bigendian
=universal
8848 elif test "x$ac_word" = "x-arch"; then
8853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8854 if test $ac_cv_c_bigendian = unknown
; then
8855 # See if sys/param.h defines the BYTE_ORDER macro.
8856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <sys/types.h>
8859 #include <sys/param.h>
8864 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8865 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8874 if ac_fn_cxx_try_compile
"$LINENO"; then :
8875 # It does; now see whether it defined to BIG_ENDIAN or not.
8876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 #include <sys/types.h>
8879 #include <sys/param.h>
8884 #if BYTE_ORDER != BIG_ENDIAN
8892 if ac_fn_cxx_try_compile
"$LINENO"; then :
8893 ac_cv_c_bigendian
=yes
8895 ac_cv_c_bigendian
=no
8897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8901 if test $ac_cv_c_bigendian = unknown
; then
8902 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8910 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8918 if ac_fn_cxx_try_compile
"$LINENO"; then :
8919 # It does; now see whether it defined to _BIG_ENDIAN or not.
8920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8935 if ac_fn_cxx_try_compile
"$LINENO"; then :
8936 ac_cv_c_bigendian
=yes
8938 ac_cv_c_bigendian
=no
8940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8944 if test $ac_cv_c_bigendian = unknown
; then
8945 # Compile a test program.
8946 if test "$cross_compiling" = yes; then :
8947 # Try to guess by grepping values from an object file.
8948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 short int ascii_mm[] =
8951 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8952 short int ascii_ii[] =
8953 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8954 int use_ascii (int i) {
8955 return ascii_mm[i] + ascii_ii[i];
8957 short int ebcdic_ii[] =
8958 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8959 short int ebcdic_mm[] =
8960 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8961 int use_ebcdic (int i) {
8962 return ebcdic_mm[i] + ebcdic_ii[i];
8969 return use_ascii (foo) == use_ebcdic (foo);
8974 if ac_fn_cxx_try_compile
"$LINENO"; then :
8975 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8976 ac_cv_c_bigendian
=yes
8978 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8979 if test "$ac_cv_c_bigendian" = unknown
; then
8980 ac_cv_c_bigendian
=no
8982 # finding both strings is unlikely to happen, but who knows?
8983 ac_cv_c_bigendian
=unknown
8987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8990 /* end confdefs.h. */
8991 $ac_includes_default
8996 /* Are we little or big endian? From Harbison&Steele. */
9000 char c[sizeof (long int)];
9003 return u.c[sizeof (long int) - 1] == 1;
9009 if ac_fn_cxx_try_run
"$LINENO"; then :
9010 ac_cv_c_bigendian
=no
9012 ac_cv_c_bigendian
=yes
9014 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9015 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9021 $as_echo "$ac_cv_c_bigendian" >&6; }
9022 case $ac_cv_c_bigendian in #(
9024 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9030 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9034 as_fn_error
"unknown endianness
9035 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9039 # ----------------------
9040 # Checks for C++ headers
9041 # ----------------------
9044 ac_cpp
='$CXXCPP $CPPFLAGS'
9045 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9046 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9047 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9049 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9050 if test -z "$CXXCPP"; then
9051 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9054 # Double quotes because CXXCPP needs to be expanded
9055 for CXXCPP
in "$CXX -E" "/lib/cpp"
9058 for ac_cxx_preproc_warn_flag
in '' yes
9060 # Use a header file that comes with gcc, so configuring glibc
9061 # with a fresh cross-compiler works.
9062 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9063 # <limits.h> exists even on freestanding compilers.
9064 # On the NeXT, cc -E runs the code through the compiler's parser,
9065 # not just through cpp. "Syntax error" is here to catch this case.
9066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9069 # include <limits.h>
9071 # include <assert.h>
9075 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9078 # Broken: fails on valid input.
9081 rm -f conftest.err conftest.
$ac_ext
9083 # OK, works on sane cases. Now check whether nonexistent headers
9084 # can be detected and how.
9085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #include <ac_nonexistent.h>
9089 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9090 # Broken: success on invalid input.
9093 # Passes both tests.
9097 rm -f conftest.err conftest.
$ac_ext
9100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9101 rm -f conftest.err conftest.
$ac_ext
9102 if $ac_preproc_ok; then :
9107 ac_cv_prog_CXXCPP
=$CXXCPP
9110 CXXCPP
=$ac_cv_prog_CXXCPP
9112 ac_cv_prog_CXXCPP
=$CXXCPP
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9115 $as_echo "$CXXCPP" >&6; }
9117 for ac_cxx_preproc_warn_flag
in '' yes
9119 # Use a header file that comes with gcc, so configuring glibc
9120 # with a fresh cross-compiler works.
9121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 # <limits.h> exists even on freestanding compilers.
9123 # On the NeXT, cc -E runs the code through the compiler's parser,
9124 # not just through cpp. "Syntax error" is here to catch this case.
9125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9128 # include <limits.h>
9130 # include <assert.h>
9134 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9137 # Broken: fails on valid input.
9140 rm -f conftest.err conftest.
$ac_ext
9142 # OK, works on sane cases. Now check whether nonexistent headers
9143 # can be detected and how.
9144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9146 #include <ac_nonexistent.h>
9148 if ac_fn_cxx_try_cpp
"$LINENO"; then :
9149 # Broken: success on invalid input.
9152 # Passes both tests.
9156 rm -f conftest.err conftest.
$ac_ext
9159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9160 rm -f conftest.err conftest.
$ac_ext
9161 if $ac_preproc_ok; then :
9164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9167 See \`config.log' for more details." >&5
9168 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
9169 See \`config.log' for more details." >&2;}; }
9173 ac_cpp
='$CXXCPP $CPPFLAGS'
9174 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9175 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9176 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9179 for ac_header
in unordered_map
9181 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
9182 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
9183 cat >>confdefs.h
<<_ACEOF
9184 #define HAVE_UNORDERED_MAP 1
9190 for ac_header
in tr1/unordered_map
9192 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
9193 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
9194 cat >>confdefs.h
<<_ACEOF
9195 #define HAVE_TR1_UNORDERED_MAP 1
9201 for ac_header
in ext
/hash_map
9203 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
9204 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
9205 cat >>confdefs.h
<<_ACEOF
9206 #define HAVE_EXT_HASH_MAP 1
9214 # Dependency checking.
9217 rm -rf .tst
2>/dev
/null
9218 mkdir .tst
2>/dev
/null
9219 if test -d .tst
; then
9224 rmdir .tst
2>/dev
/null
9226 DEPDIR
="${am__leading_dot}deps"
9228 ac_config_commands
="$ac_config_commands depdir"
9231 ac_config_commands
="$ac_config_commands gccdepdir"
9234 depcc
="$CXX" am_compiler_list
=
9236 am_depcomp
=$ac_aux_dir/depcomp
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
9238 $as_echo_n "checking dependency style of $depcc... " >&6; }
9239 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9242 if test -f "$am_depcomp"; then
9243 # We make a subdir and do the tests there. Otherwise we can end up
9244 # making bogus files that we don't know about and never remove. For
9245 # instance it was reported that on HP-UX the gcc test will end up
9246 # making a dummy file named `D' -- because `-MD' means `put the output
9249 # Copy depcomp to subdir because otherwise we won't find it if we're
9250 # using a relative directory.
9251 cp "$am_depcomp" conftest.dir
9253 # We will build objects and dependencies in a subdirectory because
9254 # it helps to detect inapplicable dependency modes. For instance
9255 # both Tru64's cc and ICC support -MD to output dependencies as a
9256 # side effect of compilation, but ICC will put the dependencies in
9257 # the current directory while Tru64 will put them in the object
9261 am_cv_CXX_dependencies_compiler_type
=none
9262 if test "$am_compiler_list" = ""; then
9263 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
9265 for depmode
in $am_compiler_list; do
9266 if test $depmode = none
; then break; fi
9268 $as_echo "$as_me:$LINENO: trying $depmode" >&5
9269 # Setup a source with many dependencies, because some compilers
9270 # like to wrap large dependency lists on column 80 (with \), and
9271 # we should not choose a depcomp mode which is confused by this.
9273 # We need to recreate these files for each test, as the compiler may
9274 # overwrite some of them when testing with obscure command lines.
9275 # This happens at least with the AIX C compiler.
9277 for i
in 1 2 3 4 5 6; do
9278 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
9279 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9280 # Solaris 8's {/usr,}/bin/sh.
9281 touch sub
/conftst
$i.h
9283 echo "include sub/conftest.Po" > confmf
9285 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9286 # mode. It turns out that the SunPro C++ compiler does not properly
9287 # handle `-M -o', and we need to detect this.
9288 depcmd
="depmode=$depmode \
9289 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9290 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9291 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
9292 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
9293 if env
$depcmd > conftest.err
2>&1 &&
9294 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
9295 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
9296 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
9297 # icc doesn't choke on unknown options, it will just issue warnings
9298 # or remarks (even with -Werror). So we grep stderr for any message
9299 # that says an option was ignored or not supported.
9300 # When given -MP, icc 7.0 and 7.1 complain thusly:
9301 # icc: Command line warning: ignoring option '-M'; no argument required
9302 # The diagnosis changed in icc 8.0:
9303 # icc: Command line remark: option '-MP' not supported
9304 if (grep 'ignoring option' conftest.err ||
9305 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
9306 am_cv_CXX_dependencies_compiler_type
=$depmode
9307 $as_echo "$as_me:$LINENO: success" >&5
9311 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
9312 sed -e 's/^/| /' < conftest.err
>&5
9318 am_cv_CXX_dependencies_compiler_type
=none
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9323 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9324 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
9325 then as_fn_error
"no usable dependency style found" "$LINENO" 5
9326 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9336 # These libraries may be used by collect2.
9337 # We may need a special search path to get them linked.
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9339 $as_echo_n "checking for collect2 libraries... " >&6; }
9340 if test "${gcc_cv_collect2_libs+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9344 for libs
in '' -lld -lmld \
9345 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9346 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9352 /* Override any GCC internal prototype to avoid an error.
9353 Use char because int might match the return type of a GCC
9354 builtin and then its argument prototype would still apply. */
9367 if ac_fn_cxx_try_link
"$LINENO"; then :
9368 gcc_cv_collect2_libs
="$libs"; break
9370 rm -f core conftest.err conftest.
$ac_objext \
9371 conftest
$ac_exeext conftest.
$ac_ext
9374 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9377 $as_echo "$gcc_cv_collect2_libs" >&6; }
9378 case $gcc_cv_collect2_libs in
9380 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9384 # When building Ada code on Alpha, we need exc_resume which is usually in
9385 # -lexc. So test for it.
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9389 $as_echo_n "checking for library containing exc_resume... " >&6; }
9390 if test "${ac_cv_search_exc_resume+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
9393 ac_func_search_save_LIBS
=$LIBS
9394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9397 /* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
9407 return exc_resume ();
9412 for ac_lib
in '' exc
; do
9413 if test -z "$ac_lib"; then
9414 ac_res
="none required"
9417 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9419 if ac_fn_cxx_try_link
"$LINENO"; then :
9420 ac_cv_search_exc_resume
=$ac_res
9422 rm -f core conftest.err conftest.
$ac_objext \
9424 if test "${ac_cv_search_exc_resume+set}" = set; then :
9428 if test "${ac_cv_search_exc_resume+set}" = set; then :
9431 ac_cv_search_exc_resume
=no
9434 LIBS
=$ac_func_search_save_LIBS
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9437 $as_echo "$ac_cv_search_exc_resume" >&6; }
9438 ac_res
=$ac_cv_search_exc_resume
9439 if test "$ac_res" != no
; then :
9440 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9448 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9452 $as_echo_n "checking for library containing kstat_open... " >&6; }
9453 if test "${ac_cv_search_kstat_open+set}" = set; then :
9454 $as_echo_n "(cached) " >&6
9456 ac_func_search_save_LIBS
=$LIBS
9457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9460 /* Override any GCC internal prototype to avoid an error.
9461 Use char because int might match the return type of a GCC
9462 builtin and then its argument prototype would still apply. */
9470 return kstat_open ();
9475 for ac_lib
in '' kstat
; do
9476 if test -z "$ac_lib"; then
9477 ac_res
="none required"
9480 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9482 if ac_fn_cxx_try_link
"$LINENO"; then :
9483 ac_cv_search_kstat_open
=$ac_res
9485 rm -f core conftest.err conftest.
$ac_objext \
9487 if test "${ac_cv_search_kstat_open+set}" = set; then :
9491 if test "${ac_cv_search_kstat_open+set}" = set; then :
9494 ac_cv_search_kstat_open
=no
9497 LIBS
=$ac_func_search_save_LIBS
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9500 $as_echo "$ac_cv_search_kstat_open" >&6; }
9501 ac_res
=$ac_cv_search_kstat_open
9502 if test "$ac_res" != no
; then :
9503 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9507 EXTRA_GCC_LIBS
="$LIBS"
9511 # Some systems put ldexp and frexp in libm instead of libc; assume
9512 # they're both in the same place. jcf-dump needs them.
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9516 $as_echo_n "checking for library containing ldexp... " >&6; }
9517 if test "${ac_cv_search_ldexp+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
9520 ac_func_search_save_LIBS
=$LIBS
9521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9539 for ac_lib
in '' m
; do
9540 if test -z "$ac_lib"; then
9541 ac_res
="none required"
9544 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9546 if ac_fn_cxx_try_link
"$LINENO"; then :
9547 ac_cv_search_ldexp
=$ac_res
9549 rm -f core conftest.err conftest.
$ac_objext \
9551 if test "${ac_cv_search_ldexp+set}" = set; then :
9555 if test "${ac_cv_search_ldexp+set}" = set; then :
9558 ac_cv_search_ldexp
=no
9561 LIBS
=$ac_func_search_save_LIBS
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9564 $as_echo "$ac_cv_search_ldexp" >&6; }
9565 ac_res
=$ac_cv_search_ldexp
9566 if test "$ac_res" != no
; then :
9567 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9575 # Use <inttypes.h> only if it exists,
9576 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9579 $as_echo_n "checking for inttypes.h... " >&6; }
9580 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9581 $as_echo_n "(cached) " >&6
9583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 #define __STDC_FORMAT_MACROS
9586 #include <sys/types.h>
9587 #include <inttypes.h>
9599 if ac_fn_cxx_try_compile
"$LINENO"; then :
9600 gcc_cv_header_inttypes_h
=yes
9602 gcc_cv_header_inttypes_h
=no
9604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9608 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9609 if test $gcc_cv_header_inttypes_h = yes; then
9611 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9617 for ac_func
in times clock kill getrlimit setrlimit atoq \
9618 popen sysconf strsignal getrusage nl_langinfo \
9619 gettimeofday mbstowcs wcswidth mmap setlocale \
9620 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
9622 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9623 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9624 eval as_val
=\$
$as_ac_var
9625 if test "x$as_val" = x
""yes; then :
9626 cat >>confdefs.h
<<_ACEOF
9627 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9634 if test x
$ac_cv_func_mbstowcs = xyes
; then
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9636 $as_echo_n "checking whether mbstowcs works... " >&6; }
9637 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
9640 if test "$cross_compiling" = yes; then :
9641 gcc_cv_func_mbstowcs_works
=yes
9643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9652 if ac_fn_cxx_try_run
"$LINENO"; then :
9653 gcc_cv_func_mbstowcs_works
=yes
9655 gcc_cv_func_mbstowcs_works
=no
9657 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9658 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9663 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9664 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9666 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9671 ac_fn_cxx_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9672 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9676 cat >>confdefs.h
<<_ACEOF
9682 ac_fn_cxx_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9683 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9687 cat >>confdefs.h
<<_ACEOF
9688 #define caddr_t char *
9695 ac_fn_cxx_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9696 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9697 gcc_header_sys_mman_h
=yes
9699 gcc_header_sys_mman_h
=no
9702 ac_fn_cxx_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9703 if test "x$ac_cv_func_mmap" = x
""yes; then :
9709 if test "$gcc_header_sys_mman_h" != yes \
9710 ||
test "$gcc_func_mmap" != yes; then
9711 gcc_cv_func_mmap_file
=no
9712 gcc_cv_func_mmap_dev_zero
=no
9713 gcc_cv_func_mmap_anon
=no
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9716 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9717 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9720 # Add a system to this blacklist if
9721 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9722 # memory area containing the same data that you'd get if you applied
9723 # read() to the same fd. The only system known to have a problem here
9724 # is VMS, where text files have record structure.
9727 gcc_cv_func_mmap_file
=no
;;
9729 gcc_cv_func_mmap_file
=yes;;
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9733 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9735 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9736 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9737 $as_echo_n "(cached) " >&6
9739 # Add a system to this blacklist if it has mmap() but /dev/zero
9740 # does not exist, or if mmapping /dev/zero does not give anonymous
9741 # zeroed pages with both the following properties:
9742 # 1. If you map N consecutive pages in with one call, and then
9743 # unmap any subset of those pages, the pages that were not
9744 # explicitly unmapped remain accessible.
9745 # 2. If you map two adjacent blocks of memory and then unmap them
9746 # both at once, they must both go away.
9747 # Systems known to be in this category are Windows (all variants),
9750 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9751 gcc_cv_func_mmap_dev_zero
=no
;;
9753 gcc_cv_func_mmap_dev_zero
=yes;;
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9757 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9759 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9761 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9762 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9763 $as_echo_n "(cached) " >&6
9765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767 #include <sys/types.h>
9768 #include <sys/mman.h>
9771 #ifndef MAP_ANONYMOUS
9772 #define MAP_ANONYMOUS MAP_ANON
9778 int n = MAP_ANONYMOUS;
9783 if ac_fn_cxx_try_compile
"$LINENO"; then :
9784 gcc_cv_decl_map_anon
=yes
9786 gcc_cv_decl_map_anon
=no
9788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9791 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9793 if test $gcc_cv_decl_map_anon = no
; then
9794 gcc_cv_func_mmap_anon
=no
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9797 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9798 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9801 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9802 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9803 # doesn't give anonymous zeroed pages with the same properties listed
9804 # above for use of /dev/zero.
9805 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9807 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9808 gcc_cv_func_mmap_anon
=no
;;
9810 gcc_cv_func_mmap_anon
=yes;;
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9814 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9818 if test $gcc_cv_func_mmap_file = yes; then
9820 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9823 if test $gcc_cv_func_mmap_dev_zero = yes; then
9825 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9828 if test $gcc_cv_func_mmap_anon = yes; then
9830 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9837 # Under VMS, vfork works very differently than on Unix. The standard test
9838 # won't work, and it isn't easily adaptable. It makes more sense to
9840 ac_cv_func_vfork_works
=yes
9843 ac_fn_cxx_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9844 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9848 cat >>confdefs.h
<<_ACEOF
9854 for ac_header
in vfork.h
9856 ac_fn_cxx_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9857 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9858 cat >>confdefs.h
<<_ACEOF
9859 #define HAVE_VFORK_H 1
9865 for ac_func
in fork vfork
9867 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9868 ac_fn_cxx_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9869 eval as_val
=\$
$as_ac_var
9870 if test "x$as_val" = x
""yes; then :
9871 cat >>confdefs.h
<<_ACEOF
9872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9878 if test "x$ac_cv_func_fork" = xyes
; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9880 $as_echo_n "checking for working fork... " >&6; }
9881 if test "${ac_cv_func_fork_works+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9884 if test "$cross_compiling" = yes; then :
9885 ac_cv_func_fork_works
=cross
9887 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 $ac_includes_default
9894 /* By Ruediger Kuhlmann. */
9901 if ac_fn_cxx_try_run
"$LINENO"; then :
9902 ac_cv_func_fork_works
=yes
9904 ac_cv_func_fork_works
=no
9906 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9907 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9912 $as_echo "$ac_cv_func_fork_works" >&6; }
9915 ac_cv_func_fork_works
=$ac_cv_func_fork
9917 if test "x$ac_cv_func_fork_works" = xcross
; then
9919 *-*-amigaos* |
*-*-msdosdjgpp*)
9920 # Override, as these systems have only a dummy fork() stub
9921 ac_cv_func_fork_works
=no
9924 ac_cv_func_fork_works
=yes
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9928 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9930 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9931 if test "x$ac_cv_func_vfork" = xyes
; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9933 $as_echo_n "checking for working vfork... " >&6; }
9934 if test "${ac_cv_func_vfork_works+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9937 if test "$cross_compiling" = yes; then :
9938 ac_cv_func_vfork_works
=cross
9940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 /* Thanks to Paul Eggert for this test. */
9943 $ac_includes_default
9944 #include <sys/wait.h>
9948 /* On some sparc systems, changes by the child to local and incoming
9949 argument registers are propagated back to the parent. The compiler
9950 is told about this with #include <vfork.h>, but some compilers
9951 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9952 static variable whose address is put into a register that is
9953 clobbered by the vfork. */
9956 sparc_address_test (int arg)
9958 sparc_address_test (arg) int arg;
9979 pid_t parent = getpid ();
9982 sparc_address_test (0);
9987 /* Here is another test for sparc vfork register problems. This
9988 test uses lots of local variables, at least as many local
9989 variables as main has allocated so far including compiler
9990 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9991 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9992 reuse the register of parent for one of the local variables,
9993 since it will think that parent can't possibly be used any more
9994 in this routine. Assigning to the local variable will thus
9995 munge parent in the parent process. */
9997 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9998 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9999 /* Convince the compiler that p..p7 are live; otherwise, it might
10000 use the same hardware register for all 8 local variables. */
10001 if (p != p1 || p != p2 || p != p3 || p != p4
10002 || p != p5 || p != p6 || p != p7)
10005 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10006 from child file descriptors. If the child closes a descriptor
10007 before it execs or exits, this munges the parent's descriptor
10008 as well. Test for this by closing stdout in the child. */
10009 _exit(close(fileno(stdout)) != 0);
10014 while (wait(&status) != child)
10017 /* Was there some problem with vforking? */
10020 /* Did the child fail? (This shouldn't happen.) */
10023 /* Did the vfork/compiler bug occur? */
10024 || parent != getpid()
10026 /* Did the file descriptor bug occur? */
10027 || fstat(fileno(stdout), &st) != 0
10032 if ac_fn_cxx_try_run
"$LINENO"; then :
10033 ac_cv_func_vfork_works
=yes
10035 ac_cv_func_vfork_works
=no
10037 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10038 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10043 $as_echo "$ac_cv_func_vfork_works" >&6; }
10046 if test "x$ac_cv_func_fork_works" = xcross
; then
10047 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10049 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10052 if test "x$ac_cv_func_vfork_works" = xyes
; then
10054 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10058 $as_echo "#define vfork fork" >>confdefs.h
10061 if test "x$ac_cv_func_fork_works" = xyes
; then
10063 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10069 if test "X$prefix" = "XNONE"; then
10070 acl_final_prefix
="$ac_default_prefix"
10072 acl_final_prefix
="$prefix"
10074 if test "X$exec_prefix" = "XNONE"; then
10075 acl_final_exec_prefix
='${prefix}'
10077 acl_final_exec_prefix
="$exec_prefix"
10079 acl_save_prefix
="$prefix"
10080 prefix
="$acl_final_prefix"
10081 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
10082 prefix
="$acl_save_prefix"
10085 # Check whether --with-gnu-ld was given.
10086 if test "${with_gnu_ld+set}" = set; then :
10087 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
10092 # Prepare PATH_SEPARATOR.
10093 # The user is always right.
10094 if test "${PATH_SEPARATOR+set}" != set; then
10095 echo "#! /bin/sh" >conf$$.sh
10096 echo "exit 0" >>conf$$.sh
10098 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10106 if test "$GCC" = yes; then
10107 # Check if gcc -print-prog-name=ld gives a path.
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10109 $as_echo_n "checking for ld used by GCC... " >&6; }
10112 # gcc leaves a trailing carriage return which upsets mingw
10113 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10115 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10118 # Accept absolute paths.
10119 [\\/]* |
[A-Za-z
]:[\\/]*)
10120 re_direlt
='/[^/][^/]*/\.\./'
10121 # Canonicalize the path of ld
10122 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
10123 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10124 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
10126 test -z "$LD" && LD
="$ac_prog"
10129 # If it fails, then pretend we aren't using GCC.
10133 # If it is relative, then search for the first ld in PATH.
10134 with_gnu_ld
=unknown
10137 elif test "$with_gnu_ld" = yes; then
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10139 $as_echo_n "checking for GNU ld... " >&6; }
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10142 $as_echo_n "checking for non-GNU ld... " >&6; }
10144 if test "${acl_cv_path_LD+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10147 if test -z "$LD"; then
10148 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10149 for ac_dir
in $PATH; do
10150 test -z "$ac_dir" && ac_dir
=.
10151 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10152 acl_cv_path_LD
="$ac_dir/$ac_prog"
10153 # Check to see if the program is GNU ld. I'd rather use --version,
10154 # but apparently some GNU ld's only accept -v.
10155 # Break only if it was the GNU/non-GNU ld that we prefer.
10156 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
10157 test "$with_gnu_ld" != no
&& break
10159 test "$with_gnu_ld" != yes && break
10165 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
10169 LD
="$acl_cv_path_LD"
10170 if test -n "$LD"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10172 $as_echo "$LD" >&6; }
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10177 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10179 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10180 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10181 $as_echo_n "(cached) " >&6
10183 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10184 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
10185 acl_cv_prog_gnu_ld
=yes
10187 acl_cv_prog_gnu_ld
=no
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10191 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10192 with_gnu_ld
=$acl_cv_prog_gnu_ld
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10197 $as_echo_n "checking for shared library run path origin... " >&6; }
10198 if test "${acl_cv_rpath+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10202 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
10203 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10205 rm -f .
/conftest.sh
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10210 $as_echo "$acl_cv_rpath" >&6; }
10212 libext
="$acl_cv_libext"
10213 shlibext
="$acl_cv_shlibext"
10214 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
10215 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
10216 hardcode_direct
="$acl_cv_hardcode_direct"
10217 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
10218 # Check whether --enable-rpath was given.
10219 if test "${enable_rpath+set}" = set; then :
10220 enableval
=$enable_rpath; :
10234 acl_save_prefix
="$prefix"
10235 prefix
="$acl_final_prefix"
10236 acl_save_exec_prefix
="$exec_prefix"
10237 exec_prefix
="$acl_final_exec_prefix"
10239 eval additional_includedir
=\"$includedir\"
10240 eval additional_libdir
=\"$libdir\"
10242 exec_prefix
="$acl_save_exec_prefix"
10243 prefix
="$acl_save_prefix"
10246 # Check whether --with-libiconv-prefix was given.
10247 if test "${with_libiconv_prefix+set}" = set; then :
10248 withval
=$with_libiconv_prefix;
10249 if test "X$withval" = "Xno"; then
10252 if test "X$withval" = "X"; then
10254 acl_save_prefix
="$prefix"
10255 prefix
="$acl_final_prefix"
10256 acl_save_exec_prefix
="$exec_prefix"
10257 exec_prefix
="$acl_final_exec_prefix"
10259 eval additional_includedir
=\"$includedir\"
10260 eval additional_libdir
=\"$libdir\"
10262 exec_prefix
="$acl_save_exec_prefix"
10263 prefix
="$acl_save_prefix"
10266 additional_includedir
="$withval/include"
10267 additional_libdir
="$withval/lib"
10278 names_already_handled
=
10279 names_next_round
='iconv '
10280 while test -n "$names_next_round"; do
10281 names_this_round
="$names_next_round"
10283 for name
in $names_this_round; do
10285 for n
in $names_already_handled; do
10286 if test "$n" = "$name"; then
10287 already_handled
=yes
10291 if test -z "$already_handled"; then
10292 names_already_handled
="$names_already_handled $name"
10293 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10294 eval value
=\"\
$HAVE_LIB$uppername\"
10295 if test -n "$value"; then
10296 if test "$value" = yes; then
10297 eval value
=\"\
$LIB$uppername\"
10298 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
10299 eval value
=\"\
$LTLIB$uppername\"
10300 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
10309 if test $use_additional = yes; then
10310 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10311 found_dir
="$additional_libdir"
10312 found_so
="$additional_libdir/lib$name.$shlibext"
10313 if test -f "$additional_libdir/lib$name.la"; then
10314 found_la
="$additional_libdir/lib$name.la"
10317 if test -f "$additional_libdir/lib$name.$libext"; then
10318 found_dir
="$additional_libdir"
10319 found_a
="$additional_libdir/lib$name.$libext"
10320 if test -f "$additional_libdir/lib$name.la"; then
10321 found_la
="$additional_libdir/lib$name.la"
10326 if test "X$found_dir" = "X"; then
10327 for x
in $LDFLAGS $LTLIBICONV; do
10329 acl_save_prefix
="$prefix"
10330 prefix
="$acl_final_prefix"
10331 acl_save_exec_prefix
="$exec_prefix"
10332 exec_prefix
="$acl_final_exec_prefix"
10334 exec_prefix
="$acl_save_exec_prefix"
10335 prefix
="$acl_save_prefix"
10339 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10340 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10342 found_so
="$dir/lib$name.$shlibext"
10343 if test -f "$dir/lib$name.la"; then
10344 found_la
="$dir/lib$name.la"
10347 if test -f "$dir/lib$name.$libext"; then
10349 found_a
="$dir/lib$name.$libext"
10350 if test -f "$dir/lib$name.la"; then
10351 found_la
="$dir/lib$name.la"
10357 if test "X$found_dir" != "X"; then
10362 if test "X$found_dir" != "X"; then
10363 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10364 if test "X$found_so" != "X"; then
10365 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10366 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10369 for x
in $ltrpathdirs; do
10370 if test "X$x" = "X$found_dir"; then
10375 if test -z "$haveit"; then
10376 ltrpathdirs
="$ltrpathdirs $found_dir"
10378 if test "$hardcode_direct" = yes; then
10379 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10381 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10382 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10384 for x
in $rpathdirs; do
10385 if test "X$x" = "X$found_dir"; then
10390 if test -z "$haveit"; then
10391 rpathdirs
="$rpathdirs $found_dir"
10395 for x
in $LDFLAGS $LIBICONV; do
10397 acl_save_prefix
="$prefix"
10398 prefix
="$acl_final_prefix"
10399 acl_save_exec_prefix
="$exec_prefix"
10400 exec_prefix
="$acl_final_exec_prefix"
10402 exec_prefix
="$acl_save_exec_prefix"
10403 prefix
="$acl_save_prefix"
10405 if test "X$x" = "X-L$found_dir"; then
10410 if test -z "$haveit"; then
10411 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10413 if test "$hardcode_minus_L" != no
; then
10414 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10416 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10422 if test "X$found_a" != "X"; then
10423 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10425 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10428 additional_includedir
=
10429 case "$found_dir" in
10431 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10432 additional_includedir
="$basedir/include"
10435 if test "X$additional_includedir" != "X"; then
10436 if test "X$additional_includedir" != "X/usr/include"; then
10438 if test "X$additional_includedir" = "X/usr/local/include"; then
10439 if test -n "$GCC"; then
10441 linux
*) haveit
=yes;;
10445 if test -z "$haveit"; then
10446 for x
in $CPPFLAGS $INCICONV; do
10448 acl_save_prefix
="$prefix"
10449 prefix
="$acl_final_prefix"
10450 acl_save_exec_prefix
="$exec_prefix"
10451 exec_prefix
="$acl_final_exec_prefix"
10453 exec_prefix
="$acl_save_exec_prefix"
10454 prefix
="$acl_save_prefix"
10456 if test "X$x" = "X-I$additional_includedir"; then
10461 if test -z "$haveit"; then
10462 if test -d "$additional_includedir"; then
10463 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10469 if test -n "$found_la"; then
10470 save_libdir
="$libdir"
10471 case "$found_la" in
10472 */* |
*\\*) .
"$found_la" ;;
10473 *) .
"./$found_la" ;;
10475 libdir
="$save_libdir"
10476 for dep
in $dependency_libs; do
10479 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10480 if test "X$additional_libdir" != "X/usr/lib"; then
10482 if test "X$additional_libdir" = "X/usr/local/lib"; then
10483 if test -n "$GCC"; then
10485 linux
*) haveit
=yes;;
10489 if test -z "$haveit"; then
10491 for x
in $LDFLAGS $LIBICONV; do
10493 acl_save_prefix
="$prefix"
10494 prefix
="$acl_final_prefix"
10495 acl_save_exec_prefix
="$exec_prefix"
10496 exec_prefix
="$acl_final_exec_prefix"
10498 exec_prefix
="$acl_save_exec_prefix"
10499 prefix
="$acl_save_prefix"
10501 if test "X$x" = "X-L$additional_libdir"; then
10506 if test -z "$haveit"; then
10507 if test -d "$additional_libdir"; then
10508 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10512 for x
in $LDFLAGS $LTLIBICONV; do
10514 acl_save_prefix
="$prefix"
10515 prefix
="$acl_final_prefix"
10516 acl_save_exec_prefix
="$exec_prefix"
10517 exec_prefix
="$acl_final_exec_prefix"
10519 exec_prefix
="$acl_save_exec_prefix"
10520 prefix
="$acl_save_prefix"
10522 if test "X$x" = "X-L$additional_libdir"; then
10527 if test -z "$haveit"; then
10528 if test -d "$additional_libdir"; then
10529 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10536 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10537 if test "$enable_rpath" != no
; then
10539 for x
in $rpathdirs; do
10540 if test "X$x" = "X$dir"; then
10545 if test -z "$haveit"; then
10546 rpathdirs
="$rpathdirs $dir"
10549 for x
in $ltrpathdirs; do
10550 if test "X$x" = "X$dir"; then
10555 if test -z "$haveit"; then
10556 ltrpathdirs
="$ltrpathdirs $dir"
10561 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10564 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10567 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10568 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10574 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10575 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10581 if test "X$rpathdirs" != "X"; then
10582 if test -n "$hardcode_libdir_separator"; then
10584 for found_dir
in $rpathdirs; do
10585 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10587 acl_save_libdir
="$libdir"
10589 eval flag
=\"$hardcode_libdir_flag_spec\"
10590 libdir
="$acl_save_libdir"
10591 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10593 for found_dir
in $rpathdirs; do
10594 acl_save_libdir
="$libdir"
10595 libdir
="$found_dir"
10596 eval flag
=\"$hardcode_libdir_flag_spec\"
10597 libdir
="$acl_save_libdir"
10598 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10602 if test "X$ltrpathdirs" != "X"; then
10603 for found_dir
in $ltrpathdirs; do
10604 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10614 am_save_CPPFLAGS
="$CPPFLAGS"
10616 for element
in $INCICONV; do
10618 for x
in $CPPFLAGS; do
10620 acl_save_prefix
="$prefix"
10621 prefix
="$acl_final_prefix"
10622 acl_save_exec_prefix
="$exec_prefix"
10623 exec_prefix
="$acl_final_exec_prefix"
10625 exec_prefix
="$acl_save_exec_prefix"
10626 prefix
="$acl_save_prefix"
10628 if test "X$x" = "X$element"; then
10633 if test -z "$haveit"; then
10634 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10640 $as_echo_n "checking for iconv... " >&6; }
10641 if test "${am_cv_func_iconv+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10645 am_cv_func_iconv
="no, consider installing GNU libiconv"
10647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <stdlib.h>
10654 iconv_t cd = iconv_open("","");
10655 iconv(cd,NULL,NULL,NULL,NULL);
10661 if ac_fn_cxx_try_link
"$LINENO"; then :
10662 am_cv_func_iconv
=yes
10664 rm -f core conftest.err conftest.
$ac_objext \
10665 conftest
$ac_exeext conftest.
$ac_ext
10666 if test "$am_cv_func_iconv" != yes; then
10667 am_save_LIBS
="$LIBS"
10668 LIBS
="$LIBS $LIBICONV"
10669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 #include <stdlib.h>
10676 iconv_t cd = iconv_open("","");
10677 iconv(cd,NULL,NULL,NULL,NULL);
10683 if ac_fn_cxx_try_link
"$LINENO"; then :
10684 am_cv_lib_iconv
=yes
10685 am_cv_func_iconv
=yes
10687 rm -f core conftest.err conftest.
$ac_objext \
10688 conftest
$ac_exeext conftest.
$ac_ext
10689 LIBS
="$am_save_LIBS"
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10694 $as_echo "$am_cv_func_iconv" >&6; }
10695 if test "$am_cv_func_iconv" = yes; then
10697 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10700 if test "$am_cv_lib_iconv" = yes; then
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10702 $as_echo_n "checking how to link with libiconv... " >&6; }
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10704 $as_echo "$LIBICONV" >&6; }
10706 CPPFLAGS
="$am_save_CPPFLAGS"
10713 if test "$am_cv_func_iconv" = yes; then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10715 $as_echo_n "checking for iconv declaration... " >&6; }
10716 if test "${am_cv_proto_iconv+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
10720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10723 #include <stdlib.h>
10729 #if defined(__STDC__) || defined(__cplusplus)
10730 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10743 if ac_fn_cxx_try_compile
"$LINENO"; then :
10744 am_cv_proto_iconv_arg1
=""
10746 am_cv_proto_iconv_arg1
="const"
10748 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10749 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);"
10752 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10754 }$am_cv_proto_iconv" >&5
10756 }$am_cv_proto_iconv" >&6; }
10758 cat >>confdefs.h
<<_ACEOF
10759 #define ICONV_CONST $am_cv_proto_iconv_arg1
10765 # Until we have in-tree GNU iconv:
10767 if test -f "$LTLIBICONV"; then
10768 LIBICONV_DEP
=$LTLIBICONV
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10774 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10775 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
10778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780 #include <locale.h>
10789 if ac_fn_cxx_try_link
"$LINENO"; then :
10790 am_cv_val_LC_MESSAGES
=yes
10792 am_cv_val_LC_MESSAGES
=no
10794 rm -f core conftest.err conftest.
$ac_objext \
10795 conftest
$ac_exeext conftest.
$ac_ext
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10798 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10799 if test $am_cv_val_LC_MESSAGES = yes; then
10801 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10808 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10809 if test "${am_cv_langinfo_codeset+set}" = set; then :
10810 $as_echo_n "(cached) " >&6
10812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10814 #include <langinfo.h>
10818 char* cs = nl_langinfo(CODESET);
10823 if ac_fn_cxx_try_link
"$LINENO"; then :
10824 am_cv_langinfo_codeset
=yes
10826 am_cv_langinfo_codeset
=no
10828 rm -f core conftest.err conftest.
$ac_objext \
10829 conftest
$ac_exeext conftest.
$ac_ext
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10833 $as_echo "$am_cv_langinfo_codeset" >&6; }
10834 if test $am_cv_langinfo_codeset = yes; then
10836 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10841 # We will need to find libiberty.h and ansidecl.h
10842 saved_CFLAGS
="$CFLAGS"
10843 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10844 saved_CXXFLAGS
="$CXXFLAGS"
10845 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10847 # gcc_AC_CHECK_DECLS doesn't support overloaded functions, so use the
10848 # normal autoconf function for these. But force definition of
10849 # HAVE_DECL_BASENAME like gcc_AC_CHECK_DECLS does, to suppress the bizarre
10850 # basename handling in libiberty.h.
10851 ac_fn_cxx_check_decl
"$LINENO" "basename(const char*)" "ac_cv_have_decl_basename_const_charp_" "
10852 #undef HAVE_DECL_BASENAME
10853 #define HAVE_DECL_BASENAME 1
10854 #include \"ansidecl.h\"
10855 #include \"system.h\"
10857 if test "x$ac_cv_have_decl_basename_const_charp_" = x
""yes; then :
10863 cat >>confdefs.h
<<_ACEOF
10864 #define HAVE_DECL_BASENAME $ac_have_decl
10866 ac_fn_cxx_check_decl
"$LINENO" "strstr(const char*,const char*)" "ac_cv_have_decl_strstr_const_charp_const_charp_" "
10867 #undef HAVE_DECL_BASENAME
10868 #define HAVE_DECL_BASENAME 1
10869 #include \"ansidecl.h\"
10870 #include \"system.h\"
10872 if test "x$ac_cv_have_decl_strstr_const_charp_const_charp_" = x
""yes; then :
10878 cat >>confdefs.h
<<_ACEOF
10879 #define HAVE_DECL_STRSTR $ac_have_decl
10883 for ac_func
in getenv atol atoll asprintf sbrk abort atof getcwd getwd \
10884 madvise stpcpy strnlen strsignal strverscmp \
10885 strtol strtoul strtoll strtoull \
10886 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10887 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
10889 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10891 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10892 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10893 $as_echo_n "(cached) " >&6
10895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10898 #define $ac_tr_decl 1
10900 #include "ansidecl.h"
10901 #include "system.h"
10907 char *(*pfn) = (char *(*)) $ac_func ;
10913 if ac_fn_cxx_try_compile
"$LINENO"; then :
10914 eval "gcc_cv_have_decl_$ac_func=yes"
10916 eval "gcc_cv_have_decl_$ac_func=no"
10918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10921 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10923 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10924 #define $ac_tr_decl 1
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10930 #define $ac_tr_decl 0
10938 for ac_func
in getrlimit setrlimit getrusage
10940 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10942 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10943 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10944 $as_echo_n "(cached) " >&6
10946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10949 #define $ac_tr_decl 1
10951 #include "ansidecl.h"
10952 #include "system.h"
10953 #ifdef HAVE_SYS_RESOURCE_H
10954 #include <sys/resource.h>
10962 char *(*pfn) = (char *(*)) $ac_func ;
10968 if ac_fn_cxx_try_compile
"$LINENO"; then :
10969 eval "gcc_cv_have_decl_$ac_func=yes"
10971 eval "gcc_cv_have_decl_$ac_func=no"
10973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10976 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10978 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10979 #define $ac_tr_decl 1
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10985 #define $ac_tr_decl 0
10993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10996 #include "ansidecl.h"
10997 #include "system.h"
10998 #ifdef HAVE_SYS_RESOURCE_H
10999 #include <sys/resource.h>
11010 if ac_fn_cxx_try_compile
"$LINENO"; then :
11014 $as_echo "#define rlim_t long" >>confdefs.h
11017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11019 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
11020 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
11021 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
11022 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
11023 for ac_func
in ldgetname
11025 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11027 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11028 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11029 $as_echo_n "(cached) " >&6
11031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11034 #define $ac_tr_decl 1
11036 #include "ansidecl.h"
11037 #include "system.h"
11038 #ifdef HAVE_LDFCN_H
11049 char *(*pfn) = (char *(*)) $ac_func ;
11055 if ac_fn_cxx_try_compile
"$LINENO"; then :
11056 eval "gcc_cv_have_decl_$ac_func=yes"
11058 eval "gcc_cv_have_decl_$ac_func=no"
11060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11063 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11065 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11066 #define $ac_tr_decl 1
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11072 #define $ac_tr_decl 0
11080 for ac_func
in times
11082 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11084 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11085 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11086 $as_echo_n "(cached) " >&6
11088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11091 #define $ac_tr_decl 1
11093 #include "ansidecl.h"
11094 #include "system.h"
11095 #ifdef HAVE_SYS_TIMES_H
11096 #include <sys/times.h>
11104 char *(*pfn) = (char *(*)) $ac_func ;
11110 if ac_fn_cxx_try_compile
"$LINENO"; then :
11111 eval "gcc_cv_have_decl_$ac_func=yes"
11113 eval "gcc_cv_have_decl_$ac_func=no"
11115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11118 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11120 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11121 #define $ac_tr_decl 1
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11127 #define $ac_tr_decl 0
11135 for ac_func
in sigaltstack
11137 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
11139 $as_echo_n "checking whether $ac_func is declared... " >&6; }
11140 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
11141 $as_echo_n "(cached) " >&6
11143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11146 #define $ac_tr_decl 1
11148 #include "ansidecl.h"
11149 #include "system.h"
11150 #include <signal.h>
11157 char *(*pfn) = (char *(*)) $ac_func ;
11163 if ac_fn_cxx_try_compile
"$LINENO"; then :
11164 eval "gcc_cv_have_decl_$ac_func=yes"
11166 eval "gcc_cv_have_decl_$ac_func=no"
11168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11171 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11173 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
11174 #define $ac_tr_decl 1
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11179 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
11180 #define $ac_tr_decl 0
11188 # More time-related stuff.
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
11190 $as_echo_n "checking for struct tms... " >&6; }
11191 if test "${ac_cv_struct_tms+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
11195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11198 #include "ansidecl.h"
11199 #include "system.h"
11200 #ifdef HAVE_SYS_TIMES_H
11201 #include <sys/times.h>
11212 if ac_fn_cxx_try_compile
"$LINENO"; then :
11213 ac_cv_struct_tms
=yes
11215 ac_cv_struct_tms
=no
11217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
11220 $as_echo "$ac_cv_struct_tms" >&6; }
11221 if test $ac_cv_struct_tms = yes; then
11223 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
11227 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
11228 # revisit after autoconf 2.50.
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
11230 $as_echo_n "checking for clock_t... " >&6; }
11231 if test "${gcc_cv_type_clock_t+set}" = set; then :
11232 $as_echo_n "(cached) " >&6
11235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11238 #include "ansidecl.h"
11239 #include "system.h"
11249 if ac_fn_cxx_try_compile
"$LINENO"; then :
11250 gcc_cv_type_clock_t
=yes
11252 gcc_cv_type_clock_t
=no
11254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
11257 $as_echo "$gcc_cv_type_clock_t" >&6; }
11258 if test $gcc_cv_type_clock_t = yes; then
11260 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
11264 # Check if F_SETLKW is supported by fcntl.
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
11266 $as_echo_n "checking for F_SETLKW... " >&6; }
11267 if test "${ac_cv_f_setlkw+set}" = set; then :
11268 $as_echo_n "(cached) " >&6
11271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11284 return fcntl (1, F_SETLKW, &fl);
11289 if ac_fn_cxx_try_compile
"$LINENO"; then :
11294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11297 $as_echo "$ac_cv_f_setlkw" >&6; }
11298 if test $ac_cv_f_setlkw = yes; then
11300 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11304 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11305 CFLAGS
="$saved_CFLAGS"
11306 CXXFLAGS
="$saved_CXXFLAGS"
11308 # mkdir takes a single argument on some systems.
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11310 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11311 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11312 $as_echo_n "(cached) " >&6
11314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11317 #include <sys/types.h>
11318 #ifdef HAVE_SYS_STAT_H
11319 # include <sys/stat.h>
11321 #ifdef HAVE_UNISTD_H
11322 # include <unistd.h>
11324 #ifdef HAVE_DIRECT_H
11325 # include <direct.h>
11335 if ac_fn_cxx_try_compile
"$LINENO"; then :
11336 gcc_cv_mkdir_takes_one_arg
=no
11338 gcc_cv_mkdir_takes_one_arg
=yes
11340 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11343 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11344 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11346 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11357 # With Setjmp/Longjmp based exception handling.
11358 # Check whether --enable-sjlj-exceptions was given.
11359 if test "${enable_sjlj_exceptions+set}" = set; then :
11360 enableval
=$enable_sjlj_exceptions; case $target in
11362 if test $enableval != yes; then
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11364 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11369 force_sjlj_exceptions
=yes
11373 force_sjlj_exceptions
=yes
11377 force_sjlj_exceptions
=yes
11381 force_sjlj_exceptions
=no
11386 if test $force_sjlj_exceptions = yes; then
11387 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11389 cat >>confdefs.h
<<_ACEOF
11390 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11395 # --------------------------------------------------------
11396 # Build, host, and target specific configuration fragments
11397 # --------------------------------------------------------
11399 # Collect build-machine-specific information.
11400 .
${srcdir}/config.build
11402 # Collect host-machine-specific information.
11403 .
${srcdir}/config.
host
11407 # Collect target-machine-specific information.
11408 .
${srcdir}/config.gcc
11410 extra_objs
="${host_extra_objs} ${extra_objs}"
11411 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11413 # Default the target-machine variables that were not explicitly set.
11414 if test x
"$tm_file" = x
11415 then tm_file
=$cpu_type/$cpu_type.h
; fi
11417 if test x
"$extra_headers" = x
11418 then extra_headers
=; fi
11420 if test x
$md_file = x
11421 then md_file
=$cpu_type/$cpu_type.md
; fi
11423 if test x
$out_file = x
11424 then out_file
=$cpu_type/$cpu_type.c
; fi
11426 if test x
"$tmake_file" = x
11427 then tmake_file
=$cpu_type/t-
$cpu_type
11430 # Support --enable-initfini-array.
11431 if test x
$enable_initfini_array != xno
; then
11432 tm_file
="${tm_file} initfini-array.h"
11435 if test x
"$dwarf2" = xyes
11436 then tm_file
="$tm_file tm-dwarf2.h"
11439 # Say what files are being used for the output code and MD file.
11440 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11441 echo "Using \`$srcdir/config/$md_file' as machine description file."
11443 # If any of the xm_file variables contain nonexistent files, warn
11444 # about them and drop them.
11447 for x
in $build_xm_file; do
11448 if test -f $srcdir/config
/$x
11450 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11451 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11454 build_xm_file
="$bx"
11457 for x
in $host_xm_file; do
11458 if test -f $srcdir/config
/$x
11460 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11461 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11467 for x
in $xm_file; do
11468 if test -f $srcdir/config
/$x
11470 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11471 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11477 for f
in $tm_file; do
11480 if test $count = ax
; then
11481 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11483 echo "Using the following target machine macro files:"
11484 for f
in $tm_file; do
11485 echo " $srcdir/config/$f"
11489 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11491 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11495 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11497 cat >>confdefs.h
<<_ACEOF
11498 #define HAVE_GNU_LD $gnu_ld_bool
11502 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11504 cat >>confdefs.h
<<_ACEOF
11505 #define HAVE_GNU_AS $gnu_as_bool
11510 for f
in $host_xm_file; do
11513 if test $count = a
; then
11515 elif test $count = ax
; then
11516 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11518 echo "Using the following host machine macro files:"
11519 for f
in $host_xm_file; do
11520 echo " $srcdir/config/$f"
11523 echo "Using ${out_host_hook_obj} for host machine hooks."
11525 if test "$host_xm_file" != "$build_xm_file"; then
11527 for f
in $build_xm_file; do
11530 if test $count = a
; then
11532 elif test $count = ax
; then
11533 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11535 echo "Using the following build machine macro files:"
11536 for f
in $build_xm_file; do
11537 echo " $srcdir/config/$f"
11542 if test -n "$configured_native_system_header_dir"; then
11543 native_system_header_dir
=$configured_native_system_header_dir
11545 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11549 powerpc
*-*-darwin*)
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11551 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11552 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
11555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11558 #include <sys/cdefs.h>
11559 #include <sys/signal.h>
11560 #include <ucontext.h>
11561 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11564 if ac_fn_cxx_try_compile
"$LINENO"; then :
11565 gcc_cv_mcontext_underscores
=no
11567 gcc_cv_mcontext_underscores
=yes
11569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11572 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11573 if test $gcc_cv_mcontext_underscores = yes; then
11575 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11585 # Check if a valid thread package
11586 case ${enable_threads} in
11589 target_thread_file
='single'
11593 target_thread_file
='single'
11595 aix | dce | lynx | mipssde | posix | rtems | \
11596 single | tpf | vxworks | win32
)
11597 target_thread_file
=${enable_threads}
11600 echo "${enable_threads} is an unknown thread package" 1>&2
11605 if test x
${thread_file} = x
; then
11606 # No thread file set by target-specific clauses in config.gcc,
11607 # so use file chosen by default logic above
11608 thread_file
=${target_thread_file}
11616 if test x
$enable___cxa_atexit = xyes || \
11617 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11618 if test x
$host = x
$target; then
11620 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11621 # keyed to flag_use_cxa_atexit
11629 ac_fn_cxx_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11630 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11633 echo "__cxa_atexit can't be enabled on this target"
11639 # We can't check for __cxa_atexit when building a cross, so assume
11643 if test x
$use_cxa_atexit = xyes
; then
11645 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11650 # Look for a file containing extra machine modes.
11651 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11652 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11655 cat >>confdefs.h
<<_ACEOF
11656 #define EXTRA_MODES_FILE "config/$extra_modes"
11661 # Convert extra_options into a form suitable for Makefile use.
11664 for f
in $extra_options; do
11665 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11666 all_opt_files
="$all_opt_files $srcdir/config/$f"
11670 # auto-host.h is the file containing items generated by autoconf and is
11671 # the first file included by config.h.
11672 # If host=build, it is correct to have bconfig include auto-host.h
11673 # as well. If host!=build, we are in error and need to do more
11674 # work to find out the build config parameters.
11675 if test x
$host = x
$build
11677 build_auto
=auto-host.h
11679 # We create a subdir, then run autoconf in the subdir.
11680 # To prevent recursion we set host and build for the new
11681 # invocation of configure to the build for this invocation
11688 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11689 *) realsrcdir
=..
/${srcdir};;
11691 # Clearing GMPINC is necessary to prevent host headers being
11692 # used by the build compiler. Defining GENERATOR_FILE stops
11693 # system.h from including gmp.h.
11694 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11695 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11696 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11697 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11698 ${realsrcdir}/configure \
11699 --enable-languages=${enable_languages-all} \
11700 --target=$target_alias --host=$build_alias --build=$build_alias
11702 # We just finished tests for the build machine, so rename
11703 # the file auto-build.h in the gcc directory.
11704 mv auto-host.h ..
/auto-build.h
11707 build_auto
=auto-build.h
11711 tm_file
="${tm_file} defaults.h"
11712 tm_p_file
="${tm_p_file} tm-preds.h"
11713 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11714 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11715 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11716 # put this back in temporarily.
11717 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11723 # Compile in configure arguments.
11724 if test -f configargs.h
; then
11725 # Being re-configured.
11726 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11727 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11729 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11732 # Double all backslashes and backslash all quotes to turn
11733 # gcc_config_arguments into a C string.
11734 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11735 $gcc_config_arguments
11737 gcc_config_arguments_str
=`cat conftest.out`
11740 cat > configargs.h
<<EOF
11741 /* Generated automatically. */
11742 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11743 static const char thread_model[] = "$thread_file";
11745 static const struct {
11746 const char *name, *value;
11747 } configure_default_options[] = $configure_default_options;
11750 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11751 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11752 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11753 if test -f $srcdir/REVISION
; then
11754 gcc_REVISION
=`cat $srcdir/REVISION`
11758 cat > plugin-version.h
<<EOF
11759 #include "configargs.h"
11761 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11762 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11763 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11764 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11766 static char basever[] = "$gcc_BASEVER";
11767 static char datestamp[] = "$gcc_DATESTAMP";
11768 static char devphase[] = "$gcc_DEVPHASE";
11769 static char revision[] = "$gcc_REVISION";
11771 /* FIXME plugins: We should make the version information more precise.
11772 One way to do is to add a checksum. */
11774 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11775 devphase, revision,
11776 configuration_arguments};
11779 # Internationalization
11780 # If we haven't got the data from the intl directory,
11781 # assume NLS is disabled.
11790 if test -f ..
/intl
/config.intl
; then
11791 . ..
/intl
/config.intl
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11794 $as_echo_n "checking whether NLS is requested... " >&6; }
11795 if test x
"$USE_NLS" != xyes
; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11800 $as_echo "yes" >&6; }
11802 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11806 $as_echo_n "checking for catalogs to be installed... " >&6; }
11807 # Look for .po and .gmo files in the source directory.
11810 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11811 # If there aren't any .gmo files the shell will give us the
11812 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11814 case "$cat" in *\
**)
11817 # The quadruple backslash is collapsed to a double backslash
11818 # by the backticks, then collapsed again by the double quotes,
11819 # leaving us with one backslash in the sed expression (right
11820 # before the dot that mustn't act as a wildcard).
11821 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11822 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11823 # The user is allowed to set LINGUAS to a list of languages to
11824 # install catalogs for. If it's empty that means "all of them."
11825 if test "x$LINGUAS" = x
; then
11826 CATALOGS
="$CATALOGS $cat"
11827 XLINGUAS
="$XLINGUAS $lang"
11829 case "$LINGUAS" in *$lang*)
11830 CATALOGS
="$CATALOGS $cat"
11831 XLINGUAS
="$XLINGUAS $lang"
11836 LINGUAS
="$XLINGUAS"
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11838 $as_echo "$LINGUAS" >&6; }
11851 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11852 # -liconv on the link line twice.
11853 case "$LIBINTL" in *$LIBICONV*)
11857 # Check whether --enable-secureplt was given.
11858 if test "${enable_secureplt+set}" = set; then :
11859 enableval
=$enable_secureplt;
11863 # Check whether --enable-leading-mingw64-underscores was given.
11864 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11865 enableval
=$enable_leading_mingw64_underscores;
11868 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11870 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11874 # Check whether --enable-cld was given.
11875 if test "${enable_cld+set}" = set; then :
11876 enableval
=$enable_cld;
11882 # Check whether --enable-frame-pointer was given.
11883 if test "${enable_frame_pointer+set}" = set; then :
11884 enableval
=$enable_frame_pointer;
11888 linux
* | darwin
[8912]*)
11889 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11891 enable_frame_pointer
=no
11894 enable_frame_pointer
=yes
11901 # Windows32 Registry support for specifying GCC installation paths.
11902 # Check whether --enable-win32-registry was given.
11903 if test "${enable_win32_registry+set}" = set; then :
11904 enableval
=$enable_win32_registry;
11909 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11910 if test "x$enable_win32_registry" != xno
; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11912 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11913 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11914 $as_echo_n "(cached) " >&6
11916 ac_func_search_save_LIBS
=$LIBS
11917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11920 /* Override any GCC internal prototype to avoid an error.
11921 Use char because int might match the return type of a GCC
11922 builtin and then its argument prototype would still apply. */
11926 char RegOpenKeyExA ();
11930 return RegOpenKeyExA ();
11935 for ac_lib
in '' advapi32
; do
11936 if test -z "$ac_lib"; then
11937 ac_res
="none required"
11940 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11942 if ac_fn_cxx_try_link
"$LINENO"; then :
11943 ac_cv_search_RegOpenKeyExA
=$ac_res
11945 rm -f core conftest.err conftest.
$ac_objext \
11947 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11951 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11954 ac_cv_search_RegOpenKeyExA
=no
11956 rm conftest.
$ac_ext
11957 LIBS
=$ac_func_search_save_LIBS
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11960 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11961 ac_res
=$ac_cv_search_RegOpenKeyExA
11962 if test "$ac_res" != no
; then :
11963 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11966 enable_win32_registry
=no
11971 if test "x$enable_win32_registry" != xno
; then
11973 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11976 if test "x$enable_win32_registry" != xyes \
11977 && test "x$enable_win32_registry" != x
; then
11979 cat >>confdefs.h
<<_ACEOF
11980 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11988 # Get an absolute path to the GCC top-level source directory
11989 holddir
=`${PWDCMD-pwd}`
11991 topdir
=`${PWDCMD-pwd}`
11994 # Conditionalize the makefile for this host machine.
11996 for f
in ${host_xmake_file}
11998 if test -f ${srcdir}/config
/$f
12000 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
12004 # Conditionalize the makefile for this target machine.
12006 for f
in ${tmake_file}
12008 if test -f ${srcdir}/config
/$f
12010 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
12013 tmake_file
="${tmake_file_}"
12015 out_object_file
=`basename $out_file .c`.o
12016 common_out_object_file
=`basename $common_out_file .c`.o
12018 tm_file_list
="options.h"
12019 tm_include_list
="options.h insn-constants.h"
12020 for f
in $tm_file; do
12023 f
=`echo $f | sed 's/^..//'`
12024 tm_file_list
="${tm_file_list} $f"
12025 tm_include_list
="${tm_include_list} $f"
12028 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
12029 tm_include_list
="${tm_include_list} $f"
12032 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
12033 tm_include_list
="${tm_include_list} config/$f"
12040 for f
in $tm_p_file; do
12043 tm_p_file_list
="${tm_p_file_list} $f"
12044 tm_p_include_list
="${tm_p_include_list} $f"
12047 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
12048 tm_p_include_list
="${tm_p_include_list} config/$f"
12054 for f
in $xm_file; do
12057 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
12058 xm_include_list
="${xm_include_list} $f"
12061 xm_file_list
="${xm_file_list} $f"
12062 xm_include_list
="${xm_include_list} $f"
12065 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
12066 xm_include_list
="${xm_include_list} config/$f"
12072 host_xm_include_list
=
12073 for f
in $host_xm_file; do
12076 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
12077 host_xm_include_list
="${host_xm_include_list} $f"
12080 host_xm_file_list
="${host_xm_file_list} $f"
12081 host_xm_include_list
="${host_xm_include_list} $f"
12084 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
12085 host_xm_include_list
="${host_xm_include_list} config/$f"
12090 build_xm_file_list
=
12091 for f
in $build_xm_file; do
12094 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
12095 build_xm_include_list
="${build_xm_include_list} $f"
12097 auto-build.h | auto-host.h
)
12098 build_xm_file_list
="${build_xm_file_list} $f"
12099 build_xm_include_list
="${build_xm_include_list} $f"
12102 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
12103 build_xm_include_list
="${build_xm_include_list} config/$f"
12108 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
12109 # cross-compiler which does not use the native headers and libraries.
12110 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
12113 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12115 if test "x$with_build_sysroot" != x
; then
12116 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
12118 # This value is used, even on a native system, because
12119 # CROSS_SYSTEM_HEADER_DIR is just
12120 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
12121 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
12124 if test x
$host != x
$target
12126 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
12128 SYSTEM_HEADER_DIR
=$build_system_header_dir
12129 case "$host","$target" in
12130 # Darwin crosses can use the host system's libraries and headers,
12131 # because of the fat library support. Of course, it must be the
12132 # same version of Darwin on both sides. Allow the user to
12133 # just say --target=foo-darwin without a version number to mean
12134 # "the version on this system".
12135 *-*-darwin*,*-*-darwin*)
12136 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
12137 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
12138 if test $hostos = $targetos -o $targetos = darwin
; then
12140 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
12145 i?
86-*-*,x86_64-
*-* \
12146 | powerpc
*-*-*,powerpc64
*-*-*)
12147 CROSS
="$CROSS -DNATIVE_CROSS" ;;
12152 if test "x$with_headers" = x
; then
12159 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
12160 SYSTEM_HEADER_DIR
=$build_system_header_dir
12163 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
12164 if test "x$with_headers" != x
; then
12165 target_header_dir
=$with_headers
12166 elif test "x$with_sysroot" = x
; then
12167 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
12168 elif test "x$with_build_sysroot" != "x"; then
12169 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
12170 elif test "x$with_sysroot" = xyes
; then
12171 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
12173 target_header_dir
="${with_sysroot}${native_system_header_dir}"
12176 target_header_dir
=${native_system_header_dir}
12179 # If this is a cross-compiler that does not
12180 # have its own set of headers then define
12183 # If this is using newlib, without having the headers available now,
12184 # then define inhibit_libc in LIBGCC2_CFLAGS.
12185 # This prevents libgcc2 from containing any code which requires libc
12187 : ${inhibit_libc=false}
12188 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
12189 test x
$with_newlib = xyes
; } &&
12190 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
12195 # When building gcc with a cross-compiler, we need to adjust things so
12196 # that the generator programs are still built with the native compiler.
12197 # Also, we cannot run fixincludes.
12199 # These are the normal (build=host) settings:
12200 CC_FOR_BUILD
='$(CC)'
12201 CXX_FOR_BUILD
='$(CXX)'
12202 BUILD_CFLAGS
='$(ALL_CFLAGS)'
12203 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
12204 BUILD_LDFLAGS
='$(LDFLAGS)'
12205 STMP_FIXINC
=stmp-fixinc
12207 # And these apply if build != host, or we are generating coverage data
12208 if test x
$build != x
$host ||
test "x$coverage_flags" != x
12210 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
12211 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
12212 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
12215 # Expand extra_headers to include complete path.
12216 # This substitutes for lots of t-* files.
12217 extra_headers_list
=
12218 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
12219 for file in ${extra_headers} ; do
12220 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
12223 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
12224 if test x
"$use_gcc_tgmath" = xyes
12225 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
12228 # Define collect2 in Makefile.
12229 case $host_can_use_collect2 in
12231 *) collect2
='collect2$(exeext)' ;;
12235 # Add a definition of USE_COLLECT2 if system wants one.
12236 case $use_collect2 in
12237 no
) use_collect2
= ;;
12240 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
12241 xm_defines
="${xm_defines} USE_COLLECT2"
12242 case $host_can_use_collect2 in
12244 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
12251 cat >>confdefs.h
<<_ACEOF
12252 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
12256 # ---------------------------
12257 # Assembler & linker features
12258 # ---------------------------
12260 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
12261 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
12262 # However when ld-new is first executed from the build tree, libtool will
12263 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
12264 # to the build tree. While doing this we need to use the previous-stage
12265 # linker, or we have an infinite loop. The presence of a shell script as
12266 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
12267 # the gcc/collect-ld script. So we need to know how libtool works, or
12268 # exec-tool will fail.
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12274 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12279 macro_version
='2.2.7a'
12280 macro_revision
='1.3134'
12294 ltmain
="$ac_aux_dir/ltmain.sh"
12296 # Backslashify metacharacters that are still active within
12297 # double-quoted strings.
12298 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12300 # Same as above, but do not quote variable references.
12301 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12303 # Sed substitution to delay expansion of an escaped shell variable in a
12304 # double_quote_subst'ed string.
12305 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12307 # Sed substitution to delay expansion of an escaped single quote.
12308 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12310 # Sed substitution to avoid accidental globbing in evaled expressions
12311 no_glob_subst
='s/\*/\\\*/g'
12313 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12314 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12315 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12318 $as_echo_n "checking how to print strings... " >&6; }
12319 # Test print first, because it will be a builtin if present.
12320 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12321 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12323 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12326 # Use this function as a fallback that always works.
12327 func_fallback_echo ()
12329 eval 'cat <<_LTECHO_EOF
12333 ECHO='func_fallback_echo
'
12336 # func_echo_all arg...
12337 # Invoke $ECHO with all args, space-separated.
12344 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12345 $as_echo "printf" >&6; } ;;
12346 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12347 $as_echo "print -r" >&6; } ;;
12348 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12349 $as_echo "cat" >&6; } ;;
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12366 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12367 if test "${ac_cv_path_SED+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12370 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12371 for ac_i in 1 2 3 4 5 6 7; do
12372 ac_script="$ac_script$as_nl$ac_script"
12374 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12375 { ac_script=; unset ac_script;}
12376 if test -z "$SED"; then
12377 ac_path_SED_found=false
12378 # Loop through the user's path and
test for each of PROGNAME-LIST
12379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12380 for as_dir
in $PATH
12383 test -z "$as_dir" && as_dir
=.
12384 for ac_prog
in sed gsed
; do
12385 for ac_exec_ext
in '' $ac_executable_extensions; do
12386 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12387 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12388 # Check for GNU ac_path_SED and select it if it is found.
12389 # Check for GNU $ac_path_SED
12390 case `"$ac_path_SED" --version 2>&1` in
12392 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12395 $as_echo_n 0123456789 >"conftest.in"
12398 cat "conftest.in" "conftest.in" >"conftest.tmp"
12399 mv "conftest.tmp" "conftest.in"
12400 cp "conftest.in" "conftest.nl"
12401 $as_echo '' >> "conftest.nl"
12402 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12403 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12404 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12405 if test $ac_count -gt ${ac_path_SED_max-0}; then
12406 # Best one so far, save it but keep looking for a better one
12407 ac_cv_path_SED
="$ac_path_SED"
12408 ac_path_SED_max
=$ac_count
12410 # 10*(2^10) chars as input seems more than enough
12411 test $ac_count -gt 10 && break
12413 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12416 $ac_path_SED_found && break 3
12421 if test -z "$ac_cv_path_SED"; then
12422 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12425 ac_cv_path_SED
=$SED
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12430 $as_echo "$ac_cv_path_SED" >&6; }
12431 SED
="$ac_cv_path_SED"
12434 test -z "$SED" && SED
=sed
12435 Xsed
="$SED -e 1s/^X//"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12448 $as_echo_n "checking for fgrep... " >&6; }
12449 if test "${ac_cv_path_FGREP+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12452 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12453 then ac_cv_path_FGREP
="$GREP -F"
12455 if test -z "$FGREP"; then
12456 ac_path_FGREP_found
=false
12457 # Loop through the user's path and test for each of PROGNAME-LIST
12458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12459 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12462 test -z "$as_dir" && as_dir
=.
12463 for ac_prog
in fgrep
; do
12464 for ac_exec_ext
in '' $ac_executable_extensions; do
12465 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12466 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12467 # Check for GNU ac_path_FGREP and select it if it is found.
12468 # Check for GNU $ac_path_FGREP
12469 case `"$ac_path_FGREP" --version 2>&1` in
12471 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12474 $as_echo_n 0123456789 >"conftest.in"
12477 cat "conftest.in" "conftest.in" >"conftest.tmp"
12478 mv "conftest.tmp" "conftest.in"
12479 cp "conftest.in" "conftest.nl"
12480 $as_echo 'FGREP' >> "conftest.nl"
12481 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12482 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12483 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12484 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12485 # Best one so far, save it but keep looking for a better one
12486 ac_cv_path_FGREP
="$ac_path_FGREP"
12487 ac_path_FGREP_max
=$ac_count
12489 # 10*(2^10) chars as input seems more than enough
12490 test $ac_count -gt 10 && break
12492 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12495 $ac_path_FGREP_found && break 3
12500 if test -z "$ac_cv_path_FGREP"; then
12501 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12504 ac_cv_path_FGREP
=$FGREP
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12510 $as_echo "$ac_cv_path_FGREP" >&6; }
12511 FGREP
="$ac_cv_path_FGREP"
12514 test -z "$GREP" && GREP
=grep
12534 # Check whether --with-gnu-ld was given.
12535 if test "${with_gnu_ld+set}" = set; then :
12536 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12542 if test "$GCC" = yes; then
12543 # Check if gcc -print-prog-name=ld gives a path.
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12545 $as_echo_n "checking for ld used by $CC... " >&6; }
12548 # gcc leaves a trailing carriage return which upsets mingw
12549 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12551 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12554 # Accept absolute paths.
12556 re_direlt
='/[^/][^/]*/\.\./'
12557 # Canonicalize the pathname of ld
12558 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12559 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12560 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12562 test -z "$LD" && LD
="$ac_prog"
12565 # If it fails, then pretend we aren't using GCC.
12569 # If it is relative, then search for the first ld in PATH.
12570 with_gnu_ld
=unknown
12573 elif test "$with_gnu_ld" = yes; then
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12575 $as_echo_n "checking for GNU ld... " >&6; }
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12578 $as_echo_n "checking for non-GNU ld... " >&6; }
12580 if test "${lt_cv_path_LD+set}" = set; then :
12581 $as_echo_n "(cached) " >&6
12583 if test -z "$LD"; then
12584 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12585 for ac_dir
in $PATH; do
12587 test -z "$ac_dir" && ac_dir
=.
12588 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12589 lt_cv_path_LD
="$ac_dir/$ac_prog"
12590 # Check to see if the program is GNU ld. I'd rather use --version,
12591 # but apparently some variants of GNU ld only accept -v.
12592 # Break only if it was the GNU/non-GNU ld that we prefer.
12593 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12594 *GNU
* |
*'with BFD'*)
12595 test "$with_gnu_ld" != no
&& break
12598 test "$with_gnu_ld" != yes && break
12605 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12609 LD
="$lt_cv_path_LD"
12610 if test -n "$LD"; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12612 $as_echo "$LD" >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615 $as_echo "no" >&6; }
12617 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12619 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12620 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12621 $as_echo_n "(cached) " >&6
12623 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12624 case `$LD -v 2>&1 </dev/null` in
12625 *GNU
* |
*'with BFD'*)
12626 lt_cv_prog_gnu_ld
=yes
12629 lt_cv_prog_gnu_ld
=no
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12634 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12635 with_gnu_ld
=$lt_cv_prog_gnu_ld
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12646 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12647 if test "${lt_cv_path_NM+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12650 if test -n "$NM"; then
12651 # Let the user override the test.
12652 lt_cv_path_NM
="$NM"
12654 lt_nm_to_check
="${ac_tool_prefix}nm"
12655 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12656 lt_nm_to_check
="$lt_nm_to_check nm"
12658 for lt_tmp_nm
in $lt_nm_to_check; do
12659 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12660 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12662 test -z "$ac_dir" && ac_dir
=.
12663 tmp_nm
="$ac_dir/$lt_tmp_nm"
12664 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12665 # Check to see if the nm accepts a BSD-compat flag.
12666 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12667 # nm: unknown option "B" ignored
12668 # Tru64's nm complains that /dev/null is an invalid object file
12669 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12670 */dev
/null
* |
*'Invalid file or object type'*)
12671 lt_cv_path_NM
="$tmp_nm -B"
12675 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12677 lt_cv_path_NM
="$tmp_nm -p"
12681 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12682 continue # so that we can try to find one that supports BSD flags
12691 : ${lt_cv_path_NM=no}
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12695 $as_echo "$lt_cv_path_NM" >&6; }
12696 if test "$lt_cv_path_NM" != "no"; then
12697 NM
="$lt_cv_path_NM"
12699 # Didn't find any BSD compatible name lister, look for dumpbin.
12700 if test -n "$DUMPBIN"; then :
12701 # Let the user override the test.
12703 if test -n "$ac_tool_prefix"; then
12704 for ac_prog
in dumpbin
"link -dump"
12706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12707 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709 $as_echo_n "checking for $ac_word... " >&6; }
12710 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
12713 if test -n "$DUMPBIN"; then
12714 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12717 for as_dir
in $PATH
12720 test -z "$as_dir" && as_dir
=.
12721 for ac_exec_ext
in '' $ac_executable_extensions; do
12722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12723 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12733 DUMPBIN
=$ac_cv_prog_DUMPBIN
12734 if test -n "$DUMPBIN"; then
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12736 $as_echo "$DUMPBIN" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12739 $as_echo "no" >&6; }
12743 test -n "$DUMPBIN" && break
12746 if test -z "$DUMPBIN"; then
12747 ac_ct_DUMPBIN
=$DUMPBIN
12748 for ac_prog
in dumpbin
"link -dump"
12750 # Extract the first word of "$ac_prog", so it can be a program name with args.
12751 set dummy
$ac_prog; ac_word
=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12755 $as_echo_n "(cached) " >&6
12757 if test -n "$ac_ct_DUMPBIN"; then
12758 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12761 for as_dir
in $PATH
12764 test -z "$as_dir" && as_dir
=.
12765 for ac_exec_ext
in '' $ac_executable_extensions; do
12766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12767 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12778 if test -n "$ac_ct_DUMPBIN"; then
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12780 $as_echo "$ac_ct_DUMPBIN" >&6; }
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783 $as_echo "no" >&6; }
12787 test -n "$ac_ct_DUMPBIN" && break
12790 if test "x$ac_ct_DUMPBIN" = x
; then
12793 case $cross_compiling:$ac_tool_warned in
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12797 ac_tool_warned
=yes ;;
12799 DUMPBIN
=$ac_ct_DUMPBIN
12803 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12805 DUMPBIN
="$DUMPBIN -symbols"
12813 if test "$DUMPBIN" != ":"; then
12817 test -z "$NM" && NM
=nm
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12825 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12826 if test "${lt_cv_nm_interface+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12829 lt_cv_nm_interface
="BSD nm"
12830 echo "int some_variable = 0;" > conftest.
$ac_ext
12831 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12832 (eval "$ac_compile" 2>conftest.err
)
12833 cat conftest.err
>&5
12834 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12835 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12836 cat conftest.err
>&5
12837 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12838 cat conftest.out
>&5
12839 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12840 lt_cv_nm_interface
="MS dumpbin"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12845 $as_echo "$lt_cv_nm_interface" >&6; }
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12848 $as_echo_n "checking whether ln -s works... " >&6; }
12850 if test "$LN_S" = "ln -s"; then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12852 $as_echo "yes" >&6; }
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12855 $as_echo "no, using $LN_S" >&6; }
12858 # find the maximum length of command line arguments
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12860 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12861 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12869 # On DJGPP, this test can blow up pretty badly due to problems in libc
12870 # (any single argument exceeding 2000 bytes causes a buffer overrun
12871 # during glob expansion). Even if it were fixed, the result of this
12872 # check would be larger than it should be.
12873 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12877 # Under GNU Hurd, this test is not required because there is
12878 # no limit to the length of command line arguments.
12879 # Libtool will interpret -1 as no limit whatsoever
12880 lt_cv_sys_max_cmd_len
=-1;
12883 cygwin
* | mingw
* | cegcc
*)
12884 # On Win9x/ME, this test blows up -- it succeeds, but takes
12885 # about 5 minutes as the teststring grows exponentially.
12886 # Worse, since 9x/ME are not pre-emptively multitasking,
12887 # you end up with a "frozen" computer, even though with patience
12888 # the test eventually succeeds (with a max line length of 256k).
12889 # Instead, let's just punt: use the minimum linelength reported by
12890 # all of the supported platforms: 8192 (on NT/2K/XP).
12891 lt_cv_sys_max_cmd_len
=8192;
12895 # On MiNT this can take a long time and run out of memory.
12896 lt_cv_sys_max_cmd_len
=8192;
12900 # On AmigaOS with pdksh, this test takes hours, literally.
12901 # So we just punt and use a minimum line length of 8192.
12902 lt_cv_sys_max_cmd_len
=8192;
12905 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12906 # This has been around since 386BSD, at least. Likely further.
12907 if test -x /sbin
/sysctl
; then
12908 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12909 elif test -x /usr
/sbin
/sysctl
; then
12910 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12912 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12914 # And add a safety zone
12915 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12916 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12920 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12921 lt_cv_sys_max_cmd_len
=196608
12925 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12926 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12927 # nice to cause kernel panics so lets avoid the loop below.
12928 # First set a reasonable default.
12929 lt_cv_sys_max_cmd_len
=16384
12931 if test -x /sbin
/sysconfig
; then
12932 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12933 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12938 lt_cv_sys_max_cmd_len
=102400
12940 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12941 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12942 if test -n "$kargmax"; then
12943 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12945 lt_cv_sys_max_cmd_len
=32768
12949 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12950 if test -n "$lt_cv_sys_max_cmd_len"; then
12951 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12952 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12954 # Make teststring a little bigger before we do anything with it.
12955 # a 1K string should be a reasonable start.
12956 for i
in 1 2 3 4 5 6 7 8 ; do
12957 teststring
=$teststring$teststring
12959 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12960 # If test is not a shell built-in, we'll probably end up computing a
12961 # maximum length that is only half of the actual maximum length, but
12963 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12964 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12965 test $i != 17 # 1/2 MB should be enough
12968 teststring
=$teststring$teststring
12970 # Only check the string length outside the loop.
12971 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12973 # Add a significant safety factor because C++ compilers can tack on
12974 # massive amounts of additional arguments before passing them to the
12975 # linker. It appears as though 1/2 is a usable value.
12976 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12983 if test -n $lt_cv_sys_max_cmd_len ; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12985 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12988 $as_echo "none" >&6; }
12990 max_cmd_len
=$lt_cv_sys_max_cmd_len
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
13002 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
13003 # Try some XSI features
13005 ( _lt_dummy
="a/b/c"
13006 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
13008 && eval 'test $(( 1 + 1 )) -eq 2 \
13009 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
13012 $as_echo "$xsi_shell" >&6; }
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
13016 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
13018 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
13020 && lt_shell_append=yes
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
13022 $as_echo "$lt_shell_append" >&6; }
13025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13035 # test EBCDIC or ASCII
13036 case `echo X|tr X '\101'` in
13037 A) # ASCII based system
13038 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13039 lt_SP2NL='tr \040 \012'
13040 lt_NL2SP='tr \015\012 \040\040'
13042 *) # EBCDIC based system
13043 lt_SP2NL='tr \100 \n'
13044 lt_NL2SP='tr \r\n \100\100'
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
13057 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
13058 if test "${lt_cv_ld_reload_flag+set}" = set; then :
13059 $as_echo_n "(cached
) " >&6
13061 lt_cv_ld_reload_flag='-r'
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
13064 $as_echo "$lt_cv_ld_reload_flag" >&6; }
13065 reload_flag=$lt_cv_ld_reload_flag
13066 case $reload_flag in
13068 *) reload_flag=" $reload_flag" ;;
13070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13073 if test "$GCC" = yes; then
13074 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
13076 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13089 if test -n "$ac_tool_prefix"; then
13090 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
13091 set dummy ${ac_tool_prefix}objdump; ac_word=$2
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13093 $as_echo_n "checking
for $ac_word...
" >&6; }
13094 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
13095 $as_echo_n "(cached
) " >&6
13097 if test -n "$OBJDUMP"; then
13098 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101 for as_dir in $PATH
13104 test -z "$as_dir" && as_dir=.
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13107 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
13108 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13117 OBJDUMP=$ac_cv_prog_OBJDUMP
13118 if test -n "$OBJDUMP"; then
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13120 $as_echo "$OBJDUMP" >&6; }
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13123 $as_echo "no
" >&6; }
13128 if test -z "$ac_cv_prog_OBJDUMP"; then
13129 ac_ct_OBJDUMP=$OBJDUMP
13130 # Extract the first word of "objdump
", so it can be a program name with args.
13131 set dummy objdump; ac_word=$2
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13133 $as_echo_n "checking
for $ac_word...
" >&6; }
13134 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
13135 $as_echo_n "(cached
) " >&6
13137 if test -n "$ac_ct_OBJDUMP"; then
13138 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
13148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13157 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13158 if test -n "$ac_ct_OBJDUMP"; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
13160 $as_echo "$ac_ct_OBJDUMP" >&6; }
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13163 $as_echo "no
" >&6; }
13166 if test "x
$ac_ct_OBJDUMP" = x; then
13169 case $cross_compiling:$ac_tool_warned in
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13172 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13173 ac_tool_warned=yes ;;
13175 OBJDUMP=$ac_ct_OBJDUMP
13178 OBJDUMP="$ac_cv_prog_OBJDUMP"
13181 test -z "$OBJDUMP" && OBJDUMP=objdump
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
13192 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
13193 if test "${lt_cv_deplibs_check_method+set}" = set; then :
13194 $as_echo_n "(cached
) " >&6
13196 lt_cv_file_magic_cmd='$MAGIC_CMD'
13197 lt_cv_file_magic_test_file=
13198 lt_cv_deplibs_check_method='unknown'
13199 # Need to set the preceding variable on all platforms that support
13200 # interlibrary dependencies.
13201 # 'none' -- dependencies not supported.
13202 # `unknown' -- same as none, but documents that we really don't know.
13203 # 'pass_all' -- all dependencies passed with no checks.
13204 # 'test_compile' -- check by making test program.
13205 # 'file_magic [[regex]]' -- check by looking for files in library path
13206 # which responds to the $file_magic_cmd with a given extended regex.
13207 # If you have `file' or equivalent on your system and you're not sure
13208 # whether `pass_all' will *always* work, you probably want this one.
13212 lt_cv_deplibs_check_method=pass_all
13216 lt_cv_deplibs_check_method=pass_all
13220 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13221 lt_cv_file_magic_cmd='/usr/bin/file -L'
13222 lt_cv_file_magic_test_file=/shlib/libc.so
13226 # func_win32_libid is a shell function defined in ltmain.sh
13227 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13228 lt_cv_file_magic_cmd='func_win32_libid'
13232 # Base MSYS/MinGW do not provide the 'file' command needed by
13233 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13234 # unless we find 'file', for example because we are cross-compiling.
13235 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
13236 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
13237 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13238 lt_cv_file_magic_cmd='func_win32_libid'
13240 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
13241 lt_cv_file_magic_cmd='$OBJDUMP -f'
13246 # use the weaker test based on 'objdump'. See mingw*.
13247 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13248 lt_cv_file_magic_cmd='$OBJDUMP -f'
13251 darwin* | rhapsody*)
13252 lt_cv_deplibs_check_method=pass_all
13255 freebsd* | dragonfly*)
13256 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13259 # Not sure whether the presence of OpenBSD here was a mistake.
13260 # Let's accept both of them until this is cleared up.
13261 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13262 lt_cv_file_magic_cmd=/usr/bin/file
13263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13267 lt_cv_deplibs_check_method=pass_all
13272 lt_cv_deplibs_check_method=pass_all
13276 lt_cv_deplibs_check_method=pass_all
13279 hpux10.20* | hpux11*)
13280 lt_cv_file_magic_cmd=/usr/bin/file
13283 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13284 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13287 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]'
13288 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13292 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13298 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13299 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13302 irix5* | irix6* | nonstopux*)
13304 *-32|*"-32 ") libmagic=32-bit;;
13305 *-n32|*"-n32 ") libmagic=N32;;
13306 *-64|*"-64 ") libmagic=64-bit;;
13307 *) libmagic=never-match;;
13309 lt_cv_deplibs_check_method=pass_all
13312 # This must be Linux ELF.
13313 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13314 lt_cv_deplibs_check_method=pass_all
13318 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13326 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13327 lt_cv_file_magic_cmd=/usr/bin/file
13328 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13332 lt_cv_deplibs_check_method=pass_all
13336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13337 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13343 osf3* | osf4* | osf5*)
13344 lt_cv_deplibs_check_method=pass_all
13348 lt_cv_deplibs_check_method=pass_all
13352 lt_cv_deplibs_check_method=pass_all
13355 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13356 lt_cv_deplibs_check_method=pass_all
13360 case $host_vendor in
13362 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]'
13363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13366 lt_cv_deplibs_check_method=pass_all
13369 lt_cv_file_magic_cmd='/bin/file'
13370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13373 lt_cv_file_magic_cmd='/bin/file'
13374 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13375 lt_cv_file_magic_test_file=/lib/libc.so
13378 lt_cv_deplibs_check_method=pass_all
13381 lt_cv_deplibs_check_method=pass_all
13387 lt_cv_deplibs_check_method=pass_all
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13393 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13394 file_magic_cmd=$lt_cv_file_magic_cmd
13395 deplibs_check_method=$lt_cv_deplibs_check_method
13396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13409 if test -n "$ac_tool_prefix"; then
13410 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13411 set dummy ${ac_tool_prefix}ar; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13413 $as_echo_n "checking
for $ac_word...
" >&6; }
13414 if test "${ac_cv_prog_AR+set}" = set; then :
13415 $as_echo_n "(cached
) " >&6
13417 if test -n "$AR"; then
13418 ac_cv_prog_AR="$AR" # Let the user override the test.
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_AR="${ac_tool_prefix}ar"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13438 if test -n "$AR"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13440 $as_echo "$AR" >&6; }
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13443 $as_echo "no
" >&6; }
13448 if test -z "$ac_cv_prog_AR"; then
13450 # Extract the first word of "ar", so it can be a program name with args.
13451 set dummy ar; ac_word=$2
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13453 $as_echo_n "checking
for $ac_word...
" >&6; }
13454 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13455 $as_echo_n "(cached
) " >&6
13457 if test -n "$ac_ct_AR"; then
13458 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461 for as_dir in $PATH
13464 test -z "$as_dir" && as_dir=.
13465 for ac_exec_ext in '' $ac_executable_extensions; do
13466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13467 ac_cv_prog_ac_ct_AR="ar"
13468 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13477 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13478 if test -n "$ac_ct_AR"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13480 $as_echo "$ac_ct_AR" >&6; }
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13483 $as_echo "no
" >&6; }
13486 if test "x
$ac_ct_AR" = x; then
13489 case $cross_compiling:$ac_tool_warned in
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13492 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13493 ac_tool_warned=yes ;;
13498 AR="$ac_cv_prog_AR"
13501 test -z "$AR" && AR=ar
13502 test -z "$AR_FLAGS" && AR_FLAGS=cru
13514 if test -n "$ac_tool_prefix"; then
13515 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13516 set dummy ${ac_tool_prefix}strip; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13518 $as_echo_n "checking
for $ac_word...
" >&6; }
13519 if test "${ac_cv_prog_STRIP+set}" = set; then :
13520 $as_echo_n "(cached
) " >&6
13522 if test -n "$STRIP"; then
13523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13532 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13542 STRIP=$ac_cv_prog_STRIP
13543 if test -n "$STRIP"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13545 $as_echo "$STRIP" >&6; }
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13548 $as_echo "no
" >&6; }
13553 if test -z "$ac_cv_prog_STRIP"; then
13555 # Extract the first word of "strip
", so it can be a program name with args.
13556 set dummy strip; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13558 $as_echo_n "checking
for $ac_word...
" >&6; }
13559 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13560 $as_echo_n "(cached
) " >&6
13562 if test -n "$ac_ct_STRIP"; then
13563 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13572 ac_cv_prog_ac_ct_STRIP="strip
"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13582 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13583 if test -n "$ac_ct_STRIP"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13585 $as_echo "$ac_ct_STRIP" >&6; }
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13588 $as_echo "no
" >&6; }
13591 if test "x
$ac_ct_STRIP" = x; then
13594 case $cross_compiling:$ac_tool_warned in
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13597 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13598 ac_tool_warned=yes ;;
13603 STRIP="$ac_cv_prog_STRIP"
13606 test -z "$STRIP" && STRIP=:
13613 if test -n "$ac_tool_prefix"; then
13614 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13615 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13617 $as_echo_n "checking
for $ac_word...
" >&6; }
13618 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13619 $as_echo_n "(cached
) " >&6
13621 if test -n "$RANLIB"; then
13622 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13631 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13641 RANLIB=$ac_cv_prog_RANLIB
13642 if test -n "$RANLIB"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13644 $as_echo "$RANLIB" >&6; }
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13647 $as_echo "no
" >&6; }
13652 if test -z "$ac_cv_prog_RANLIB"; then
13653 ac_ct_RANLIB=$RANLIB
13654 # Extract the first word of "ranlib
", so it can be a program name with args.
13655 set dummy ranlib; ac_word=$2
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13657 $as_echo_n "checking
for $ac_word...
" >&6; }
13658 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13659 $as_echo_n "(cached
) " >&6
13661 if test -n "$ac_ct_RANLIB"; then
13662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13665 for as_dir in $PATH
13668 test -z "$as_dir" && as_dir=.
13669 for ac_exec_ext in '' $ac_executable_extensions; do
13670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13671 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13672 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13681 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13682 if test -n "$ac_ct_RANLIB"; then
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13684 $as_echo "$ac_ct_RANLIB" >&6; }
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13687 $as_echo "no
" >&6; }
13690 if test "x
$ac_ct_RANLIB" = x; then
13693 case $cross_compiling:$ac_tool_warned in
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13696 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13697 ac_tool_warned=yes ;;
13699 RANLIB=$ac_ct_RANLIB
13702 RANLIB="$ac_cv_prog_RANLIB"
13705 test -z "$RANLIB" && RANLIB=:
13712 # Determine commands to create old-style static archives.
13713 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13714 old_postinstall_cmds='chmod 644 $oldlib'
13715 old_postuninstall_cmds=
13717 if test -n "$RANLIB"; then
13720 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13723 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13726 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13731 lock_old_archive_extraction=yes ;;
13733 lock_old_archive_extraction=no ;;
13774 # If no C compiler was specified, use CC.
13777 # If no C compiler flags were specified, use CFLAGS.
13778 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13780 # Allow CC to be a program name with arguments.
13784 # Check for command to grab the raw symbol name followed by C symbol from nm.
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13786 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13787 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13788 $as_echo_n "(cached
) " >&6
13791 # These are sane defaults that work on at least a few old systems.
13792 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13794 # Character class describing NM global symbol codes.
13795 symcode='[BCDEGRST]'
13797 # Regexp to match symbols that can be accessed directly from C.
13798 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13800 # Define system-specific variables.
13805 cygwin* | mingw* | pw32* | cegcc*)
13806 symcode='[ABCDGISTW]'
13809 if test "$host_cpu" = ia64; then
13810 symcode='[ABCDEGRST]'
13813 irix* | nonstopux*)
13814 symcode='[BCDEGRST]'
13817 symcode='[BCDEGQRST]'
13828 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13836 # If we're using GNU nm, then use its standard symbol codes.
13837 case `$NM -V 2>&1` in
13838 *GNU* | *'with BFD'*)
13839 symcode='[ABCDGIRSTW]' ;;
13842 # Transform an extracted symbol line into a proper C declaration.
13843 # Some systems (esp. on ia64) link data and code symbols differently,
13844 # so use this general approach.
13845 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13847 # Transform an extracted symbol line into symbol name and symbol address
13848 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13849 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'"
13851 # Handle CRLF in mingw tool chain
13855 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13859 # Try without a prefix underscore, then with it.
13860 for ac_symprfx in "" "_
"; do
13862 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13863 symxfrm="\\1 $ac_symprfx\\2 \\2"
13865 # Write the raw and C identifiers.
13866 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13867 # Fake it for dumpbin and say T for any non-static function
13868 # and D for any global variable.
13869 # Also find C++ and __fastcall symbols from MSVC++,
13870 # which start with @ or ?.
13871 lt_cv_sys_global_symbol_pipe="$AWK '"\
13872 " {last_section=section; section=\$ 3};"\
13873 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13874 " \$ 0!~/External *\|/{next};"\
13875 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13876 " {if(hide[section]) next};"\
13877 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13878 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13879 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13880 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13881 " ' prfx
=^
$ac_symprfx"
13883 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13886 # Check to see that the pipe works correctly.
13890 cat > conftest.$ac_ext <<_LT_EOF
13895 void nm_test_func(void);
13896 void nm_test_func(void){}
13900 int main(){nm_test_var='a';nm_test_func();return(0);}
13903 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13904 (eval $ac_compile) 2>&5
13906 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13907 test $ac_status = 0; }; then
13908 # Now try to grab the symbols.
13910 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13911 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13914 test $ac_status = 0; } && test -s "$nlist"; then
13915 # Try sorting and uniquifying the output.
13916 if sort "$nlist" | uniq > "$nlist"T; then
13917 mv -f "$nlist"T "$nlist"
13922 # Make sure that we snagged all the symbols we need.
13923 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13924 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13925 cat <<_LT_EOF > conftest.$ac_ext
13931 # Now generate the symbol file.
13932 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13934 cat <<_LT_EOF >> conftest.$ac_ext
13936 /* The mapping between symbol names and symbols. */
13941 lt__PROGRAM__LTX_preloaded_symbols[] =
13943 { "@PROGRAM@
", (void *) 0 },
13945 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13946 cat <<\_LT_EOF >> conftest.$ac_ext
13950 /* This works around a problem in FreeBSD linker */
13951 #ifdef FREEBSD_WORKAROUND
13952 static const void *lt_preloaded_setup() {
13953 return lt__PROGRAM__LTX_preloaded_symbols;
13961 # Now try linking the two files.
13962 mv conftest.$ac_objext conftstm.$ac_objext
13963 lt_save_LIBS="$LIBS"
13964 lt_save_CFLAGS="$CFLAGS"
13965 LIBS="conftstm.
$ac_objext"
13966 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13967 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13968 (eval $ac_link) 2>&5
13970 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13971 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13974 LIBS="$lt_save_LIBS"
13975 CFLAGS="$lt_save_CFLAGS"
13977 echo "cannot
find nm_test_func
in $nlist" >&5
13980 echo "cannot
find nm_test_var
in $nlist" >&5
13983 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13986 echo "$progname: failed program was
:" >&5
13987 cat conftest.$ac_ext >&5
13989 rm -rf conftest* conftst*
13991 # Do not use the global_symbol_pipe unless it works.
13992 if test "$pipe_works" = yes; then
13995 lt_cv_sys_global_symbol_pipe=
14001 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14002 lt_cv_sys_global_symbol_to_cdecl=
14004 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
14006 $as_echo "failed
" >&6; }
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
14009 $as_echo "ok
" >&6; }
14033 # Check whether --enable-libtool-lock was given.
14034 if test "${enable_libtool_lock+set}" = set; then :
14035 enableval=$enable_libtool_lock;
14038 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
14040 # Some flags need to be propagated to the compiler or linker for good
14044 # Find out which ABI we are using.
14045 echo 'int i;' > conftest.$ac_ext
14046 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14047 (eval $ac_compile) 2>&5
14049 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14050 test $ac_status = 0; }; then
14051 case `/usr/bin/file conftest.$ac_objext` in
14053 HPUX_IA64_MODE="32"
14056 HPUX_IA64_MODE="64"
14063 # Find out which ABI we are using.
14064 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
14065 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14066 (eval $ac_compile) 2>&5
14068 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14069 test $ac_status = 0; }; then
14070 if test "$lt_cv_prog_gnu_ld" = yes; then
14071 case `/usr/bin/file conftest.$ac_objext` in
14073 LD="${LD-ld} -melf32bsmip"
14076 LD="${LD-ld} -melf32bmipn32"
14079 LD="${LD-ld} -melf64bmip"
14083 case `/usr/bin/file conftest.$ac_objext` in
14099 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14100 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14101 # Find out which ABI we are using.
14102 echo 'int i;' > conftest.$ac_ext
14103 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14104 (eval $ac_compile) 2>&5
14106 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14107 test $ac_status = 0; }; then
14108 case `/usr/bin/file conftest.o` in
14111 x86_64-*kfreebsd*-gnu)
14112 LD="${LD-ld} -m elf_i386_fbsd
"
14115 case `/usr/bin/file conftest.o` in
14117 LD="${LD-ld} -m elf32_x86_64
"
14120 LD="${LD-ld} -m elf_i386
"
14124 powerpc64le-*linux*)
14125 LD="${LD-ld} -m elf32lppclinux
"
14128 LD="${LD-ld} -m elf32ppclinux
"
14131 LD="${LD-ld} -m elf_s390
"
14134 LD="${LD-ld} -m elf32_sparc
"
14140 x86_64-*kfreebsd*-gnu)
14141 LD="${LD-ld} -m elf_x86_64_fbsd
"
14144 LD="${LD-ld} -m elf_x86_64
"
14147 LD="${LD-ld} -m elf64lppc
"
14150 LD="${LD-ld} -m elf64ppc
"
14152 s390*-*linux*|s390*-*tpf*)
14153 LD="${LD-ld} -m elf64_s390
"
14156 LD="${LD-ld} -m elf64_sparc
"
14166 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14167 SAVE_CFLAGS="$CFLAGS"
14168 CFLAGS="$CFLAGS -belf"
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
14170 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
14171 if test "${lt_cv_cc_needs_belf+set}" = set; then :
14172 $as_echo_n "(cached
) " >&6
14175 ac_cpp='$CPP $CPPFLAGS'
14176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14191 if ac_fn_c_try_link "$LINENO"; then :
14192 lt_cv_cc_needs_belf=yes
14194 lt_cv_cc_needs_belf=no
14196 rm -f core conftest.err conftest.$ac_objext \
14197 conftest$ac_exeext conftest.$ac_ext
14199 ac_cpp='$CPP $CPPFLAGS'
14200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
14206 $as_echo "$lt_cv_cc_needs_belf" >&6; }
14207 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14209 CFLAGS="$SAVE_CFLAGS"
14213 # Find out which ABI we are using.
14214 echo 'int i;' > conftest.$ac_ext
14215 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14216 (eval $ac_compile) 2>&5
14218 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
14219 test $ac_status = 0; }; then
14220 case `/usr/bin/file conftest.o` in
14222 case $lt_cv_prog_gnu_ld in
14223 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
14225 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14237 need_locks="$enable_libtool_lock"
14241 rhapsody* | darwin*)
14242 if test -n "$ac_tool_prefix"; then
14243 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
14244 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14246 $as_echo_n "checking
for $ac_word...
" >&6; }
14247 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
14248 $as_echo_n "(cached
) " >&6
14250 if test -n "$DSYMUTIL"; then
14251 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14260 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14270 DSYMUTIL=$ac_cv_prog_DSYMUTIL
14271 if test -n "$DSYMUTIL"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
14273 $as_echo "$DSYMUTIL" >&6; }
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14276 $as_echo "no
" >&6; }
14281 if test -z "$ac_cv_prog_DSYMUTIL"; then
14282 ac_ct_DSYMUTIL=$DSYMUTIL
14283 # Extract the first word of "dsymutil
", so it can be a program name with args.
14284 set dummy dsymutil; ac_word=$2
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14286 $as_echo_n "checking
for $ac_word...
" >&6; }
14287 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14288 $as_echo_n "(cached
) " >&6
14290 if test -n "$ac_ct_DSYMUTIL"; then
14291 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294 for as_dir in $PATH
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14300 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14301 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14310 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14311 if test -n "$ac_ct_DSYMUTIL"; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14313 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14316 $as_echo "no
" >&6; }
14319 if test "x
$ac_ct_DSYMUTIL" = x; then
14322 case $cross_compiling:$ac_tool_warned in
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14325 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14326 ac_tool_warned=yes ;;
14328 DSYMUTIL=$ac_ct_DSYMUTIL
14331 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14334 if test -n "$ac_tool_prefix"; then
14335 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14336 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14338 $as_echo_n "checking
for $ac_word...
" >&6; }
14339 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14340 $as_echo_n "(cached
) " >&6
14342 if test -n "$NMEDIT"; then
14343 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14346 for as_dir in $PATH
14349 test -z "$as_dir" && as_dir=.
14350 for ac_exec_ext in '' $ac_executable_extensions; do
14351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14352 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14353 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14362 NMEDIT=$ac_cv_prog_NMEDIT
14363 if test -n "$NMEDIT"; then
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14365 $as_echo "$NMEDIT" >&6; }
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14368 $as_echo "no
" >&6; }
14373 if test -z "$ac_cv_prog_NMEDIT"; then
14374 ac_ct_NMEDIT=$NMEDIT
14375 # Extract the first word of "nmedit
", so it can be a program name with args.
14376 set dummy nmedit; ac_word=$2
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14378 $as_echo_n "checking
for $ac_word...
" >&6; }
14379 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14380 $as_echo_n "(cached
) " >&6
14382 if test -n "$ac_ct_NMEDIT"; then
14383 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14389 test -z "$as_dir" && as_dir=.
14390 for ac_exec_ext in '' $ac_executable_extensions; do
14391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14392 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14402 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14403 if test -n "$ac_ct_NMEDIT"; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14405 $as_echo "$ac_ct_NMEDIT" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14408 $as_echo "no
" >&6; }
14411 if test "x
$ac_ct_NMEDIT" = x; then
14414 case $cross_compiling:$ac_tool_warned in
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14417 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14418 ac_tool_warned=yes ;;
14420 NMEDIT=$ac_ct_NMEDIT
14423 NMEDIT="$ac_cv_prog_NMEDIT"
14426 if test -n "$ac_tool_prefix"; then
14427 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14428 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14430 $as_echo_n "checking
for $ac_word...
" >&6; }
14431 if test "${ac_cv_prog_LIPO+set}" = set; then :
14432 $as_echo_n "(cached
) " >&6
14434 if test -n "$LIPO"; then
14435 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14438 for as_dir in $PATH
14441 test -z "$as_dir" && as_dir=.
14442 for ac_exec_ext in '' $ac_executable_extensions; do
14443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14444 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14445 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14454 LIPO=$ac_cv_prog_LIPO
14455 if test -n "$LIPO"; then
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14457 $as_echo "$LIPO" >&6; }
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14460 $as_echo "no
" >&6; }
14465 if test -z "$ac_cv_prog_LIPO"; then
14467 # Extract the first word of "lipo
", so it can be a program name with args.
14468 set dummy lipo; ac_word=$2
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14470 $as_echo_n "checking
for $ac_word...
" >&6; }
14471 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14472 $as_echo_n "(cached
) " >&6
14474 if test -n "$ac_ct_LIPO"; then
14475 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478 for as_dir in $PATH
14481 test -z "$as_dir" && as_dir=.
14482 for ac_exec_ext in '' $ac_executable_extensions; do
14483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14484 ac_cv_prog_ac_ct_LIPO="lipo
"
14485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14494 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14495 if test -n "$ac_ct_LIPO"; then
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14497 $as_echo "$ac_ct_LIPO" >&6; }
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14500 $as_echo "no
" >&6; }
14503 if test "x
$ac_ct_LIPO" = x; then
14506 case $cross_compiling:$ac_tool_warned in
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14509 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14510 ac_tool_warned=yes ;;
14515 LIPO="$ac_cv_prog_LIPO"
14518 if test -n "$ac_tool_prefix"; then
14519 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14520 set dummy ${ac_tool_prefix}otool; ac_word=$2
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14522 $as_echo_n "checking
for $ac_word...
" >&6; }
14523 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14524 $as_echo_n "(cached
) " >&6
14526 if test -n "$OTOOL"; then
14527 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14530 for as_dir in $PATH
14533 test -z "$as_dir" && as_dir=.
14534 for ac_exec_ext in '' $ac_executable_extensions; do
14535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14536 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14537 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14546 OTOOL=$ac_cv_prog_OTOOL
14547 if test -n "$OTOOL"; then
14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14549 $as_echo "$OTOOL" >&6; }
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14552 $as_echo "no
" >&6; }
14557 if test -z "$ac_cv_prog_OTOOL"; then
14559 # Extract the first word of "otool
", so it can be a program name with args.
14560 set dummy otool; ac_word=$2
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14562 $as_echo_n "checking
for $ac_word...
" >&6; }
14563 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14564 $as_echo_n "(cached
) " >&6
14566 if test -n "$ac_ct_OTOOL"; then
14567 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14570 for as_dir in $PATH
14573 test -z "$as_dir" && as_dir=.
14574 for ac_exec_ext in '' $ac_executable_extensions; do
14575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14576 ac_cv_prog_ac_ct_OTOOL="otool
"
14577 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14586 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14587 if test -n "$ac_ct_OTOOL"; then
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14589 $as_echo "$ac_ct_OTOOL" >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14592 $as_echo "no
" >&6; }
14595 if test "x
$ac_ct_OTOOL" = x; then
14598 case $cross_compiling:$ac_tool_warned in
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14601 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14602 ac_tool_warned=yes ;;
14607 OTOOL="$ac_cv_prog_OTOOL"
14610 if test -n "$ac_tool_prefix"; then
14611 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14612 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14614 $as_echo_n "checking
for $ac_word...
" >&6; }
14615 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14616 $as_echo_n "(cached
) " >&6
14618 if test -n "$OTOOL64"; then
14619 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14622 for as_dir in $PATH
14625 test -z "$as_dir" && as_dir=.
14626 for ac_exec_ext in '' $ac_executable_extensions; do
14627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14628 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14629 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14638 OTOOL64=$ac_cv_prog_OTOOL64
14639 if test -n "$OTOOL64"; then
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14641 $as_echo "$OTOOL64" >&6; }
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14644 $as_echo "no
" >&6; }
14649 if test -z "$ac_cv_prog_OTOOL64"; then
14650 ac_ct_OTOOL64=$OTOOL64
14651 # Extract the first word of "otool64
", so it can be a program name with args.
14652 set dummy otool64; ac_word=$2
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14654 $as_echo_n "checking
for $ac_word...
" >&6; }
14655 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14656 $as_echo_n "(cached
) " >&6
14658 if test -n "$ac_ct_OTOOL64"; then
14659 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662 for as_dir in $PATH
14665 test -z "$as_dir" && as_dir=.
14666 for ac_exec_ext in '' $ac_executable_extensions; do
14667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14668 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14669 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14678 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14679 if test -n "$ac_ct_OTOOL64"; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14681 $as_echo "$ac_ct_OTOOL64" >&6; }
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14684 $as_echo "no
" >&6; }
14687 if test "x
$ac_ct_OTOOL64" = x; then
14690 case $cross_compiling:$ac_tool_warned in
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14693 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14694 ac_tool_warned=yes ;;
14696 OTOOL64=$ac_ct_OTOOL64
14699 OTOOL64="$ac_cv_prog_OTOOL64"
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14729 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14730 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14731 $as_echo_n "(cached
) " >&6
14733 lt_cv_apple_cc_single_mod=no
14734 if test -z "${LT_MULTI_MODULE}"; then
14735 # By default we will add the -single_module flag. You can override
14736 # by either setting the environment variable LT_MULTI_MODULE
14737 # non-empty at configure time, or by adding -multi_module to the
14739 rm -rf libconftest.dylib*
14740 echo "int foo
(void
){return 1;}" > conftest.c
14741 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14742 -dynamiclib -Wl,-single_module conftest.c
" >&5
14743 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14744 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14746 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14747 lt_cv_apple_cc_single_mod=yes
14749 cat conftest.err >&5
14751 rm -rf libconftest.dylib*
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14756 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14758 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14759 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14760 $as_echo_n "(cached
) " >&6
14762 lt_cv_ld_exported_symbols_list=no
14763 save_LDFLAGS=$LDFLAGS
14764 echo "_main
" > conftest.sym
14765 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14777 if ac_fn_c_try_link "$LINENO"; then :
14778 lt_cv_ld_exported_symbols_list=yes
14780 lt_cv_ld_exported_symbols_list=no
14782 rm -f core conftest.err conftest.$ac_objext \
14783 conftest$ac_exeext conftest.$ac_ext
14784 LDFLAGS="$save_LDFLAGS"
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14788 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14790 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14791 if test "${lt_cv_ld_force_load+set}" = set; then :
14792 $as_echo_n "(cached
) " >&6
14794 lt_cv_ld_force_load=no
14795 cat > conftest.c << _LT_EOF
14796 int forced_loaded() { return 2;}
14798 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14799 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14800 echo "$AR cru libconftest.a conftest.o
" >&5
14801 $AR cru libconftest.a conftest.o 2>&5
14802 cat > conftest.c << _LT_EOF
14803 int main() { return 0;}
14805 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14806 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14808 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14809 lt_cv_ld_force_load=yes
14811 cat conftest.err >&5
14813 rm -f conftest.err libconftest.a conftest conftest.c
14814 rm -rf conftest.dSYM
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14818 $as_echo "$lt_cv_ld_force_load" >&6; }
14820 rhapsody* | darwin1.[012])
14821 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14823 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14824 darwin*) # darwin 5.x on
14825 # if running on 10.5 or later, the deployment target defaults
14826 # to the OS version, if on x86, and 10.4, the deployment
14827 # target defaults to 10.4. Don't you love it?
14828 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14829 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14830 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14832 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14834 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14838 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14839 _lt_dar_single_mod='$single_module'
14841 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14842 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14844 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14846 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14847 _lt_dsymutil='~$DSYMUTIL $lib || :'
14855 for ac_header in dlfcn.h
14857 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14858 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14859 cat >>confdefs.h <<_ACEOF
14860 #define HAVE_DLFCN_H 1
14877 enable_win32_dll=no
14880 # Check whether --enable-shared was given.
14881 if test "${enable_shared+set}" = set; then :
14882 enableval=$enable_shared; p=${PACKAGE-default}
14884 yes) enable_shared=yes ;;
14885 no) enable_shared=no ;;
14888 # Look at the argument we got. We use all the common list separators.
14889 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14890 for pkg in $enableval; do
14892 if test "X
$pkg" = "X
$p"; then
14911 # Check whether --enable-static was given.
14912 if test "${enable_static+set}" = set; then :
14913 enableval=$enable_static; p=${PACKAGE-default}
14915 yes) enable_static=yes ;;
14916 no) enable_static=no ;;
14919 # Look at the argument we got. We use all the common list separators.
14920 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14921 for pkg in $enableval; do
14923 if test "X
$pkg" = "X
$p"; then
14943 # Check whether --with-pic was given.
14944 if test "${with_pic+set}" = set; then :
14945 withval=$with_pic; pic_mode="$withval"
14951 test -z "$pic_mode" && pic_mode=default
14959 # Check whether --enable-fast-install was given.
14960 if test "${enable_fast_install+set}" = set; then :
14961 enableval=$enable_fast_install; p=${PACKAGE-default}
14963 yes) enable_fast_install=yes ;;
14964 no) enable_fast_install=no ;;
14966 enable_fast_install=no
14967 # Look at the argument we got. We use all the common list separators.
14968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14969 for pkg in $enableval; do
14971 if test "X
$pkg" = "X
$p"; then
14972 enable_fast_install=yes
14979 enable_fast_install=yes
14992 # This can be used to rebuild libtool when needed
14993 LIBTOOL_DEPS="$ltmain"
14995 # Always use our own libtool.
14996 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15023 test -z "$LN_S" && LN_S="ln -s"
15038 if test -n "${ZSH_VERSION+set}" ; then
15039 setopt NO_GLOB_SUBST
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
15043 $as_echo_n "checking
for objdir...
" >&6; }
15044 if test "${lt_cv_objdir+set}" = set; then :
15045 $as_echo_n "(cached
) " >&6
15047 rm -f .libs 2>/dev/null
15048 mkdir .libs 2>/dev/null
15049 if test -d .libs; then
15052 # MS-DOS does not allow filenames that begin with a dot.
15055 rmdir .libs 2>/dev/null
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
15058 $as_echo "$lt_cv_objdir" >&6; }
15059 objdir=$lt_cv_objdir
15065 cat >>confdefs.h <<_ACEOF
15066 #define LT_OBJDIR "$lt_cv_objdir/"
15074 # AIX sometimes has problems with the GCC collect2 program. For some
15075 # reason, if we set the COLLECT_NAMES environment variable, the problems
15076 # vanish in a puff of smoke.
15077 if test "X
${COLLECT_NAMES+set}" != Xset; then
15079 export COLLECT_NAMES
15084 # Global variables:
15086 can_build_shared=yes
15088 # All known linkers require a `.a' archive for static linking (except MSVC,
15089 # which needs '.lib').
15092 with_gnu_ld="$lt_cv_prog_gnu_ld"
15095 old_CFLAGS="$CFLAGS"
15097 # Set sane defaults for various variables
15098 test -z "$CC" && CC=cc
15099 test -z "$LTCC" && LTCC=$CC
15100 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15101 test -z "$LD" && LD=ld
15102 test -z "$ac_objext" && ac_objext=o
15104 for cc_temp in $compiler""; do
15106 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15107 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15112 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
15115 # Only perform the check for file, if the check method requires it
15116 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15117 case $deplibs_check_method in
15119 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
15121 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
15122 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15123 $as_echo_n "(cached
) " >&6
15127 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15130 lt_save_MAGIC_CMD="$MAGIC_CMD"
15131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15132 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15133 for ac_dir in $ac_dummy; do
15135 test -z "$ac_dir" && ac_dir=.
15136 if test -f $ac_dir/${ac_tool_prefix}file; then
15137 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15138 if test -n "$file_magic_test_file"; then
15139 case $deplibs_check_method in
15141 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15142 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15143 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15144 $EGREP "$file_magic_regex" > /dev/null; then
15149 *** Warning: the command libtool uses to detect shared libraries,
15150 *** $file_magic_cmd, produces output that libtool cannot recognize.
15151 *** The result is that libtool may fail to recognize shared libraries
15152 *** as such. This will affect the creation of libtool libraries that
15153 *** depend on shared libraries, but programs linked with such libtool
15154 *** libraries will work regardless of this problem. Nevertheless, you
15155 *** may want to report the problem to your system manager and/or to
15156 *** bug-libtool@gnu.org
15166 MAGIC_CMD="$lt_save_MAGIC_CMD"
15171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15172 if test -n "$MAGIC_CMD"; then
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15174 $as_echo "$MAGIC_CMD" >&6; }
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15177 $as_echo "no
" >&6; }
15184 if test -z "$lt_cv_path_MAGIC_CMD"; then
15185 if test -n "$ac_tool_prefix"; then
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
15187 $as_echo_n "checking
for file...
" >&6; }
15188 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15189 $as_echo_n "(cached
) " >&6
15193 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15196 lt_save_MAGIC_CMD="$MAGIC_CMD"
15197 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15198 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
15199 for ac_dir in $ac_dummy; do
15201 test -z "$ac_dir" && ac_dir=.
15202 if test -f $ac_dir/file; then
15203 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15204 if test -n "$file_magic_test_file"; then
15205 case $deplibs_check_method in
15207 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
15208 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15209 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15210 $EGREP "$file_magic_regex" > /dev/null; then
15215 *** Warning: the command libtool uses to detect shared libraries,
15216 *** $file_magic_cmd, produces output that libtool cannot recognize.
15217 *** The result is that libtool may fail to recognize shared libraries
15218 *** as such. This will affect the creation of libtool libraries that
15219 *** depend on shared libraries, but programs linked with such libtool
15220 *** libraries will work regardless of this problem. Nevertheless, you
15221 *** may want to report the problem to your system manager and/or to
15222 *** bug-libtool@gnu.org
15232 MAGIC_CMD="$lt_save_MAGIC_CMD"
15237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15238 if test -n "$MAGIC_CMD"; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
15240 $as_echo "$MAGIC_CMD" >&6; }
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15243 $as_echo "no
" >&6; }
15256 # Use C for the default configuration in the libtool script
15260 ac_cpp='$CPP $CPPFLAGS'
15261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15266 # Source file extension for C test sources.
15269 # Object file extension for compiled C test sources.
15273 # Code to be used in simple compile tests
15274 lt_simple_compile_test_code="int some_variable
= 0;"
15276 # Code to be used in simple link tests
15277 lt_simple_link_test_code='int main(){return(0);}'
15285 # If no C compiler was specified, use CC.
15288 # If no C compiler flags were specified, use CFLAGS.
15289 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15291 # Allow CC to be a program name with arguments.
15294 # Save the default compiler, since it gets overwritten when the other
15295 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15296 compiler_DEFAULT=$CC
15298 # save warnings/boilerplate of simple test code
15299 ac_outfile=conftest.$ac_objext
15300 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15301 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15302 _lt_compiler_boilerplate=`cat conftest.err`
15305 ac_outfile=conftest.$ac_objext
15306 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15307 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15308 _lt_linker_boilerplate=`cat conftest.err`
15313 ## There is no encapsulation within the following macros, do not change
15314 ## the running order or otherwise move them around unless you know exactly
15315 ## what you are doing...
15316 if test -n "$compiler"; then
15318 lt_prog_compiler_no_builtin_flag=
15320 if test "$GCC" = yes; then
15321 case $cc_basename in
15323 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15325 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15329 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15331 $as_echo_n "(cached
) " >&6
15333 lt_cv_prog_compiler_rtti_exceptions=no
15334 ac_outfile=conftest.$ac_objext
15335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15336 lt_compiler_flag="-fno-rtti -fno-exceptions"
15337 # Insert the option either (1) after the last *FLAGS variable, or
15338 # (2) before a word containing "conftest.
", or (3) at the end.
15339 # Note that $ac_compile itself does not contain backslashes and begins
15340 # with a dollar sign (not a hyphen), so the echo should work correctly.
15341 # The option is referenced via a variable to avoid confusing sed.
15342 lt_compile=`echo "$ac_compile" | $SED \
15343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15345 -e 's:$: $lt_compiler_flag:'`
15346 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15347 (eval "$lt_compile" 2>conftest.err)
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15351 if (exit $ac_status) && test -s "$ac_outfile"; then
15352 # The compiler can only warn and ignore the option if not recognized
15353 # So say no if there are warnings other than the usual output.
15354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15357 lt_cv_prog_compiler_rtti_exceptions=yes
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15364 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15367 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15379 lt_prog_compiler_wl=
15380 lt_prog_compiler_pic=
15381 lt_prog_compiler_static=
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15384 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15386 if test "$GCC" = yes; then
15387 lt_prog_compiler_wl='-Wl,'
15388 lt_prog_compiler_static='-static'
15392 # All AIX code is PIC.
15393 if test "$host_cpu" = ia64; then
15394 # AIX 5 now supports IA64 processor
15395 lt_prog_compiler_static='-Bstatic'
15397 lt_prog_compiler_pic='-fPIC'
15403 # see comment about AmigaOS4 .so support
15404 lt_prog_compiler_pic='-fPIC'
15407 # FIXME: we need at least 68020 code to build shared libraries, but
15408 # adding the `-m68020' flag to GCC prevents building anything better,
15410 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15416 # PIC is the default for these OSes.
15419 mingw* | cygwin* | pw32* | os2* | cegcc*)
15420 # This hack is so that the source file can tell whether it is being
15421 # built for inclusion in a dll (and should export symbols for example).
15422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15423 # (--disable-auto-import) libraries
15424 lt_prog_compiler_pic='-DDLL_EXPORT'
15427 darwin* | rhapsody*)
15428 # PIC is the default on this platform
15429 # Common symbols not allowed in MH_DYLIB files
15430 lt_prog_compiler_pic='-fno-common'
15434 # PIC is the default for Haiku.
15435 # The "-static" flag exists, but is broken.
15436 lt_prog_compiler_static=
15440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15442 # sets the default TLS model and affects inlining.
15448 lt_prog_compiler_pic='-fPIC'
15454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15455 # Instead, we relocate shared libraries at runtime.
15459 # Just because we use GCC doesn't mean we suddenly get shared libraries
15460 # on systems that don't support them.
15461 lt_prog_compiler_can_build_shared=no
15466 # QNX uses GNU C++, but need to define -shared option too, otherwise
15467 # it will coredump.
15468 lt_prog_compiler_pic='-fPIC -shared'
15472 if test -d /usr/nec; then
15473 lt_prog_compiler_pic=-Kconform_pic
15478 lt_prog_compiler_pic='-fPIC'
15482 case $cc_basename in
15483 nvcc*) # Cuda Compiler Driver 2.2
15484 lt_prog_compiler_wl='-Xlinker '
15485 lt_prog_compiler_pic='-Xcompiler -fPIC'
15489 # PORTME Check for flag to pass linker flags through the system compiler.
15492 lt_prog_compiler_wl='-Wl,'
15493 if test "$host_cpu" = ia64; then
15494 # AIX 5 now supports IA64 processor
15495 lt_prog_compiler_static='-Bstatic'
15497 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15501 mingw* | cygwin* | pw32* | os2* | cegcc*)
15502 # This hack is so that the source file can tell whether it is being
15503 # built for inclusion in a dll (and should export symbols for example).
15504 lt_prog_compiler_pic='-DDLL_EXPORT'
15507 hpux9* | hpux10* | hpux11*)
15508 lt_prog_compiler_wl='-Wl,'
15509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15510 # not for PA HP-UX.
15516 lt_prog_compiler_pic='+Z'
15519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15520 lt_prog_compiler_static='${wl}-a ${wl}archive'
15523 irix5* | irix6* | nonstopux*)
15524 lt_prog_compiler_wl='-Wl,'
15525 # PIC (with -KPIC) is the default.
15526 lt_prog_compiler_static='-non_shared'
15529 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15530 case $cc_basename in
15531 # old Intel for x86_64 which still supported -KPIC.
15533 lt_prog_compiler_wl='-Wl,'
15534 lt_prog_compiler_pic='-KPIC'
15535 lt_prog_compiler_static='-static'
15537 # icc used to be incompatible with GCC.
15538 # ICC 10 doesn't accept -KPIC any more.
15540 lt_prog_compiler_wl='-Wl,'
15541 lt_prog_compiler_pic='-fPIC'
15542 lt_prog_compiler_static='-static'
15544 # Lahey Fortran 8.1.
15546 lt_prog_compiler_wl='-Wl,'
15547 lt_prog_compiler_pic='--shared'
15548 lt_prog_compiler_static='--static'
15550 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15551 # Portland Group compilers (*not* the Pentium gcc compiler,
15552 # which looks to be a dead project)
15553 lt_prog_compiler_wl='-Wl,'
15554 lt_prog_compiler_pic='-fpic'
15555 lt_prog_compiler_static='-Bstatic'
15558 lt_prog_compiler_wl='-Wl,'
15559 # All Alpha code is PIC.
15560 lt_prog_compiler_static='-non_shared'
15562 xl* | bgxl* | bgf* | mpixl*)
15563 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15564 lt_prog_compiler_wl='-Wl,'
15565 lt_prog_compiler_pic='-qpic'
15566 lt_prog_compiler_static='-qstaticlink'
15569 case `$CC -V 2>&1 | sed 5q` in
15570 *Sun\ F* | *Sun*Fortran*)
15571 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15572 lt_prog_compiler_pic='-KPIC'
15573 lt_prog_compiler_static='-Bstatic'
15574 lt_prog_compiler_wl=''
15578 lt_prog_compiler_pic='-KPIC'
15579 lt_prog_compiler_static='-Bstatic'
15580 lt_prog_compiler_wl='-Wl,'
15588 lt_prog_compiler_pic='-KPIC'
15589 lt_prog_compiler_static='-Bstatic'
15593 # QNX uses GNU C++, but need to define -shared option too, otherwise
15594 # it will coredump.
15595 lt_prog_compiler_pic='-fPIC -shared'
15598 osf3* | osf4* | osf5*)
15599 lt_prog_compiler_wl='-Wl,'
15600 # All OSF/1 code is PIC.
15601 lt_prog_compiler_static='-non_shared'
15605 lt_prog_compiler_static='-non_shared'
15609 lt_prog_compiler_pic='-KPIC'
15610 lt_prog_compiler_static='-Bstatic'
15611 case $cc_basename in
15612 f77* | f90* | f95*)
15613 lt_prog_compiler_wl='-Qoption ld ';;
15615 lt_prog_compiler_wl='-Wl,';;
15620 lt_prog_compiler_wl='-Qoption ld '
15621 lt_prog_compiler_pic='-PIC'
15622 lt_prog_compiler_static='-Bstatic'
15625 sysv4 | sysv4.2uw2* | sysv4.3*)
15626 lt_prog_compiler_wl='-Wl,'
15627 lt_prog_compiler_pic='-KPIC'
15628 lt_prog_compiler_static='-Bstatic'
15632 if test -d /usr/nec ;then
15633 lt_prog_compiler_pic='-Kconform_pic'
15634 lt_prog_compiler_static='-Bstatic'
15638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15639 lt_prog_compiler_wl='-Wl,'
15640 lt_prog_compiler_pic='-KPIC'
15641 lt_prog_compiler_static='-Bstatic'
15645 lt_prog_compiler_wl='-Wl,'
15646 lt_prog_compiler_can_build_shared=no
15650 lt_prog_compiler_pic='-pic'
15651 lt_prog_compiler_static='-Bstatic'
15655 lt_prog_compiler_can_build_shared=no
15661 # For platforms which do not support PIC, -DPIC is meaningless:
15663 lt_prog_compiler_pic=
15666 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15670 $as_echo "$lt_prog_compiler_pic" >&6; }
15678 # Check to make sure the PIC flag actually works.
15680 if test -n "$lt_prog_compiler_pic"; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15682 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15683 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15684 $as_echo_n "(cached
) " >&6
15686 lt_cv_prog_compiler_pic_works=no
15687 ac_outfile=conftest.$ac_objext
15688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15689 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15690 # Insert the option either (1) after the last *FLAGS variable, or
15691 # (2) before a word containing "conftest.
", or (3) at the end.
15692 # Note that $ac_compile itself does not contain backslashes and begins
15693 # with a dollar sign (not a hyphen), so the echo should work correctly.
15694 # The option is referenced via a variable to avoid confusing sed.
15695 lt_compile=`echo "$ac_compile" | $SED \
15696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15698 -e 's:$: $lt_compiler_flag:'`
15699 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15700 (eval "$lt_compile" 2>conftest.err)
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15704 if (exit $ac_status) && test -s "$ac_outfile"; then
15705 # The compiler can only warn and ignore the option if not recognized
15706 # So say no if there are warnings other than the usual output.
15707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15709 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15710 lt_cv_prog_compiler_pic_works=yes
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15717 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15719 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15720 case $lt_prog_compiler_pic in
15722 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15725 lt_prog_compiler_pic=
15726 lt_prog_compiler_can_build_shared=no
15737 # Check to make sure the static flag actually works.
15739 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15741 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15742 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15743 $as_echo_n "(cached
) " >&6
15745 lt_cv_prog_compiler_static_works=no
15746 save_LDFLAGS="$LDFLAGS"
15747 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15750 # The linker can only warn and ignore the option if not recognized
15751 # So say no if there are warnings
15752 if test -s conftest.err; then
15753 # Append any errors to the config.log.
15754 cat conftest.err 1>&5
15755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15757 if diff conftest.exp conftest.er2 >/dev/null; then
15758 lt_cv_prog_compiler_static_works=yes
15761 lt_cv_prog_compiler_static_works=yes
15765 LDFLAGS="$save_LDFLAGS"
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15769 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15771 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15774 lt_prog_compiler_static=
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15784 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15785 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15786 $as_echo_n "(cached
) " >&6
15788 lt_cv_prog_compiler_c_o=no
15789 $RM -r conftest 2>/dev/null
15793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15795 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15796 # Insert the option either (1) after the last *FLAGS variable, or
15797 # (2) before a word containing "conftest.
", or (3) at the end.
15798 # Note that $ac_compile itself does not contain backslashes and begins
15799 # with a dollar sign (not a hyphen), so the echo should work correctly.
15800 lt_compile=`echo "$ac_compile" | $SED \
15801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15803 -e 's:$: $lt_compiler_flag:'`
15804 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15805 (eval "$lt_compile" 2>out/conftest.err)
15807 cat out/conftest.err >&5
15808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15811 # The compiler can only warn and ignore the option if not recognized
15812 # So say no if there are warnings
15813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15816 lt_cv_prog_compiler_c_o=yes
15821 # SGI C++ compiler will create directory out/ii_files/ for
15822 # template instantiation
15823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15824 $RM out/* && rmdir out
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15831 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15839 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15840 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15841 $as_echo_n "(cached
) " >&6
15843 lt_cv_prog_compiler_c_o=no
15844 $RM -r conftest 2>/dev/null
15848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15850 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15851 # Insert the option either (1) after the last *FLAGS variable, or
15852 # (2) before a word containing "conftest.
", or (3) at the end.
15853 # Note that $ac_compile itself does not contain backslashes and begins
15854 # with a dollar sign (not a hyphen), so the echo should work correctly.
15855 lt_compile=`echo "$ac_compile" | $SED \
15856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15858 -e 's:$: $lt_compiler_flag:'`
15859 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15860 (eval "$lt_compile" 2>out/conftest.err)
15862 cat out/conftest.err >&5
15863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15866 # The compiler can only warn and ignore the option if not recognized
15867 # So say no if there are warnings
15868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15871 lt_cv_prog_compiler_c_o=yes
15876 # SGI C++ compiler will create directory out/ii_files/ for
15877 # template instantiation
15878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15879 $RM out/* && rmdir out
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15886 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15891 hard_links="nottested
"
15892 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15893 # do not overwrite the value of need_locks provided by the user
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15895 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15900 ln conftest.a conftest.b 2>&5 || hard_links=no
15901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15903 $as_echo "$hard_links" >&6; }
15904 if test "$hard_links" = no; then
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15906 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15919 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15922 allow_undefined_flag=
15923 always_export_symbols=no
15925 archive_expsym_cmds=
15926 compiler_needs_object=no
15927 enable_shared_with_static_runtimes=no
15928 export_dynamic_flag_spec=
15929 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15930 hardcode_automatic=no
15932 hardcode_direct_absolute=no
15933 hardcode_libdir_flag_spec=
15934 hardcode_libdir_flag_spec_ld=
15935 hardcode_libdir_separator=
15936 hardcode_minus_L=no
15937 hardcode_shlibpath_var=unsupported
15939 link_all_deplibs=unknown
15941 module_expsym_cmds=
15942 old_archive_from_new_cmds=
15943 old_archive_from_expsyms_cmds=
15944 thread_safe_flag_spec=
15945 whole_archive_flag_spec=
15946 # include_expsyms should be a list of space-separated symbols to be *always*
15947 # included in the symbol list
15949 # exclude_expsyms can be an extended regexp of symbols to exclude
15950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15952 # as well as any symbol that contains `d'.
15953 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15955 # platforms (ab)use it in PIC code, but their linkers get confused if
15956 # the symbol is explicitly referenced. Since portable code cannot
15957 # rely on this symbol name, it's probably fine to never include it in
15958 # preloaded symbol tables.
15959 # Exclude shared library initialization/finalization symbols.
15960 extract_expsyms_cmds=
15963 cygwin* | mingw* | pw32* | cegcc*)
15964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15965 # When not using gcc, we currently assume that we are using
15966 # Microsoft Visual C++.
15967 if test "$GCC" != yes; then
15972 # we just hope/assume this is gcc and not c89 (= MSVC++)
15982 # On some targets, GNU ld is compatible enough with the native linker
15983 # that we're better off using the native interface for both.
15984 lt_use_gnu_ld_interface=no
15985 if test "$with_gnu_ld" = yes; then
15988 # The AIX port of GNU ld has always aspired to compatibility
15989 # with the native linker. However, as the warning in the GNU ld
15990 # block says, versions before 2.19.5* couldn't really create working
15991 # shared libraries, regardless of the interface used.
15992 case `$LD -v 2>&1` in
15993 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15994 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15995 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15997 lt_use_gnu_ld_interface=yes
16002 lt_use_gnu_ld_interface=yes
16007 if test "$lt_use_gnu_ld_interface" = yes; then
16008 # If archive_cmds runs LD, not CC, wlarc should be empty
16011 # Set some defaults for GNU ld with shared library support. These
16012 # are reset later if shared libraries are not supported. Putting them
16013 # here allows them to be overridden if necessary.
16014 runpath_var=LD_RUN_PATH
16015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16016 export_dynamic_flag_spec='${wl}--export-dynamic'
16017 # ancient GNU ld didn't support --whole-archive et. al.
16018 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16019 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16021 whole_archive_flag_spec=
16023 supports_anon_versioning=no
16024 case `$LD -v 2>&1` in
16025 *GNU\ gold*) supports_anon_versioning=yes ;;
16026 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16027 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16028 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16029 *\ 2.11.*) ;; # other 2.11 versions
16030 *) supports_anon_versioning=yes ;;
16033 # See if GNU ld supports shared libraries.
16036 # On AIX/PPC, the GNU linker is very broken
16037 if test "$host_cpu" != ia64; then
16041 *** Warning: the GNU linker, at least up to release 2.19, is reported
16042 *** to be unable to reliably create shared libraries on AIX.
16043 *** Therefore, libtool is disabling shared libraries support. If you
16044 *** really care for shared libraries, you may want to install binutils
16045 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16046 *** You will then need to restart the configuration process.
16055 # see comment about AmigaOS4 .so support
16056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16057 archive_expsym_cmds=''
16060 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)'
16061 hardcode_libdir_flag_spec
='-L$libdir'
16062 hardcode_minus_L
=yes
16068 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16069 allow_undefined_flag
=unsupported
16070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16071 # support --undefined. This deserves some investigation. FIXME
16072 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16078 cygwin
* | mingw
* | pw32
* | cegcc
*)
16079 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16080 # as there is no search path for DLLs.
16081 hardcode_libdir_flag_spec
='-L$libdir'
16082 export_dynamic_flag_spec
='${wl}--export-all-symbols'
16083 allow_undefined_flag
=unsupported
16084 always_export_symbols
=no
16085 enable_shared_with_static_runtimes
=yes
16086 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16088 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
16089 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16090 # If the export-symbols file already is a .def file (1st line
16091 # is EXPORTS), use it as is; otherwise, prepend...
16092 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16093 cp $export_symbols $output_objdir/$soname.def;
16095 echo EXPORTS > $output_objdir/$soname.def;
16096 cat $export_symbols >> $output_objdir/$soname.def;
16098 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16105 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16106 link_all_deplibs
=yes
16111 hardcode_shlibpath_var
=no
16112 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16113 export_dynamic_flag_spec
='${wl}-E'
16114 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16115 # Instead, shared libraries are loaded at an image base (0x10000000 by
16116 # default) and relocated if they conflict, which is a slow very memory
16117 # consuming and fragmenting process. To avoid this, we pick a random,
16118 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16119 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16120 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16121 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'
16124 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
16126 if test "$host_os" = linux-dietlibc
; then
16127 case $cc_basename in
16128 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
16131 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
16132 && test "$tmp_diet" = no
16134 tmp_addflag
=' $pic_flag'
16135 tmp_sharedflag
='-shared'
16136 case $cc_basename,$host_cpu in
16137 pgcc
*) # Portland Group C compiler
16138 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'
16139 tmp_addflag
=' $pic_flag'
16141 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
16142 # Portland Group f77 and f90 compilers
16143 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'
16144 tmp_addflag
=' $pic_flag -Mnomain' ;;
16145 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
16146 tmp_addflag
=' -i_dynamic' ;;
16147 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
16148 tmp_addflag
=' -i_dynamic -nofor_main' ;;
16149 ifc
* | ifort
*) # Intel Fortran compiler
16150 tmp_addflag
=' -nofor_main' ;;
16151 lf95
*) # Lahey Fortran 8.1
16152 whole_archive_flag_spec
=
16153 tmp_sharedflag
='--shared' ;;
16154 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16155 tmp_sharedflag
='-qmkshrobj'
16157 nvcc
*) # Cuda Compiler Driver 2.2
16158 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'
16159 compiler_needs_object
=yes
16162 case `$CC -V 2>&1 | sed 5q` in
16163 *Sun\ C
*) # Sun C 5.9
16164 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'
16165 compiler_needs_object
=yes
16166 tmp_sharedflag
='-G' ;;
16167 *Sun\ F
*) # Sun Fortran 8.3
16168 tmp_sharedflag
='-G' ;;
16170 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16172 if test "x$supports_anon_versioning" = xyes
; then
16173 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16174 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16175 echo "local: *; };" >> $output_objdir/$libname.ver~
16176 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16179 case $cc_basename in
16180 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
16181 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16182 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
16183 hardcode_libdir_flag_spec
=
16184 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
16185 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16186 if test "x$supports_anon_versioning" = xyes
; then
16187 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
16188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16189 echo "local: *; };" >> $output_objdir/$libname.ver~
16190 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16200 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16201 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16204 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16205 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16210 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
16214 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16215 *** create shared libraries on Solaris systems. Therefore, libtool
16216 *** is disabling shared libraries support. We urge you to upgrade GNU
16217 *** binutils to release 2.9.1 or newer. Another option is to modify
16218 *** your PATH or compiler configuration so that the native linker is
16219 *** used, and then restart.
16222 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16223 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16224 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16230 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
16231 case `$LD -v 2>&1` in
16232 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
16236 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16237 *** reliably create shared libraries on SCO systems. Therefore, libtool
16238 *** is disabling shared libraries support. We urge you to upgrade GNU
16239 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16240 *** your PATH or compiler configuration so that the native linker is
16241 *** used, and then restart.
16246 # For security reasons, it is highly recommended that you always
16247 # use absolute paths for naming shared libraries, and exclude the
16248 # DT_RUNPATH tag from executables and libraries. But doing so
16249 # requires that you compile everything twice, which is a pain.
16250 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16251 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16252 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16253 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16262 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16264 hardcode_direct
=yes
16265 hardcode_shlibpath_var
=no
16269 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
16270 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16271 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16278 if test "$ld_shlibs" = no
; then
16280 hardcode_libdir_flag_spec
=
16281 export_dynamic_flag_spec
=
16282 whole_archive_flag_spec
=
16285 # PORTME fill in a description of your system's linker (not GNU ld)
16288 allow_undefined_flag
=unsupported
16289 always_export_symbols
=yes
16290 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'
16291 # Note: this linker hardcodes the directories in LIBPATH if there
16292 # are no directories specified by -L.
16293 hardcode_minus_L
=yes
16294 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16295 # Neither direct hardcoding nor static linking is supported with a
16297 hardcode_direct
=unsupported
16302 if test "$host_cpu" = ia64
; then
16303 # On IA64, the linker does run time linking by default, so we don't
16304 # have to do anything special.
16305 aix_use_runtimelinking
=no
16306 exp_sym_flag
='-Bexport'
16309 # If we're using GNU nm, then we don't want the "-C" option.
16310 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16311 # Also, AIX nm treats weak defined symbols like other global
16312 # defined symbols, whereas GNU nm marks them as "W".
16313 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16314 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'
16316 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'
16318 aix_use_runtimelinking
=no
16320 # Test if we are trying to use run time linking or normal
16321 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16322 # need to do runtime linking.
16323 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16324 for ld_flag
in $LDFLAGS; do
16325 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16326 aix_use_runtimelinking
=yes
16333 exp_sym_flag
='-bexport'
16334 no_entry_flag
='-bnoentry'
16337 # When large executables or shared objects are built, AIX ld can
16338 # have problems creating the table of contents. If linking a library
16339 # or program results in "error TOC overflow" add -mminimal-toc to
16340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16344 hardcode_direct
=yes
16345 hardcode_direct_absolute
=yes
16346 hardcode_libdir_separator
=':'
16347 link_all_deplibs
=yes
16348 file_list_spec
='${wl}-f,'
16350 if test "$GCC" = yes; then
16351 case $host_os in aix4.
[012]|aix4.
[012].
*)
16352 # We only want to do this on AIX 4.2 and lower, the check
16353 # below for broken collect2 doesn't work under 4.3+
16354 collect2name
=`${CC} -print-prog-name=collect2`
16355 if test -f "$collect2name" &&
16356 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16358 # We have reworked collect2
16361 # We have old collect2
16362 hardcode_direct
=unsupported
16363 # It fails to find uninstalled libraries when the uninstalled
16364 # path is not listed in the libpath. Setting hardcode_minus_L
16365 # to unsupported forces relinking
16366 hardcode_minus_L
=yes
16367 hardcode_libdir_flag_spec
='-L$libdir'
16368 hardcode_libdir_separator
=
16372 shared_flag
='-shared'
16373 if test "$aix_use_runtimelinking" = yes; then
16374 shared_flag
="$shared_flag "'${wl}-G'
16378 if test "$host_cpu" = ia64
; then
16379 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16380 # chokes on -Wl,-G. The following line is correct:
16383 if test "$aix_use_runtimelinking" = yes; then
16384 shared_flag
='${wl}-G'
16386 shared_flag
='${wl}-bM:SRE'
16391 export_dynamic_flag_spec
='${wl}-bexpall'
16392 # It seems that -bexpall does not export symbols beginning with
16393 # underscore (_), so it is better to generate a list of symbols to export.
16394 always_export_symbols
=yes
16395 if test "$aix_use_runtimelinking" = yes; then
16396 # Warning - without using the other runtime loading flags (-brtl),
16397 # -berok will link without error, but may produce a broken library.
16398 allow_undefined_flag
='-berok'
16399 # Determine the default libpath from the value encoded in an
16400 # empty executable.
16401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16412 if ac_fn_c_try_link
"$LINENO"; then :
16414 lt_aix_libpath_sed
='
16415 /Import File Strings/,/^$/ {
16421 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16422 # Check for a 64-bit object if we didn't find anything.
16423 if test -z "$aix_libpath"; then
16424 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16427 rm -f core conftest.err conftest.
$ac_objext \
16428 conftest
$ac_exeext conftest.
$ac_ext
16429 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16431 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16432 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"
16434 if test "$host_cpu" = ia64
; then
16435 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16436 allow_undefined_flag
="-z nodefs"
16437 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"
16439 # Determine the default libpath from the value encoded in an
16440 # empty executable.
16441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16452 if ac_fn_c_try_link
"$LINENO"; then :
16454 lt_aix_libpath_sed
='
16455 /Import File Strings/,/^$/ {
16461 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16462 # Check for a 64-bit object if we didn't find anything.
16463 if test -z "$aix_libpath"; then
16464 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16467 rm -f core conftest.err conftest.
$ac_objext \
16468 conftest
$ac_exeext conftest.
$ac_ext
16469 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16471 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16472 # Warning - without using the other run time loading flags,
16473 # -berok will link without error, but may produce a broken library.
16474 no_undefined_flag
=' ${wl}-bernotok'
16475 allow_undefined_flag
=' ${wl}-berok'
16476 if test "$with_gnu_ld" = yes; then
16477 # We only use this code for GNU lds that support --whole-archive.
16478 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16480 # Exported symbols can be pulled into shared objects from archives
16481 whole_archive_flag_spec
='$convenience'
16483 archive_cmds_need_lc
=yes
16484 # This is similar to how AIX traditionally builds its shared libraries.
16485 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'
16493 # see comment about AmigaOS4 .so support
16494 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16495 archive_expsym_cmds
=''
16498 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)'
16499 hardcode_libdir_flag_spec
='-L$libdir'
16500 hardcode_minus_L
=yes
16506 export_dynamic_flag_spec
=-rdynamic
16509 cygwin
* | mingw
* | pw32
* | cegcc
*)
16510 # When not using gcc, we currently assume that we are using
16511 # Microsoft Visual C++.
16512 # hardcode_libdir_flag_spec is actually meaningless, as there is
16513 # no search path for DLLs.
16514 hardcode_libdir_flag_spec
=' '
16515 allow_undefined_flag
=unsupported
16516 # Tell ltmain to make .lib files, not .a files.
16518 # Tell ltmain to make .dll files, not .so files.
16520 # FIXME: Setting linknames here is a bad hack.
16521 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16522 # The linker will automatically build a .lib file if we build a DLL.
16523 old_archive_from_new_cmds
='true'
16524 # FIXME: Should let the user specify the lib program.
16525 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16526 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16527 enable_shared_with_static_runtimes
=yes
16530 darwin
* | rhapsody
*)
16533 archive_cmds_need_lc
=no
16535 hardcode_automatic
=yes
16536 hardcode_shlibpath_var
=unsupported
16537 if test "$lt_cv_ld_force_load" = "yes"; then
16538 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\"`'
16540 whole_archive_flag_spec
=''
16542 link_all_deplibs
=yes
16543 allow_undefined_flag
="$_lt_dar_allow_undefined"
16544 case $cc_basename in
16545 ifort
*) _lt_dar_can_shared
=yes ;;
16546 *) _lt_dar_can_shared
=$GCC ;;
16548 if test "$_lt_dar_can_shared" = "yes"; then
16549 output_verbose_link_cmd
=func_echo_all
16550 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16551 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16552 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}"
16553 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}"
16562 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_libdir_flag_spec
='-L$libdir'
16564 hardcode_shlibpath_var
=no
16567 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16568 # support. Future versions do this automatically, but an explicit c++rt0.o
16569 # does not break anything, and helps significantly (at the cost of a little
16572 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16573 hardcode_libdir_flag_spec
='-R$libdir'
16574 hardcode_direct
=yes
16575 hardcode_shlibpath_var
=no
16578 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16580 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16581 hardcode_direct
=yes
16582 hardcode_minus_L
=yes
16583 hardcode_shlibpath_var
=no
16586 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16587 freebsd
* | dragonfly
*)
16588 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16589 hardcode_libdir_flag_spec
='-R$libdir'
16590 hardcode_direct
=yes
16591 hardcode_shlibpath_var
=no
16595 if test "$GCC" = yes; then
16596 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'
16598 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'
16600 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16601 hardcode_libdir_separator
=:
16602 hardcode_direct
=yes
16604 # hardcode_minus_L: Not really in the search PATH,
16605 # but as the default location of the library.
16606 hardcode_minus_L
=yes
16607 export_dynamic_flag_spec
='${wl}-E'
16611 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16612 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16614 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16616 if test "$with_gnu_ld" = no
; then
16617 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16618 hardcode_libdir_flag_spec_ld
='+b $libdir'
16619 hardcode_libdir_separator
=:
16620 hardcode_direct
=yes
16621 hardcode_direct_absolute
=yes
16622 export_dynamic_flag_spec
='${wl}-E'
16623 # hardcode_minus_L: Not really in the search PATH,
16624 # but as the default location of the library.
16625 hardcode_minus_L
=yes
16630 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16633 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16636 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16639 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16645 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16648 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16652 # Older versions of the 11.00 compiler do not understand -b yet
16653 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16655 $as_echo_n "checking if $CC understands -b... " >&6; }
16656 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16657 $as_echo_n "(cached) " >&6
16659 lt_cv_prog_compiler__b
=no
16660 save_LDFLAGS
="$LDFLAGS"
16661 LDFLAGS
="$LDFLAGS -b"
16662 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16663 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16664 # The linker can only warn and ignore the option if not recognized
16665 # So say no if there are warnings
16666 if test -s conftest.err
; then
16667 # Append any errors to the config.log.
16668 cat conftest.err
1>&5
16669 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16670 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16671 if diff conftest.exp conftest.er2
>/dev
/null
; then
16672 lt_cv_prog_compiler__b
=yes
16675 lt_cv_prog_compiler__b
=yes
16679 LDFLAGS
="$save_LDFLAGS"
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16683 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16685 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16686 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16688 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16694 if test "$with_gnu_ld" = no
; then
16695 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16696 hardcode_libdir_separator
=:
16701 hardcode_shlibpath_var
=no
16704 hardcode_direct
=yes
16705 hardcode_direct_absolute
=yes
16706 export_dynamic_flag_spec
='${wl}-E'
16708 # hardcode_minus_L: Not really in the search PATH,
16709 # but as the default location of the library.
16710 hardcode_minus_L
=yes
16716 irix5
* | irix6
* | nonstopux
*)
16717 if test "$GCC" = yes; then
16718 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'
16719 # Try to use the -exported_symbol ld option, if it does not
16720 # work, assume that -exports_file does not work either and
16721 # implicitly export all symbols.
16722 save_LDFLAGS
="$LDFLAGS"
16723 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16724 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16728 if ac_fn_c_try_link
"$LINENO"; then :
16729 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'
16732 rm -f core conftest.err conftest.
$ac_objext \
16733 conftest
$ac_exeext conftest.
$ac_ext
16734 LDFLAGS
="$save_LDFLAGS"
16736 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'
16737 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'
16739 archive_cmds_need_lc
='no'
16740 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16741 hardcode_libdir_separator
=:
16743 link_all_deplibs
=yes
16747 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16748 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16750 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16752 hardcode_libdir_flag_spec
='-R$libdir'
16753 hardcode_direct
=yes
16754 hardcode_shlibpath_var
=no
16758 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16759 hardcode_direct
=yes
16760 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16761 hardcode_libdir_separator
=:
16762 hardcode_shlibpath_var
=no
16769 if test -f /usr
/libexec
/ld.so
; then
16770 hardcode_direct
=yes
16771 hardcode_shlibpath_var
=no
16772 hardcode_direct_absolute
=yes
16773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16774 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16775 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16776 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16777 export_dynamic_flag_spec
='${wl}-E'
16780 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16781 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16782 hardcode_libdir_flag_spec
='-R$libdir'
16785 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16786 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16796 hardcode_libdir_flag_spec
='-L$libdir'
16797 hardcode_minus_L
=yes
16798 allow_undefined_flag
=unsupported
16799 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'
16800 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16804 if test "$GCC" = yes; then
16805 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16806 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'
16808 allow_undefined_flag
=' -expect_unresolved \*'
16809 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'
16811 archive_cmds_need_lc
='no'
16812 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16813 hardcode_libdir_separator
=:
16816 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16817 if test "$GCC" = yes; then
16818 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16819 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'
16820 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16822 allow_undefined_flag
=' -expect_unresolved \*'
16823 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'
16824 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~
16825 $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'
16827 # Both c and cxx compiler support -rpath directly
16828 hardcode_libdir_flag_spec
='-rpath $libdir'
16830 archive_cmds_need_lc
='no'
16831 hardcode_libdir_separator
=:
16835 no_undefined_flag
=' -z defs'
16836 if test "$GCC" = yes; then
16838 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16839 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16840 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16842 case `$CC -V 2>&1` in
16845 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16846 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16847 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16851 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16852 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16853 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16857 hardcode_libdir_flag_spec
='-R$libdir'
16858 hardcode_shlibpath_var
=no
16860 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16862 # The compiler driver will combine and reorder linker options,
16863 # but understands `-z linker_flag'. GCC discards it without `$wl',
16864 # but is careful enough not to reorder.
16865 # Supported since Solaris 2.6 (maybe 2.5.1?)
16866 if test "$GCC" = yes; then
16867 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16869 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16873 link_all_deplibs
=yes
16877 if test "x$host_vendor" = xsequent
; then
16878 # Use $CC to link under sequent, because it throws in some extra .o
16879 # files that make .init and .fini sections work.
16880 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16882 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16884 hardcode_libdir_flag_spec
='-L$libdir'
16885 hardcode_direct
=yes
16886 hardcode_minus_L
=yes
16887 hardcode_shlibpath_var
=no
16891 case $host_vendor in
16893 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16894 hardcode_direct
=yes # is this really true???
16897 ## LD is ld it makes a PLAMLIB
16898 ## CC just makes a GrossModule.
16899 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16900 reload_cmds
='$CC -r -o $output$reload_objs'
16904 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16905 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16908 runpath_var
='LD_RUN_PATH'
16909 hardcode_shlibpath_var
=no
16913 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16914 hardcode_shlibpath_var
=no
16915 export_dynamic_flag_spec
='-Bexport'
16919 if test -d /usr
/nec
; then
16920 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16921 hardcode_shlibpath_var
=no
16922 runpath_var
=LD_RUN_PATH
16923 hardcode_runpath_var
=yes
16928 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16929 no_undefined_flag
='${wl}-z,text'
16930 archive_cmds_need_lc
=no
16931 hardcode_shlibpath_var
=no
16932 runpath_var
='LD_RUN_PATH'
16934 if test "$GCC" = yes; then
16935 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16936 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16938 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16939 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16943 sysv5
* | sco3.2v5
* | sco5v6
*)
16944 # Note: We can NOT use -z defs as we might desire, because we do not
16945 # link with -lc, and that would cause any symbols used from libc to
16946 # always be unresolved, which means just about no library would
16947 # ever link correctly. If we're not using GNU ld we use -z text
16948 # though, which does catch some bad symbols but isn't as heavy-handed
16950 no_undefined_flag
='${wl}-z,text'
16951 allow_undefined_flag
='${wl}-z,nodefs'
16952 archive_cmds_need_lc
=no
16953 hardcode_shlibpath_var
=no
16954 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16955 hardcode_libdir_separator
=':'
16956 link_all_deplibs
=yes
16957 export_dynamic_flag_spec
='${wl}-Bexport'
16958 runpath_var
='LD_RUN_PATH'
16960 if test "$GCC" = yes; then
16961 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16962 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16964 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16965 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16970 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16971 hardcode_libdir_flag_spec
='-L$libdir'
16972 hardcode_shlibpath_var
=no
16980 if test x
$host_vendor = xsni
; then
16982 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16983 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16990 $as_echo "$ld_shlibs" >&6; }
16991 test "$ld_shlibs" = no
&& can_build_shared
=no
16993 with_gnu_ld
=$with_gnu_ld
17010 # Do we need to explicitly link libc?
17012 case "x$archive_cmds_need_lc" in
17014 # Assume -lc should be added
17015 archive_cmds_need_lc
=yes
17017 if test "$enable_shared" = yes && test "$GCC" = yes; then
17018 case $archive_cmds in
17020 # FIXME: we may have to deal with multi-command sequences.
17023 # Test whether the compiler implicitly links with -lc since on some
17024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17025 # to ld, don't add -lc before -lgcc.
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17027 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17028 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
17029 $as_echo_n "(cached) " >&6
17032 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17035 (eval $ac_compile) 2>&5
17037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17038 test $ac_status = 0; } 2>conftest.err
; then
17041 libobjs
=conftest.
$ac_objext
17043 wl
=$lt_prog_compiler_wl
17044 pic_flag
=$lt_prog_compiler_pic
17050 lt_save_allow_undefined_flag
=$allow_undefined_flag
17051 allow_undefined_flag
=
17052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17053 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17056 test $ac_status = 0; }
17058 lt_cv_archive_cmds_need_lc
=no
17060 lt_cv_archive_cmds_need_lc
=yes
17062 allow_undefined_flag
=$lt_save_allow_undefined_flag
17064 cat conftest.err
1>&5
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17070 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17071 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17235 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17237 if test "$GCC" = yes; then
17239 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
17240 *) lt_awk_arg
="/^libraries:/" ;;
17243 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
17244 *) lt_sed_strip_eq
="s,=/,/,g" ;;
17246 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17247 case $lt_search_path_spec in
17249 # if the path contains ";" then we assume it to be the separator
17250 # otherwise default to the standard path separator (i.e. ":") - it is
17251 # assumed that no part of a normal pathname contains ";" but that should
17252 # okay in the real world where ";" in dirpaths is itself problematic.
17253 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17256 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17259 # Ok, now we have the path, separated by spaces, we can step through it
17260 # and add multilib dir if necessary.
17261 lt_tmp_lt_search_path_spec
=
17262 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17263 for lt_sys_path
in $lt_search_path_spec; do
17264 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17265 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17267 test -d "$lt_sys_path" && \
17268 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
17271 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17272 BEGIN {RS=" "; FS="/|\n";} {
17275 for (lt_i = NF; lt_i > 0; lt_i--) {
17276 if ($lt_i != "" && $lt_i != ".") {
17277 if ($lt_i == "..") {
17280 if (lt_count == 0) {
17281 lt_foo="/" $lt_i lt_foo;
17288 if (lt_foo != "") { lt_freq[lt_foo]++; }
17289 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17291 # AWK program above erroneously prepends '/' to C:/dos/paths
17294 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17295 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17297 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17299 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17301 library_names_spec
=
17302 libname_spec
='lib$name'
17306 postuninstall_cmds
=
17310 shlibpath_overrides_runpath
=unknown
17312 dynamic_linker
="$host_os ld.so"
17313 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17314 need_lib_prefix
=unknown
17315 hardcode_into_libs
=no
17317 # when you set need_version to no, make sure it does not cause -set_version
17318 # flags to be left without arguments
17319 need_version
=unknown
17324 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17325 shlibpath_var
=LIBPATH
17327 # AIX 3 has no versioning support, so we append a major version to the name.
17328 soname_spec
='${libname}${release}${shared_ext}$major'
17335 hardcode_into_libs
=yes
17336 if test "$host_cpu" = ia64
; then
17337 # AIX 5 supports IA64
17338 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17339 shlibpath_var
=LD_LIBRARY_PATH
17341 # With GCC up to 2.95.x, collect2 would create an import file
17342 # for dependence libraries. The import file would start with
17343 # the line `#! .'. This would cause the generated library to
17344 # depend on `.', always an invalid library. This was fixed in
17345 # development snapshots of GCC prior to 3.0.
17347 aix4 | aix4.
[01] | aix4.
[01].
*)
17348 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17350 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17353 can_build_shared
=no
17357 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17358 # soname into executable. Probably we can add versioning support to
17359 # collect2, so additional links can be useful in future.
17360 if test "$aix_use_runtimelinking" = yes; then
17361 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17362 # instead of lib<name>.a to let people know that these are not
17363 # typical AIX shared libraries.
17364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17366 # We preserve .a as extension for shared libraries through AIX4.2
17367 # and later when we are not doing run time linking.
17368 library_names_spec
='${libname}${release}.a $libname.a'
17369 soname_spec
='${libname}${release}${shared_ext}$major'
17371 shlibpath_var
=LIBPATH
17378 # Since July 2007 AmigaOS4 officially supports .so libraries.
17379 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17380 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17383 library_names_spec
='$libname.ixlibrary $libname.a'
17384 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17385 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'
17391 library_names_spec
='${libname}${shared_ext}'
17392 dynamic_linker
="$host_os ld.so"
17393 shlibpath_var
=LIBRARY_PATH
17399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17400 soname_spec
='${libname}${release}${shared_ext}$major'
17401 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17402 shlibpath_var
=LD_LIBRARY_PATH
17403 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17404 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17405 # the default ld.so.conf also contains /usr/contrib/lib and
17406 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17407 # libtool to hard-code these into programs
17410 cygwin
* | mingw
* | pw32
* | cegcc
*)
17411 version_type
=windows
17416 case $GCC,$host_os in
17417 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17418 library_names_spec
='$libname.dll.a'
17419 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17420 postinstall_cmds
='base_file=`basename \${file}`~
17421 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17422 dldir=$destdir/`dirname \$dlpath`~
17423 test -d \$dldir || mkdir -p \$dldir~
17424 $install_prog $dir/$dlname \$dldir/$dlname~
17425 chmod a+x \$dldir/$dlname~
17426 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17427 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17429 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17430 dlpath=$dir/\$dldll~
17432 shlibpath_overrides_runpath
=yes
17436 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17437 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17439 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17442 # MinGW DLLs use traditional 'lib' prefix
17443 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17446 # pw32 DLLs use 'pw' prefix rather than 'lib'
17447 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17453 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17456 dynamic_linker
='Win32 ld.exe'
17457 # FIXME: first we should search . and the directory the executable is in
17461 darwin
* | rhapsody
*)
17462 dynamic_linker
="$host_os dyld"
17463 version_type
=darwin
17466 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17467 soname_spec
='${libname}${release}${major}$shared_ext'
17468 shlibpath_overrides_runpath
=yes
17469 shlibpath_var
=DYLD_LIBRARY_PATH
17470 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17472 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17473 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17480 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17481 soname_spec
='${libname}${release}${shared_ext}$major'
17482 shlibpath_var
=LD_LIBRARY_PATH
17485 freebsd
* | dragonfly
*)
17486 # DragonFly does not have aout. When/if they implement a new
17487 # versioning mechanism, adjust this.
17488 if test -x /usr
/bin
/objformat
; then
17489 objformat
=`/usr/bin/objformat`
17492 freebsd
[23].
*) objformat
=aout
;;
17493 *) objformat
=elf
;;
17496 version_type
=freebsd-
$objformat
17497 case $version_type in
17499 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17504 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17508 shlibpath_var
=LD_LIBRARY_PATH
17511 shlibpath_overrides_runpath
=yes
17513 freebsd3.
[01]* | freebsdelf3.
[01]*)
17514 shlibpath_overrides_runpath
=yes
17515 hardcode_into_libs
=yes
17517 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17518 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17519 shlibpath_overrides_runpath
=no
17520 hardcode_into_libs
=yes
17522 *) # from 4.6 on, and DragonFly
17523 shlibpath_overrides_runpath
=yes
17524 hardcode_into_libs
=yes
17533 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17534 soname_spec
='${libname}${release}${shared_ext}$major'
17535 shlibpath_var
=LD_LIBRARY_PATH
17536 hardcode_into_libs
=yes
17543 dynamic_linker
="$host_os runtime_loader"
17544 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17545 soname_spec
='${libname}${release}${shared_ext}$major'
17546 shlibpath_var
=LIBRARY_PATH
17547 shlibpath_overrides_runpath
=yes
17548 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17549 hardcode_into_libs
=yes
17552 hpux9
* | hpux10
* | hpux11
*)
17553 # Give a soname corresponding to the major version so that dld.sl refuses to
17554 # link against other versions.
17561 hardcode_into_libs
=yes
17562 dynamic_linker
="$host_os dld.so"
17563 shlibpath_var
=LD_LIBRARY_PATH
17564 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17565 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17566 soname_spec
='${libname}${release}${shared_ext}$major'
17567 if test "X$HPUX_IA64_MODE" = X32
; then
17568 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17570 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17572 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17576 hardcode_into_libs
=yes
17577 dynamic_linker
="$host_os dld.sl"
17578 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17579 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17580 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17581 soname_spec
='${libname}${release}${shared_ext}$major'
17582 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17583 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17587 dynamic_linker
="$host_os dld.sl"
17588 shlibpath_var
=SHLIB_PATH
17589 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17590 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17591 soname_spec
='${libname}${release}${shared_ext}$major'
17594 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17595 postinstall_cmds
='chmod 555 $lib'
17596 # or fails outright, so override atomically:
17597 install_override_mode
=555
17604 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17605 soname_spec
='${libname}${release}${shared_ext}$major'
17606 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17607 shlibpath_var
=LD_LIBRARY_PATH
17608 shlibpath_overrides_runpath
=no
17609 hardcode_into_libs
=yes
17612 irix5
* | irix6
* | nonstopux
*)
17614 nonstopux
*) version_type
=nonstopux
;;
17616 if test "$lt_cv_prog_gnu_ld" = yes; then
17624 soname_spec
='${libname}${release}${shared_ext}$major'
17625 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17627 irix5
* | nonstopux
*)
17628 libsuff
= shlibsuff
=
17631 case $LD in # libtool.m4 will add one of these switches to LD
17632 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17633 libsuff
= shlibsuff
= libmagic
=32-bit;;
17634 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17635 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17636 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17637 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17638 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17642 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17643 shlibpath_overrides_runpath
=no
17644 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17645 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17646 hardcode_into_libs
=yes
17649 # No shared lib support for Linux oldld, aout, or coff.
17650 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17654 # This must be Linux ELF.
17655 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17659 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17660 soname_spec
='${libname}${release}${shared_ext}$major'
17661 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17662 shlibpath_var
=LD_LIBRARY_PATH
17663 shlibpath_overrides_runpath
=no
17665 # Some binutils ld are patched to set DT_RUNPATH
17666 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17667 $as_echo_n "(cached) " >&6
17669 lt_cv_shlibpath_overrides_runpath
=no
17670 save_LDFLAGS
=$LDFLAGS
17671 save_libdir
=$libdir
17672 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17673 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17675 /* end confdefs.h. */
17685 if ac_fn_c_try_link
"$LINENO"; then :
17686 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17687 lt_cv_shlibpath_overrides_runpath
=yes
17690 rm -f core conftest.err conftest.
$ac_objext \
17691 conftest
$ac_exeext conftest.
$ac_ext
17692 LDFLAGS
=$save_LDFLAGS
17693 libdir
=$save_libdir
17697 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17699 # This implies no fast_install, which is unacceptable.
17700 # Some rework will be needed to allow for fast_install
17701 # before this can be enabled.
17702 hardcode_into_libs
=yes
17704 # Append ld.so.conf contents to the search path
17705 if test -f /etc
/ld.so.conf
; then
17706 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' ' '`
17707 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17710 # We used to test for /lib/ld.so.1 and disable shared libraries on
17711 # powerpc, because MkLinux only supported shared libraries with the
17712 # GNU dynamic linker. Since this was broken with cross compilers,
17713 # most powerpc-linux boxes support dynamic linking these days and
17714 # people can always --disable-shared, the test was removed, and we
17715 # assume the GNU/Linux dynamic linker is in use.
17716 dynamic_linker
='GNU/Linux ld.so'
17723 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17724 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17725 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17726 dynamic_linker
='NetBSD (a.out) ld.so'
17728 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17729 soname_spec
='${libname}${release}${shared_ext}$major'
17730 dynamic_linker
='NetBSD ld.elf_so'
17732 shlibpath_var
=LD_LIBRARY_PATH
17733 shlibpath_overrides_runpath
=yes
17734 hardcode_into_libs
=yes
17739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740 shlibpath_var
=LD_LIBRARY_PATH
17741 shlibpath_overrides_runpath
=yes
17748 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17749 soname_spec
='${libname}${release}${shared_ext}$major'
17750 shlibpath_var
=LD_LIBRARY_PATH
17751 shlibpath_overrides_runpath
=no
17752 hardcode_into_libs
=yes
17753 dynamic_linker
='ldqnx.so'
17758 sys_lib_dlsearch_path_spec
="/usr/lib"
17760 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17762 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17763 *) need_version
=no
;;
17765 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17766 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17767 shlibpath_var
=LD_LIBRARY_PATH
17768 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17770 openbsd2.
[89] | openbsd2.
[89].
*)
17771 shlibpath_overrides_runpath
=no
17774 shlibpath_overrides_runpath
=yes
17778 shlibpath_overrides_runpath
=yes
17783 libname_spec
='$name'
17786 library_names_spec
='$libname${shared_ext} $libname.a'
17787 dynamic_linker
='OS/2 ld.exe'
17788 shlibpath_var
=LIBPATH
17791 osf3
* | osf4
* | osf5
*)
17795 soname_spec
='${libname}${release}${shared_ext}$major'
17796 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17797 shlibpath_var
=LD_LIBRARY_PATH
17798 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17799 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17810 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811 soname_spec
='${libname}${release}${shared_ext}$major'
17812 shlibpath_var
=LD_LIBRARY_PATH
17813 shlibpath_overrides_runpath
=yes
17814 hardcode_into_libs
=yes
17815 # ldd complains unless libraries are executable
17816 postinstall_cmds
='chmod +x $lib'
17821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17822 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17823 shlibpath_var
=LD_LIBRARY_PATH
17824 shlibpath_overrides_runpath
=yes
17825 if test "$with_gnu_ld" = yes; then
17833 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17834 soname_spec
='${libname}${release}${shared_ext}$major'
17835 shlibpath_var
=LD_LIBRARY_PATH
17836 case $host_vendor in
17838 shlibpath_overrides_runpath
=no
17840 runpath_var
=LD_RUN_PATH
17848 shlibpath_overrides_runpath
=no
17849 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17855 if test -d /usr
/nec
;then
17857 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17858 soname_spec
='$libname${shared_ext}.$major'
17859 shlibpath_var
=LD_LIBRARY_PATH
17863 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17864 version_type
=freebsd-elf
17867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17868 soname_spec
='${libname}${release}${shared_ext}$major'
17869 shlibpath_var
=LD_LIBRARY_PATH
17870 shlibpath_overrides_runpath
=yes
17871 hardcode_into_libs
=yes
17872 if test "$with_gnu_ld" = yes; then
17873 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17875 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17878 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17882 sys_lib_dlsearch_path_spec
='/usr/lib'
17886 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891 shlibpath_var
=LD_LIBRARY_PATH
17892 shlibpath_overrides_runpath
=no
17893 hardcode_into_libs
=yes
17898 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17899 soname_spec
='${libname}${release}${shared_ext}$major'
17900 shlibpath_var
=LD_LIBRARY_PATH
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17908 $as_echo "$dynamic_linker" >&6; }
17909 test "$dynamic_linker" = no
&& can_build_shared
=no
17911 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17912 if test "$GCC" = yes; then
17913 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17916 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17917 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17919 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17920 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18015 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18017 if test -n "$hardcode_libdir_flag_spec" ||
18018 test -n "$runpath_var" ||
18019 test "X$hardcode_automatic" = "Xyes" ; then
18021 # We can hardcode non-existent directories.
18022 if test "$hardcode_direct" != no
&&
18023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18024 # have to relink, otherwise we might link with an installed library
18025 # when we should be linking with a yet-to-be-installed one
18026 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
18027 test "$hardcode_minus_L" != no
; then
18028 # Linking always hardcodes the temporary library directory.
18029 hardcode_action
=relink
18031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18032 hardcode_action
=immediate
18035 # We cannot hardcode anything, or else we can only hardcode existing
18037 hardcode_action
=unsupported
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18040 $as_echo "$hardcode_action" >&6; }
18042 if test "$hardcode_action" = relink ||
18043 test "$inherit_rpath" = yes; then
18044 # Fast installation is not supported
18045 enable_fast_install
=no
18046 elif test "$shlibpath_overrides_runpath" = yes ||
18047 test "$enable_shared" = no
; then
18048 # Fast installation is not necessary
18049 enable_fast_install
=needless
18057 if test "x$enable_dlopen" != xyes
; then
18058 enable_dlopen
=unknown
18059 enable_dlopen_self
=unknown
18060 enable_dlopen_self_static
=unknown
18067 lt_cv_dlopen
="load_add_on"
18069 lt_cv_dlopen_self
=yes
18072 mingw
* | pw32
* | cegcc
*)
18073 lt_cv_dlopen
="LoadLibrary"
18078 lt_cv_dlopen
="dlopen"
18083 # if libdl is installed we need to link against it
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18085 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18087 $as_echo_n "(cached) " >&6
18089 ac_check_lib_save_LIBS
=$LIBS
18091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h. */
18094 /* Override any GCC internal prototype to avoid an error.
18095 Use char because int might match the return type of a GCC
18096 builtin and then its argument prototype would still apply. */
18109 if ac_fn_c_try_link
"$LINENO"; then :
18110 ac_cv_lib_dl_dlopen
=yes
18112 ac_cv_lib_dl_dlopen
=no
18114 rm -f core conftest.err conftest.
$ac_objext \
18115 conftest
$ac_exeext conftest.
$ac_ext
18116 LIBS
=$ac_check_lib_save_LIBS
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18119 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18120 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18121 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18124 lt_cv_dlopen
="dyld"
18126 lt_cv_dlopen_self
=yes
18133 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
18134 if test "x$ac_cv_func_shl_load" = x
""yes; then :
18135 lt_cv_dlopen
="shl_load"
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18138 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18139 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18140 $as_echo_n "(cached) " >&6
18142 ac_check_lib_save_LIBS
=$LIBS
18144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18157 return shl_load ();
18162 if ac_fn_c_try_link
"$LINENO"; then :
18163 ac_cv_lib_dld_shl_load
=yes
18165 ac_cv_lib_dld_shl_load
=no
18167 rm -f core conftest.err conftest.
$ac_objext \
18168 conftest
$ac_exeext conftest.
$ac_ext
18169 LIBS
=$ac_check_lib_save_LIBS
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18172 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18173 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
18174 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
18176 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
18177 if test "x$ac_cv_func_dlopen" = x
""yes; then :
18178 lt_cv_dlopen
="dlopen"
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18181 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18182 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18183 $as_echo_n "(cached) " >&6
18185 ac_check_lib_save_LIBS
=$LIBS
18187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18188 /* end confdefs.h. */
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18205 if ac_fn_c_try_link
"$LINENO"; then :
18206 ac_cv_lib_dl_dlopen
=yes
18208 ac_cv_lib_dl_dlopen
=no
18210 rm -f core conftest.err conftest.
$ac_objext \
18211 conftest
$ac_exeext conftest.
$ac_ext
18212 LIBS
=$ac_check_lib_save_LIBS
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18215 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18216 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
18217 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18220 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18221 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18222 $as_echo_n "(cached) " >&6
18224 ac_check_lib_save_LIBS
=$LIBS
18225 LIBS
="-lsvld $LIBS"
18226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18229 /* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18244 if ac_fn_c_try_link
"$LINENO"; then :
18245 ac_cv_lib_svld_dlopen
=yes
18247 ac_cv_lib_svld_dlopen
=no
18249 rm -f core conftest.err conftest.
$ac_objext \
18250 conftest
$ac_exeext conftest.
$ac_ext
18251 LIBS
=$ac_check_lib_save_LIBS
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18254 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18255 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
18256 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18259 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18260 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18261 $as_echo_n "(cached) " >&6
18263 ac_check_lib_save_LIBS
=$LIBS
18265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18266 /* end confdefs.h. */
18268 /* Override any GCC internal prototype to avoid an error.
18269 Use char because int might match the return type of a GCC
18270 builtin and then its argument prototype would still apply. */
18278 return dld_link ();
18283 if ac_fn_c_try_link
"$LINENO"; then :
18284 ac_cv_lib_dld_dld_link
=yes
18286 ac_cv_lib_dld_dld_link
=no
18288 rm -f core conftest.err conftest.
$ac_objext \
18289 conftest
$ac_exeext conftest.
$ac_ext
18290 LIBS
=$ac_check_lib_save_LIBS
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18293 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18294 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18295 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18316 if test "x$lt_cv_dlopen" != xno
; then
18322 case $lt_cv_dlopen in
18324 save_CPPFLAGS
="$CPPFLAGS"
18325 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18327 save_LDFLAGS
="$LDFLAGS"
18328 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18331 LIBS
="$lt_cv_dlopen_libs $LIBS"
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18334 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18335 if test "${lt_cv_dlopen_self+set}" = set; then :
18336 $as_echo_n "(cached) " >&6
18338 if test "$cross_compiling" = yes; then :
18339 lt_cv_dlopen_self
=cross
18341 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18342 lt_status
=$lt_dlunknown
18343 cat > conftest.
$ac_ext <<_LT_EOF
18344 #line 18344 "configure"
18345 #include "confdefs.h"
18354 # define LT_DLGLOBAL RTLD_GLOBAL
18357 # define LT_DLGLOBAL DL_GLOBAL
18359 # define LT_DLGLOBAL 0
18363 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18364 find out it does not work in some platform. */
18365 #ifndef LT_DLLAZY_OR_NOW
18367 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18370 # define LT_DLLAZY_OR_NOW DL_LAZY
18373 # define LT_DLLAZY_OR_NOW RTLD_NOW
18376 # define LT_DLLAZY_OR_NOW DL_NOW
18378 # define LT_DLLAZY_OR_NOW 0
18385 /* When -fvisbility=hidden is used, assume the code has been annotated
18386 correspondingly for the symbols needed. */
18387 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18388 void fnord () __attribute__((visibility("default")));
18391 void fnord () { int i=42; }
18394 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18395 int status = $lt_dlunknown;
18399 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18402 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18403 else puts (dlerror ());
18405 /* dlclose (self); */
18413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18414 (eval $ac_link) 2>&5
18416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18417 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18418 (.
/conftest
; exit; ) >&5 2>/dev
/null
18420 case x
$lt_status in
18421 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18422 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18423 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18426 # compilation failed
18427 lt_cv_dlopen_self
=no
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18435 $as_echo "$lt_cv_dlopen_self" >&6; }
18437 if test "x$lt_cv_dlopen_self" = xyes
; then
18438 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18440 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18441 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18442 $as_echo_n "(cached) " >&6
18444 if test "$cross_compiling" = yes; then :
18445 lt_cv_dlopen_self_static
=cross
18447 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18448 lt_status
=$lt_dlunknown
18449 cat > conftest.
$ac_ext <<_LT_EOF
18450 #line 18450 "configure"
18451 #include "confdefs.h"
18460 # define LT_DLGLOBAL RTLD_GLOBAL
18463 # define LT_DLGLOBAL DL_GLOBAL
18465 # define LT_DLGLOBAL 0
18469 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18470 find out it does not work in some platform. */
18471 #ifndef LT_DLLAZY_OR_NOW
18473 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18476 # define LT_DLLAZY_OR_NOW DL_LAZY
18479 # define LT_DLLAZY_OR_NOW RTLD_NOW
18482 # define LT_DLLAZY_OR_NOW DL_NOW
18484 # define LT_DLLAZY_OR_NOW 0
18491 /* When -fvisbility=hidden is used, assume the code has been annotated
18492 correspondingly for the symbols needed. */
18493 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18494 void fnord () __attribute__((visibility("default")));
18497 void fnord () { int i=42; }
18500 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18501 int status = $lt_dlunknown;
18505 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18508 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18509 else puts (dlerror ());
18511 /* dlclose (self); */
18519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18520 (eval $ac_link) 2>&5
18522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18523 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18524 (.
/conftest
; exit; ) >&5 2>/dev
/null
18526 case x
$lt_status in
18527 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18528 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18529 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18532 # compilation failed
18533 lt_cv_dlopen_self_static
=no
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18541 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18544 CPPFLAGS
="$save_CPPFLAGS"
18545 LDFLAGS
="$save_LDFLAGS"
18550 case $lt_cv_dlopen_self in
18551 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18552 *) enable_dlopen_self
=unknown
;;
18555 case $lt_cv_dlopen_self_static in
18556 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18557 *) enable_dlopen_self_static
=unknown
;;
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18580 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18581 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18582 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18583 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18585 $as_echo "yes" >&6; }
18587 # FIXME - insert some real tests, host_os isn't really good enough
18590 if test -n "$STRIP" ; then
18591 striplib
="$STRIP -x"
18592 old_striplib
="$STRIP -S"
18593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18594 $as_echo "yes" >&6; }
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18597 $as_echo "no" >&6; }
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18602 $as_echo "no" >&6; }
18618 # Report which library types will actually be built
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18620 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18622 $as_echo "$can_build_shared" >&6; }
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18625 $as_echo_n "checking whether to build shared libraries... " >&6; }
18626 test "$can_build_shared" = "no" && enable_shared
=no
18628 # On AIX, shared libraries and static libraries use the same namespace, and
18629 # are all built from PIC.
18632 test "$enable_shared" = yes && enable_static
=no
18633 if test -n "$RANLIB"; then
18634 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18635 postinstall_cmds
='$RANLIB $lib'
18640 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18641 test "$enable_shared" = yes && enable_static
=no
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18646 $as_echo "$enable_shared" >&6; }
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18649 $as_echo_n "checking whether to build static libraries... " >&6; }
18650 # Make sure either enable_shared or enable_static is yes.
18651 test "$enable_shared" = yes || enable_static
=yes
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18653 $as_echo "$enable_static" >&6; }
18660 ac_cpp
='$CXXCPP $CPPFLAGS'
18661 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18662 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18663 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18667 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18668 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18669 (test "X$CXX" != "Xg++"))) ; then
18671 ac_cpp
='$CXXCPP $CPPFLAGS'
18672 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18676 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18677 if test -z "$CXXCPP"; then
18678 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18679 $as_echo_n "(cached) " >&6
18681 # Double quotes because CXXCPP needs to be expanded
18682 for CXXCPP
in "$CXX -E" "/lib/cpp"
18684 ac_preproc_ok
=false
18685 for ac_cxx_preproc_warn_flag
in '' yes
18687 # Use a header file that comes with gcc, so configuring glibc
18688 # with a fresh cross-compiler works.
18689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 # <limits.h> exists even on freestanding compilers.
18691 # On the NeXT, cc -E runs the code through the compiler's parser,
18692 # not just through cpp. "Syntax error" is here to catch this case.
18693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18694 /* end confdefs.h. */
18696 # include <limits.h>
18698 # include <assert.h>
18702 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18705 # Broken: fails on valid input.
18708 rm -f conftest.err conftest.
$ac_ext
18710 # OK, works on sane cases. Now check whether nonexistent headers
18711 # can be detected and how.
18712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18713 /* end confdefs.h. */
18714 #include <ac_nonexistent.h>
18716 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18717 # Broken: success on invalid input.
18720 # Passes both tests.
18724 rm -f conftest.err conftest.
$ac_ext
18727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18728 rm -f conftest.err conftest.
$ac_ext
18729 if $ac_preproc_ok; then :
18734 ac_cv_prog_CXXCPP
=$CXXCPP
18737 CXXCPP
=$ac_cv_prog_CXXCPP
18739 ac_cv_prog_CXXCPP
=$CXXCPP
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18742 $as_echo "$CXXCPP" >&6; }
18743 ac_preproc_ok
=false
18744 for ac_cxx_preproc_warn_flag
in '' yes
18746 # Use a header file that comes with gcc, so configuring glibc
18747 # with a fresh cross-compiler works.
18748 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18749 # <limits.h> exists even on freestanding compilers.
18750 # On the NeXT, cc -E runs the code through the compiler's parser,
18751 # not just through cpp. "Syntax error" is here to catch this case.
18752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18753 /* end confdefs.h. */
18755 # include <limits.h>
18757 # include <assert.h>
18761 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18764 # Broken: fails on valid input.
18767 rm -f conftest.err conftest.
$ac_ext
18769 # OK, works on sane cases. Now check whether nonexistent headers
18770 # can be detected and how.
18771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18773 #include <ac_nonexistent.h>
18775 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18776 # Broken: success on invalid input.
18779 # Passes both tests.
18783 rm -f conftest.err conftest.
$ac_ext
18786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18787 rm -f conftest.err conftest.
$ac_ext
18788 if $ac_preproc_ok; then :
18791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18793 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18794 See \`config.log' for more details." "$LINENO" 5; }
18798 ac_cpp
='$CXXCPP $CPPFLAGS'
18799 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18804 _lt_caught_CXX_error
=yes
18808 ac_cpp
='$CXXCPP $CPPFLAGS'
18809 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18810 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18811 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18813 archive_cmds_need_lc_CXX
=no
18814 allow_undefined_flag_CXX
=
18815 always_export_symbols_CXX
=no
18816 archive_expsym_cmds_CXX
=
18817 compiler_needs_object_CXX
=no
18818 export_dynamic_flag_spec_CXX
=
18819 hardcode_direct_CXX
=no
18820 hardcode_direct_absolute_CXX
=no
18821 hardcode_libdir_flag_spec_CXX
=
18822 hardcode_libdir_flag_spec_ld_CXX
=
18823 hardcode_libdir_separator_CXX
=
18824 hardcode_minus_L_CXX
=no
18825 hardcode_shlibpath_var_CXX
=unsupported
18826 hardcode_automatic_CXX
=no
18827 inherit_rpath_CXX
=no
18829 module_expsym_cmds_CXX
=
18830 link_all_deplibs_CXX
=unknown
18831 old_archive_cmds_CXX
=$old_archive_cmds
18832 reload_flag_CXX
=$reload_flag
18833 reload_cmds_CXX
=$reload_cmds
18834 no_undefined_flag_CXX
=
18835 whole_archive_flag_spec_CXX
=
18836 enable_shared_with_static_runtimes_CXX
=no
18838 # Source file extension for C++ test sources.
18841 # Object file extension for compiled C++ test sources.
18845 # No sense in running all these tests if we already determined that
18846 # the CXX compiler isn't working. Some variables (like enable_shared)
18847 # are currently assumed to apply to all compilers on this platform,
18848 # and will be corrupted by setting them based on a non-working compiler.
18849 if test "$_lt_caught_CXX_error" != yes; then
18850 # Code to be used in simple compile tests
18851 lt_simple_compile_test_code
="int some_variable = 0;"
18853 # Code to be used in simple link tests
18854 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18856 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18863 # If no C compiler was specified, use CC.
18866 # If no C compiler flags were specified, use CFLAGS.
18867 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18869 # Allow CC to be a program name with arguments.
18873 # save warnings/boilerplate of simple test code
18874 ac_outfile
=conftest.
$ac_objext
18875 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18876 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18877 _lt_compiler_boilerplate
=`cat conftest.err`
18880 ac_outfile
=conftest.
$ac_objext
18881 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18882 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18883 _lt_linker_boilerplate
=`cat conftest.err`
18887 # Allow CC to be a program name with arguments.
18892 lt_save_with_gnu_ld
=$with_gnu_ld
18893 lt_save_path_LD
=$lt_cv_path_LD
18894 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18895 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18897 $as_unset lt_cv_prog_gnu_ld
18899 if test -n "${lt_cv_path_LDCXX+set}"; then
18900 lt_cv_path_LD
=$lt_cv_path_LDCXX
18902 $as_unset lt_cv_path_LD
18904 test -z "${LDCXX+set}" || LD
=$LDCXX
18908 for cc_temp
in $compiler""; do
18910 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18911 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18916 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18919 if test -n "$compiler"; then
18920 # We don't want -fno-exception when compiling C++ code, so set the
18921 # no_builtin_flag separately
18922 if test "$GXX" = yes; then
18923 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18925 lt_prog_compiler_no_builtin_flag_CXX
=
18928 if test "$GXX" = yes; then
18929 # Set up default GNU C++ configuration
18933 # Check whether --with-gnu-ld was given.
18934 if test "${with_gnu_ld+set}" = set; then :
18935 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18941 if test "$GCC" = yes; then
18942 # Check if gcc -print-prog-name=ld gives a path.
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18944 $as_echo_n "checking for ld used by $CC... " >&6; }
18947 # gcc leaves a trailing carriage return which upsets mingw
18948 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18950 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18953 # Accept absolute paths.
18955 re_direlt
='/[^/][^/]*/\.\./'
18956 # Canonicalize the pathname of ld
18957 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18958 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18959 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18961 test -z "$LD" && LD
="$ac_prog"
18964 # If it fails, then pretend we aren't using GCC.
18968 # If it is relative, then search for the first ld in PATH.
18969 with_gnu_ld
=unknown
18972 elif test "$with_gnu_ld" = yes; then
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18974 $as_echo_n "checking for GNU ld... " >&6; }
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18977 $as_echo_n "checking for non-GNU ld... " >&6; }
18979 if test "${lt_cv_path_LD+set}" = set; then :
18980 $as_echo_n "(cached) " >&6
18982 if test -z "$LD"; then
18983 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18984 for ac_dir
in $PATH; do
18986 test -z "$ac_dir" && ac_dir
=.
18987 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18988 lt_cv_path_LD
="$ac_dir/$ac_prog"
18989 # Check to see if the program is GNU ld. I'd rather use --version,
18990 # but apparently some variants of GNU ld only accept -v.
18991 # Break only if it was the GNU/non-GNU ld that we prefer.
18992 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18993 *GNU
* |
*'with BFD'*)
18994 test "$with_gnu_ld" != no
&& break
18997 test "$with_gnu_ld" != yes && break
19004 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
19008 LD
="$lt_cv_path_LD"
19009 if test -n "$LD"; then
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19011 $as_echo "$LD" >&6; }
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19014 $as_echo "no" >&6; }
19016 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19018 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19019 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
19020 $as_echo_n "(cached) " >&6
19022 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19023 case `$LD -v 2>&1 </dev/null` in
19024 *GNU
* |
*'with BFD'*)
19025 lt_cv_prog_gnu_ld
=yes
19028 lt_cv_prog_gnu_ld
=no
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19033 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
19034 with_gnu_ld
=$lt_cv_prog_gnu_ld
19042 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19043 # archiving commands below assume that GNU ld is being used.
19044 if test "$with_gnu_ld" = yes; then
19045 archive_cmds_CXX
='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19046 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'
19048 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19049 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19051 # If archive_cmds runs LD, not CC, wlarc should be empty
19052 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19053 # investigate it a little bit more. (MM)
19056 # ancient GNU ld didn't support --whole-archive et. al.
19057 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19058 $GREP 'no-whole-archive' > /dev
/null
; then
19059 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19061 whole_archive_flag_spec_CXX
=
19067 # A generic and very simple default shared library creation
19068 # command for GNU C++ for the case where it uses the native
19069 # linker, instead of GNU ld. If possible, this setting should
19070 # overridden to take advantage of the native linker features on
19071 # the platform it is being used on.
19072 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19075 # Commands to make compiler produce verbose output that lists
19076 # what "hidden" libraries, object files and flags are used when
19077 # linking a shared library.
19078 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19086 # PORTME: fill in a description of your system's C++ link characteristics
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19088 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19092 # FIXME: insert proper C++ library support
19096 if test "$host_cpu" = ia64
; then
19097 # On IA64, the linker does run time linking by default, so we don't
19098 # have to do anything special.
19099 aix_use_runtimelinking
=no
19100 exp_sym_flag
='-Bexport'
19103 aix_use_runtimelinking
=no
19105 # Test if we are trying to use run time linking or normal
19106 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19107 # need to do runtime linking.
19108 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
19109 for ld_flag
in $LDFLAGS; do
19112 aix_use_runtimelinking
=yes
19120 exp_sym_flag
='-bexport'
19121 no_entry_flag
='-bnoentry'
19124 # When large executables or shared objects are built, AIX ld can
19125 # have problems creating the table of contents. If linking a library
19126 # or program results in "error TOC overflow" add -mminimal-toc to
19127 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19128 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19130 archive_cmds_CXX
=''
19131 hardcode_direct_CXX
=yes
19132 hardcode_direct_absolute_CXX
=yes
19133 hardcode_libdir_separator_CXX
=':'
19134 link_all_deplibs_CXX
=yes
19135 file_list_spec_CXX
='${wl}-f,'
19137 if test "$GXX" = yes; then
19138 case $host_os in aix4.
[012]|aix4.
[012].
*)
19139 # We only want to do this on AIX 4.2 and lower, the check
19140 # below for broken collect2 doesn't work under 4.3+
19141 collect2name
=`${CC} -print-prog-name=collect2`
19142 if test -f "$collect2name" &&
19143 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
19145 # We have reworked collect2
19148 # We have old collect2
19149 hardcode_direct_CXX
=unsupported
19150 # It fails to find uninstalled libraries when the uninstalled
19151 # path is not listed in the libpath. Setting hardcode_minus_L
19152 # to unsupported forces relinking
19153 hardcode_minus_L_CXX
=yes
19154 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19155 hardcode_libdir_separator_CXX
=
19158 shared_flag
='-shared'
19159 if test "$aix_use_runtimelinking" = yes; then
19160 shared_flag
="$shared_flag "'${wl}-G'
19164 if test "$host_cpu" = ia64
; then
19165 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19166 # chokes on -Wl,-G. The following line is correct:
19169 if test "$aix_use_runtimelinking" = yes; then
19170 shared_flag
='${wl}-G'
19172 shared_flag
='${wl}-bM:SRE'
19177 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
19178 # It seems that -bexpall does not export symbols beginning with
19179 # underscore (_), so it is better to generate a list of symbols to
19181 always_export_symbols_CXX
=yes
19182 if test "$aix_use_runtimelinking" = yes; then
19183 # Warning - without using the other runtime loading flags (-brtl),
19184 # -berok will link without error, but may produce a broken library.
19185 allow_undefined_flag_CXX
='-berok'
19186 # Determine the default libpath from the value encoded in an empty
19188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19199 if ac_fn_cxx_try_link
"$LINENO"; then :
19201 lt_aix_libpath_sed
='
19202 /Import File Strings/,/^$/ {
19208 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19209 # Check for a 64-bit object if we didn't find anything.
19210 if test -z "$aix_libpath"; then
19211 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19214 rm -f core conftest.err conftest.
$ac_objext \
19215 conftest
$ac_exeext conftest.
$ac_ext
19216 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19218 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19220 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"
19222 if test "$host_cpu" = ia64
; then
19223 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
19224 allow_undefined_flag_CXX
="-z nodefs"
19225 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"
19227 # Determine the default libpath from the value encoded in an
19228 # empty executable.
19229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19230 /* end confdefs.h. */
19240 if ac_fn_cxx_try_link
"$LINENO"; then :
19242 lt_aix_libpath_sed
='
19243 /Import File Strings/,/^$/ {
19249 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19250 # Check for a 64-bit object if we didn't find anything.
19251 if test -z "$aix_libpath"; then
19252 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19255 rm -f core conftest.err conftest.
$ac_objext \
19256 conftest
$ac_exeext conftest.
$ac_ext
19257 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19259 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
19260 # Warning - without using the other run time loading flags,
19261 # -berok will link without error, but may produce a broken library.
19262 no_undefined_flag_CXX
=' ${wl}-bernotok'
19263 allow_undefined_flag_CXX
=' ${wl}-berok'
19264 if test "$with_gnu_ld" = yes; then
19265 # We only use this code for GNU lds that support --whole-archive.
19266 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19268 # Exported symbols can be pulled into shared objects from archives
19269 whole_archive_flag_spec_CXX
='$convenience'
19271 archive_cmds_need_lc_CXX
=yes
19272 # This is similar to how AIX traditionally builds its shared
19274 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'
19280 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
19281 allow_undefined_flag_CXX
=unsupported
19282 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19283 # support --undefined. This deserves some investigation. FIXME
19284 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19291 case $cc_basename in
19293 # FIXME: insert proper C++ library support
19299 cygwin
* | mingw
* | pw32
* | cegcc
*)
19300 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19301 # as there is no search path for DLLs.
19302 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19303 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19304 allow_undefined_flag_CXX
=unsupported
19305 always_export_symbols_CXX
=no
19306 enable_shared_with_static_runtimes_CXX
=yes
19308 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19309 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'
19310 # If the export-symbols file already is a .def file (1st line
19311 # is EXPORTS), use it as is; otherwise, prepend...
19312 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19313 cp $export_symbols $output_objdir/$soname.def;
19315 echo EXPORTS > $output_objdir/$soname.def;
19316 cat $export_symbols >> $output_objdir/$soname.def;
19318 $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'
19323 darwin
* | rhapsody
*)
19326 archive_cmds_need_lc_CXX
=no
19327 hardcode_direct_CXX
=no
19328 hardcode_automatic_CXX
=yes
19329 hardcode_shlibpath_var_CXX
=unsupported
19330 if test "$lt_cv_ld_force_load" = "yes"; then
19331 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\"`'
19333 whole_archive_flag_spec_CXX
=''
19335 link_all_deplibs_CXX
=yes
19336 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19337 case $cc_basename in
19338 ifort
*) _lt_dar_can_shared
=yes ;;
19339 *) _lt_dar_can_shared
=$GCC ;;
19341 if test "$_lt_dar_can_shared" = "yes"; then
19342 output_verbose_link_cmd
=func_echo_all
19343 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}"
19344 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19345 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}"
19346 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}"
19347 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19348 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}"
19349 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}"
19359 case $cc_basename in
19361 # FIXME: insert proper C++ library support
19365 # Green Hills C++ Compiler
19366 # FIXME: insert proper C++ library support
19370 # FIXME: insert proper C++ library support
19377 # C++ shared libraries reported to be fairly broken before
19383 archive_cmds_need_lc_CXX
=no
19386 freebsd
* | dragonfly
*)
19387 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19396 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19397 link_all_deplibs_CXX
=yes
19401 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19402 hardcode_libdir_separator_CXX
=:
19403 export_dynamic_flag_spec_CXX
='${wl}-E'
19404 hardcode_direct_CXX
=yes
19405 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19406 # but as the default
19407 # location of the library.
19409 case $cc_basename in
19411 # FIXME: insert proper C++ library support
19415 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'
19416 # Commands to make compiler produce verbose output that lists
19417 # what "hidden" libraries, object files and flags are used when
19418 # linking a shared library.
19420 # There doesn't appear to be a way to prevent this compiler from
19421 # explicitly linking system object files so we need to strip them
19422 # from the output so that they don't get included in the library
19424 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"'
19427 if test "$GXX" = yes; then
19428 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'
19430 # FIXME: insert proper C++ library support
19438 if test $with_gnu_ld = no
; then
19439 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19440 hardcode_libdir_separator_CXX
=:
19446 export_dynamic_flag_spec_CXX
='${wl}-E'
19452 hardcode_direct_CXX
=no
19453 hardcode_shlibpath_var_CXX
=no
19456 hardcode_direct_CXX
=yes
19457 hardcode_direct_absolute_CXX
=yes
19458 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19459 # but as the default
19460 # location of the library.
19464 case $cc_basename in
19466 # FIXME: insert proper C++ library support
19472 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19475 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19478 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19481 # Commands to make compiler produce verbose output that lists
19482 # what "hidden" libraries, object files and flags are used when
19483 # linking a shared library.
19485 # There doesn't appear to be a way to prevent this compiler from
19486 # explicitly linking system object files so we need to strip them
19487 # from the output so that they don't get included in the library
19489 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"'
19492 if test "$GXX" = yes; then
19493 if test $with_gnu_ld = no
; then
19496 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19499 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19502 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'
19507 # FIXME: insert proper C++ library support
19515 hardcode_direct_CXX
=no
19516 hardcode_shlibpath_var_CXX
=no
19517 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19518 export_dynamic_flag_spec_CXX
='${wl}-E'
19519 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19520 # Instead, shared libraries are loaded at an image base (0x10000000 by
19521 # default) and relocated if they conflict, which is a slow very memory
19522 # consuming and fragmenting process. To avoid this, we pick a random,
19523 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19524 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19525 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'
19526 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'
19529 case $cc_basename in
19532 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'
19534 # Archives containing C++ object files must be created using
19535 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19536 # necessary to make sure instantiated templates are included
19538 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19541 if test "$GXX" = yes; then
19542 if test "$with_gnu_ld" = no
; then
19543 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'
19545 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'
19548 link_all_deplibs_CXX
=yes
19551 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19552 hardcode_libdir_separator_CXX
=:
19553 inherit_rpath_CXX
=yes
19556 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19557 case $cc_basename in
19559 # Kuck and Associates, Inc. (KAI) C++ Compiler
19561 # KCC will only create a shared library if the output file
19562 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19563 # to its proper name (with version) after linking.
19564 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'
19565 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'
19566 # Commands to make compiler produce verbose output that lists
19567 # what "hidden" libraries, object files and flags are used when
19568 # linking a shared library.
19570 # There doesn't appear to be a way to prevent this compiler from
19571 # explicitly linking system object files so we need to strip them
19572 # from the output so that they don't get included in the library
19574 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"'
19576 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19577 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19579 # Archives containing C++ object files must be created using
19580 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19581 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19586 # version 8.0 and above of icpc choke on multiply defined symbols
19587 # if we add $predep_objects and $postdep_objects, however 7.1 and
19588 # earlier do not add the objects themselves.
19589 case `$CC -V 2>&1` in
19591 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19592 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'
19594 *) # Version 8.0 or newer
19597 ia64
*) tmp_idyn
=' -i_dynamic';;
19599 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19600 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'
19603 archive_cmds_need_lc_CXX
=no
19604 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19605 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19606 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19609 # Portland Group C++ compiler
19611 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19612 prelink_cmds_CXX
='tpldir=Template.dir~
19614 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19615 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19616 old_archive_cmds_CXX
='tpldir=Template.dir~
19618 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19619 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19621 archive_cmds_CXX
='tpldir=Template.dir~
19623 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19624 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19625 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19627 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19628 $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'
19630 *) # Version 6 and above use weak symbols
19631 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19632 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'
19636 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19637 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19638 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'
19642 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19643 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'
19645 runpath_var
=LD_RUN_PATH
19646 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19647 hardcode_libdir_separator_CXX
=:
19649 # Commands to make compiler produce verbose output that lists
19650 # what "hidden" libraries, object files and flags are used when
19651 # linking a shared library.
19653 # There doesn't appear to be a way to prevent this compiler from
19654 # explicitly linking system object files so we need to strip them
19655 # from the output so that they don't get included in the library
19657 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'
19659 xl
* | mpixl
* | bgxl
*)
19660 # IBM XL 8.0 on PPC, with GNU ld
19661 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19662 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19663 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19664 if test "x$supports_anon_versioning" = xyes
; then
19665 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19666 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19667 echo "local: *; };" >> $output_objdir/$libname.ver~
19668 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19672 case `$CC -V 2>&1 | sed 5q` in
19675 no_undefined_flag_CXX
=' -zdefs'
19676 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19677 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'
19678 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19679 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'
19680 compiler_needs_object_CXX
=yes
19682 # Not sure whether something based on
19683 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19685 output_verbose_link_cmd
='func_echo_all'
19687 # Archives containing C++ object files must be created using
19688 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19689 # necessary to make sure instantiated templates are included
19691 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19699 # FIXME: insert proper C++ library support
19704 # FIXME: insert proper C++ library support
19709 case $cc_basename in
19711 # FIXME: insert proper C++ library support
19715 # FIXME: insert proper C++ library support
19722 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19723 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19725 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19726 hardcode_direct_CXX
=yes
19727 hardcode_shlibpath_var_CXX
=no
19729 # Workaround some broken pre-1.5 toolchains
19730 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19738 # C++ shared libraries are fairly broken
19743 if test -f /usr
/libexec
/ld.so
; then
19744 hardcode_direct_CXX
=yes
19745 hardcode_shlibpath_var_CXX
=no
19746 hardcode_direct_absolute_CXX
=yes
19747 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19748 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19749 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19750 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19751 export_dynamic_flag_spec_CXX
='${wl}-E'
19752 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19754 output_verbose_link_cmd
=func_echo_all
19760 osf3
* | osf4
* | osf5
*)
19761 case $cc_basename in
19763 # Kuck and Associates, Inc. (KAI) C++ Compiler
19765 # KCC will only create a shared library if the output file
19766 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19767 # to its proper name (with version) after linking.
19768 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'
19770 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19771 hardcode_libdir_separator_CXX
=:
19773 # Archives containing C++ object files must be created using
19774 # the KAI C++ compiler.
19776 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19777 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19781 # Rational C++ 2.4.1
19782 # FIXME: insert proper C++ library support
19788 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19789 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'
19790 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19793 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19794 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'
19795 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19796 echo "-hidden">> $lib.exp~
19797 $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~
19799 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19803 hardcode_libdir_separator_CXX
=:
19805 # Commands to make compiler produce verbose output that lists
19806 # what "hidden" libraries, object files and flags are used when
19807 # linking a shared library.
19809 # There doesn't appear to be a way to prevent this compiler from
19810 # explicitly linking system object files so we need to strip them
19811 # from the output so that they don't get included in the library
19813 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"'
19816 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19817 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19820 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'
19823 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'
19827 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19828 hardcode_libdir_separator_CXX
=:
19830 # Commands to make compiler produce verbose output that lists
19831 # what "hidden" libraries, object files and flags are used when
19832 # linking a shared library.
19833 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19836 # FIXME: insert proper C++ library support
19844 # FIXME: insert proper C++ library support
19849 case $cc_basename in
19852 # FIXME: insert proper C++ library support
19857 # FIXME: insert proper C++ library support
19861 # FIXME: insert proper C++ library support
19868 case $cc_basename in
19870 # Sun C++ 4.2, 5.x and Centerline C++
19871 archive_cmds_need_lc_CXX
=yes
19872 no_undefined_flag_CXX
=' -zdefs'
19873 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19874 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19875 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19877 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19878 hardcode_shlibpath_var_CXX
=no
19880 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19882 # The compiler driver will combine and reorder linker options,
19883 # but understands `-z linker_flag'.
19884 # Supported since Solaris 2.6 (maybe 2.5.1?)
19885 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19888 link_all_deplibs_CXX
=yes
19890 output_verbose_link_cmd
='func_echo_all'
19892 # Archives containing C++ object files must be created using
19893 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19894 # necessary to make sure instantiated templates are included
19896 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19899 # Green Hills C++ Compiler
19900 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19902 # The C++ compiler must be used to create the archive.
19903 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19906 # GNU C++ compiler with Solaris linker
19907 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19908 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19909 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19910 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19911 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19912 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19914 # Commands to make compiler produce verbose output that lists
19915 # what "hidden" libraries, object files and flags are used when
19916 # linking a shared library.
19917 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19919 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19921 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19922 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19923 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19925 # Commands to make compiler produce verbose output that lists
19926 # what "hidden" libraries, object files and flags are used when
19927 # linking a shared library.
19928 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19931 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19933 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19935 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19943 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19944 no_undefined_flag_CXX
='${wl}-z,text'
19945 archive_cmds_need_lc_CXX
=no
19946 hardcode_shlibpath_var_CXX
=no
19947 runpath_var
='LD_RUN_PATH'
19949 case $cc_basename in
19951 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19952 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19955 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19956 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19961 sysv5
* | sco3.2v5
* | sco5v6
*)
19962 # Note: We can NOT use -z defs as we might desire, because we do not
19963 # link with -lc, and that would cause any symbols used from libc to
19964 # always be unresolved, which means just about no library would
19965 # ever link correctly. If we're not using GNU ld we use -z text
19966 # though, which does catch some bad symbols but isn't as heavy-handed
19968 no_undefined_flag_CXX
='${wl}-z,text'
19969 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19970 archive_cmds_need_lc_CXX
=no
19971 hardcode_shlibpath_var_CXX
=no
19972 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19973 hardcode_libdir_separator_CXX
=':'
19974 link_all_deplibs_CXX
=yes
19975 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19976 runpath_var
='LD_RUN_PATH'
19978 case $cc_basename in
19980 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19981 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19982 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19983 '"$old_archive_cmds_CXX"
19984 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19985 '"$reload_cmds_CXX"
19988 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19989 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19995 case $cc_basename in
19997 # NonStop-UX NCC 3.20
19998 # FIXME: insert proper C++ library support
20002 # FIXME: insert proper C++ library support
20009 # FIXME: insert proper C++ library support
20014 # FIXME: insert proper C++ library support
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20020 $as_echo "$ld_shlibs_CXX" >&6; }
20021 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20027 ## There is no encapsulation within the following macros, do not change
20028 ## the running order or otherwise move them around unless you know exactly
20029 ## what you are doing...
20030 # Dependencies to place before and after the object being linked:
20031 predep_objects_CXX
=
20032 postdep_objects_CXX
=
20035 compiler_lib_search_path_CXX
=
20037 cat > conftest.
$ac_ext <<_LT_EOF
20041 Foo (void) { a = 0; }
20047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20048 (eval $ac_compile) 2>&5
20050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20051 test $ac_status = 0; }; then
20052 # Parse the compiler output and extract the necessary
20053 # objects, libraries and library flags.
20055 # Sentinel used to keep track of whether or not we are before
20056 # the conftest object file.
20057 pre_test_object_deps_done
=no
20059 for p
in `eval "$output_verbose_link_cmd"`; do
20063 # Some compilers place space between "-{L,R}" and the path.
20064 # Remove the space.
20065 if test $p = "-L" ||
20066 test $p = "-R"; then
20073 if test "$pre_test_object_deps_done" = no
; then
20076 # Internal compiler library paths should come after those
20077 # provided the user. The postdeps already come after the
20078 # user supplied libs so there is no need to process them.
20079 if test -z "$compiler_lib_search_path_CXX"; then
20080 compiler_lib_search_path_CXX
="${prev}${p}"
20082 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
20085 # The "-l" case would never come before the object being
20086 # linked, so don't bother handling this case.
20089 if test -z "$postdeps_CXX"; then
20090 postdeps_CXX
="${prev}${p}"
20092 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
20098 # This assumes that the test object file only shows up
20099 # once in the compiler output.
20100 if test "$p" = "conftest.$objext"; then
20101 pre_test_object_deps_done
=yes
20105 if test "$pre_test_object_deps_done" = no
; then
20106 if test -z "$predep_objects_CXX"; then
20107 predep_objects_CXX
="$p"
20109 predep_objects_CXX
="$predep_objects_CXX $p"
20112 if test -z "$postdep_objects_CXX"; then
20113 postdep_objects_CXX
="$p"
20115 postdep_objects_CXX
="$postdep_objects_CXX $p"
20120 *) ;; # Ignore the rest.
20128 echo "libtool.m4: error: problem compiling CXX test program"
20131 $RM -f confest.
$objext
20133 # PORTME: override above test on systems where it is broken
20136 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20137 # hack all around it, let's just trust "g++" to DTRT.
20138 predep_objects_CXX
=
20139 postdep_objects_CXX
=
20144 case `$CC -V 2>&1 | sed 5q` in
20148 # The more standards-conforming stlport4 library is
20149 # incompatible with the Cstd library. Avoid specifying
20150 # it if it's in CXXFLAGS. Ignore libCrun as
20151 # -library=stlport4 depends on it.
20152 case " $CXX $CXXFLAGS " in
20153 *" -library=stlport4 "*)
20154 solaris_use_stlport4
=yes
20158 if test "$solaris_use_stlport4" != yes; then
20159 postdeps_CXX
='-library=Cstd -library=Crun'
20166 case $cc_basename in
20168 # The more standards-conforming stlport4 library is
20169 # incompatible with the Cstd library. Avoid specifying
20170 # it if it's in CXXFLAGS. Ignore libCrun as
20171 # -library=stlport4 depends on it.
20172 case " $CXX $CXXFLAGS " in
20173 *" -library=stlport4 "*)
20174 solaris_use_stlport4
=yes
20178 # Adding this requires a known-good setup of shared libraries for
20179 # Sun compiler versions before 5.6, else PIC objects from an old
20180 # archive will be linked into the output, leading to subtle bugs.
20181 if test "$solaris_use_stlport4" != yes; then
20182 postdeps_CXX
='-library=Cstd -library=Crun'
20190 case " $postdeps_CXX " in
20191 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
20193 compiler_lib_search_dirs_CXX
=
20194 if test -n "${compiler_lib_search_path_CXX}"; then
20195 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20228 lt_prog_compiler_wl_CXX
=
20229 lt_prog_compiler_pic_CXX
=
20230 lt_prog_compiler_static_CXX
=
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20233 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20235 # C++ specific cases for pic, static, wl, etc.
20236 if test "$GXX" = yes; then
20237 lt_prog_compiler_wl_CXX
='-Wl,'
20238 lt_prog_compiler_static_CXX
='-static'
20242 # All AIX code is PIC.
20243 if test "$host_cpu" = ia64
; then
20244 # AIX 5 now supports IA64 processor
20245 lt_prog_compiler_static_CXX
='-Bstatic'
20247 lt_prog_compiler_pic_CXX
='-fPIC'
20253 # see comment about AmigaOS4 .so support
20254 lt_prog_compiler_pic_CXX
='-fPIC'
20257 # FIXME: we need at least 68020 code to build shared libraries, but
20258 # adding the `-m68020' flag to GCC prevents building anything better,
20260 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
20265 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
20266 # PIC is the default for these OSes.
20268 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
20269 # This hack is so that the source file can tell whether it is being
20270 # built for inclusion in a dll (and should export symbols for example).
20271 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20272 # (--disable-auto-import) libraries
20273 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
20275 darwin
* | rhapsody
*)
20276 # PIC is the default on this platform
20277 # Common symbols not allowed in MH_DYLIB files
20278 lt_prog_compiler_pic_CXX
='-fno-common'
20281 # DJGPP does not support shared libraries at all
20282 lt_prog_compiler_pic_CXX
=
20285 # PIC is the default for Haiku.
20286 # The "-static" flag exists, but is broken.
20287 lt_prog_compiler_static_CXX
=
20290 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20291 # Instead, we relocate shared libraries at runtime.
20294 if test -d /usr
/nec
; then
20295 lt_prog_compiler_pic_CXX
=-Kconform_pic
20299 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20300 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20301 # sets the default TLS model and affects inlining.
20306 lt_prog_compiler_pic_CXX
='-fPIC'
20311 # QNX uses GNU C++, but need to define -shared option too, otherwise
20312 # it will coredump.
20313 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20316 lt_prog_compiler_pic_CXX
='-fPIC'
20322 # All AIX code is PIC.
20323 if test "$host_cpu" = ia64
; then
20324 # AIX 5 now supports IA64 processor
20325 lt_prog_compiler_static_CXX
='-Bstatic'
20327 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20331 case $cc_basename in
20333 # Green Hills C++ Compiler
20334 # _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"
20339 case $cc_basename in
20341 lt_prog_compiler_pic_CXX
='-KPIC'
20344 # Green Hills C++ Compiler
20345 lt_prog_compiler_pic_CXX
='-pic'
20351 freebsd
* | dragonfly
*)
20352 # FreeBSD uses GNU C++
20354 hpux9
* | hpux10
* | hpux11
*)
20355 case $cc_basename in
20357 lt_prog_compiler_wl_CXX
='-Wl,'
20358 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20359 if test "$host_cpu" != ia64
; then
20360 lt_prog_compiler_pic_CXX
='+Z'
20364 lt_prog_compiler_wl_CXX
='-Wl,'
20365 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20371 lt_prog_compiler_pic_CXX
='+Z'
20380 # This is c89, which is MS Visual C++ (no shared libs)
20381 # Anyone wants to do a port?
20383 irix5
* | irix6
* | nonstopux
*)
20384 case $cc_basename in
20386 lt_prog_compiler_wl_CXX
='-Wl,'
20387 lt_prog_compiler_static_CXX
='-non_shared'
20388 # CC pic flag -KPIC is the default.
20394 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20395 case $cc_basename in
20398 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20399 lt_prog_compiler_pic_CXX
='-fPIC'
20402 # old Intel C++ for x86_64 which still supported -KPIC.
20403 lt_prog_compiler_wl_CXX
='-Wl,'
20404 lt_prog_compiler_pic_CXX
='-KPIC'
20405 lt_prog_compiler_static_CXX
='-static'
20408 # Intel C++, used to be incompatible with GCC.
20409 # ICC 10 doesn't accept -KPIC any more.
20410 lt_prog_compiler_wl_CXX
='-Wl,'
20411 lt_prog_compiler_pic_CXX
='-fPIC'
20412 lt_prog_compiler_static_CXX
='-static'
20415 # Portland Group C++ compiler
20416 lt_prog_compiler_wl_CXX
='-Wl,'
20417 lt_prog_compiler_pic_CXX
='-fpic'
20418 lt_prog_compiler_static_CXX
='-Bstatic'
20422 # Make sure the PIC flag is empty. It appears that all Alpha
20423 # Linux and Compaq Tru64 Unix objects are PIC.
20424 lt_prog_compiler_pic_CXX
=
20425 lt_prog_compiler_static_CXX
='-non_shared'
20427 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20428 # IBM XL 8.0, 9.0 on PPC and BlueGene
20429 lt_prog_compiler_wl_CXX
='-Wl,'
20430 lt_prog_compiler_pic_CXX
='-qpic'
20431 lt_prog_compiler_static_CXX
='-qstaticlink'
20434 case `$CC -V 2>&1 | sed 5q` in
20437 lt_prog_compiler_pic_CXX
='-KPIC'
20438 lt_prog_compiler_static_CXX
='-Bstatic'
20439 lt_prog_compiler_wl_CXX
='-Qoption ld '
20450 case $cc_basename in
20452 lt_prog_compiler_pic_CXX
='-W c,exportall'
20461 # QNX uses GNU C++, but need to define -shared option too, otherwise
20462 # it will coredump.
20463 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20465 osf3
* | osf4
* | osf5
*)
20466 case $cc_basename in
20468 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20471 # Rational C++ 2.4.1
20472 lt_prog_compiler_pic_CXX
='-pic'
20475 # Digital/Compaq C++
20476 lt_prog_compiler_wl_CXX
='-Wl,'
20477 # Make sure the PIC flag is empty. It appears that all Alpha
20478 # Linux and Compaq Tru64 Unix objects are PIC.
20479 lt_prog_compiler_pic_CXX
=
20480 lt_prog_compiler_static_CXX
='-non_shared'
20489 case $cc_basename in
20491 # Sun C++ 4.2, 5.x and Centerline C++
20492 lt_prog_compiler_pic_CXX
='-KPIC'
20493 lt_prog_compiler_static_CXX
='-Bstatic'
20494 lt_prog_compiler_wl_CXX
='-Qoption ld '
20497 # Green Hills C++ Compiler
20498 lt_prog_compiler_pic_CXX
='-PIC'
20505 case $cc_basename in
20508 lt_prog_compiler_pic_CXX
='-pic'
20509 lt_prog_compiler_static_CXX
='-Bstatic'
20513 lt_prog_compiler_pic_CXX
='-pic'
20519 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20520 case $cc_basename in
20522 lt_prog_compiler_wl_CXX
='-Wl,'
20523 lt_prog_compiler_pic_CXX
='-KPIC'
20524 lt_prog_compiler_static_CXX
='-Bstatic'
20529 case $cc_basename in
20531 # NonStop-UX NCC 3.20
20532 lt_prog_compiler_pic_CXX
='-KPIC'
20541 lt_prog_compiler_can_build_shared_CXX
=no
20547 # For platforms which do not support PIC, -DPIC is meaningless:
20549 lt_prog_compiler_pic_CXX
=
20552 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20556 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20561 # Check to make sure the PIC flag actually works.
20563 if test -n "$lt_prog_compiler_pic_CXX"; then
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20565 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20566 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20567 $as_echo_n "(cached) " >&6
20569 lt_cv_prog_compiler_pic_works_CXX
=no
20570 ac_outfile
=conftest.
$ac_objext
20571 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20572 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20573 # Insert the option either (1) after the last *FLAGS variable, or
20574 # (2) before a word containing "conftest.", or (3) at the end.
20575 # Note that $ac_compile itself does not contain backslashes and begins
20576 # with a dollar sign (not a hyphen), so the echo should work correctly.
20577 # The option is referenced via a variable to avoid confusing sed.
20578 lt_compile
=`echo "$ac_compile" | $SED \
20579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20581 -e 's:$: $lt_compiler_flag:'`
20582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20583 (eval "$lt_compile" 2>conftest.err
)
20585 cat conftest.err
>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 if (exit $ac_status) && test -s "$ac_outfile"; then
20588 # The compiler can only warn and ignore the option if not recognized
20589 # So say no if there are warnings other than the usual output.
20590 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20591 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20592 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20593 lt_cv_prog_compiler_pic_works_CXX
=yes
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20600 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20602 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20603 case $lt_prog_compiler_pic_CXX in
20605 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20608 lt_prog_compiler_pic_CXX
=
20609 lt_prog_compiler_can_build_shared_CXX
=no
20617 # Check to make sure the static flag actually works.
20619 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20621 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20622 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20623 $as_echo_n "(cached) " >&6
20625 lt_cv_prog_compiler_static_works_CXX
=no
20626 save_LDFLAGS
="$LDFLAGS"
20627 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20628 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20629 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20630 # The linker can only warn and ignore the option if not recognized
20631 # So say no if there are warnings
20632 if test -s conftest.err
; then
20633 # Append any errors to the config.log.
20634 cat conftest.err
1>&5
20635 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20636 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20637 if diff conftest.exp conftest.er2
>/dev
/null
; then
20638 lt_cv_prog_compiler_static_works_CXX
=yes
20641 lt_cv_prog_compiler_static_works_CXX
=yes
20645 LDFLAGS
="$save_LDFLAGS"
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20649 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20651 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20654 lt_prog_compiler_static_CXX
=
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20661 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20662 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20663 $as_echo_n "(cached) " >&6
20665 lt_cv_prog_compiler_c_o_CXX
=no
20666 $RM -r conftest
2>/dev
/null
20670 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20672 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20673 # Insert the option either (1) after the last *FLAGS variable, or
20674 # (2) before a word containing "conftest.", or (3) at the end.
20675 # Note that $ac_compile itself does not contain backslashes and begins
20676 # with a dollar sign (not a hyphen), so the echo should work correctly.
20677 lt_compile
=`echo "$ac_compile" | $SED \
20678 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20679 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20680 -e 's:$: $lt_compiler_flag:'`
20681 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20682 (eval "$lt_compile" 2>out
/conftest.err
)
20684 cat out
/conftest.err
>&5
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20688 # The compiler can only warn and ignore the option if not recognized
20689 # So say no if there are warnings
20690 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20691 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20692 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20693 lt_cv_prog_compiler_c_o_CXX
=yes
20698 # SGI C++ compiler will create directory out/ii_files/ for
20699 # template instantiation
20700 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20701 $RM out
/* && rmdir out
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20708 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20714 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20715 $as_echo_n "(cached) " >&6
20717 lt_cv_prog_compiler_c_o_CXX
=no
20718 $RM -r conftest
2>/dev
/null
20722 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20724 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20725 # Insert the option either (1) after the last *FLAGS variable, or
20726 # (2) before a word containing "conftest.", or (3) at the end.
20727 # Note that $ac_compile itself does not contain backslashes and begins
20728 # with a dollar sign (not a hyphen), so the echo should work correctly.
20729 lt_compile
=`echo "$ac_compile" | $SED \
20730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20732 -e 's:$: $lt_compiler_flag:'`
20733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20734 (eval "$lt_compile" 2>out
/conftest.err
)
20736 cat out
/conftest.err
>&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20740 # The compiler can only warn and ignore the option if not recognized
20741 # So say no if there are warnings
20742 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20743 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20744 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20745 lt_cv_prog_compiler_c_o_CXX
=yes
20750 # SGI C++ compiler will create directory out/ii_files/ for
20751 # template instantiation
20752 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20753 $RM out
/* && rmdir out
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20760 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20765 hard_links
="nottested"
20766 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20767 # do not overwrite the value of need_locks provided by the user
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20769 $as_echo_n "checking if we can lock with hard links... " >&6; }
20772 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20774 ln conftest.a conftest.b
2>&5 || hard_links
=no
20775 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20777 $as_echo "$hard_links" >&6; }
20778 if test "$hard_links" = no
; then
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20780 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20790 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20792 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20795 # If we're using GNU nm, then we don't want the "-C" option.
20796 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20797 # Also, AIX nm treats weak defined symbols like other global defined
20798 # symbols, whereas GNU nm marks them as "W".
20799 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20800 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'
20802 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'
20806 export_symbols_cmds_CXX
="$ltdll_cmds"
20808 cygwin
* | mingw
* | cegcc
*)
20809 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'
20812 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20815 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20818 $as_echo "$ld_shlibs_CXX" >&6; }
20819 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20821 with_gnu_ld_CXX
=$with_gnu_ld
20829 # Do we need to explicitly link libc?
20831 case "x$archive_cmds_need_lc_CXX" in
20833 # Assume -lc should be added
20834 archive_cmds_need_lc_CXX
=yes
20836 if test "$enable_shared" = yes && test "$GCC" = yes; then
20837 case $archive_cmds_CXX in
20839 # FIXME: we may have to deal with multi-command sequences.
20842 # Test whether the compiler implicitly links with -lc since on some
20843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20844 # to ld, don't add -lc before -lgcc.
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20846 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20847 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20848 $as_echo_n "(cached) " >&6
20851 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20854 (eval $ac_compile) 2>&5
20856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20857 test $ac_status = 0; } 2>conftest.err
; then
20860 libobjs
=conftest.
$ac_objext
20862 wl
=$lt_prog_compiler_wl_CXX
20863 pic_flag
=$lt_prog_compiler_pic_CXX
20869 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20870 allow_undefined_flag_CXX
=
20871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20872 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20875 test $ac_status = 0; }
20877 lt_cv_archive_cmds_need_lc_CXX
=no
20879 lt_cv_archive_cmds_need_lc_CXX
=yes
20881 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20883 cat conftest.err
1>&5
20888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20889 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20890 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20961 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20963 library_names_spec
=
20964 libname_spec
='lib$name'
20968 postuninstall_cmds
=
20972 shlibpath_overrides_runpath
=unknown
20974 dynamic_linker
="$host_os ld.so"
20975 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20976 need_lib_prefix
=unknown
20977 hardcode_into_libs
=no
20979 # when you set need_version to no, make sure it does not cause -set_version
20980 # flags to be left without arguments
20981 need_version
=unknown
20986 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20987 shlibpath_var
=LIBPATH
20989 # AIX 3 has no versioning support, so we append a major version to the name.
20990 soname_spec
='${libname}${release}${shared_ext}$major'
20997 hardcode_into_libs
=yes
20998 if test "$host_cpu" = ia64
; then
20999 # AIX 5 supports IA64
21000 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21001 shlibpath_var
=LD_LIBRARY_PATH
21003 # With GCC up to 2.95.x, collect2 would create an import file
21004 # for dependence libraries. The import file would start with
21005 # the line `#! .'. This would cause the generated library to
21006 # depend on `.', always an invalid library. This was fixed in
21007 # development snapshots of GCC prior to 3.0.
21009 aix4 | aix4.
[01] | aix4.
[01].
*)
21010 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21012 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
21015 can_build_shared
=no
21019 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21020 # soname into executable. Probably we can add versioning support to
21021 # collect2, so additional links can be useful in future.
21022 if test "$aix_use_runtimelinking" = yes; then
21023 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21024 # instead of lib<name>.a to let people know that these are not
21025 # typical AIX shared libraries.
21026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21028 # We preserve .a as extension for shared libraries through AIX4.2
21029 # and later when we are not doing run time linking.
21030 library_names_spec
='${libname}${release}.a $libname.a'
21031 soname_spec
='${libname}${release}${shared_ext}$major'
21033 shlibpath_var
=LIBPATH
21040 # Since July 2007 AmigaOS4 officially supports .so libraries.
21041 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21042 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21045 library_names_spec
='$libname.ixlibrary $libname.a'
21046 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21047 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'
21053 library_names_spec
='${libname}${shared_ext}'
21054 dynamic_linker
="$host_os ld.so"
21055 shlibpath_var
=LIBRARY_PATH
21061 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21062 soname_spec
='${libname}${release}${shared_ext}$major'
21063 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
21064 shlibpath_var
=LD_LIBRARY_PATH
21065 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21066 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
21067 # the default ld.so.conf also contains /usr/contrib/lib and
21068 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21069 # libtool to hard-code these into programs
21072 cygwin
* | mingw
* | pw32
* | cegcc
*)
21073 version_type
=windows
21078 case $GCC,$host_os in
21079 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
21080 library_names_spec
='$libname.dll.a'
21081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21082 postinstall_cmds
='base_file=`basename \${file}`~
21083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21084 dldir=$destdir/`dirname \$dlpath`~
21085 test -d \$dldir || mkdir -p \$dldir~
21086 $install_prog $dir/$dlname \$dldir/$dlname~
21087 chmod a+x \$dldir/$dlname~
21088 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21089 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21091 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21092 dlpath=$dir/\$dldll~
21094 shlibpath_overrides_runpath
=yes
21098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21099 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21103 # MinGW DLLs use traditional 'lib' prefix
21104 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21107 # pw32 DLLs use 'pw' prefix rather than 'lib'
21108 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21114 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21117 dynamic_linker
='Win32 ld.exe'
21118 # FIXME: first we should search . and the directory the executable is in
21122 darwin
* | rhapsody
*)
21123 dynamic_linker
="$host_os dyld"
21124 version_type
=darwin
21127 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21128 soname_spec
='${libname}${release}${major}$shared_ext'
21129 shlibpath_overrides_runpath
=yes
21130 shlibpath_var
=DYLD_LIBRARY_PATH
21131 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
21133 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
21140 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21141 soname_spec
='${libname}${release}${shared_ext}$major'
21142 shlibpath_var
=LD_LIBRARY_PATH
21145 freebsd
* | dragonfly
*)
21146 # DragonFly does not have aout. When/if they implement a new
21147 # versioning mechanism, adjust this.
21148 if test -x /usr
/bin
/objformat
; then
21149 objformat
=`/usr/bin/objformat`
21152 freebsd
[23].
*) objformat
=aout
;;
21153 *) objformat
=elf
;;
21156 version_type
=freebsd-
$objformat
21157 case $version_type in
21159 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21164 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21168 shlibpath_var
=LD_LIBRARY_PATH
21171 shlibpath_overrides_runpath
=yes
21173 freebsd3.
[01]* | freebsdelf3.
[01]*)
21174 shlibpath_overrides_runpath
=yes
21175 hardcode_into_libs
=yes
21177 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
21178 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
21179 shlibpath_overrides_runpath
=no
21180 hardcode_into_libs
=yes
21182 *) # from 4.6 on, and DragonFly
21183 shlibpath_overrides_runpath
=yes
21184 hardcode_into_libs
=yes
21193 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21194 soname_spec
='${libname}${release}${shared_ext}$major'
21195 shlibpath_var
=LD_LIBRARY_PATH
21196 hardcode_into_libs
=yes
21203 dynamic_linker
="$host_os runtime_loader"
21204 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21205 soname_spec
='${libname}${release}${shared_ext}$major'
21206 shlibpath_var
=LIBRARY_PATH
21207 shlibpath_overrides_runpath
=yes
21208 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
21209 hardcode_into_libs
=yes
21212 hpux9
* | hpux10
* | hpux11
*)
21213 # Give a soname corresponding to the major version so that dld.sl refuses to
21214 # link against other versions.
21221 hardcode_into_libs
=yes
21222 dynamic_linker
="$host_os dld.so"
21223 shlibpath_var
=LD_LIBRARY_PATH
21224 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21226 soname_spec
='${libname}${release}${shared_ext}$major'
21227 if test "X$HPUX_IA64_MODE" = X32
; then
21228 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21230 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
21232 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21236 hardcode_into_libs
=yes
21237 dynamic_linker
="$host_os dld.sl"
21238 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
21239 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
21240 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21241 soname_spec
='${libname}${release}${shared_ext}$major'
21242 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21243 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
21247 dynamic_linker
="$host_os dld.sl"
21248 shlibpath_var
=SHLIB_PATH
21249 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
21250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21251 soname_spec
='${libname}${release}${shared_ext}$major'
21254 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
21255 postinstall_cmds
='chmod 555 $lib'
21256 # or fails outright, so override atomically:
21257 install_override_mode
=555
21264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21265 soname_spec
='${libname}${release}${shared_ext}$major'
21266 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
21267 shlibpath_var
=LD_LIBRARY_PATH
21268 shlibpath_overrides_runpath
=no
21269 hardcode_into_libs
=yes
21272 irix5
* | irix6
* | nonstopux
*)
21274 nonstopux
*) version_type
=nonstopux
;;
21276 if test "$lt_cv_prog_gnu_ld" = yes; then
21284 soname_spec
='${libname}${release}${shared_ext}$major'
21285 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21287 irix5
* | nonstopux
*)
21288 libsuff
= shlibsuff
=
21291 case $LD in # libtool.m4 will add one of these switches to LD
21292 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21293 libsuff
= shlibsuff
= libmagic
=32-bit;;
21294 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21295 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21296 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21297 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21298 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21302 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21303 shlibpath_overrides_runpath
=no
21304 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21305 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21306 hardcode_into_libs
=yes
21309 # No shared lib support for Linux oldld, aout, or coff.
21310 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21314 # This must be Linux ELF.
21315 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21319 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21320 soname_spec
='${libname}${release}${shared_ext}$major'
21321 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21322 shlibpath_var
=LD_LIBRARY_PATH
21323 shlibpath_overrides_runpath
=no
21325 # Some binutils ld are patched to set DT_RUNPATH
21326 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21327 $as_echo_n "(cached) " >&6
21329 lt_cv_shlibpath_overrides_runpath
=no
21330 save_LDFLAGS
=$LDFLAGS
21331 save_libdir
=$libdir
21332 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21333 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21335 /* end confdefs.h. */
21345 if ac_fn_cxx_try_link
"$LINENO"; then :
21346 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21347 lt_cv_shlibpath_overrides_runpath
=yes
21350 rm -f core conftest.err conftest.
$ac_objext \
21351 conftest
$ac_exeext conftest.
$ac_ext
21352 LDFLAGS
=$save_LDFLAGS
21353 libdir
=$save_libdir
21357 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21359 # This implies no fast_install, which is unacceptable.
21360 # Some rework will be needed to allow for fast_install
21361 # before this can be enabled.
21362 hardcode_into_libs
=yes
21364 # Append ld.so.conf contents to the search path
21365 if test -f /etc
/ld.so.conf
; then
21366 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' ' '`
21367 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21370 # We used to test for /lib/ld.so.1 and disable shared libraries on
21371 # powerpc, because MkLinux only supported shared libraries with the
21372 # GNU dynamic linker. Since this was broken with cross compilers,
21373 # most powerpc-linux boxes support dynamic linking these days and
21374 # people can always --disable-shared, the test was removed, and we
21375 # assume the GNU/Linux dynamic linker is in use.
21376 dynamic_linker
='GNU/Linux ld.so'
21383 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21385 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21386 dynamic_linker
='NetBSD (a.out) ld.so'
21388 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21389 soname_spec
='${libname}${release}${shared_ext}$major'
21390 dynamic_linker
='NetBSD ld.elf_so'
21392 shlibpath_var
=LD_LIBRARY_PATH
21393 shlibpath_overrides_runpath
=yes
21394 hardcode_into_libs
=yes
21399 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21400 shlibpath_var
=LD_LIBRARY_PATH
21401 shlibpath_overrides_runpath
=yes
21408 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21409 soname_spec
='${libname}${release}${shared_ext}$major'
21410 shlibpath_var
=LD_LIBRARY_PATH
21411 shlibpath_overrides_runpath
=no
21412 hardcode_into_libs
=yes
21413 dynamic_linker
='ldqnx.so'
21418 sys_lib_dlsearch_path_spec
="/usr/lib"
21420 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21422 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21423 *) need_version
=no
;;
21425 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21426 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21427 shlibpath_var
=LD_LIBRARY_PATH
21428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21430 openbsd2.
[89] | openbsd2.
[89].
*)
21431 shlibpath_overrides_runpath
=no
21434 shlibpath_overrides_runpath
=yes
21438 shlibpath_overrides_runpath
=yes
21443 libname_spec
='$name'
21446 library_names_spec
='$libname${shared_ext} $libname.a'
21447 dynamic_linker
='OS/2 ld.exe'
21448 shlibpath_var
=LIBPATH
21451 osf3
* | osf4
* | osf5
*)
21455 soname_spec
='${libname}${release}${shared_ext}$major'
21456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21457 shlibpath_var
=LD_LIBRARY_PATH
21458 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21459 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21470 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21471 soname_spec
='${libname}${release}${shared_ext}$major'
21472 shlibpath_var
=LD_LIBRARY_PATH
21473 shlibpath_overrides_runpath
=yes
21474 hardcode_into_libs
=yes
21475 # ldd complains unless libraries are executable
21476 postinstall_cmds
='chmod +x $lib'
21481 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21482 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21483 shlibpath_var
=LD_LIBRARY_PATH
21484 shlibpath_overrides_runpath
=yes
21485 if test "$with_gnu_ld" = yes; then
21493 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21494 soname_spec
='${libname}${release}${shared_ext}$major'
21495 shlibpath_var
=LD_LIBRARY_PATH
21496 case $host_vendor in
21498 shlibpath_overrides_runpath
=no
21500 runpath_var
=LD_RUN_PATH
21508 shlibpath_overrides_runpath
=no
21509 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21515 if test -d /usr
/nec
;then
21517 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21518 soname_spec
='$libname${shared_ext}.$major'
21519 shlibpath_var
=LD_LIBRARY_PATH
21523 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21524 version_type
=freebsd-elf
21527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21528 soname_spec
='${libname}${release}${shared_ext}$major'
21529 shlibpath_var
=LD_LIBRARY_PATH
21530 shlibpath_overrides_runpath
=yes
21531 hardcode_into_libs
=yes
21532 if test "$with_gnu_ld" = yes; then
21533 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21535 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21538 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21542 sys_lib_dlsearch_path_spec
='/usr/lib'
21546 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21551 shlibpath_var
=LD_LIBRARY_PATH
21552 shlibpath_overrides_runpath
=no
21553 hardcode_into_libs
=yes
21558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21559 soname_spec
='${libname}${release}${shared_ext}$major'
21560 shlibpath_var
=LD_LIBRARY_PATH
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21568 $as_echo "$dynamic_linker" >&6; }
21569 test "$dynamic_linker" = no
&& can_build_shared
=no
21571 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21572 if test "$GCC" = yes; then
21573 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21576 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21577 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21579 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21580 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21621 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21622 hardcode_action_CXX
=
21623 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21624 test -n "$runpath_var_CXX" ||
21625 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21627 # We can hardcode non-existent directories.
21628 if test "$hardcode_direct_CXX" != no
&&
21629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21630 # have to relink, otherwise we might link with an installed library
21631 # when we should be linking with a yet-to-be-installed one
21632 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21633 test "$hardcode_minus_L_CXX" != no
; then
21634 # Linking always hardcodes the temporary library directory.
21635 hardcode_action_CXX
=relink
21637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21638 hardcode_action_CXX
=immediate
21641 # We cannot hardcode anything, or else we can only hardcode existing
21643 hardcode_action_CXX
=unsupported
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21646 $as_echo "$hardcode_action_CXX" >&6; }
21648 if test "$hardcode_action_CXX" = relink ||
21649 test "$inherit_rpath_CXX" = yes; then
21650 # Fast installation is not supported
21651 enable_fast_install
=no
21652 elif test "$shlibpath_overrides_runpath" = yes ||
21653 test "$enable_shared" = no
; then
21654 # Fast installation is not necessary
21655 enable_fast_install
=needless
21664 fi # test -n "$compiler"
21670 with_gnu_ld
=$lt_save_with_gnu_ld
21671 lt_cv_path_LDCXX
=$lt_cv_path_LD
21672 lt_cv_path_LD
=$lt_save_path_LD
21673 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21674 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21675 fi # test "$_lt_caught_CXX_error" != yes
21678 ac_cpp
='$CXXCPP $CPPFLAGS'
21679 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21680 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21681 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
21698 # Only expand once:
21704 # Identify the assembler which will work hand-in-glove with the newly
21705 # built GCC, so that we can examine its features. This is the assembler
21706 # which will be driven by the driver program.
21708 # If build != host, and we aren't building gas in-tree, we identify a
21709 # build->target assembler and hope that it will have the same features
21710 # as the host->target assembler we'll be using.
21711 gcc_cv_gas_major_version
=
21712 gcc_cv_gas_minor_version
=
21713 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21715 if test "${gcc_cv_as+set}" = set; then :
21719 if test -x "$DEFAULT_ASSEMBLER"; then
21720 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21721 elif test -f $gcc_cv_as_gas_srcdir/configure.ac \
21722 && test -f ..
/gas
/Makefile \
21723 && test x
$build = x
$host; then
21724 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21725 elif test -x as
$build_exeext; then
21726 # Build using assembler in the current directory.
21727 gcc_cv_as
=.
/as
$build_exeext
21728 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21729 gcc_cv_as
="$AS_FOR_TARGET"
21731 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21732 set dummy
$AS_FOR_TARGET; ac_word
=$2
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21734 $as_echo_n "checking for $ac_word... " >&6; }
21735 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21736 $as_echo_n "(cached) " >&6
21740 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21744 for as_dir
in $PATH
21747 test -z "$as_dir" && as_dir
=.
21748 for ac_exec_ext
in '' $ac_executable_extensions; do
21749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21750 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21761 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21762 if test -n "$gcc_cv_as"; then
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21764 $as_echo "$gcc_cv_as" >&6; }
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21767 $as_echo "no" >&6; }
21774 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21776 case "$ORIGINAL_AS_FOR_TARGET" in
21777 .
/as | .
/as
$build_exeext) ;;
21778 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21783 $as_echo_n "checking what assembler to use... " >&6; }
21784 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21785 # Single tree build which includes gas. We want to prefer it
21786 # over whatever linker top-level may have detected, since
21787 # we'll use what we're building after installation anyway.
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21789 $as_echo "newly built gas" >&6; }
21791 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21792 for f
in $gcc_cv_as_bfd_srcdir/configure \
21793 $gcc_cv_as_gas_srcdir/configure \
21794 $gcc_cv_as_gas_srcdir/configure.ac \
21795 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21796 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21797 if test x
$gcc_cv_gas_version != x
; then
21801 case $gcc_cv_gas_version in
21803 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21805 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21806 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21807 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21808 case $gcc_cv_gas_patch_version in
21809 "") gcc_cv_gas_patch_version
="0" ;;
21811 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21812 + $gcc_cv_gas_minor_version \) \* 1000 \
21813 + $gcc_cv_gas_patch_version`
21815 in_tree_gas_is_elf
=no
21816 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21817 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21818 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21820 in_tree_gas_is_elf
=yes
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21824 $as_echo "$gcc_cv_as" >&6; }
21829 # Check whether --enable-ld was given.
21830 if test "${enable_ld+set}" = set; then :
21831 enableval
=$enable_ld; case "${enableval}" in
21839 install_gold_as_default
=no
21840 # Check whether --enable-gold was given.
21841 if test "${enable_gold+set}" = set; then :
21842 enableval
=$enable_gold; case "${enableval}" in
21844 install_gold_as_default
=yes
21847 if test x
${default_ld} != x
; then
21848 install_gold_as_default
=yes
21854 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21860 # Identify the linker which will work hand-in-glove with the newly
21861 # built GCC, so that we can examine its features. This is the linker
21862 # which will be driven by the driver program.
21864 # If build != host, and we aren't building gas in-tree, we identify a
21865 # build->target linker and hope that it will have the same features
21866 # as the host->target linker we'll be using.
21867 gcc_cv_gld_major_version
=
21868 gcc_cv_gld_minor_version
=
21869 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21870 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21871 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21873 if test "${gcc_cv_ld+set}" = set; then :
21877 if test -x "$DEFAULT_LINKER"; then
21878 gcc_cv_ld
="$DEFAULT_LINKER"
21879 elif test $install_gold_as_default = yes \
21880 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21881 && test -f ..
/gold
/Makefile \
21882 && test x
$build = x
$host; then
21883 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21884 elif test -f $gcc_cv_ld_gld_srcdir/configure.ac \
21885 && test -f ..
/ld
/Makefile \
21886 && test x
$build = x
$host; then
21887 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21888 elif test -x collect-ld
$build_exeext; then
21889 # Build using linker in the current directory.
21890 gcc_cv_ld
=.
/collect-ld
$build_exeext
21891 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21892 gcc_cv_ld
="$LD_FOR_TARGET"
21894 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21895 set dummy
$LD_FOR_TARGET; ac_word
=$2
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21897 $as_echo_n "checking for $ac_word... " >&6; }
21898 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21899 $as_echo_n "(cached) " >&6
21903 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21907 for as_dir
in $PATH
21910 test -z "$as_dir" && as_dir
=.
21911 for ac_exec_ext
in '' $ac_executable_extensions; do
21912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21913 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21924 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21925 if test -n "$gcc_cv_ld"; then
21926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21927 $as_echo "$gcc_cv_ld" >&6; }
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930 $as_echo "no" >&6; }
21937 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21938 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21939 # if the PLUGIN_LD is set ld-new, just have it as ld
21940 # as that is the installed named.
21941 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21942 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21943 PLUGIN_LD_SUFFIX
=ld
21946 # Check whether --with-plugin-ld was given.
21947 if test "${with_plugin_ld+set}" = set; then :
21948 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21949 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21950 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21956 cat >>confdefs.h
<<_ACEOF
21957 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21961 # Check to see if we are using gold instead of ld
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21963 $as_echo_n "checking whether we are using gold... " >&6; }
21965 if test x
$gcc_cv_ld != x
; then
21966 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21967 |
grep "GNU gold" > /dev
/null
; then
21971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21972 $as_echo "$ld_is_gold" >&6; }
21974 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21976 case "$ORIGINAL_LD_FOR_TARGET" in
21977 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21978 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21983 $as_echo_n "checking what linker to use... " >&6; }
21984 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21985 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21986 # Single tree build which includes ld. We want to prefer it
21987 # over whatever linker top-level may have detected, since
21988 # we'll use what we're building after installation anyway.
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21990 $as_echo "newly built ld" >&6; }
21992 in_tree_ld_is_elf
=no
21993 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21994 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21995 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21996 in_tree_ld_is_elf
=yes
21997 elif test "$ld_is_gold" = yes; then
21998 in_tree_ld_is_elf
=yes
22000 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
22002 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
22003 if test x
$gcc_cv_gld_version != x
; then
22007 case $gcc_cv_gld_version in
22009 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
22011 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
22012 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
22013 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
22014 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
22017 $as_echo "$gcc_cv_ld" >&6; }
22019 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
22020 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
22021 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
22027 # Figure out what nm we will be using.
22028 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
22029 if test "${gcc_cv_nm+set}" = set; then :
22033 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22034 && test -f ..
/binutils
/Makefile \
22035 && test x
$build = x
$host; then
22036 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
22037 elif test -x nm
$build_exeext; then
22038 gcc_cv_nm
=.
/nm
$build_exeext
22039 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
22040 gcc_cv_nm
="$NM_FOR_TARGET"
22042 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
22043 set dummy
$NM_FOR_TARGET; ac_word
=$2
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22045 $as_echo_n "checking for $ac_word... " >&6; }
22046 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
22047 $as_echo_n "(cached) " >&6
22051 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
22054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22055 for as_dir
in $PATH
22058 test -z "$as_dir" && as_dir
=.
22059 for ac_exec_ext
in '' $ac_executable_extensions; do
22060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22061 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
22062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22072 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
22073 if test -n "$gcc_cv_nm"; then
22074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22075 $as_echo "$gcc_cv_nm" >&6; }
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22078 $as_echo "no" >&6; }
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
22086 $as_echo_n "checking what nm to use... " >&6; }
22087 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
22088 # Single tree build which includes binutils.
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
22090 $as_echo "newly built nm" >&6; }
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
22094 $as_echo "$gcc_cv_nm" >&6; }
22098 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
22100 case "$ORIGINAL_NM_FOR_TARGET" in
22101 .
/nm | .
/nm
$build_exeext) ;;
22102 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
22107 # Figure out what objdump we will be using.
22108 if test "${gcc_cv_objdump+set}" = set; then :
22112 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22113 && test -f ..
/binutils
/Makefile \
22114 && test x
$build = x
$host; then
22115 # Single tree build which includes binutils.
22116 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
22117 elif test -x objdump
$build_exeext; then
22118 gcc_cv_objdump
=.
/objdump
$build_exeext
22119 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
22120 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
22122 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
22123 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
22124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22125 $as_echo_n "checking for $ac_word... " >&6; }
22126 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
22127 $as_echo_n "(cached) " >&6
22129 case $gcc_cv_objdump in
22131 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
22134 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22135 for as_dir
in $PATH
22138 test -z "$as_dir" && as_dir
=.
22139 for ac_exec_ext
in '' $ac_executable_extensions; do
22140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22141 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
22142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22152 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
22153 if test -n "$gcc_cv_objdump"; then
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22155 $as_echo "$gcc_cv_objdump" >&6; }
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22158 $as_echo "no" >&6; }
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
22166 $as_echo_n "checking what objdump to use... " >&6; }
22167 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
22168 # Single tree build which includes binutils.
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
22170 $as_echo "newly built objdump" >&6; }
22171 elif test x
$gcc_cv_objdump = x
; then
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22173 $as_echo "not found" >&6; }
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
22176 $as_echo "$gcc_cv_objdump" >&6; }
22179 # Figure out what readelf we will be using.
22180 if test "${gcc_cv_readelf+set}" = set; then :
22184 if test -f $gcc_cv_binutils_srcdir/configure.ac \
22185 && test -f ..
/binutils
/Makefile \
22186 && test x
$build = x
$host; then
22187 # Single tree build which includes binutils.
22188 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
22189 elif test -x readelf
$build_exeext; then
22190 gcc_cv_readelf
=.
/readelf
$build_exeext
22192 # Extract the first word of "readelf", so it can be a program name with args.
22193 set dummy readelf
; ac_word
=$2
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22195 $as_echo_n "checking for $ac_word... " >&6; }
22196 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
22197 $as_echo_n "(cached) " >&6
22199 case $gcc_cv_readelf in
22201 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
22204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22205 for as_dir
in $PATH
22208 test -z "$as_dir" && as_dir
=.
22209 for ac_exec_ext
in '' $ac_executable_extensions; do
22210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22211 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
22212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22222 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
22223 if test -n "$gcc_cv_readelf"; then
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22225 $as_echo "$gcc_cv_readelf" >&6; }
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22228 $as_echo "no" >&6; }
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
22236 $as_echo_n "checking what readelf to use... " >&6; }
22237 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
22238 # Single tree build which includes binutils.
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
22240 $as_echo "newly built readelf" >&6; }
22241 elif test x
$gcc_cv_readelf = x
; then
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22243 $as_echo "not found" >&6; }
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
22246 $as_echo "$gcc_cv_readelf" >&6; }
22249 # Figure out what assembler alignment features are present.
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
22251 $as_echo_n "checking assembler flags... " >&6; }
22252 if test "${gcc_cv_as_flags+set}" = set; then :
22253 $as_echo_n "(cached) " >&6
22256 i
[34567]86-*-linux*)
22257 gcc_cv_as_flags
=--32
22259 x86_64-
*-linux-gnux32)
22260 gcc_cv_as_flags
=--x32
22263 gcc_cv_as_flags
=--64
22265 powerpc
*-*-darwin*)
22266 gcc_cv_as_flags
="-arch ppc"
22269 gcc_cv_as_flags
=" "
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
22274 $as_echo "$gcc_cv_as_flags" >&6; }
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
22277 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
22278 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22281 gcc_cv_as_balign_and_p2align
=no
22282 if test $in_tree_gas = yes; then
22283 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22284 then gcc_cv_as_balign_and_p2align
=yes
22286 elif test x
$gcc_cv_as != x
; then
22287 $as_echo '.balign 4
22288 .p2align 2' > conftest.s
22289 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22291 (eval $ac_try) 2>&5
22293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22294 test $ac_status = 0; }; }
22296 gcc_cv_as_balign_and_p2align
=yes
22298 echo "configure: failed program was" >&5
22301 rm -f conftest.o conftest.s
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22305 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22306 if test $gcc_cv_as_balign_and_p2align = yes; then
22308 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22313 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22314 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22317 gcc_cv_as_max_skip_p2align
=no
22318 if test $in_tree_gas = yes; then
22319 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22320 then gcc_cv_as_max_skip_p2align
=yes
22322 elif test x
$gcc_cv_as != x
; then
22323 $as_echo '.p2align 4,,7' > conftest.s
22324 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22326 (eval $ac_try) 2>&5
22328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22329 test $ac_status = 0; }; }
22331 gcc_cv_as_max_skip_p2align
=yes
22333 echo "configure: failed program was" >&5
22336 rm -f conftest.o conftest.s
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22340 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22341 if test $gcc_cv_as_max_skip_p2align = yes; then
22343 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22348 $as_echo_n "checking assembler for .literal16... " >&6; }
22349 if test "${gcc_cv_as_literal16+set}" = set; then :
22350 $as_echo_n "(cached) " >&6
22352 gcc_cv_as_literal16
=no
22353 if test $in_tree_gas = yes; then
22354 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22355 then gcc_cv_as_literal16
=yes
22357 elif test x
$gcc_cv_as != x
; then
22358 $as_echo '.literal16' > conftest.s
22359 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22361 (eval $ac_try) 2>&5
22363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22364 test $ac_status = 0; }; }
22366 gcc_cv_as_literal16
=yes
22368 echo "configure: failed program was" >&5
22371 rm -f conftest.o conftest.s
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22375 $as_echo "$gcc_cv_as_literal16" >&6; }
22376 if test $gcc_cv_as_literal16 = yes; then
22378 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22383 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22384 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22385 $as_echo_n "(cached) " >&6
22387 gcc_cv_as_subsection_m1
=no
22388 if test $in_tree_gas = yes; then
22389 if test $in_tree_gas_is_elf = yes \
22390 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22391 then gcc_cv_as_subsection_m1
=yes
22393 elif test x
$gcc_cv_as != x
; then
22394 $as_echo 'conftest_label1: .word 0
22396 conftest_label2: .word 0
22397 .previous' > conftest.s
22398 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22400 (eval $ac_try) 2>&5
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; }; }
22405 if test x
$gcc_cv_nm != x
; then
22406 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22407 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22408 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22410 else gcc_cv_as_subsection_m1
=yes
22412 rm -f conftest.nm1 conftest.nm2
22415 echo "configure: failed program was" >&5
22418 rm -f conftest.o conftest.s
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22422 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22423 if test $gcc_cv_as_subsection_m1 = yes; then
22425 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22430 $as_echo_n "checking assembler for .weak... " >&6; }
22431 if test "${gcc_cv_as_weak+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22435 if test $in_tree_gas = yes; then
22436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22437 then gcc_cv_as_weak
=yes
22439 elif test x
$gcc_cv_as != x
; then
22440 $as_echo ' .weak foobar' > conftest.s
22441 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22443 (eval $ac_try) 2>&5
22445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22446 test $ac_status = 0; }; }
22450 echo "configure: failed program was" >&5
22453 rm -f conftest.o conftest.s
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22457 $as_echo "$gcc_cv_as_weak" >&6; }
22458 if test $gcc_cv_as_weak = yes; then
22460 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22465 $as_echo_n "checking assembler for .weakref... " >&6; }
22466 if test "${gcc_cv_as_weakref+set}" = set; then :
22467 $as_echo_n "(cached) " >&6
22469 gcc_cv_as_weakref
=no
22470 if test $in_tree_gas = yes; then
22471 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22472 then gcc_cv_as_weakref
=yes
22474 elif test x
$gcc_cv_as != x
; then
22475 $as_echo ' .weakref foobar, barfnot' > conftest.s
22476 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22478 (eval $ac_try) 2>&5
22480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22481 test $ac_status = 0; }; }
22483 gcc_cv_as_weakref
=yes
22485 echo "configure: failed program was" >&5
22488 rm -f conftest.o conftest.s
22491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22492 $as_echo "$gcc_cv_as_weakref" >&6; }
22493 if test $gcc_cv_as_weakref = yes; then
22495 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22500 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22501 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22502 $as_echo_n "(cached) " >&6
22504 gcc_cv_as_nsubspa_comdat
=no
22505 if test $in_tree_gas = yes; then
22506 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22507 then gcc_cv_as_nsubspa_comdat
=yes
22509 elif test x
$gcc_cv_as != x
; then
22510 $as_echo ' .SPACE $TEXT$
22511 .NSUBSPA $CODE$,COMDAT' > conftest.s
22512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22514 (eval $ac_try) 2>&5
22516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22517 test $ac_status = 0; }; }
22519 gcc_cv_as_nsubspa_comdat
=yes
22521 echo "configure: failed program was" >&5
22524 rm -f conftest.o conftest.s
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22528 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22529 if test $gcc_cv_as_nsubspa_comdat = yes; then
22531 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22535 # .hidden needs to be supported in both the assembler and the linker,
22536 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22537 # This is irritatingly difficult to feature test for; we have to check the
22538 # date string after the version number. If we've got an in-tree
22539 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22541 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22543 $as_echo_n "checking assembler for .hidden... " >&6; }
22544 if test "${gcc_cv_as_hidden+set}" = set; then :
22545 $as_echo_n "(cached) " >&6
22547 gcc_cv_as_hidden
=no
22548 if test $in_tree_gas = yes; then
22549 if test $in_tree_gas_is_elf = yes \
22550 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22551 then gcc_cv_as_hidden
=yes
22553 elif test x
$gcc_cv_as != x
; then
22554 $as_echo ' .hidden foobar
22555 foobar:' > conftest.s
22556 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22558 (eval $ac_try) 2>&5
22560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22561 test $ac_status = 0; }; }
22563 gcc_cv_as_hidden
=yes
22565 echo "configure: failed program was" >&5
22568 rm -f conftest.o conftest.s
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22572 $as_echo "$gcc_cv_as_hidden" >&6; }
22574 case "${target}" in
22576 # Darwin as has some visibility support, though with a different syntax.
22577 gcc_cv_as_hidden
=yes
22581 # gnu_indirect_function type is an extension proposed at
22582 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22583 # selection of function implementation
22584 # Check whether --enable-gnu-indirect-function was given.
22585 if test "${enable_gnu_indirect_function+set}" = set; then :
22586 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22588 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22589 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22592 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22596 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22598 cat >>confdefs.h
<<_ACEOF
22599 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22604 if test $in_tree_ld != yes ; then
22605 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22606 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22607 if test x
"$ld_is_gold" = xyes
; then
22608 # GNU gold --version looks like this:
22610 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22612 # We extract the binutils version which is more familiar and specific
22613 # than the gold version.
22614 ld_vers
=`echo $ld_ver | sed -n \
22615 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22617 # GNU ld --version looks like this:
22619 # GNU ld (GNU Binutils) 2.21.51.20110225
22620 ld_vers
=`echo $ld_ver | sed -n \
22621 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22623 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'`
22624 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22625 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22626 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22628 case "${target}" in
22630 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22633 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22634 # /usr/ccs/bin/ld has been configured.
22635 ld_ver
=`$gcc_cv_ld -V 2>&1`
22636 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22637 ld_vers
=`echo $ld_ver | sed -n \
22638 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22639 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22640 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22648 $as_echo_n "checking linker for .hidden support... " >&6; }
22649 if test "${gcc_cv_ld_hidden+set}" = set; then :
22650 $as_echo_n "(cached) " >&6
22652 if test $in_tree_ld = yes ; then
22653 gcc_cv_ld_hidden
=no
22654 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 \
22655 && test $in_tree_ld_is_elf = yes; then
22656 gcc_cv_ld_hidden
=yes
22659 gcc_cv_ld_hidden
=yes
22660 if test x
"$ld_is_gold" = xyes
; then
22662 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22663 case "${target}" in
22664 mmix-knuth-mmixware
)
22665 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22666 gcc_cv_ld_hidden
=no
22669 if test 0"$ld_date" -lt 20020404; then
22670 if test -n "$ld_date"; then
22671 # If there was date string, but was earlier than 2002-04-04, fail
22672 gcc_cv_ld_hidden
=no
22673 elif test -z "$ld_vers"; then
22674 # If there was no date string nor ld version number, something is wrong
22675 gcc_cv_ld_hidden
=no
22677 test -z "$ld_vers_patch" && ld_vers_patch
=0
22678 if test "$ld_vers_major" -lt 2; then
22679 gcc_cv_ld_hidden
=no
22680 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22681 gcc_cv_ld_hidden
="no"
22682 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22683 gcc_cv_ld_hidden
=no
22688 case "${target}" in
22690 # Darwin ld has some visibility support.
22691 gcc_cv_ld_hidden
=yes
22693 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22694 gcc_cv_ld_hidden
=yes
22696 *-*-solaris2.1
[0-9]*)
22697 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22698 # .symbolic was only added in Solaris 9 12/02.
22699 gcc_cv_ld_hidden
=yes
22702 gcc_cv_ld_hidden
=no
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22709 $as_echo "$gcc_cv_ld_hidden" >&6; }
22710 libgcc_visibility
=no
22713 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22714 libgcc_visibility
=yes
22716 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22721 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22722 gcc_cv_ld_ro_rw_mix
=unknown
22723 if test $in_tree_ld = yes ; then
22724 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 \
22725 && test $in_tree_ld_is_elf = yes; then
22726 gcc_cv_ld_ro_rw_mix
=read-write
22728 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22729 echo '.section myfoosect, "a"' > conftest1.s
22730 echo '.section myfoosect, "aw"' > conftest2.s
22731 echo '.byte 1' >> conftest2.s
22732 echo '.section myfoosect, "a"' > conftest3.s
22733 echo '.byte 0' >> conftest3.s
22734 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22735 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22736 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22737 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22738 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22739 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22740 | sed -e '/myfoosect/!d' -e N`
22741 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22742 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22743 gcc_cv_ld_ro_rw_mix
=read-only
22745 gcc_cv_ld_ro_rw_mix
=read-write
22749 rm -f conftest.
* conftest
[123].
*
22751 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22753 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22757 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22759 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22760 case "${target}" in
22763 # Solaris 2 ld -V output looks like this for a regular version:
22765 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22767 # but test versions add stuff at the end:
22769 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22771 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22772 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22773 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22774 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22775 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22776 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22782 # Check whether --enable-initfini-array was given.
22783 if test "${enable_initfini_array+set}" = set; then :
22784 enableval
=$enable_initfini_array;
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22788 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22789 if test "${gcc_cv_initfini_array+set}" = set; then :
22790 $as_echo_n "(cached) " >&6
22792 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22793 case "${target}" in
22795 if test "$cross_compiling" = yes; then :
22796 gcc_cv_initfini_array
=no
22798 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22799 /* end confdefs.h. */
22802 #error Not an ELF OS
22804 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22805 if it can be used. */
22807 int main (void) { return x; }
22808 int foo (void) { x = 0; }
22809 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22812 if ac_fn_cxx_try_run
"$LINENO"; then :
22813 gcc_cv_initfini_array
=yes
22815 gcc_cv_initfini_array
=no
22817 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22818 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22822 gcc_cv_initfini_array
=no
22823 if test $in_tree_ld = yes ; then
22824 if test "$gcc_cv_gld_major_version" -eq 2 \
22825 -a "$gcc_cv_gld_minor_version" -ge 22 \
22826 -o "$gcc_cv_gld_major_version" -gt 2 \
22827 && test $in_tree_ld_is_elf = yes; then
22828 gcc_cv_initfini_array
=yes
22830 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22831 cat > conftest.s
<<\EOF
22832 .section .dtors
,"a",%progbits
22834 .byte
'A', 'A', 'A', 'A'
22835 .section .ctors
,"a",%progbits
22837 .byte
'B', 'B', 'B', 'B'
22838 .section .fini_array
.65530,"a",%progbits
22840 .byte
'C', 'C', 'C', 'C'
22841 .section .init_array
.65530,"a",%progbits
22843 .byte
'D', 'D', 'D', 'D'
22844 .section .dtors
.64528,"a",%progbits
22846 .byte
'E', 'E', 'E', 'E'
22847 .section .ctors
.64528,"a",%progbits
22849 .byte
'F', 'F', 'F', 'F'
22850 .section .fini_array
.01005,"a",%progbits
22852 .byte
'G', 'G', 'G', 'G'
22853 .section .init_array
.01005,"a",%progbits
22855 .byte
'H', 'H', 'H', 'H'
22860 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22861 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22862 && $gcc_cv_objdump -s -j .init_array conftest \
22863 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22864 && $gcc_cv_objdump -s -j .fini_array conftest \
22865 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22866 gcc_cv_initfini_array
=yes
22868 rm -f conftest conftest.
*
22870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22871 /* end confdefs.h. */
22874 # error Not an ELF OS
22876 #include <stdlib.h>
22877 #if defined __GLIBC_PREREQ
22878 # if __GLIBC_PREREQ (2, 4)
22880 # error GLIBC 2.4 required
22883 # if defined __sun__ && defined __svr4__
22884 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22886 # error The C library not known to support .init_array/.fini_array
22891 if ac_fn_cxx_try_cpp
"$LINENO"; then :
22894 gcc_cv_initfini_array
=no
22896 rm -f conftest.err conftest.
$ac_ext;;
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22900 $as_echo_n "checking cross compile... guessing... " >&6; }
22901 gcc_cv_initfini_array
=no
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22905 $as_echo "$gcc_cv_initfini_array" >&6; }
22906 enable_initfini_array
=$gcc_cv_initfini_array
22910 if test $enable_initfini_array = yes; then
22912 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22916 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22918 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22919 if test "${gcc_cv_as_leb128+set}" = set; then :
22920 $as_echo_n "(cached) " >&6
22922 gcc_cv_as_leb128
=no
22923 if test $in_tree_gas = yes; then
22924 if test $in_tree_gas_is_elf = yes \
22925 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22926 then gcc_cv_as_leb128
=yes
22928 elif test x
$gcc_cv_as != x
; then
22935 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22937 (eval $ac_try) 2>&5
22939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22940 test $ac_status = 0; }; }
22942 # GAS versions before 2.11 do not support uleb128,
22943 # despite appearing to.
22944 # ??? There exists an elf-specific test that will crash
22945 # the assembler. Perhaps it's better to figure out whether
22946 # arbitrary sections are supported and try the test.
22947 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22948 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22949 as_vers
=`echo $as_ver | sed -n \
22950 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22951 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22952 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22953 if test $as_major -eq 2 && test $as_minor -lt 11
22955 else gcc_cv_as_leb128
=yes
22959 echo "configure: failed program was" >&5
22962 rm -f conftest.o conftest.s
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22966 $as_echo "$gcc_cv_as_leb128" >&6; }
22967 if test $gcc_cv_as_leb128 = yes; then
22969 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22973 # Check if we have assembler support for unwind directives.
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22975 $as_echo_n "checking assembler for cfi directives... " >&6; }
22976 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22977 $as_echo_n "(cached) " >&6
22979 gcc_cv_as_cfi_directive
=no
22980 if test x
$gcc_cv_as != x
; then
22986 .cfi_escape 1, 2, 3, 4, 5
22987 .cfi_endproc' > conftest.s
22988 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22990 (eval $ac_try) 2>&5
22992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22993 test $ac_status = 0; }; }
22997 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22998 # read-only and read-write sections, we need to make sure that the
22999 # assembler used emits read-write .eh_frame sections.
23000 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
23001 if test "x$gcc_cv_objdump" != x
; then
23002 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23003 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
23004 gcc_cv_as_cfi_directive
=no
23007 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
23008 # On Solaris/x86, make sure that GCC and assembler agree on using
23009 # read-only .eh_frame sections for 64-bit.
23010 if test x
$gas = xyes
; then
23011 as_ix86_64_opt
="--64"
23013 as_ix86_64_opt
="-xarch=amd64"
23015 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
23016 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
23017 sed -e /.eh_frame
/!d
-e N | \
23018 grep READONLY
> /dev
/null
; then
23019 gcc_cv_as_cfi_directive
=yes
23021 gcc_cv_as_cfi_directive
=no
23025 gcc_cv_as_cfi_directive
=yes
23030 # no objdump, err on the side of caution
23031 gcc_cv_as_cfi_directive
=no
23034 gcc_cv_as_cfi_directive
=yes
23038 gcc_cv_as_cfi_directive
=yes
23042 echo "configure: failed program was" >&5
23045 rm -f conftest.o conftest.s
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
23049 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
23051 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
23053 $as_echo_n "checking assembler for working cfi advance... " >&6; }
23054 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
23055 $as_echo_n "(cached) " >&6
23057 gcc_cv_as_cfi_advance_working
=no
23058 if test x
$gcc_cv_as != x
; then
23061 .cfi_adjust_cfa_offset 64
23063 .cfi_adjust_cfa_offset 128
23064 .cfi_endproc' > conftest.s
23065 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23067 (eval $ac_try) 2>&5
23069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23070 test $ac_status = 0; }; }
23073 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
23074 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
23075 gcc_cv_as_cfi_advance_working
=yes
23079 echo "configure: failed program was" >&5
23082 rm -f conftest.o conftest.s
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
23086 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
23089 # no objdump, err on the side of caution
23090 gcc_cv_as_cfi_advance_working
=no
23094 cat >>confdefs.h
<<_ACEOF
23095 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
23096 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
23102 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
23103 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
23104 $as_echo_n "(cached) " >&6
23106 gcc_cv_as_cfi_personality_directive
=no
23107 if test x
$gcc_cv_as != x
; then
23110 .cfi_personality 0, symbol
23111 .cfi_endproc' > conftest.s
23112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23114 (eval $ac_try) 2>&5
23116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23117 test $ac_status = 0; }; }
23119 gcc_cv_as_cfi_personality_directive
=yes
23121 echo "configure: failed program was" >&5
23124 rm -f conftest.o conftest.s
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
23128 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
23131 cat >>confdefs.h
<<_ACEOF
23132 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
23133 then echo 1; else echo 0; fi`
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
23138 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
23139 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23142 gcc_cv_as_cfi_sections_directive
=no
23143 if test x
$gcc_cv_as != x
; then
23145 .cfi_sections .debug_frame, .eh_frame
23147 .cfi_endproc' > conftest.s
23148 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23150 (eval $ac_try) 2>&5
23152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23153 test $ac_status = 0; }; }
23156 win32 | pe | cygwin
* | mingw32
* | uwin
*)
23157 # Need to check that we generated the correct relocation for the
23158 # .debug_frame section. This was fixed for binutils 2.21.
23159 gcc_cv_as_cfi_sections_directive
=no
23160 if test "x$gcc_cv_objdump" != x
; then
23161 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
23162 grep secrel
> /dev
/null
; then
23163 gcc_cv_as_cfi_sections_directive
=yes
23168 gcc_cv_as_cfi_sections_directive
=yes
23172 echo "configure: failed program was" >&5
23175 rm -f conftest.o conftest.s
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
23179 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
23183 cat >>confdefs.h
<<_ACEOF
23184 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
23185 then echo 1; else echo 0; fi`
23189 # GAS versions up to and including 2.11.0 may mis-optimize
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
23192 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
23193 if test "${gcc_cv_as_eh_frame+set}" = set; then :
23194 $as_echo_n "(cached) " >&6
23196 gcc_cv_as_eh_frame
=no
23197 if test $in_tree_gas = yes; then
23198 if test $in_tree_gas_is_elf = yes \
23199 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23200 then gcc_cv_as_eh_frame
=yes
23202 elif test x
$gcc_cv_as != x
; then
23209 .section .eh_frame,"aw",@progbits
23211 .4byte .LECIE1-.LSCIE1
23225 .4byte .LEFDE1-.LASFDE1
23227 .4byte .LASFDE1-__FRAME_BEGIN__
23234 .LEFDE1:' > conftest.s
23235 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23236 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23237 (eval $ac_try) 2>&5
23239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23240 test $ac_status = 0; }; }
23242 cat > conftest.lit
<<EOF
23243 0000 10000000 00000000 017a0001 781a0004 .........z..x...
23244 0010 01000000 12000000 18000000 00000000 ................
23245 0020 08000000 04080000 0044 .........D
23247 cat > conftest.big
<<EOF
23248 0000 00000010 00000000 017a0001 781a0004 .........z..x...
23249 0010 00000001 00000012 00000018 00000000 ................
23250 0020 00000008 04000000 0844 .........D
23252 # If the assembler didn't choke, and we can objdump,
23253 # and we got the correct data, then succeed.
23254 # The text in the here-document typically retains its unix-style line
23255 # endings, while the output of objdump will use host line endings.
23256 # Therefore, use diff -b for the comparisons.
23257 if test x
$gcc_cv_objdump != x \
23258 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
23259 |
tail -3 > conftest.got \
23260 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
23261 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
23263 gcc_cv_as_eh_frame
=yes
23264 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
23265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23266 (eval $ac_try) 2>&5
23268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23269 test $ac_status = 0; }; }; then
23270 gcc_cv_as_eh_frame
=buggy
23272 # Uh oh, what do we do now?
23273 gcc_cv_as_eh_frame
=no
23276 echo "configure: failed program was" >&5
23279 rm -f conftest.o conftest.s
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23283 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23286 if test $gcc_cv_as_eh_frame = buggy
; then
23288 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23293 $as_echo_n "checking assembler for section merging support... " >&6; }
23294 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23295 $as_echo_n "(cached) " >&6
23297 gcc_cv_as_shf_merge
=no
23298 if test $in_tree_gas = yes; then
23299 if test $in_tree_gas_is_elf = yes \
23300 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23301 then gcc_cv_as_shf_merge
=yes
23303 elif test x
$gcc_cv_as != x
; then
23304 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23305 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23307 (eval $ac_try) 2>&5
23309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23310 test $ac_status = 0; }; }
23312 gcc_cv_as_shf_merge
=yes
23314 echo "configure: failed program was" >&5
23317 rm -f conftest.o conftest.s
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23321 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23323 if test $gcc_cv_as_shf_merge = no
; then
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23325 $as_echo_n "checking assembler for section merging support... " >&6; }
23326 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23327 $as_echo_n "(cached) " >&6
23329 gcc_cv_as_shf_merge
=no
23330 if test $in_tree_gas = yes; then
23331 if test $in_tree_gas_is_elf = yes \
23332 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23333 then gcc_cv_as_shf_merge
=yes
23335 elif test x
$gcc_cv_as != x
; then
23336 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23337 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23339 (eval $ac_try) 2>&5
23341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23342 test $ac_status = 0; }; }
23344 gcc_cv_as_shf_merge
=yes
23346 echo "configure: failed program was" >&5
23349 rm -f conftest.o conftest.s
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23353 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23357 cat >>confdefs.h
<<_ACEOF
23358 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23363 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23364 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23365 $as_echo_n "(cached) " >&6
23367 gcc_cv_as_comdat_group
=no
23368 if test $in_tree_gas = yes; then
23369 if test $in_tree_gas_is_elf = yes \
23370 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23371 then gcc_cv_as_comdat_group
=yes
23373 elif test x
$gcc_cv_as != x
; then
23374 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23375 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23377 (eval $ac_try) 2>&5
23379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23380 test $ac_status = 0; }; }
23382 gcc_cv_as_comdat_group
=yes
23384 echo "configure: failed program was" >&5
23387 rm -f conftest.o conftest.s
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23391 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23393 if test $gcc_cv_as_comdat_group = yes; then
23394 gcc_cv_as_comdat_group_percent
=no
23395 gcc_cv_as_comdat_group_group
=no
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23398 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23399 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23402 gcc_cv_as_comdat_group_percent
=no
23403 if test $in_tree_gas = yes; then
23404 if test $in_tree_gas_is_elf = yes \
23405 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23406 then gcc_cv_as_comdat_group_percent
=yes
23408 elif test x
$gcc_cv_as != x
; then
23409 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23410 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23412 (eval $ac_try) 2>&5
23414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23415 test $ac_status = 0; }; }
23417 gcc_cv_as_comdat_group_percent
=yes
23419 echo "configure: failed program was" >&5
23422 rm -f conftest.o conftest.s
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23426 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23428 if test $gcc_cv_as_comdat_group_percent = yes; then
23429 gcc_cv_as_comdat_group_group
=no
23431 case "${target}" in
23432 # Sun as uses a completely different syntax.
23434 case "${target}" in
23435 sparc
*-*-solaris2*)
23437 .group foo,".text%foo",#comdat
23438 .section ".text%foo", #alloc,#execinstr,#progbits
23443 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23445 .group foo,.text%foo,#comdat
23446 .section .text%foo, "ax", @progbits
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23453 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23454 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23457 gcc_cv_as_comdat_group_group
=no
23458 if test x
$gcc_cv_as != x
; then
23459 $as_echo "$conftest_s" > conftest.s
23460 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23462 (eval $ac_try) 2>&5
23464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23465 test $ac_status = 0; }; }
23467 gcc_cv_as_comdat_group_group
=yes
23469 echo "configure: failed program was" >&5
23472 rm -f conftest.o conftest.s
23475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23476 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23480 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23481 gcc_cv_as_comdat_group_group
=no
23485 if test x
"$ld_is_gold" = xyes
; then
23487 elif test $in_tree_ld = yes ; then
23489 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 \
23490 && test $in_tree_ld_is_elf = yes; then
23493 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23495 if test 0"$ld_date" -lt 20050308; then
23496 if test -n "$ld_date"; then
23497 # If there was date string, but was earlier than 2005-03-08, fail
23499 elif test "$ld_vers_major" -lt 2; then
23501 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23506 case "${target}" in
23507 *-*-solaris2.1
[1-9]*)
23509 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23510 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23513 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23514 # least ld version 1.2267.
23515 if test "$ld_vers_major" -gt 1; then
23517 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23519 elif test "$ld_vers_minor" -ge 2267; then
23524 # Assume linkers other than GNU ld don't support COMDAT group.
23529 # Allow overriding the automatic COMDAT group tests above.
23530 # Check whether --enable-comdat was given.
23531 if test "${enable_comdat+set}" = set; then :
23532 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23535 if test $comdat_group = no
; then
23536 gcc_cv_as_comdat_group
=no
23537 gcc_cv_as_comdat_group_percent
=no
23538 gcc_cv_as_comdat_group_group
=no
23541 cat >>confdefs.h
<<_ACEOF
23542 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23543 || test $gcc_cv_as_comdat_group_percent = yes \
23544 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23549 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23550 if test "${gcc_cv_as_discriminator+set}" = set; then :
23551 $as_echo_n "(cached) " >&6
23553 gcc_cv_as_discriminator
=no
23554 if test $in_tree_gas = yes; then
23555 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23556 then gcc_cv_as_discriminator
=yes
23558 elif test x
$gcc_cv_as != x
; then
23561 .loc 1 1 0 discriminator 1' > conftest.s
23562 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23564 (eval $ac_try) 2>&5
23566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23567 test $ac_status = 0; }; }
23569 gcc_cv_as_discriminator
=yes
23571 echo "configure: failed program was" >&5
23574 rm -f conftest.o conftest.s
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23578 $as_echo "$gcc_cv_as_discriminator" >&6; }
23579 if test $gcc_cv_as_discriminator = yes; then
23581 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23585 # Thread-local storage - the check is heavily parameterized.
23593 .section ".tdata","awT",@progbits
23596 ldq $27,__tls_get_addr($29) !literal!1
23597 lda $16,foo($29) !tlsgd!1
23598 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23599 ldq $27,__tls_get_addr($29) !literal!2
23600 lda $16,foo($29) !tlsldm!2
23601 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23602 ldq $1,foo($29) !gotdtprel
23603 ldah $2,foo($29) !dtprelhi
23604 lda $3,foo($2) !dtprello
23605 lda $4,foo($29) !dtprel
23606 ldq $1,foo($29) !gottprel
23607 ldah $2,foo($29) !tprelhi
23608 lda $3,foo($2) !tprello
23609 lda $4,foo($29) !tprel'
23612 tls_as_opt
=--fatal-warnings
23614 cris-
*-*|crisv32-
*-*)
23616 .section ".tdata","awT",@progbits
23623 tls_as_opt
=--fatal-warnings
23627 .section ".tdata","awT",@progbits
23630 call #gettlsoff(x)'
23639 .section ".tdata","awT",@progbits
23643 addil LT%foo-$tls_gdidx$,gp
23644 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23647 addil LT%foo-$tls_ldidx$,gp
23649 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23650 addil LR%foo-$tls_dtpoff$,%ret0
23651 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23653 addil LT%foo-$tls_ieoff$,gp
23654 ldw RT%foo-$tls_ieoff$(%r1),%t2
23657 addil LR%foo-$tls_leoff$,%t1
23658 ldo RR%foo-$tls_leoff$(%r1),%t2'
23661 tls_as_opt
=--fatal-warnings
23665 .section ".tdata","awT",%progbits
23668 .word foo(gottpoff)
23676 i
[34567]86-*-* | x86_64-
*-*)
23678 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23685 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23687 .section .tdata,"awt",@progbits'
23692 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23696 .section ".tdata","awT",@progbits'
23700 tls_as_opt
="--fatal-warnings"
23704 conftest_s
="$conftest_s
23708 leal foo@tlsgd(,%ebx,1), %eax
23709 leal foo@tlsldm(%ebx), %eax
23710 leal foo@dtpoff(%eax), %edx
23711 movl foo@gottpoff(%ebx), %eax
23712 subl foo@gottpoff(%ebx), %eax
23713 addl foo@gotntpoff(%ebx), %eax
23714 movl foo@indntpoff, %eax
23715 movl \$foo@tpoff, %eax
23716 subl \$foo@tpoff, %eax
23717 leal foo@ntpoff(%ecx), %eax"
23720 if test x
$on_solaris = xyes
; then
23722 yes) tls_as_opt
="$tls_as_opt --64" ;;
23723 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23726 conftest_s
="$conftest_s
23730 leaq foo@tlsgd(%rip), %rdi
23731 leaq foo@tlsld(%rip), %rdi
23732 leaq foo@dtpoff(%rax), %rdx
23733 movq foo@gottpoff(%rip), %rax
23734 movq \$foo@tpoff, %rax"
23740 .section ".tdata","awT",@progbits
23743 addl r16 = @ltoff(@dtpmod(foo#)), gp
23744 addl r17 = @ltoff(@dtprel(foo#)), gp
23745 addl r18 = @ltoff(@tprel(foo#)), gp
23746 addl r19 = @dtprel(foo#), gp
23747 adds r21 = @dtprel(foo#), r13
23748 movl r23 = @dtprel(foo#)
23749 addl r20 = @tprel(foo#), gp
23750 adds r22 = @tprel(foo#), r13
23751 movl r24 = @tprel(foo#)'
23754 tls_as_opt
=--fatal-warnings
23758 .section .tdata,"awT",@progbits
23762 addik r5,r20,x@TLSGD
23763 addik r5,r20,x@TLSLDM'
23766 tls_as_opt
='--fatal-warnings'
23770 .section .tdata,"awT",@progbits
23774 addiu $4, $28, %tlsgd(x)
23775 addiu $4, $28, %tlsldm(x)
23776 lui $4, %dtprel_hi(x)
23777 addiu $4, $4, %dtprel_lo(x)
23778 lw $4, %gottprel(x)($28)
23779 lui $4, %tprel_hi(x)
23780 addiu $4, $4, %tprel_lo(x)'
23783 tls_as_opt
='-32 --fatal-warnings'
23787 .section .tdata,"awT",@progbits
23792 move.l x@TLSGD(%a5),%a0
23793 move.l x@TLSLDM(%a5),%a0
23794 move.l x@TLSLDO(%a5),%a0
23795 move.l x@TLSIE(%a5),%a0
23796 move.l x@TLSLE(%a5),%a0'
23799 tls_as_opt
='--fatal-warnings'
23803 .section ".tdata","awT",@progbits'
23806 tls_as_opt
="--fatal-warnings"
23810 .section ".tdata","awT",%progbits
23814 add x0, x0, #:tlsgd_lo12:x
23819 tls_as_opt
='--fatal-warnings'
23823 .extern __get_tpointer
23841 .section ".tdata","awT",@progbits
23849 addi 3,2,ld0@got@tlsgd
23855 addi 3,2,x1@got@tlsld
23861 addis 9,3,x2@dtprel@ha
23862 addi 9,9,x2@dtprel@l
23865 ld 9,x3@got@dtprel(2)
23871 tls_as_opt
="-a64 --fatal-warnings"
23875 .section ".tdata","awT",@progbits
23883 addi 3,31,ld0@got@tlsgd
23885 addi 3,31,x1@got@tlsld
23888 addis 9,3,x2@dtprel@ha
23889 addi 9,9,x2@dtprel@l
23890 lwz 9,x3@got@tprel(31)
23893 addis 9,2,x2@tprel@ha
23894 addi 9,9,x2@tprel@l'
23897 tls_as_opt
="-a32 --fatal-warnings"
23901 .section ".tdata","awT",@progbits
23908 .long foo@GOTNTPOFF
23909 .long foo@INDNTPOFF
23910 l %r1,foo@GOTNTPOFF(%r12)
23911 l %r1,0(%r1):tls_load:foo
23912 bas %r14,0(%r1,%r13):tls_gdcall:foo
23913 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23916 tls_as_opt
="-m31 --fatal-warnings"
23920 .section ".tdata","awT",@progbits
23927 .quad foo@GOTNTPOFF
23928 lg %r1,foo@GOTNTPOFF(%r12)
23929 larl %r1,foo@INDNTPOFF
23930 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23931 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23934 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23936 sh-
*-* | sh
[34]-*-*)
23938 .section ".tdata","awT",@progbits
23948 tls_as_opt
=--fatal-warnings
23952 sparc
*-sun-solaris2.
*)
23959 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23961 .section ".tdata",#alloc,#write,#tls'
23966 .section ".tdata","awT",@progbits'
23969 tls_as_opt
="-32 --fatal-warnings"
23971 conftest_s
="$conftest_s
23974 sethi %tgd_hi22(foo), %o0
23975 add %o0, %tgd_lo10(foo), %o1
23976 add %l7, %o1, %o0, %tgd_add(foo)
23977 call __tls_get_addr, %tgd_call(foo)
23978 sethi %tldm_hi22(foo), %l1
23979 add %l1, %tldm_lo10(foo), %l2
23980 add %l7, %l2, %o0, %tldm_add(foo)
23981 call __tls_get_addr, %tldm_call(foo)
23982 sethi %tldo_hix22(foo), %l3
23983 xor %l3, %tldo_lox10(foo), %l4
23984 add %o0, %l4, %l5, %tldo_add(foo)
23985 sethi %tie_hi22(foo), %o3
23986 add %o3, %tie_lo10(foo), %o3
23987 ld [%l7 + %o3], %o2, %tie_ld(foo)
23988 add %g7, %o2, %o4, %tie_add(foo)
23989 sethi %tle_hix22(foo), %l1
23990 xor %l1, %tle_lox10(foo), %o5
23991 ld [%g7 + %o5], %o1"
23995 .section ".tdata","awT",@progbits
23998 addli r0, zero, tls_gd(foo)
23999 auli r0, zero, tls_gd_ha16(foo)
24000 addli r0, r0, tls_gd_lo16(foo)
24002 addli r0, zero, tls_ie(foo)
24003 auli r0, r0, tls_ie_ha16(foo)
24004 addli r0, r0, tls_ie_lo16(foo)'
24007 tls_as_opt
="--fatal-warnings"
24011 .section ".tdata","awT",@progbits
24014 shl16insli r0, zero, hw0_last_tls_gd(foo)
24015 shl16insli r0, zero, hw1_last_tls_gd(foo)
24016 shl16insli r0, r0, hw0_tls_gd(foo)
24018 shl16insli r0, zero, hw1_last_tls_ie(foo)
24019 shl16insli r0, r0, hw0_tls_ie(foo)'
24022 tls_as_opt
="--fatal-warnings"
24026 .section ".tdata","awT",@progbits
24029 movi a8, foo@TLSFUNC
24030 movi a10, foo@TLSARG
24031 callx8.tls a8, foo@TLSCALL'
24037 if test "x$enable_tls" = xno
; then
24038 : # TLS explicitly disabled.
24039 elif test "x$enable_tls" = xyes
; then
24040 set_have_as_tls
=yes # TLS explicitly enabled.
24041 elif test -z "$tls_first_major"; then
24042 : # If we don't have a check, assume no support.
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
24045 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
24046 if test "${gcc_cv_as_tls+set}" = set; then :
24047 $as_echo_n "(cached) " >&6
24050 if test $in_tree_gas = yes; then
24051 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
24052 then gcc_cv_as_tls
=yes
24054 elif test x
$gcc_cv_as != x
; then
24055 $as_echo "$conftest_s" > conftest.s
24056 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
24057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24058 (eval $ac_try) 2>&5
24060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24061 test $ac_status = 0; }; }
24065 echo "configure: failed program was" >&5
24068 rm -f conftest.o conftest.s
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
24072 $as_echo "$gcc_cv_as_tls" >&6; }
24073 if test $gcc_cv_as_tls = yes; then
24074 set_have_as_tls
=yes
24077 if test $set_have_as_tls = yes ; then
24079 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
24083 # Target-specific assembler checks.
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
24086 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
24087 gcc_cv_ld_static_dynamic
=no
24088 gcc_cv_ld_static_option
='-Bstatic'
24089 gcc_cv_ld_dynamic_option
='-Bdynamic'
24090 if test $in_tree_ld = yes ; then
24091 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
24092 gcc_cv_ld_static_dynamic
=yes
24094 elif test x
$gcc_cv_ld != x
; then
24095 # Check if linker supports -Bstatic/-Bdynamic option
24096 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
24097 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
24098 gcc_cv_ld_static_dynamic
=yes
24101 # AIX ld uses -b flags
24102 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
24103 gcc_cv_ld_static_dynamic
=yes
24104 gcc_cv_ld_static_option
="-bstatic"
24105 gcc_cv_ld_dynamic_option
="-bdynamic"
24107 # HP-UX ld uses -a flags to select between shared and archive.
24109 if test x
"$gnu_ld" = xno
; then
24110 gcc_cv_ld_static_dynamic
=yes
24111 gcc_cv_ld_static_option
="-aarchive_shared"
24112 gcc_cv_ld_dynamic_option
="-adefault"
24115 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
24117 gcc_cv_ld_static_dynamic
=yes
24122 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
24124 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
24127 cat >>confdefs.h
<<_ACEOF
24128 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
24132 cat >>confdefs.h
<<_ACEOF
24133 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
24138 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
24140 if test x
"$demangler_in_ld" = xyes
; then
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
24142 $as_echo_n "checking linker --demangle support... " >&6; }
24143 gcc_cv_ld_demangle
=no
24144 if test $in_tree_ld = yes; then
24145 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 \
24146 gcc_cv_ld_demangle
=yes
24148 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
24149 # Check if the GNU linker supports --demangle option
24150 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
24151 gcc_cv_ld_demangle
=yes
24154 if test x
"$gcc_cv_ld_demangle" = xyes
; then
24156 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
24160 $as_echo "$gcc_cv_ld_demangle" >&6; }
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
24164 $as_echo_n "checking linker plugin support... " >&6; }
24165 gcc_cv_lto_plugin
=0
24166 if test -f liblto_plugin.la
; then
24167 save_ld_ver
="$ld_ver"
24168 save_ld_vers_major
="$ld_vers_major"
24169 save_ld_vers_minor
="$ld_vers_minor"
24170 save_ld_is_gold
="$ld_is_gold"
24174 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
24176 # FIXME: ld_is_gold?
24177 ld_vers_major
="$gcc_cv_gld_major_version"
24178 ld_vers_minor
="$gcc_cv_gld_minor_version"
24180 # Determine plugin linker version.
24181 # FIXME: Partial duplicate from above, generalize.
24182 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
24183 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24184 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
24186 ld_vers
=`echo $ld_ver | sed -n \
24187 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
24189 ld_vers
=`echo $ld_ver | sed -n \
24190 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
24192 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
24193 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
24197 # Determine plugin support.
24198 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
24199 # Require GNU ld or gold 2.21+ for plugin support by default.
24200 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
24201 gcc_cv_lto_plugin
=2
24202 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
24203 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
24204 gcc_cv_lto_plugin
=1
24208 ld_ver
="$save_ld_ver"
24209 ld_vers_major
="$save_ld_vers_major"
24210 ld_vers_minor
="$save_ld_vers_minor"
24211 ld_is_gold
="$save_ld_is_gold"
24214 cat >>confdefs.h
<<_ACEOF
24215 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
24219 $as_echo "$gcc_cv_lto_plugin" >&6; }
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
24224 $as_echo_n "checking assembler for -mabi option... " >&6; }
24225 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
24226 $as_echo_n "(cached) " >&6
24228 gcc_cv_as_aarch64_mabi
=no
24229 if test x
$gcc_cv_as != x
; then
24230 $as_echo '.text' > conftest.s
24231 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
24232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24233 (eval $ac_try) 2>&5
24235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24236 test $ac_status = 0; }; }
24238 gcc_cv_as_aarch64_mabi
=yes
24240 echo "configure: failed program was" >&5
24243 rm -f conftest.o conftest.s
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
24247 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
24249 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
24251 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
24254 if test x
$with_abi = xilp32
; then
24255 as_fn_error
"Assembler does not support -mabi=ilp32.\
24256 Upgrade the Assembler." "$LINENO" 5
24258 if test x
"$with_multilib_list" = xdefault
; then
24259 TM_MULTILIB_CONFIG
=lp64
24261 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
24262 for aarch64_multilib
in ${aarch64_multilibs}; do
24263 case ${aarch64_multilib} in
24265 as_fn_error
"Assembler does not support -mabi=ilp32.\
24266 Upgrade the Assembler." "$LINENO" 5
24274 # Check if we have binutils support for relocations types needed by -fpic
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -fpic relocs" >&5
24276 $as_echo_n "checking assembler for -fpic relocs... " >&6; }
24277 if test "${gcc_cv_as_aarch64_picreloc+set}" = set; then :
24278 $as_echo_n "(cached) " >&6
24280 gcc_cv_as_aarch64_picreloc
=no
24281 if test x
$gcc_cv_as != x
; then
24284 ldr x0, [x2, #:gotpage_lo15:globalsym]
24286 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24288 (eval $ac_try) 2>&5
24290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24291 test $ac_status = 0; }; }
24293 gcc_cv_as_aarch64_picreloc
=yes
24295 echo "configure: failed program was" >&5
24298 rm -f conftest.o conftest.s
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_picreloc" >&5
24302 $as_echo "$gcc_cv_as_aarch64_picreloc" >&6; }
24303 if test $gcc_cv_as_aarch64_picreloc = yes; then
24305 $as_echo "#define HAVE_AS_SMALL_PIC_RELOCS 1" >>confdefs.h
24308 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
24309 # Check whether --enable-fix-cortex-a53-835769 was given.
24310 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
24311 enableval
=$enable_fix_cortex_a53_835769;
24314 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24319 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24320 Valid choices are 'yes' and 'no'." "$LINENO" 5
24327 # Enable default workaround for AArch64 Cortex-A53 erratum 843419.
24328 # Check whether --enable-fix-cortex-a53-843419 was given.
24329 if test "${enable_fix_cortex_a53_843419+set}" = set; then :
24330 enableval
=$enable_fix_cortex_a53_843419;
24333 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_843419_DEFAULT=1"
24338 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-843419.\
24339 Valid choices are 'yes' and 'no'." "$LINENO" 5
24348 # All TARGET_ABI_OSF targets.
24349 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24351 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24352 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24353 $as_echo_n "(cached) " >&6
24355 gcc_cv_as_alpha_explicit_relocs
=no
24356 if test $in_tree_gas = yes; then
24357 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24358 then gcc_cv_as_alpha_explicit_relocs
=yes
24360 elif test x
$gcc_cv_as != x
; then
24361 $as_echo ' .set nomacro
24363 extbl $3, $2, $3 !lituse_bytoff!1
24364 ldq $2, a($29) !literal!1
24365 ldq $4, b($29) !literal!2
24366 ldq_u $3, 0($2) !lituse_base!1
24367 ldq $27, f($29) !literal!5
24368 jsr $26, ($27), f !lituse_jsr!5
24369 ldah $29, 0($26) !gpdisp!3
24370 lda $0, c($29) !gprel
24371 ldah $1, d($29) !gprelhigh
24372 lda $1, d($1) !gprellow
24373 lda $29, 0($29) !gpdisp!3' > conftest.s
24374 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24376 (eval $ac_try) 2>&5
24378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24379 test $ac_status = 0; }; }
24381 gcc_cv_as_alpha_explicit_relocs
=yes
24383 echo "configure: failed program was" >&5
24386 rm -f conftest.o conftest.s
24389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24390 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24391 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24393 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24397 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24398 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24399 $as_echo_n "(cached) " >&6
24401 gcc_cv_as_alpha_jsrdirect_relocs
=no
24402 if test $in_tree_gas = yes; then
24403 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24404 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24406 elif test x
$gcc_cv_as != x
; then
24407 $as_echo ' .set nomacro
24409 ldq $27, a($29) !literal!1
24410 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24411 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24413 (eval $ac_try) 2>&5
24415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24416 test $ac_status = 0; }; }
24418 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24420 echo "configure: failed program was" >&5
24423 rm -f conftest.o conftest.s
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24427 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24428 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24430 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --mlink-relax option" >&5
24437 $as_echo_n "checking assembler for --mlink-relax option... " >&6; }
24438 if test "${gcc_cv_as_avr_mlink_relax+set}" = set; then :
24439 $as_echo_n "(cached) " >&6
24441 gcc_cv_as_avr_mlink_relax
=no
24442 if test x
$gcc_cv_as != x
; then
24443 $as_echo '.text' > conftest.s
24444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --mlink-relax -o conftest.o conftest.s >&5'
24445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24446 (eval $ac_try) 2>&5
24448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24449 test $ac_status = 0; }; }
24451 gcc_cv_as_avr_mlink_relax
=yes
24453 echo "configure: failed program was" >&5
24456 rm -f conftest.o conftest.s
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mlink_relax" >&5
24460 $as_echo "$gcc_cv_as_avr_mlink_relax" >&6; }
24461 if test $gcc_cv_as_avr_mlink_relax = yes; then
24463 $as_echo "#define HAVE_AS_AVR_MLINK_RELAX_OPTION 1" >>confdefs.h
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mrmw option" >&5
24468 $as_echo_n "checking assembler for -mrmw option... " >&6; }
24469 if test "${gcc_cv_as_avr_mrmw+set}" = set; then :
24470 $as_echo_n "(cached) " >&6
24472 gcc_cv_as_avr_mrmw
=no
24473 if test x
$gcc_cv_as != x
; then
24474 $as_echo '.text' > conftest.s
24475 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mrmw -o conftest.o conftest.s >&5'
24476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24477 (eval $ac_try) 2>&5
24479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24480 test $ac_status = 0; }; }
24482 gcc_cv_as_avr_mrmw
=yes
24484 echo "configure: failed program was" >&5
24487 rm -f conftest.o conftest.s
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_avr_mrmw" >&5
24491 $as_echo "$gcc_cv_as_avr_mrmw" >&6; }
24492 if test $gcc_cv_as_avr_mrmw = yes; then
24494 $as_echo "#define HAVE_AS_AVR_MRMW_OPTION 1" >>confdefs.h
24500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24501 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24502 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24503 $as_echo_n "(cached) " >&6
24505 gcc_cv_as_cris_no_mul_bug
=no
24506 if test $in_tree_gas = yes; then
24507 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24508 then gcc_cv_as_cris_no_mul_bug
=yes
24510 elif test x
$gcc_cv_as != x
; then
24511 $as_echo '.text' > conftest.s
24512 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24514 (eval $ac_try) 2>&5
24516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24517 test $ac_status = 0; }; }
24519 gcc_cv_as_cris_no_mul_bug
=yes
24521 echo "configure: failed program was" >&5
24524 rm -f conftest.o conftest.s
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24528 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24529 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24531 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24538 $as_echo_n "checking assembler for .register... " >&6; }
24539 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24540 $as_echo_n "(cached) " >&6
24542 gcc_cv_as_sparc_register_op
=no
24543 if test x
$gcc_cv_as != x
; then
24544 $as_echo '.register %g2, #scratch' > conftest.s
24545 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24547 (eval $ac_try) 2>&5
24549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24550 test $ac_status = 0; }; }
24552 gcc_cv_as_sparc_register_op
=yes
24554 echo "configure: failed program was" >&5
24557 rm -f conftest.o conftest.s
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24561 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24562 if test $gcc_cv_as_sparc_register_op = yes; then
24564 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24569 $as_echo_n "checking assembler for #nobits... " >&6; }
24570 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24573 gcc_cv_as_sparc_nobits
=no
24574 if test x
$gcc_cv_as != x
; then
24575 $as_echo '.section "nobits",#alloc,#write,#nobits
24576 .section "progbits",#alloc,#write,#progbits' > conftest.s
24577 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24579 (eval $ac_try) 2>&5
24581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24582 test $ac_status = 0; }; }
24584 gcc_cv_as_sparc_nobits
=yes
24586 echo "configure: failed program was" >&5
24589 rm -f conftest.o conftest.s
24592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24593 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24596 cat >>confdefs.h
<<_ACEOF
24597 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24602 $as_echo_n "checking assembler for -relax option... " >&6; }
24603 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24604 $as_echo_n "(cached) " >&6
24606 gcc_cv_as_sparc_relax
=no
24607 if test x
$gcc_cv_as != x
; then
24608 $as_echo '.text' > conftest.s
24609 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24611 (eval $ac_try) 2>&5
24613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24614 test $ac_status = 0; }; }
24616 gcc_cv_as_sparc_relax
=yes
24618 echo "configure: failed program was" >&5
24621 rm -f conftest.o conftest.s
24624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24625 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24626 if test $gcc_cv_as_sparc_relax = yes; then
24628 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24633 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24634 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24635 $as_echo_n "(cached) " >&6
24637 gcc_cv_as_sparc_gotdata_op
=no
24638 if test x
$gcc_cv_as != x
; then
24644 sethi %gdop_hix22(foo), %g1
24645 xor %g1, %gdop_lox10(foo), %g1
24646 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24647 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24649 (eval $ac_try) 2>&5
24651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24652 test $ac_status = 0; }; }
24654 if test x
$gcc_cv_ld != x \
24655 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24656 if test x
$gcc_cv_objdump != x
; then
24657 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24658 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24659 gcc_cv_as_sparc_gotdata_op
=no
24661 gcc_cv_as_sparc_gotdata_op
=yes
24667 echo "configure: failed program was" >&5
24670 rm -f conftest.o conftest.s
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24674 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24675 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24677 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24682 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24683 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24684 $as_echo_n "(cached) " >&6
24686 gcc_cv_as_sparc_ua_pcrel
=no
24687 if test x
$gcc_cv_as != x
; then
24694 .uaword %r_disp32(foo)' > conftest.s
24695 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24697 (eval $ac_try) 2>&5
24699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24700 test $ac_status = 0; }; }
24702 if test x
$gcc_cv_ld != x \
24703 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24704 gcc_cv_as_sparc_ua_pcrel
=yes
24708 echo "configure: failed program was" >&5
24711 rm -f conftest.o conftest.s
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24715 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24716 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24718 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24722 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24723 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24724 $as_echo_n "(cached) " >&6
24726 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24727 if test x
$gcc_cv_as != x
; then
24731 .uaword %r_disp32(foo)
24732 .byte 0x32, 0x33, 0x34
24736 .skip 4' > conftest.s
24737 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24739 (eval $ac_try) 2>&5
24741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24742 test $ac_status = 0; }; }
24744 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24745 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24746 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24747 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24748 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24749 |
grep 'DISP32' > /dev
/null
2>&1; then
24752 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24757 echo "configure: failed program was" >&5
24760 rm -f conftest.o conftest.s
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24764 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24765 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24767 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24771 fi # unaligned pcrel relocs
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24774 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24775 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24776 $as_echo_n "(cached) " >&6
24778 gcc_cv_as_sparc_offsetable_lo10
=no
24779 if test x
$gcc_cv_as != x
; then
24781 or %g1, %lo(ab) + 12, %g1
24782 or %g1, %lo(ab + 12), %g1' > conftest.s
24783 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; }
24790 if test x
$gcc_cv_objdump != x \
24791 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24792 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24793 gcc_cv_as_sparc_offsetable_lo10
=yes
24796 echo "configure: failed program was" >&5
24799 rm -f conftest.o conftest.s
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24803 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24804 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24806 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24811 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24812 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24813 $as_echo_n "(cached) " >&6
24815 gcc_cv_as_sparc_fmaf
=no
24816 if test x
$gcc_cv_as != x
; then
24818 .register %g2, #scratch
24819 .register %g3, #scratch
24821 fmaddd %f0, %f2, %f4, %f6
24822 addxccc %g1, %g2, %g3
24823 fsrl32 %f2, %f4, %f8
24824 fnaddd %f10, %f12, %f14' > conftest.s
24825 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24827 (eval $ac_try) 2>&5
24829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24830 test $ac_status = 0; }; }
24832 gcc_cv_as_sparc_fmaf
=yes
24834 echo "configure: failed program was" >&5
24837 rm -f conftest.o conftest.s
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24841 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24842 if test $gcc_cv_as_sparc_fmaf = yes; then
24844 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24849 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24850 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24851 $as_echo_n "(cached) " >&6
24853 gcc_cv_as_sparc_sparc4
=no
24854 if test x
$gcc_cv_as != x
; then
24856 .register %g2, #scratch
24857 .register %g3, #scratch
24860 1: cwbneg %g2, %g3, 1f
24863 aes_kexpand0 %f4, %f6, %f8
24864 des_round %f38, %f40, %f42, %f44
24865 camellia_f %f54, %f56, %f58, %f60
24866 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24867 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24869 (eval $ac_try) 2>&5
24871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24872 test $ac_status = 0; }; }
24874 gcc_cv_as_sparc_sparc4
=yes
24876 echo "configure: failed program was" >&5
24879 rm -f conftest.o conftest.s
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24883 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24884 if test $gcc_cv_as_sparc_sparc4 = yes; then
24886 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24891 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24892 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24893 $as_echo_n "(cached) " >&6
24895 gcc_cv_as_sparc_leon
=no
24896 if test x
$gcc_cv_as != x
; then
24898 .register %g2, #scratch
24899 .register %g3, #scratch
24903 casa [%g2] 0xb, %g3, %g1' > conftest.s
24904 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24906 (eval $ac_try) 2>&5
24908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24909 test $ac_status = 0; }; }
24911 gcc_cv_as_sparc_leon
=yes
24913 echo "configure: failed program was" >&5
24916 rm -f conftest.o conftest.s
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24920 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24921 if test $gcc_cv_as_sparc_leon = yes; then
24923 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24928 i
[34567]86-*-* | x86_64-
*-*)
24931 # Full C++ conformance when using a shared libstdc++-v3 requires some
24932 # support from the Cygwin DLL, which in more recent versions exports
24933 # wrappers to aid in interposing and redirecting operators new, delete,
24934 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24935 # are configuring for a version of Cygwin that exports the wrappers.
24936 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24937 ac_fn_cxx_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24938 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24939 gcc_ac_cygwin_dll_wrappers
=yes
24941 gcc_ac_cygwin_dll_wrappers
=no
24945 # Can't check presence of libc functions during cross-compile, so
24946 # we just have to assume we're building for an up-to-date target.
24947 gcc_ac_cygwin_dll_wrappers
=yes
24950 cat >>confdefs.h
<<_ACEOF
24951 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24956 cygwin
* | pe | mingw32
* | interix
*)
24957 # Recent binutils allows the three-operand form of ".comm" on PE. This
24958 # definition is used unconditionally to initialise the default state of
24959 # the target option variable that governs usage of the feature.
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24961 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24962 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24963 $as_echo_n "(cached) " >&6
24965 gcc_cv_as_comm_has_align
=no
24966 if test $in_tree_gas = yes; then
24967 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24968 then gcc_cv_as_comm_has_align
=yes
24970 elif test x
$gcc_cv_as != x
; then
24971 $as_echo '.comm foo,1,32' > conftest.s
24972 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24974 (eval $ac_try) 2>&5
24976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24977 test $ac_status = 0; }; }
24979 gcc_cv_as_comm_has_align
=yes
24981 echo "configure: failed program was" >&5
24984 rm -f conftest.o conftest.s
24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24988 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24991 cat >>confdefs.h
<<_ACEOF
24992 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24995 # Used for DWARF 2 in PE
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24997 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24998 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24999 $as_echo_n "(cached) " >&6
25001 gcc_cv_as_ix86_pe_secrel32
=no
25002 if test $in_tree_gas = yes; then
25003 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
25004 then gcc_cv_as_ix86_pe_secrel32
=yes
25006 elif test x
$gcc_cv_as != x
; then
25010 .secrel32 foo' > conftest.s
25011 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25013 (eval $ac_try) 2>&5
25015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25016 test $ac_status = 0; }; }
25018 if test x
$gcc_cv_ld != x \
25019 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
25020 gcc_cv_as_ix86_pe_secrel32
=yes
25024 echo "configure: failed program was" >&5
25027 rm -f conftest.o conftest.s
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
25031 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
25032 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
25034 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
25037 # Test if the assembler supports the extended form of the .section
25038 # directive that specifies section alignment. LTO support uses this,
25039 # but normally only after installation, so we warn but don't fail the
25040 # configure if LTO is enabled but the assembler does not support it.
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
25042 $as_echo_n "checking assembler for .section with alignment... " >&6; }
25043 if test "${gcc_cv_as_section_has_align+set}" = set; then :
25044 $as_echo_n "(cached) " >&6
25046 gcc_cv_as_section_has_align
=no
25047 if test $in_tree_gas = yes; then
25048 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
25049 then gcc_cv_as_section_has_align
=yes
25051 elif test x
$gcc_cv_as != x
; then
25052 $as_echo '.section lto_test,"dr0"' > conftest.s
25053 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
25054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25055 (eval $ac_try) 2>&5
25057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25058 test $ac_status = 0; }; }
25060 gcc_cv_as_section_has_align
=yes
25062 echo "configure: failed program was" >&5
25065 rm -f conftest.o conftest.s
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
25069 $as_echo "$gcc_cv_as_section_has_align" >&6; }
25071 if test x
$gcc_cv_as_section_has_align != xyes
; then
25072 case ",$enable_languages," in
25074 { $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
25075 $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;}
25082 # Test if the assembler supports the section flag 'e' for specifying
25083 # an excluded section.
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
25085 $as_echo_n "checking assembler for .section with e... " >&6; }
25086 if test "${gcc_cv_as_section_has_e+set}" = set; then :
25087 $as_echo_n "(cached) " >&6
25089 gcc_cv_as_section_has_e
=no
25090 if test $in_tree_gas = yes; then
25091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
25092 then gcc_cv_as_section_has_e
=yes
25094 elif test x
$gcc_cv_as != x
; then
25095 $as_echo '.section foo1,"e"
25096 .byte 0,0,0,0' > conftest.s
25097 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
25098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25099 (eval $ac_try) 2>&5
25101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25102 test $ac_status = 0; }; }
25104 gcc_cv_as_section_has_e
=yes
25106 echo "configure: failed program was" >&5
25109 rm -f conftest.o conftest.s
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
25113 $as_echo "$gcc_cv_as_section_has_e" >&6; }
25116 cat >>confdefs.h
<<_ACEOF
25117 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
25122 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
25123 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
25124 $as_echo_n "(cached) " >&6
25126 gcc_cv_as_ix86_filds
=no
25127 if test x
$gcc_cv_as != x
; then
25128 $as_echo 'filds (%ebp); fists (%ebp)' > conftest.s
25129 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25131 (eval $ac_try) 2>&5
25133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25134 test $ac_status = 0; }; }
25136 gcc_cv_as_ix86_filds
=yes
25138 echo "configure: failed program was" >&5
25141 rm -f conftest.o conftest.s
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
25145 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
25146 if test $gcc_cv_as_ix86_filds = yes; then
25148 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
25152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
25153 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
25154 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
25155 $as_echo_n "(cached) " >&6
25157 gcc_cv_as_ix86_fildq
=no
25158 if test x
$gcc_cv_as != x
; then
25159 $as_echo 'fildq (%ebp); fistpq (%ebp)' > conftest.s
25160 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25162 (eval $ac_try) 2>&5
25164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25165 test $ac_status = 0; }; }
25167 gcc_cv_as_ix86_fildq
=yes
25169 echo "configure: failed program was" >&5
25172 rm -f conftest.o conftest.s
25175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
25176 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
25177 if test $gcc_cv_as_ix86_fildq = yes; then
25179 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
25183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
25184 $as_echo_n "checking assembler for cmov syntax... " >&6; }
25185 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
25186 $as_echo_n "(cached) " >&6
25188 gcc_cv_as_ix86_cmov_sun_syntax
=no
25189 if test x
$gcc_cv_as != x
; then
25190 $as_echo 'cmovl.l %edx, %eax' > conftest.s
25191 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25193 (eval $ac_try) 2>&5
25195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25196 test $ac_status = 0; }; }
25198 gcc_cv_as_ix86_cmov_sun_syntax
=yes
25200 echo "configure: failed program was" >&5
25203 rm -f conftest.o conftest.s
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
25207 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
25208 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
25210 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
25215 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
25216 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
25217 $as_echo_n "(cached) " >&6
25219 gcc_cv_as_ix86_ffreep
=no
25220 if test x
$gcc_cv_as != x
; then
25221 $as_echo 'ffreep %st(1)' > conftest.s
25222 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25224 (eval $ac_try) 2>&5
25226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25227 test $ac_status = 0; }; }
25229 gcc_cv_as_ix86_ffreep
=yes
25231 echo "configure: failed program was" >&5
25234 rm -f conftest.o conftest.s
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
25238 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
25239 if test $gcc_cv_as_ix86_ffreep = yes; then
25241 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
25246 $as_echo_n "checking assembler for .quad directive... " >&6; }
25247 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25250 gcc_cv_as_ix86_quad
=no
25251 if test x
$gcc_cv_as != x
; then
25252 $as_echo '.quad 0' > conftest.s
25253 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255 (eval $ac_try) 2>&5
25257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258 test $ac_status = 0; }; }
25260 gcc_cv_as_ix86_quad
=yes
25262 echo "configure: failed program was" >&5
25265 rm -f conftest.o conftest.s
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
25269 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
25270 if test $gcc_cv_as_ix86_quad = yes; then
25272 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
25277 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
25278 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
25279 $as_echo_n "(cached) " >&6
25281 gcc_cv_as_ix86_sahf
=no
25282 if test x
$gcc_cv_as != x
; then
25285 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25287 (eval $ac_try) 2>&5
25289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25290 test $ac_status = 0; }; }
25292 gcc_cv_as_ix86_sahf
=yes
25294 echo "configure: failed program was" >&5
25297 rm -f conftest.o conftest.s
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
25301 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
25302 if test $gcc_cv_as_ix86_sahf = yes; then
25304 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
25308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
25309 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
25310 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
25311 $as_echo_n "(cached) " >&6
25313 gcc_cv_as_ix86_interunit_movq
=no
25314 if test x
$gcc_cv_as != x
; then
25317 movq %rax, %xmm0' > conftest.s
25318 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25320 (eval $ac_try) 2>&5
25322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25323 test $ac_status = 0; }; }
25325 gcc_cv_as_ix86_interunit_movq
=yes
25327 echo "configure: failed program was" >&5
25330 rm -f conftest.o conftest.s
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
25334 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
25337 cat >>confdefs.h
<<_ACEOF
25338 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
25343 $as_echo_n "checking assembler for hle prefixes... " >&6; }
25344 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
25345 $as_echo_n "(cached) " >&6
25347 gcc_cv_as_ix86_hle
=no
25348 if test x
$gcc_cv_as != x
; then
25349 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
25350 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25352 (eval $ac_try) 2>&5
25354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25355 test $ac_status = 0; }; }
25357 gcc_cv_as_ix86_hle
=yes
25359 echo "configure: failed program was" >&5
25362 rm -f conftest.o conftest.s
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
25366 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
25367 if test $gcc_cv_as_ix86_hle = yes; then
25369 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
25374 $as_echo_n "checking assembler for swap suffix... " >&6; }
25375 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
25376 $as_echo_n "(cached) " >&6
25378 gcc_cv_as_ix86_swap
=no
25379 if test x
$gcc_cv_as != x
; then
25380 $as_echo 'movl.s %esp, %ebp' > conftest.s
25381 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25383 (eval $ac_try) 2>&5
25385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25386 test $ac_status = 0; }; }
25388 gcc_cv_as_ix86_swap
=yes
25390 echo "configure: failed program was" >&5
25393 rm -f conftest.o conftest.s
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
25397 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
25398 if test $gcc_cv_as_ix86_swap = yes; then
25400 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25405 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25406 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25407 $as_echo_n "(cached) " >&6
25409 gcc_cv_as_ix86_diff_sect_delta
=no
25410 if test x
$gcc_cv_as != x
; then
25411 $as_echo '.section .rodata
25417 .L2: nop' > conftest.s
25418 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25420 (eval $ac_try) 2>&5
25422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25423 test $ac_status = 0; }; }
25425 gcc_cv_as_ix86_diff_sect_delta
=yes
25427 echo "configure: failed program was" >&5
25430 rm -f conftest.o conftest.s
25433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25434 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25435 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25437 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25441 # These two are used unconditionally by i386.[ch]; it is to be defined
25442 # to 1 if the feature is present, 0 otherwise.
25443 as_ix86_gotoff_in_data_opt
=
25444 if test x
$gas = xyes
; then
25445 as_ix86_gotoff_in_data_opt
="--32"
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25448 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25449 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25450 $as_echo_n "(cached) " >&6
25452 gcc_cv_as_ix86_gotoff_in_data
=no
25453 if test $in_tree_gas = yes; then
25454 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25455 then gcc_cv_as_ix86_gotoff_in_data
=yes
25457 elif test x
$gcc_cv_as != x
; then
25462 .long .L0@GOTOFF' > conftest.s
25463 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25465 (eval $ac_try) 2>&5
25467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25468 test $ac_status = 0; }; }
25470 gcc_cv_as_ix86_gotoff_in_data
=yes
25472 echo "configure: failed program was" >&5
25475 rm -f conftest.o conftest.s
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25479 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25482 cat >>confdefs.h
<<_ACEOF
25483 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25488 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25489 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25490 $as_echo_n "(cached) " >&6
25492 gcc_cv_as_ix86_rep_lock_prefix
=no
25493 if test x
$gcc_cv_as != x
; then
25494 $as_echo 'rep movsl
25499 lock addl %edi, (%eax,%esi)
25500 lock orl $0, (%esp)' > conftest.s
25501 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25503 (eval $ac_try) 2>&5
25505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25506 test $ac_status = 0; }; }
25508 gcc_cv_as_ix86_rep_lock_prefix
=yes
25510 echo "configure: failed program was" >&5
25513 rm -f conftest.o conftest.s
25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25517 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25518 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25520 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25525 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25526 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25527 $as_echo_n "(cached) " >&6
25529 gcc_cv_as_ix86_ud2
=no
25530 if test x
$gcc_cv_as != x
; then
25531 $as_echo 'ud2' > conftest.s
25532 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25534 (eval $ac_try) 2>&5
25536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25537 test $ac_status = 0; }; }
25539 gcc_cv_as_ix86_ud2
=yes
25541 echo "configure: failed program was" >&5
25544 rm -f conftest.o conftest.s
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25548 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25549 if test $gcc_cv_as_ix86_ud2 = yes; then
25551 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25556 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25557 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25560 gcc_cv_as_ix86_tlsgdplt
=no
25561 if test x
$gcc_cv_as != x
; then
25562 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25563 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25565 (eval $ac_try) 2>&5
25567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25568 test $ac_status = 0; }; }
25570 if test x
$gcc_cv_ld != x \
25571 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25572 gcc_cv_as_ix86_tlsgdplt
=yes
25576 echo "configure: failed program was" >&5
25579 rm -f conftest.o conftest.s
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25583 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25584 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25586 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25591 .section .tdata,"aw'$tls_section_flag'",@progbits
25593 .section .text,"ax",@progbits
25594 call tls_ld@tlsldmplt'
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25596 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25597 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25598 $as_echo_n "(cached) " >&6
25600 gcc_cv_as_ix86_tlsldmplt
=no
25601 if test x
$gcc_cv_as != x
; then
25602 $as_echo "$conftest_s" > conftest.s
25603 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25605 (eval $ac_try) 2>&5
25607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25608 test $ac_status = 0; }; }
25610 if test x
$gcc_cv_ld != x \
25611 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25612 gcc_cv_as_ix86_tlsldmplt
=yes
25616 echo "configure: failed program was" >&5
25619 rm -f conftest.o conftest.s
25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25623 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25626 cat >>confdefs.h
<<_ACEOF
25627 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25631 # Enforce 32-bit output with gas and gld.
25632 if test x
$gas = xyes
; then
25633 as_ix86_tls_ldm_opt
="--32"
25635 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25636 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25637 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25639 ld_ix86_tls_ldm_opt
="-melf_i386"
25643 .section .text,"ax",@progbits
25645 .type _start, @function
25647 leal value@tlsldm(%ebx), %eax
25648 call ___tls_get_addr@plt
25650 .section .tdata,"aw'$tls_section_flag'",@progbits
25651 .type value, @object
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25654 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25655 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25656 $as_echo_n "(cached) " >&6
25658 gcc_cv_as_ix86_tlsldm
=no
25659 if test x
$gcc_cv_as != x
; then
25660 $as_echo "$conftest_s" > conftest.s
25661 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25663 (eval $ac_try) 2>&5
25665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25666 test $ac_status = 0; }; }
25668 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25669 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25670 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25671 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25672 gcc_cv_as_ix86_tlsldm
=yes
25677 echo "configure: failed program was" >&5
25680 rm -f conftest.o conftest.s
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25684 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25687 cat >>confdefs.h
<<_ACEOF
25688 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25696 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25697 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25698 $as_echo_n "(cached) " >&6
25700 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25701 if test $in_tree_gas = yes; then
25702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25703 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25705 elif test x
$gcc_cv_as != x
; then
25707 addl r15 = @ltoffx(x#), gp
25709 ld8.mov r16 = [r15], x#' > conftest.s
25710 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712 (eval $ac_try) 2>&5
25714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }; }
25717 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25719 echo "configure: failed program was" >&5
25722 rm -f conftest.o conftest.s
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25726 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25727 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25729 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25737 *-*-aix*) conftest_s
=' .machine "pwr5"
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25742 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25743 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25744 $as_echo_n "(cached) " >&6
25746 gcc_cv_as_machine_directive
=no
25747 if test x
$gcc_cv_as != x
; then
25748 $as_echo ' .machine ppc7400' > conftest.s
25749 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25751 (eval $ac_try) 2>&5
25753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25754 test $ac_status = 0; }; }
25756 gcc_cv_as_machine_directive
=yes
25758 echo "configure: failed program was" >&5
25761 rm -f conftest.o conftest.s
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25765 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25767 if test x
$gcc_cv_as_machine_directive != xyes
; then
25768 echo "*** This target requires an assembler supporting \".machine\"" >&2
25769 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25770 test x
$build = x
$target && exit 1
25774 *) conftest_s
=' .machine power4
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25780 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25781 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25782 $as_echo_n "(cached) " >&6
25784 gcc_cv_as_powerpc_mfcrf
=no
25785 if test $in_tree_gas = yes; then
25786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25787 then gcc_cv_as_powerpc_mfcrf
=yes
25789 elif test x
$gcc_cv_as != x
; then
25790 $as_echo "$conftest_s" > conftest.s
25791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25793 (eval $ac_try) 2>&5
25795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25796 test $ac_status = 0; }; }
25798 gcc_cv_as_powerpc_mfcrf
=yes
25800 echo "configure: failed program was" >&5
25803 rm -f conftest.o conftest.s
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25807 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25808 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25810 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25815 *-*-aix*) conftest_s
=' .machine "pwr5"
25818 *) conftest_s
=' .machine power5
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25824 $as_echo_n "checking assembler for popcntb support... " >&6; }
25825 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25828 gcc_cv_as_powerpc_popcntb
=no
25829 if test $in_tree_gas = yes; then
25830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25831 then gcc_cv_as_powerpc_popcntb
=yes
25833 elif test x
$gcc_cv_as != x
; then
25834 $as_echo "$conftest_s" > conftest.s
25835 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25837 (eval $ac_try) 2>&5
25839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25840 test $ac_status = 0; }; }
25842 gcc_cv_as_powerpc_popcntb
=yes
25844 echo "configure: failed program was" >&5
25847 rm -f conftest.o conftest.s
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25851 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25852 if test $gcc_cv_as_powerpc_popcntb = yes; then
25854 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25859 *-*-aix*) conftest_s
=' .machine "pwr5x"
25862 *) conftest_s
=' .machine power5
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25868 $as_echo_n "checking assembler for fp round support... " >&6; }
25869 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25870 $as_echo_n "(cached) " >&6
25872 gcc_cv_as_powerpc_fprnd
=no
25873 if test $in_tree_gas = yes; then
25874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25875 then gcc_cv_as_powerpc_fprnd
=yes
25877 elif test x
$gcc_cv_as != x
; then
25878 $as_echo "$conftest_s" > conftest.s
25879 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25881 (eval $ac_try) 2>&5
25883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25884 test $ac_status = 0; }; }
25886 gcc_cv_as_powerpc_fprnd
=yes
25888 echo "configure: failed program was" >&5
25891 rm -f conftest.o conftest.s
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25895 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25896 if test $gcc_cv_as_powerpc_fprnd = yes; then
25898 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25903 *-*-aix*) conftest_s
=' .machine "pwr6"
25906 *) conftest_s
=' .machine power6
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25912 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25913 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25914 $as_echo_n "(cached) " >&6
25916 gcc_cv_as_powerpc_mfpgpr
=no
25917 if test $in_tree_gas = yes; then
25918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25919 then gcc_cv_as_powerpc_mfpgpr
=yes
25921 elif test x
$gcc_cv_as != x
; then
25922 $as_echo "$conftest_s" > conftest.s
25923 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25925 (eval $ac_try) 2>&5
25927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25928 test $ac_status = 0; }; }
25930 gcc_cv_as_powerpc_mfpgpr
=yes
25932 echo "configure: failed program was" >&5
25935 rm -f conftest.o conftest.s
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25939 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25940 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25942 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25947 *-*-aix*) conftest_s
=' .csect .text[PR]
25949 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25953 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25954 *) conftest_s
=' .text
25956 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25960 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25961 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25962 $as_echo_n "(cached) " >&6
25964 gcc_cv_as_powerpc_rel16
=no
25965 if test $in_tree_gas = yes; then
25966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25967 then gcc_cv_as_powerpc_rel16
=yes
25969 elif test x
$gcc_cv_as != x
; then
25970 $as_echo "$conftest_s" > conftest.s
25971 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25973 (eval $ac_try) 2>&5
25975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25976 test $ac_status = 0; }; }
25978 gcc_cv_as_powerpc_rel16
=yes
25980 echo "configure: failed program was" >&5
25983 rm -f conftest.o conftest.s
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25987 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25988 if test $gcc_cv_as_powerpc_rel16 = yes; then
25990 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25995 *-*-aix*) conftest_s
=' .machine "pwr6"
25998 *) conftest_s
=' .machine power6
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
26004 $as_echo_n "checking assembler for compare bytes support... " >&6; }
26005 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
26006 $as_echo_n "(cached) " >&6
26008 gcc_cv_as_powerpc_cmpb
=no
26009 if test $in_tree_gas = yes; then
26010 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26011 then gcc_cv_as_powerpc_cmpb
=yes
26013 elif test x
$gcc_cv_as != x
; then
26014 $as_echo "$conftest_s" > conftest.s
26015 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017 (eval $ac_try) 2>&5
26019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020 test $ac_status = 0; }; }
26022 gcc_cv_as_powerpc_cmpb
=yes
26024 echo "configure: failed program was" >&5
26027 rm -f conftest.o conftest.s
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
26031 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
26032 if test $gcc_cv_as_powerpc_cmpb = yes; then
26034 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
26039 *-*-aix*) conftest_s
=' .machine "pwr6"
26042 *) conftest_s
=' .machine power6
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
26048 $as_echo_n "checking assembler for decimal float support... " >&6; }
26049 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
26050 $as_echo_n "(cached) " >&6
26052 gcc_cv_as_powerpc_dfp
=no
26053 if test $in_tree_gas = yes; then
26054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26055 then gcc_cv_as_powerpc_dfp
=yes
26057 elif test x
$gcc_cv_as != x
; then
26058 $as_echo "$conftest_s" > conftest.s
26059 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26061 (eval $ac_try) 2>&5
26063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26064 test $ac_status = 0; }; }
26066 gcc_cv_as_powerpc_dfp
=yes
26068 echo "configure: failed program was" >&5
26071 rm -f conftest.o conftest.s
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
26075 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
26076 if test $gcc_cv_as_powerpc_dfp = yes; then
26078 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
26083 *-*-aix*) conftest_s
=' .machine "pwr7"
26086 *) conftest_s
=' .machine power7
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
26092 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
26093 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
26094 $as_echo_n "(cached) " >&6
26096 gcc_cv_as_powerpc_vsx
=no
26097 if test $in_tree_gas = yes; then
26098 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26099 then gcc_cv_as_powerpc_vsx
=yes
26101 elif test x
$gcc_cv_as != x
; then
26102 $as_echo "$conftest_s" > conftest.s
26103 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26105 (eval $ac_try) 2>&5
26107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26108 test $ac_status = 0; }; }
26110 gcc_cv_as_powerpc_vsx
=yes
26112 echo "configure: failed program was" >&5
26115 rm -f conftest.o conftest.s
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
26119 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
26120 if test $gcc_cv_as_powerpc_vsx = yes; then
26122 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
26127 *-*-aix*) conftest_s
=' .machine "pwr7"
26130 *) conftest_s
=' .machine power7
26135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
26136 $as_echo_n "checking assembler for popcntd support... " >&6; }
26137 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
26138 $as_echo_n "(cached) " >&6
26140 gcc_cv_as_powerpc_popcntd
=no
26141 if test $in_tree_gas = yes; then
26142 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26143 then gcc_cv_as_powerpc_popcntd
=yes
26145 elif test x
$gcc_cv_as != x
; then
26146 $as_echo "$conftest_s" > conftest.s
26147 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26149 (eval $ac_try) 2>&5
26151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26152 test $ac_status = 0; }; }
26154 gcc_cv_as_powerpc_popcntd
=yes
26156 echo "configure: failed program was" >&5
26159 rm -f conftest.o conftest.s
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
26163 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
26164 if test $gcc_cv_as_powerpc_popcntd = yes; then
26166 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
26171 *-*-aix*) conftest_s
=' .machine "pwr8"
26172 .csect .text[PR]';;
26173 *) conftest_s
=' .machine power8
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
26178 $as_echo_n "checking assembler for power8 support... " >&6; }
26179 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
26180 $as_echo_n "(cached) " >&6
26182 gcc_cv_as_powerpc_power8
=no
26183 if test $in_tree_gas = yes; then
26184 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26185 then gcc_cv_as_powerpc_power8
=yes
26187 elif test x
$gcc_cv_as != x
; then
26188 $as_echo "$conftest_s" > conftest.s
26189 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26191 (eval $ac_try) 2>&5
26193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26194 test $ac_status = 0; }; }
26196 gcc_cv_as_powerpc_power8
=yes
26198 echo "configure: failed program was" >&5
26201 rm -f conftest.o conftest.s
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
26205 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
26206 if test $gcc_cv_as_powerpc_power8 = yes; then
26208 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
26213 *-*-aix*) conftest_s
=' .csect .text[PR]
26215 *) conftest_s
=' .text
26219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
26220 $as_echo_n "checking assembler for lwsync support... " >&6; }
26221 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
26222 $as_echo_n "(cached) " >&6
26224 gcc_cv_as_powerpc_lwsync
=no
26225 if test $in_tree_gas = yes; then
26226 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
26227 then gcc_cv_as_powerpc_lwsync
=yes
26229 elif test x
$gcc_cv_as != x
; then
26230 $as_echo "$conftest_s" > conftest.s
26231 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26233 (eval $ac_try) 2>&5
26235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26236 test $ac_status = 0; }; }
26238 gcc_cv_as_powerpc_lwsync
=yes
26240 echo "configure: failed program was" >&5
26243 rm -f conftest.o conftest.s
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
26247 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
26248 if test $gcc_cv_as_powerpc_lwsync = yes; then
26250 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
26255 *-*-aix*) conftest_s
=' .machine "476"
26258 *) conftest_s
=' .machine "476"
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
26264 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
26265 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
26266 $as_echo_n "(cached) " >&6
26268 gcc_cv_as_powerpc_dci
=no
26269 if test $in_tree_gas = yes; then
26270 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
26271 then gcc_cv_as_powerpc_dci
=yes
26273 elif test x
$gcc_cv_as != x
; then
26274 $as_echo "$conftest_s" > conftest.s
26275 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
26276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26277 (eval $ac_try) 2>&5
26279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26280 test $ac_status = 0; }; }
26282 gcc_cv_as_powerpc_dci
=yes
26284 echo "configure: failed program was" >&5
26287 rm -f conftest.o conftest.s
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
26291 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
26292 if test $gcc_cv_as_powerpc_dci = yes; then
26294 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26299 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26300 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
26301 $as_echo_n "(cached) " >&6
26303 gcc_cv_as_powerpc_gnu_attribute
=no
26304 if test $in_tree_gas = yes; then
26305 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26306 then gcc_cv_as_powerpc_gnu_attribute
=yes
26308 elif test x
$gcc_cv_as != x
; then
26309 $as_echo '.gnu_attribute 4,1' > conftest.s
26310 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26312 (eval $ac_try) 2>&5
26314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26315 test $ac_status = 0; }; }
26317 gcc_cv_as_powerpc_gnu_attribute
=yes
26319 echo "configure: failed program was" >&5
26322 rm -f conftest.o conftest.s
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
26326 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
26327 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
26329 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
26334 $as_echo_n "checking assembler for tls marker support... " >&6; }
26335 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
26336 $as_echo_n "(cached) " >&6
26338 gcc_cv_as_powerpc_tls_markers
=no
26339 if test $in_tree_gas = yes; then
26340 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
26341 then gcc_cv_as_powerpc_tls_markers
=yes
26343 elif test x
$gcc_cv_as != x
; then
26344 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
26345 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26347 (eval $ac_try) 2>&5
26349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26350 test $ac_status = 0; }; }
26352 gcc_cv_as_powerpc_tls_markers
=yes
26354 echo "configure: failed program was" >&5
26357 rm -f conftest.o conftest.s
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
26361 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
26362 if test $gcc_cv_as_powerpc_tls_markers = yes; then
26364 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
26371 $as_echo_n "checking assembler for .ref support... " >&6; }
26372 if test "${gcc_cv_as_aix_ref+set}" = set; then :
26373 $as_echo_n "(cached) " >&6
26375 gcc_cv_as_aix_ref
=no
26376 if test $in_tree_gas = yes; then
26377 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
26378 then gcc_cv_as_aix_ref
=yes
26380 elif test x
$gcc_cv_as != x
; then
26381 $as_echo ' .csect stuff[rw]
26387 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26389 (eval $ac_try) 2>&5
26391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26392 test $ac_status = 0; }; }
26394 gcc_cv_as_aix_ref
=yes
26396 echo "configure: failed program was" >&5
26399 rm -f conftest.o conftest.s
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26403 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26404 if test $gcc_cv_as_aix_ref = yes; then
26406 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26415 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26416 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26417 $as_echo_n "(cached) " >&6
26419 gcc_cv_as_mips_explicit_relocs
=no
26420 if test $in_tree_gas = yes; then
26421 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26422 then gcc_cv_as_mips_explicit_relocs
=yes
26424 elif test x
$gcc_cv_as != x
; then
26425 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26426 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26428 (eval $ac_try) 2>&5
26430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26431 test $ac_status = 0; }; }
26433 gcc_cv_as_mips_explicit_relocs
=yes
26435 echo "configure: failed program was" >&5
26438 rm -f conftest.o conftest.s
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26442 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26443 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26444 if test x
$target_cpu_default = x
26445 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26446 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26450 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26451 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26452 $as_echo_n "(cached) " >&6
26454 gcc_cv_as_mips_no_shared
=no
26455 if test $in_tree_gas = yes; then
26456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26457 then gcc_cv_as_mips_no_shared
=yes
26459 elif test x
$gcc_cv_as != x
; then
26460 $as_echo 'nop' > conftest.s
26461 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26463 (eval $ac_try) 2>&5
26465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26466 test $ac_status = 0; }; }
26468 gcc_cv_as_mips_no_shared
=yes
26470 echo "configure: failed program was" >&5
26473 rm -f conftest.o conftest.s
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26477 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26478 if test $gcc_cv_as_mips_no_shared = yes; then
26480 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26485 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26486 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26487 $as_echo_n "(cached) " >&6
26489 gcc_cv_as_mips_gnu_attribute
=no
26490 if test $in_tree_gas = yes; then
26491 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26492 then gcc_cv_as_mips_gnu_attribute
=yes
26494 elif test x
$gcc_cv_as != x
; then
26495 $as_echo '.gnu_attribute 4,1' > conftest.s
26496 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26498 (eval $ac_try) 2>&5
26500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26501 test $ac_status = 0; }; }
26503 gcc_cv_as_mips_gnu_attribute
=yes
26505 echo "configure: failed program was" >&5
26508 rm -f conftest.o conftest.s
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26512 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26513 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26515 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .module support" >&5
26520 $as_echo_n "checking assembler for .module support... " >&6; }
26521 if test "${gcc_cv_as_mips_dot_module+set}" = set; then :
26522 $as_echo_n "(cached) " >&6
26524 gcc_cv_as_mips_dot_module
=no
26525 if test x
$gcc_cv_as != x
; then
26526 $as_echo '.module mips2
26527 .module fp=xx' > conftest.s
26528 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -32 -o conftest.o conftest.s >&5'
26529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26530 (eval $ac_try) 2>&5
26532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26533 test $ac_status = 0; }; }
26535 gcc_cv_as_mips_dot_module
=yes
26537 echo "configure: failed program was" >&5
26540 rm -f conftest.o conftest.s
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dot_module" >&5
26544 $as_echo "$gcc_cv_as_mips_dot_module" >&6; }
26545 if test $gcc_cv_as_mips_dot_module = yes; then
26547 $as_echo "#define HAVE_AS_DOT_MODULE 1" >>confdefs.h
26550 if test x
$gcc_cv_as_mips_dot_module = xno \
26551 && test x
$with_fp_32 != x
; then
26552 as_fn_error
"Requesting --with-fp-32= requires assembler support for .module." "$LINENO" 5
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26556 $as_echo_n "checking assembler for .micromips support... " >&6; }
26557 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26558 $as_echo_n "(cached) " >&6
26560 gcc_cv_as_micromips_support
=no
26561 if test x
$gcc_cv_as != x
; then
26562 $as_echo '.set micromips' > conftest.s
26563 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26565 (eval $ac_try) 2>&5
26567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26568 test $ac_status = 0; }; }
26570 gcc_cv_as_micromips_support
=yes
26572 echo "configure: failed program was" >&5
26575 rm -f conftest.o conftest.s
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26579 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26580 if test $gcc_cv_as_micromips_support = yes; then
26582 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26587 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26588 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26589 $as_echo_n "(cached) " >&6
26591 gcc_cv_as_mips_dtprelword
=no
26592 if test $in_tree_gas = yes; then
26593 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26594 then gcc_cv_as_mips_dtprelword
=yes
26596 elif test x
$gcc_cv_as != x
; then
26597 $as_echo '.section .tdata,"awT",@progbits
26601 .dtprelword x+0x8000' > conftest.s
26602 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26604 (eval $ac_try) 2>&5
26606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26607 test $ac_status = 0; }; }
26609 gcc_cv_as_mips_dtprelword
=yes
26611 echo "configure: failed program was" >&5
26614 rm -f conftest.o conftest.s
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26618 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26619 if test $gcc_cv_as_mips_dtprelword = yes; then
26621 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26626 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26627 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26628 $as_echo_n "(cached) " >&6
26630 gcc_cv_as_mips_dspr1_mult
=no
26631 if test x
$gcc_cv_as != x
; then
26632 $as_echo ' .set mips32r2
26640 multu $ac3,$4,$5' > conftest.s
26641 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26643 (eval $ac_try) 2>&5
26645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26646 test $ac_status = 0; }; }
26648 gcc_cv_as_mips_dspr1_mult
=yes
26650 echo "configure: failed program was" >&5
26653 rm -f conftest.o conftest.s
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26657 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26658 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26660 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26665 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26666 gcc_cv_as_ld_jalr_reloc
=no
26667 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26668 if test $in_tree_ld = yes ; then
26669 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 \
26670 && test $in_tree_ld_is_elf = yes; then
26671 gcc_cv_as_ld_jalr_reloc
=yes
26673 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26674 echo ' .ent x' > conftest.s
26675 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26676 echo ' lw $25,%call16(y)($28)' >> conftest.s
26677 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26678 echo '1: jalr $25' >> conftest.s
26679 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26680 echo '1: jalr $25' >> conftest.s
26681 echo ' .end x' >> conftest.s
26682 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26683 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26684 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26685 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26686 gcc_cv_as_ld_jalr_reloc
=yes
26692 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26693 if test x
$target_cpu_default = x
; then
26694 target_cpu_default
=MASK_RELAX_PIC_CALLS
26696 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26700 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26703 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26704 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26705 $as_echo_n "(cached) " >&6
26707 gcc_cv_ld_mips_personality_relaxation
=no
26708 if test $in_tree_ld = yes ; then
26709 if test "$gcc_cv_gld_major_version" -eq 2 \
26710 -a "$gcc_cv_gld_minor_version" -ge 21 \
26711 -o "$gcc_cv_gld_major_version" -gt 2; then
26712 gcc_cv_ld_mips_personality_relaxation
=yes
26714 elif test x
$gcc_cv_as != x \
26715 -a x
$gcc_cv_ld != x \
26716 -a x
$gcc_cv_readelf != x
; then
26717 cat > conftest.s
<<EOF
26719 .cfi_personality 0x80,indirect_ptr
26726 .section .data,"aw",@progbits
26730 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26731 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26732 if $gcc_cv_readelf -d conftest
2>&1 \
26733 |
grep TEXTREL
> /dev
/null
2>&1; then
26735 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26736 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26739 gcc_cv_ld_mips_personality_relaxation
=yes
26743 rm -f conftest.s conftest.o conftest
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26746 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26747 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26749 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26754 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26755 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26756 $as_echo_n "(cached) " >&6
26758 gcc_cv_as_mips_nan
=no
26759 if test x
$gcc_cv_as != x
; then
26760 $as_echo '' > conftest.s
26761 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26763 (eval $ac_try) 2>&5
26765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26766 test $ac_status = 0; }; }
26768 gcc_cv_as_mips_nan
=yes
26770 echo "configure: failed program was" >&5
26773 rm -f conftest.o conftest.s
26776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26777 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26778 if test $gcc_cv_as_mips_nan = yes; then
26780 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26783 if test x
$gcc_cv_as_mips_nan = xno \
26784 && test x
$with_nan != x
; then
26785 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26790 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26791 if test "${gcc_cv_as_s390_gnu_attribute+set}" = set; then :
26792 $as_echo_n "(cached) " >&6
26794 gcc_cv_as_s390_gnu_attribute
=no
26795 if test $in_tree_gas = yes; then
26796 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26797 then gcc_cv_as_s390_gnu_attribute
=yes
26799 elif test x
$gcc_cv_as != x
; then
26800 $as_echo '.gnu_attribute 8,1' > conftest.s
26801 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26803 (eval $ac_try) 2>&5
26805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26806 test $ac_status = 0; }; }
26808 gcc_cv_as_s390_gnu_attribute
=yes
26810 echo "configure: failed program was" >&5
26813 rm -f conftest.o conftest.s
26816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_s390_gnu_attribute" >&5
26817 $as_echo "$gcc_cv_as_s390_gnu_attribute" >&6; }
26818 if test $gcc_cv_as_s390_gnu_attribute = yes; then
26820 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26826 # Mips and HP-UX need the GNU assembler.
26827 # Linux on IA64 might be able to use the Intel assembler.
26830 mips
*-*-* |
*-*-hpux* )
26831 if test x
$gas_flag = xyes \
26832 ||
test x
"$host" != x
"$build" \
26833 ||
test ! -x "$gcc_cv_as" \
26834 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26837 echo "*** This configuration requires the GNU assembler" >&2
26843 # ??? Not all targets support dwarf2 debug_line, even within a version
26844 # of gas. Moreover, we need to emit a valid instruction to trigger any
26845 # info to the output file. So, as supported targets are added to gas 2.11,
26846 # add some instruction here to (also) show we expect this might work.
26847 # ??? Once 2.11 is released, probably need to add first known working
26848 # version to the per-target configury.
26849 case "$cpu_type" in
26850 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26851 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26852 | visium | xstormy16 | xtensa
)
26862 if test x
"$insn" != x
; then
26864 .file 1 \"conftest.s\"
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26868 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26869 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26870 $as_echo_n "(cached) " >&6
26872 gcc_cv_as_dwarf2_debug_line
=no
26873 if test $in_tree_gas = yes; then
26874 if test $in_tree_gas_is_elf = yes \
26875 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26876 then gcc_cv_as_dwarf2_debug_line
=yes
26878 elif test x
$gcc_cv_as != x
; then
26879 $as_echo "$conftest_s" > conftest.s
26880 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26882 (eval $ac_try) 2>&5
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; }
26887 if test x
$gcc_cv_objdump != x \
26888 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26889 |
grep debug_line
> /dev
/null
2>&1; then
26890 gcc_cv_as_dwarf2_debug_line
=yes
26893 echo "configure: failed program was" >&5
26896 rm -f conftest.o conftest.s
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26900 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26903 # The .debug_line file table must be in the exact order that
26904 # we specified the files, since these indices are also used
26905 # by DW_AT_decl_file. Approximate this test by testing if
26906 # the assembler bitches if the same index is assigned twice.
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26908 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26909 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26910 $as_echo_n "(cached) " >&6
26912 gcc_cv_as_dwarf2_file_buggy
=no
26913 if test x
$gcc_cv_as != x
; then
26914 $as_echo ' .file 1 "foo.s"
26915 .file 1 "bar.s"' > conftest.s
26916 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26918 (eval $ac_try) 2>&5
26920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26921 test $ac_status = 0; }; }
26923 gcc_cv_as_dwarf2_file_buggy
=yes
26925 echo "configure: failed program was" >&5
26928 rm -f conftest.o conftest.s
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26932 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26935 if test $gcc_cv_as_dwarf2_debug_line = yes \
26936 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26938 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26943 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26944 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26945 $as_echo_n "(cached) " >&6
26947 gcc_cv_as_gdwarf2_flag
=no
26948 if test $in_tree_gas = yes; then
26949 if test $in_tree_gas_is_elf = yes \
26950 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26951 then gcc_cv_as_gdwarf2_flag
=yes
26953 elif test x
$gcc_cv_as != x
; then
26954 $as_echo "$insn" > conftest.s
26955 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26957 (eval $ac_try) 2>&5
26959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26960 test $ac_status = 0; }; }
26962 gcc_cv_as_gdwarf2_flag
=yes
26964 echo "configure: failed program was" >&5
26967 rm -f conftest.o conftest.s
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26971 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26972 if test $gcc_cv_as_gdwarf2_flag = yes; then
26974 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26979 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26980 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26981 $as_echo_n "(cached) " >&6
26983 gcc_cv_as_gstabs_flag
=no
26984 if test $in_tree_gas = yes; then
26985 if test $in_tree_gas_is_elf = yes \
26986 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26987 then gcc_cv_as_gstabs_flag
=yes
26989 elif test x
$gcc_cv_as != x
; then
26990 $as_echo "$insn" > conftest.s
26991 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26993 (eval $ac_try) 2>&5
26995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26996 test $ac_status = 0; }; }
26998 gcc_cv_as_gstabs_flag
=yes
27000 echo "configure: failed program was" >&5
27003 rm -f conftest.o conftest.s
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
27007 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
27008 if test $gcc_cv_as_gstabs_flag = yes; then
27010 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
27015 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
27016 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
27017 $as_echo_n "(cached) " >&6
27019 gcc_cv_as_debug_prefix_map_flag
=no
27020 if test $in_tree_gas = yes; then
27021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
27022 then gcc_cv_as_debug_prefix_map_flag
=yes
27024 elif test x
$gcc_cv_as != x
; then
27025 $as_echo "$insn" > conftest.s
27026 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
27027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27028 (eval $ac_try) 2>&5
27030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27031 test $ac_status = 0; }; }
27033 gcc_cv_as_debug_prefix_map_flag
=yes
27035 echo "configure: failed program was" >&5
27038 rm -f conftest.o conftest.s
27041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
27042 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
27043 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
27045 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
27051 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
27052 if test "${gcc_cv_as_compress_debug+set}" = set; then :
27053 $as_echo_n "(cached) " >&6
27055 gcc_cv_as_compress_debug
=no
27056 if test x
$gcc_cv_as != x
; then
27057 $as_echo '' > conftest.s
27058 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
27059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27060 (eval $ac_try) 2>&5
27062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27063 test $ac_status = 0; }; }
27065 # gas compiled without zlib cannot compress debug sections and warns
27066 # about it, but still exits successfully. So check for this, too.
27067 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
27069 gcc_cv_as_compress_debug
=0
27070 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
27072 gcc_cv_as_compress_debug
=1
27073 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
27074 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
27076 gcc_cv_as_compress_debug
=0
27077 # FIXME: Future gas versions will support ELF gABI style via
27078 # --compress-debug-sections[=type].
27081 echo "configure: failed program was" >&5
27084 rm -f conftest.o conftest.s
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
27088 $as_echo "$gcc_cv_as_compress_debug" >&6; }
27091 cat >>confdefs.h
<<_ACEOF
27092 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
27096 cat >>confdefs.h
<<_ACEOF
27097 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
27101 cat >>confdefs.h
<<_ACEOF
27102 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
27107 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
27108 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
27109 $as_echo_n "(cached) " >&6
27111 gcc_cv_as_lcomm_with_alignment
=no
27112 if test x
$gcc_cv_as != x
; then
27113 $as_echo '.lcomm bar,4,16' > conftest.s
27114 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27116 (eval $ac_try) 2>&5
27118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27119 test $ac_status = 0; }; }
27121 gcc_cv_as_lcomm_with_alignment
=yes
27123 echo "configure: failed program was" >&5
27126 rm -f conftest.o conftest.s
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
27130 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
27131 if test $gcc_cv_as_lcomm_with_alignment = yes; then
27133 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
27137 if test x
$with_sysroot = x
&& test x
$host = x
$target \
27138 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
27139 && test "$prefix" != "NONE"; then
27141 cat >>confdefs.h
<<_ACEOF
27142 #define PREFIX_INCLUDE_DIR "$prefix/include"
27147 # Determine the version of glibc, if any, used on the target.
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
27149 $as_echo_n "checking for target glibc version... " >&6; }
27151 # Check whether --with-glibc-version was given.
27152 if test "${with_glibc_version+set}" = set; then :
27153 withval
=$with_glibc_version;
27154 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
27155 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
27156 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
27158 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
27162 glibc_version_major
=0
27163 glibc_version_minor
=0
27164 if test -f $target_header_dir/features.h \
27165 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
27166 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
27167 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
27168 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
27173 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
27175 cat >>confdefs.h
<<_ACEOF
27176 #define TARGET_GLIBC_MAJOR $glibc_version_major
27180 cat >>confdefs.h
<<_ACEOF
27181 #define TARGET_GLIBC_MINOR $glibc_version_minor
27185 # Check whether --enable-gnu-unique-object was given.
27186 if test "${enable_gnu_unique_object+set}" = set; then :
27187 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
27189 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
27190 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
27194 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
27195 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
27196 $as_echo_n "(cached) " >&6
27198 gcc_cv_as_gnu_unique_object
=no
27199 if test $in_tree_gas = yes; then
27200 if test $in_tree_gas_is_elf = yes \
27201 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
27202 then gcc_cv_as_gnu_unique_object
=yes
27204 elif test x
$gcc_cv_as != x
; then
27205 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
27206 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
27207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27208 (eval $ac_try) 2>&5
27210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27211 test $ac_status = 0; }; }
27213 gcc_cv_as_gnu_unique_object
=yes
27215 echo "configure: failed program was" >&5
27218 rm -f conftest.o conftest.s
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
27222 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
27223 if test $gcc_cv_as_gnu_unique_object = yes; then
27224 # We need to unquote above to to use the definition from config.gcc.
27225 # Also check for ld.so support, i.e. glibc 2.11 or higher.
27227 if test $glibc_version_major -gt 2 \
27228 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
27229 enable_gnu_unique_object
=yes
27235 if test x
$enable_gnu_unique_object = xyes
; then
27237 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
27242 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
27243 if test "${gcc_cv_as_line_zero+set}" = set; then :
27244 $as_echo_n "(cached) " >&6
27246 gcc_cv_as_line_zero
=no
27247 if test $in_tree_gas = yes; then
27248 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
27249 then gcc_cv_as_line_zero
=yes
27251 elif test "x$gcc_cv_as" != x
; then
27252 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
27253 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; } &&
27259 test "x`cat conftest.out`" = x
27261 gcc_cv_as_line_zero
=yes
27263 echo "configure: failed program was" >&5
27265 echo "configure: error output was" >&5
27266 cat conftest.out
>&5
27268 rm -f conftest.o conftest.s conftest.out
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
27272 $as_echo "$gcc_cv_as_line_zero" >&6; }
27273 if test "x$gcc_cv_as_line_zero" = xyes
; then
27275 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
27280 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
27281 gcc_cv_ld_eh_frame_hdr
=no
27282 if test $in_tree_ld = yes ; then
27283 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 \
27284 && test $in_tree_ld_is_elf = yes; then
27285 gcc_cv_ld_eh_frame_hdr
=yes
27287 elif test x
$gcc_cv_ld != x
; then
27288 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27289 # Check if linker supports --eh-frame-hdr option
27290 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
27291 gcc_cv_ld_eh_frame_hdr
=yes
27296 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
27297 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
27298 gcc_cv_ld_eh_frame_hdr
=yes
27305 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
27307 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
27311 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
27314 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
27315 gcc_cv_ld_eh_frame_ciev3
=no
27316 if test $in_tree_ld = yes ; then
27317 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 \
27318 && test $in_tree_ld_is_elf = yes; then
27319 gcc_cv_ld_eh_frame_ciev3
=yes
27321 elif test x
$gcc_cv_ld != x
; then
27322 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27323 gcc_cv_ld_eh_frame_ciev3
=yes
27324 if test 0"$ld_date" -lt 20040513; then
27325 if test -n "$ld_date"; then
27326 # If there was date string, but was earlier than 2004-05-13, fail
27327 gcc_cv_ld_eh_frame_ciev3
=no
27328 elif test "$ld_vers_major" -lt 2; then
27329 gcc_cv_ld_eh_frame_ciev3
=no
27330 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
27331 gcc_cv_ld_eh_frame_ciev3
=no
27337 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
27338 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
27339 gcc_cv_ld_eh_frame_ciev3
=yes
27346 cat >>confdefs.h
<<_ACEOF
27347 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
27351 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
27354 $as_echo_n "checking linker position independent executable support... " >&6; }
27356 if test $in_tree_ld = yes ; then
27357 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 \
27358 && test $in_tree_ld_is_elf = yes; then
27361 elif test x
$gcc_cv_ld != x
; then
27362 # Check if linker supports -pie option
27363 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
27367 if test x
"$gcc_cv_ld_pie" = xyes
; then
27369 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
27373 $as_echo "$gcc_cv_ld_pie" >&6; }
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PIE support with copy reloc" >&5
27376 $as_echo_n "checking linker PIE support with copy reloc... " >&6; }
27377 gcc_cv_ld_pie_copyreloc
=no
27378 if test $gcc_cv_ld_pie = yes ; then
27379 if test $in_tree_ld = yes ; then
27380 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
27381 gcc_cv_ld_pie_copyreloc
=yes
27383 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27384 # Check if linker supports -pie option with copy reloc
27386 i?
86-*-linux* | x86_64-
*-linux*)
27387 cat > conftest1.s
<<EOF
27390 .type a_glob, @object
27395 cat > conftest2.s
<<EOF
27398 .type main, @function
27400 movl %eax, a_glob(%rip)
27403 .section .data.rel,"aw",@progbits
27408 if $gcc_cv_as --64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27409 && $gcc_cv_ld -shared -melf_x86_64 -o conftest1.so conftest1.o
> /dev
/null
2>&1 \
27410 && $gcc_cv_as --64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27411 && $gcc_cv_ld -pie -melf_x86_64 -o conftest conftest2.o conftest1.so
> /dev
/null
2>&1; then
27412 gcc_cv_ld_pie_copyreloc
=yes
27414 rm -f conftest conftest1.so conftest1.o conftest2.o conftest1.s conftest2.s
27420 cat >>confdefs.h
<<_ACEOF
27421 #define HAVE_LD_PIE_COPYRELOC `if test x"$gcc_cv_ld_pie_copyreloc" = xyes; then echo 1; else echo 0; fi`
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie_copyreloc" >&5
27425 $as_echo "$gcc_cv_ld_pie_copyreloc" >&6; }
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
27428 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
27429 gcc_cv_ld_eh_gc_sections
=no
27430 if test $in_tree_ld = yes ; then
27431 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 \
27432 && test $in_tree_ld_is_elf = yes; then
27433 gcc_cv_ld_eh_gc_sections
=yes
27435 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
27436 cat > conftest.s
<<EOF
27439 .type _start, @function
27442 .size _start, .-_start
27443 .section .text.foo,"ax",@progbits
27444 .type foo, @function
27448 .section .gcc_except_table.foo,"a",@progbits
27451 .section .eh_frame,"a",@progbits
27454 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27455 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27456 |
grep "gc-sections option ignored" > /dev
/null
; then
27457 gcc_cv_ld_eh_gc_sections
=no
27458 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27459 |
grep gcc_except_table
> /dev
/null
; then
27460 gcc_cv_ld_eh_gc_sections
=yes
27461 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
27462 if test x
$gcc_cv_as_comdat_group != xyes
; then
27463 gcc_cv_ld_eh_gc_sections
=no
27464 cat > conftest.s
<<EOF
27467 .type _start, @function
27470 .size _start, .-_start
27471 .section .gnu.linkonce.t.foo,"ax",@progbits
27472 .type foo, @function
27476 .section .gcc_except_table.foo,"a",@progbits
27479 .section .eh_frame,"a",@progbits
27482 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27483 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27484 |
grep "gc-sections option ignored" > /dev
/null
; then
27485 gcc_cv_ld_eh_gc_sections
=no
27486 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27487 |
grep gcc_except_table
> /dev
/null
; then
27488 gcc_cv_ld_eh_gc_sections
=yes
27494 rm -f conftest.s conftest.o conftest
27498 # ??? This apparently exposes a binutils bug with PC-relative relocations.
27499 gcc_cv_ld_eh_gc_sections
=no
27502 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
27504 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
27508 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
27510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
27511 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
27512 gcc_cv_ld_eh_gc_sections_bug
=no
27513 if test $in_tree_ld = yes ; then
27514 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 \
27515 && test $in_tree_ld_is_elf = yes; then
27516 gcc_cv_ld_eh_gc_sections_bug
=yes
27518 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
27519 gcc_cv_ld_eh_gc_sections_bug
=yes
27520 cat > conftest.s
<<EOF
27523 .type _start, @function
27526 .size _start, .-_start
27527 .section .text.startup.foo,"ax",@progbits
27528 .type foo, @function
27532 .section .gcc_except_table.foo,"a",@progbits
27535 .section .eh_frame,"a",@progbits
27538 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27539 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27540 |
grep "gc-sections option ignored" > /dev
/null
; then
27542 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27543 |
grep gcc_except_table
> /dev
/null
; then
27544 gcc_cv_ld_eh_gc_sections_bug
=no
27547 rm -f conftest.s conftest.o conftest
27549 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27551 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27555 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27558 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27559 # gold/gld support compressed debug sections since binutils 2.19/2.21
27560 if test $in_tree_ld = yes ; then
27561 gcc_cv_ld_compress_debug
=0
27562 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 \
27563 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27564 gcc_cv_ld_compress_debug
=2
27565 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27566 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 \
27567 && test $in_tree_ld_is_elf = yes; then
27568 gcc_cv_ld_compress_debug
=1
27570 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27571 gcc_cv_ld_compress_debug
=1
27572 if test 0"$ld_date" -lt 20050308; then
27573 if test -n "$ld_date"; then
27574 # If there was date string, but was earlier than 2005-03-08, fail
27575 gcc_cv_ld_compress_debug
=0
27576 elif test "$ld_vers_major" -lt 2; then
27577 gcc_cv_ld_compress_debug
=0
27578 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27579 gcc_cv_ld_compress_debug
=0
27582 if test $ld_is_gold = yes; then
27583 gcc_cv_ld_compress_debug
=2
27584 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27587 case "${target}" in
27589 # Introduced in Solaris 11.2.
27590 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27591 gcc_cv_ld_compress_debug
=3
27592 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27594 gcc_cv_ld_compress_debug
=0
27598 # Assume linkers other than GNU ld don't support compessed debug
27600 gcc_cv_ld_compress_debug
=0
27605 cat >>confdefs.h
<<_ACEOF
27606 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27610 cat >>confdefs.h
<<_ACEOF
27611 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27615 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27622 $as_echo_n "checking linker --as-needed support... " >&6; }
27623 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27624 $as_echo_n "(cached) " >&6
27626 gcc_cv_ld_as_needed
=no
27627 gcc_cv_ld_as_needed_option
='--as-needed'
27628 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27629 if test $in_tree_ld = yes ; then
27630 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 \
27631 && test $in_tree_ld_is_elf = yes; then
27632 gcc_cv_ld_as_needed
=yes
27634 elif test x
$gcc_cv_ld != x
; then
27635 # Check if linker supports --as-needed and --no-as-needed options
27636 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27637 gcc_cv_ld_as_needed
=yes
27640 # Solaris 2 ld always supports -z ignore/-z record.
27642 gcc_cv_ld_as_needed
=yes
27643 gcc_cv_ld_as_needed_option
="-z ignore"
27644 gcc_cv_ld_no_as_needed_option
="-z record"
27649 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27650 # dl_iterate_phdr, i.e. since Solaris 11.
27652 *-*-solaris2.1
[1-9]*)
27654 i?
86-*-* | x86_64-
*-*)
27655 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27656 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27657 gcc_cv_ld_as_needed
=no
27663 gcc_cv_ld_as_needed
=no
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27669 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27670 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27672 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27675 cat >>confdefs.h
<<_ACEOF
27676 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27680 cat >>confdefs.h
<<_ACEOF
27681 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27687 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27688 saved_LDFLAGS
="$LDFLAGS"
27689 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27690 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27692 /* end confdefs.h. */
27693 int main(void) {return 0;}
27695 if ac_fn_cxx_try_link
"$LINENO"; then :
27696 gcc_cv_ld_clearcap
=yes; break
27698 gcc_cv_ld_clearcap
=no
27700 rm -f core conftest.err conftest.
$ac_objext \
27701 conftest
$ac_exeext conftest.
$ac_ext
27703 LDFLAGS
="$saved_LDFLAGS"
27704 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27706 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27708 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27712 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27714 case "$target:$tm_file" in
27715 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27718 emul_name
="-melf64lppc"
27721 emul_name
="-melf64ppc"
27724 emul_name
="-melf64ppc_fbsd"
27727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27728 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27729 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27730 $as_echo_n "(cached) " >&6
27732 gcc_cv_ld_no_dot_syms
=no
27733 if test x
"$ld_is_gold" = xyes
; then
27734 gcc_cv_ld_no_dot_syms
=yes
27735 elif test $in_tree_ld = yes ; then
27736 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
27737 gcc_cv_ld_no_dot_syms
=yes
27739 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27740 cat > conftest1.s
<<EOF
27744 cat > conftest2.s
<<EOF
27745 .section ".opd","aw"
27748 .type foo,@function
27750 .quad .LEfoo,.TOC.@tocbase,0
27756 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27757 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27758 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27759 gcc_cv_ld_no_dot_syms
=yes
27761 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27766 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27767 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27769 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27774 $as_echo_n "checking linker large toc support... " >&6; }
27775 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27776 $as_echo_n "(cached) " >&6
27778 gcc_cv_ld_large_toc
=no
27779 if test x
"$ld_is_gold" = xyes
; then
27780 gcc_cv_ld_large_toc
=yes
27781 elif test $in_tree_ld = yes ; then
27782 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
27783 gcc_cv_ld_large_toc
=yes
27785 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27786 cat > conftest.s
<<EOF
27787 .section ".tbss","awT",@nobits
27793 addis 9,13,ie0@got@tprel@ha
27794 ld 9,ie0@got@tprel@l(9)
27796 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27797 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27798 gcc_cv_ld_large_toc
=yes
27800 rm -f conftest conftest.o conftest.s
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27805 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27806 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27808 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker toc pointer alignment" >&5
27813 $as_echo_n "checking linker toc pointer alignment... " >&6; }
27814 if test "${gcc_cv_ld_toc_align+set}" = set; then :
27815 $as_echo_n "(cached) " >&6
27817 if test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_nm != x
; then
27818 cat > conftest.s
<<EOF
27823 .section .data.rel.ro,"aw",@progbits
27828 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27829 && $gcc_cv_ld $emul_name -o conftest conftest.o
> /dev
/null
2>&1; then
27830 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)) }'`
27832 rm -f conftest conftest.o conftest.s
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_toc_align" >&5
27837 $as_echo "$gcc_cv_ld_toc_align" >&6; }
27838 if test -n "$gcc_cv_ld_toc_align" && test $gcc_cv_ld_toc_align -gt 8; then
27840 cat >>confdefs.h
<<_ACEOF
27841 #define POWERPC64_TOC_POINTER_ALIGNMENT $gcc_cv_ld_toc_align
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27851 $as_echo_n "checking linker large toc support... " >&6; }
27852 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27853 $as_echo_n "(cached) " >&6
27855 gcc_cv_ld_large_toc
=no
27856 if test x
$gcc_cv_as != x
; then
27857 cat > conftest.s
<<EOF
27867 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27868 gcc_cv_ld_large_toc
=yes
27870 rm -f conftest conftest.o conftest.s
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27875 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27876 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27878 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27885 $as_echo_n "checking linker --build-id support... " >&6; }
27886 if test "${gcc_cv_ld_buildid+set}" = set; then :
27887 $as_echo_n "(cached) " >&6
27889 gcc_cv_ld_buildid
=no
27890 if test $in_tree_ld = yes ; then
27891 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27892 "$gcc_cv_gld_minor_version" -ge 18 -o \
27893 "$gcc_cv_gld_major_version" -gt 2 \
27894 && test $in_tree_ld_is_elf = yes; then
27895 gcc_cv_ld_buildid
=yes
27897 elif test x
$gcc_cv_ld != x
; then
27898 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27899 gcc_cv_ld_buildid
=yes
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27904 $as_echo "$gcc_cv_ld_buildid" >&6; }
27905 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27907 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27911 # Check whether --enable-linker-build-id was given.
27912 if test "${enable_linker_build_id+set}" = set; then :
27913 enableval
=$enable_linker_build_id;
27915 enable_linker_build_id
=no
27919 if test x
"$enable_linker_build_id" = xyes
; then
27920 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27922 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27926 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27930 # In binutils 2.21, GNU ld gained support for new emulations fully
27931 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27933 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27934 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27935 $as_echo_n "(cached) " >&6
27937 gcc_cv_ld_sol2_emulation
=no
27938 if test $in_tree_ld = yes ; then
27939 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27940 "$gcc_cv_gld_minor_version" -ge 21 -o \
27941 "$gcc_cv_gld_major_version" -gt 2 \
27942 && test $in_tree_ld_is_elf = yes; then
27943 gcc_cv_ld_sol2_emulation
=yes
27945 elif test x
$gcc_cv_ld != x
; then
27946 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27947 grep _sol2
> /dev
/null
; then
27948 gcc_cv_ld_sol2_emulation
=yes
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27953 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27954 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27956 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27961 $as_echo_n "checking linker --sysroot support... " >&6; }
27962 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27963 $as_echo_n "(cached) " >&6
27965 gcc_cv_ld_sysroot
=no
27966 if test $in_tree_ld = yes ; then
27967 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
27968 gcc_cv_ld_sysroot
=yes
27970 elif test x
$gcc_cv_ld != x
; then
27971 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27972 gcc_cv_ld_sysroot
=yes
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27977 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27978 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27980 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27984 # Test for stack protector support in target C library.
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27986 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27987 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27988 $as_echo_n "(cached) " >&6
27990 gcc_cv_libc_provides_ssp
=no
27993 # All versions of musl provide stack protector
27994 gcc_cv_libc_provides_ssp
=yes;;
27995 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27996 # glibc 2.4 and later provides __stack_chk_fail and
27997 # either __stack_chk_guard, or TLS access to stack guard canary.
27999 if test $glibc_version_major -gt 2 \
28000 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28001 gcc_cv_libc_provides_ssp
=yes
28004 if test -f $target_header_dir/features.h \
28005 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
28006 $target_header_dir/features.h
> /dev
/null
; then
28007 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
28008 $target_header_dir/features.h
> /dev
/null
&& \
28009 test -f $target_header_dir/bits
/uClibc_config.h
&& \
28010 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
28011 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
28012 gcc_cv_libc_provides_ssp
=yes
28014 # all versions of Bionic support stack protector
28015 elif test -f $target_header_dir/sys
/cdefs.h \
28016 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
28017 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
28018 gcc_cv_libc_provides_ssp
=yes
28023 # Avoid complicated tests (see
28024 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
28025 # simply assert that glibc does provide this, which is true for all
28026 # realistically usable GNU/Hurd configurations.
28027 # All supported versions of musl provide it as well
28028 gcc_cv_libc_provides_ssp
=yes;;
28029 *-*-darwin* |
*-*-freebsd*)
28030 ac_fn_cxx_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
28031 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
28032 gcc_cv_libc_provides_ssp
=yes
28034 echo "no __stack_chk_fail on this target"
28038 *) gcc_cv_libc_provides_ssp
=no
;;
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
28042 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
28044 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
28046 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
28050 # Test for <sys/sdt.h> on the target.
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
28053 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
28055 if test -f $target_header_dir/sys
/sdt.h
; then
28058 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
28062 $as_echo "$have_sys_sdt_h" >&6; }
28064 # Check if TFmode long double should be used by default or not.
28065 # Some glibc targets used DFmode long double, but with glibc 2.4
28066 # and later they can use TFmode.
28068 powerpc
*-*-linux* | \
28069 sparc
*-*-linux* | \
28073 # Check whether --with-long-double-128 was given.
28074 if test "${with_long_double_128+set}" = set; then :
28075 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
28078 if test $glibc_version_major -gt 2 \
28079 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
28080 gcc_cv_target_ldbl128
=yes
28083 gcc_cv_target_ldbl128
=no
28084 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
28085 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
28086 && gcc_cv_target_ldbl128
=yes
28093 if test x
$gcc_cv_target_ldbl128 = xyes
; then
28095 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
28100 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
28101 gcc_cv_target_dl_iterate_phdr
=unknown
28103 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
28104 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
28105 # libdl there, both complicating its use and breaking compatibility
28106 # between Solaris 10 updates.
28107 *-*-solaris2.1
[1-9]*)
28108 # <link.h> needs both a dl_iterate_phdr declaration and support for
28109 # compilation with largefile support.
28110 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
28111 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
28112 gcc_cv_target_dl_iterate_phdr
=yes
28114 gcc_cv_target_dl_iterate_phdr
=no
28117 *-*-dragonfly* |
*-*-freebsd*)
28118 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
28119 gcc_cv_target_dl_iterate_phdr
=yes
28121 gcc_cv_target_dl_iterate_phdr
=no
28125 gcc_cv_target_dl_iterate_phdr
=yes
28129 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
28131 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
28135 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
28137 # We no longer support different GC mechanisms. Emit an error if
28138 # the user configures with --with-gc.
28140 # Check whether --with-gc was given.
28141 if test "${with_gc+set}" = set; then :
28142 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
28146 # Libraries to use on the host. This will normally be set by the top
28147 # level Makefile. Here we simply capture the value for our Makefile.
28148 if test -z "${HOST_LIBS+set}"; then
28153 # Use the system's zlib library.
28155 # Use the system's zlib library.
28156 zlibdir
="-L\$(top_builddir)/../zlib"
28157 zlibinc
="-I\$(top_srcdir)/../zlib"
28159 # Check whether --with-system-zlib was given.
28160 if test "${with_system_zlib+set}" = set; then :
28161 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
28173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
28174 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
28175 # Check whether --enable-maintainer-mode was given.
28176 if test "${enable_maintainer_mode+set}" = set; then :
28177 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
28183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
28184 $as_echo "$maintainer_mode" >&6; }
28186 if test "$maintainer_mode" = "yes"; then
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
28194 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
28195 # Check whether --enable-link-mutex was given.
28196 if test "${enable_link_mutex+set}" = set; then :
28197 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
28203 $as_echo "$do_link_mutex" >&6; }
28205 if test "$do_link_mutex" = "yes"; then
28208 DO_LINK_MUTEX
=false
28216 # Make empty files to contain the specs and options for each language.
28217 # Then add #include lines to for a compiler that has specs and/or options.
28223 # These (without "all_") are set in each config-lang.in.
28224 # `language' must be a single word so is spelled singularly.
28227 all_outputs
='Makefile'
28228 # List of language makefile fragments.
28229 all_lang_makefrags
=
28230 # Additional files for gengtype
28231 all_gtfiles
="$target_gtfiles"
28233 # These are the languages that are set in --enable-languages,
28234 # and are available in the GCC tree.
28235 all_selected_languages
=
28237 # Add the language fragments.
28238 # Languages are added via two mechanisms. Some information must be
28239 # recorded in makefile variables, these are defined in config-lang.in.
28240 # We accumulate them and plug them into the main Makefile.
28241 # The other mechanism is a set of hooks for each of the main targets
28242 # like `clean', `install', etc.
28244 language_hooks
="Make-hooks"
28246 for lang
in ${srcdir}/*/config-lang.
in
28248 test "$lang" = "${srcdir}/*/config-lang.in" && continue
28250 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
28251 if test "x$lang_alias" = x
28253 echo "$lang doesn't set \$language." 1>&2
28256 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
28257 subdirs
="$subdirs $subdir"
28259 # $gcc_subdir is where the gcc integration files are to be found
28260 # for a language, both for internal compiler purposes (compiler
28261 # sources implementing front-end to GCC tree converters), and for
28262 # build infrastructure purposes (Make-lang.in, etc.)
28264 # This will be <subdir> (relative to $srcdir) if a line like
28265 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
28266 # is found in <langdir>/config-lang.in, and will remain <langdir>
28269 # Except for the language alias (fetched above), the regular
28270 # "config-lang.in" contents are always retrieved from $gcc_subdir,
28271 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
28272 # only this and the language alias.
28274 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
28275 if [ "$gcc_subdir" = "" ]; then
28276 gcc_subdir
="$subdir"
28279 case ",$enable_languages," in
28281 all_selected_languages
="$all_selected_languages $lang_alias"
28282 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
28283 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
28294 .
${srcdir}/$gcc_subdir/config-lang.
in
28295 if test "x$language" = x
28297 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
28302 case ",$enable_languages," in
28303 *,$lang_alias,*) ;;
28305 for i
in $subdir_requires; do
28306 test -f "${srcdir}/$i/config-lang.in" && continue
28314 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
28315 if test -f $srcdir/$gcc_subdir/lang.opt
; then
28316 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
28317 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
28319 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
28320 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
28322 all_languages
="$all_languages $language"
28323 all_compilers
="$all_compilers $compilers"
28324 all_outputs
="$all_outputs $outputs"
28325 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
28326 case ",$enable_languages," in
28329 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
28339 for language
in $all_selected_languages
28341 check_languages
="$check_languages check-$language"
28344 # We link each language in with a set of hooks, reached indirectly via
28345 # lang.${target}. Only do so for selected languages.
28349 target_list
="all.cross start.encap rest.encap tags \
28350 install-common install-man install-info install-pdf install-html dvi \
28351 pdf html uninstall info man srcextra srcman srcinfo \
28352 mostlyclean clean distclean maintainer-clean install-plugin"
28354 for t
in $target_list
28357 for lang
in $all_selected_languages
28361 echo "lang.$t: $x" >> Make-hooks
28365 # Option include files
28368 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
28369 option_includes
="option-includes.mk"
28378 echo "dir ." > .gdbinit
28379 echo "dir ${srcdir}" >> .gdbinit
28380 if test x
$gdb_needs_out_file_path = xyes
28382 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
28384 if test "x$subdirs" != x
; then
28387 echo "dir ${srcdir}/$s" >> .gdbinit
28390 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
28391 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
28393 # Put a breakpoint on __asan_report_error to help with debugging buffer
28396 *-fsanitize=address
*)
28397 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
28401 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
28405 # Find a directory in which to install a shared libgcc.
28407 # Check whether --enable-version-specific-runtime-libs was given.
28408 if test "${enable_version_specific_runtime_libs+set}" = set; then :
28409 enableval
=$enable_version_specific_runtime_libs;
28413 # Substitute configuration variables
28477 if test x
${build} = x
${host} ; then
28478 if test x
${host} = x
${target} ; then
28479 echo "Links are now set up to build a native compiler for ${target}." 1>&2
28481 echo "Links are now set up to build a cross-compiler" 1>&2
28482 echo " from ${host} to ${target}." 1>&2
28485 if test x
${host} = x
${target} ; then
28486 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
28487 echo " for ${target}." 1>&2
28489 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
28490 echo " from ${host} to ${target}." 1>&2
28499 if test "x${ISLLIBS}" != "x" ; then
28501 $as_echo "#define HAVE_isl 1" >>confdefs.h
28505 # Check whether isl_schedule_constraints_compute_schedule is available;
28506 # it's new in ISL-0.13.
28507 # Check whether isl_options_set_schedule_serialize_sccs is available;
28508 # it's new in ISL-0.15.
28509 if test "x${ISLLIBS}" != "x" ; then
28510 saved_CXXFLAGS
="$CXXFLAGS"
28511 CXXFLAGS
="$CXXFLAGS $ISLINC"
28513 LIBS
="$LIBS $ISLLIBS $GMPLIBS"
28515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_schedule_constraints_compute_schedule" >&5
28516 $as_echo_n "checking Checking for isl_schedule_constraints_compute_schedule... " >&6; }
28517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28518 /* end confdefs.h. */
28519 #include <isl/schedule.h>
28523 isl_schedule_constraints_compute_schedule (NULL);
28528 if ac_fn_cxx_try_link
"$LINENO"; then :
28529 ac_has_isl_schedule_constraints_compute_schedule
=yes
28531 ac_has_isl_schedule_constraints_compute_schedule
=no
28533 rm -f core conftest.err conftest.
$ac_objext \
28534 conftest
$ac_exeext conftest.
$ac_ext
28535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_schedule_constraints_compute_schedule" >&5
28536 $as_echo "$ac_has_isl_schedule_constraints_compute_schedule" >&6; }
28538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for isl_options_set_schedule_serialize_sccs" >&5
28539 $as_echo_n "checking Checking for isl_options_set_schedule_serialize_sccs... " >&6; }
28540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28541 /* end confdefs.h. */
28542 #include <isl/schedule.h>
28546 isl_options_set_schedule_serialize_sccs (NULL, 0);
28551 if ac_fn_cxx_try_link
"$LINENO"; then :
28552 ac_has_isl_options_set_schedule_serialize_sccs
=yes
28554 ac_has_isl_options_set_schedule_serialize_sccs
=no
28556 rm -f core conftest.err conftest.
$ac_objext \
28557 conftest
$ac_exeext conftest.
$ac_ext
28558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
28559 $as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
28562 CXXFLAGS
="$saved_CXXFLAGS"
28564 if test x
"$ac_has_isl_schedule_constraints_compute_schedule" = x
"yes"; then
28566 $as_echo "#define HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE 1" >>confdefs.h
28570 if test x
"$ac_has_isl_options_set_schedule_serialize_sccs" = x
"yes"; then
28572 $as_echo "#define HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS 1" >>confdefs.h
28577 # Check for plugin support
28578 # Check whether --enable-plugin was given.
28579 if test "${enable_plugin+set}" = set; then :
28580 enableval
=$enable_plugin; enable_plugin
=$enableval
28582 enable_plugin
=yes; default_plugin
=yes
28590 if test x
$build = x
$host; then
28591 export_sym_check
="nm${exeext} -g"
28592 elif test x
$host = x
$target; then
28593 export_sym_check
="$gcc_cv_nm -g"
28599 if test x
$build = x
$host; then
28600 export_sym_check
="objdump${exeext} -T"
28601 elif test x
$host = x
$target; then
28602 export_sym_check
="$gcc_cv_objdump -T"
28609 if test x
"$enable_plugin" = x
"yes"; then
28611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
28612 $as_echo_n "checking for exported symbols... " >&6; }
28613 if test "x$export_sym_check" != x
; then
28614 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
28615 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28616 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28617 : # No need to use a flag
28618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28619 $as_echo "yes" >&6; }
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28622 $as_echo "yes" >&6; }
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
28624 $as_echo_n "checking for -rdynamic... " >&6; }
28625 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
28626 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
28627 plugin_rdynamic
=yes
28628 pluginlibs
="-rdynamic"
28633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
28634 $as_echo "$plugin_rdynamic" >&6; }
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
28638 $as_echo "unable to check" >&6; }
28643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28644 $as_echo_n "checking for library containing dlopen... " >&6; }
28645 if test "${ac_cv_search_dlopen+set}" = set; then :
28646 $as_echo_n "(cached) " >&6
28648 ac_func_search_save_LIBS
=$LIBS
28649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28650 /* end confdefs.h. */
28652 /* Override any GCC internal prototype to avoid an error.
28653 Use char because int might match the return type of a GCC
28654 builtin and then its argument prototype would still apply. */
28667 for ac_lib
in '' dl
; do
28668 if test -z "$ac_lib"; then
28669 ac_res
="none required"
28672 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28674 if ac_fn_cxx_try_link
"$LINENO"; then :
28675 ac_cv_search_dlopen
=$ac_res
28677 rm -f core conftest.err conftest.
$ac_objext \
28679 if test "${ac_cv_search_dlopen+set}" = set; then :
28683 if test "${ac_cv_search_dlopen+set}" = set; then :
28686 ac_cv_search_dlopen
=no
28688 rm conftest.
$ac_ext
28689 LIBS
=$ac_func_search_save_LIBS
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28692 $as_echo "$ac_cv_search_dlopen" >&6; }
28693 ac_res
=$ac_cv_search_dlopen
28694 if test "$ac_res" != no
; then :
28695 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28699 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28700 pluginlibs
="$pluginlibs -ldl"
28704 # Check that we can build shared objects with -fPIC -shared
28705 saved_LDFLAGS
="$LDFLAGS"
28706 saved_CFLAGS
="$CFLAGS"
28709 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28710 CFLAGS
="$CFLAGS -fPIC"
28711 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28714 CFLAGS
="$CFLAGS -fPIC"
28715 LDFLAGS
="$LDFLAGS -fPIC -shared"
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28719 $as_echo_n "checking for -fPIC -shared... " >&6; }
28720 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28721 /* end confdefs.h. */
28731 if ac_fn_cxx_try_link
"$LINENO"; then :
28732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28733 $as_echo "yes" >&6; }; have_pic_shared
=yes
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28736 $as_echo "no" >&6; }; have_pic_shared
=no
28738 rm -f core conftest.err conftest.
$ac_objext \
28739 conftest
$ac_exeext conftest.
$ac_ext
28740 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28744 LDFLAGS
="$saved_LDFLAGS"
28745 CFLAGS
="$saved_CFLAGS"
28747 # If plugin support had been requested but not available, fail.
28748 if test x
"$enable_plugin" = x
"no" ; then
28749 if test x
"$default_plugin" != x
"yes"; then
28751 Building GCC with plugin support requires a host that supports
28752 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28759 if test x
"$enable_plugin" = x
"yes"; then
28761 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28766 # Enable --enable-host-shared
28767 # Check whether --enable-host-shared was given.
28768 if test "${enable_host_shared+set}" = set; then :
28769 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28778 # Check whether --enable-libquadmath-support was given.
28779 if test "${enable_libquadmath_support+set}" = set; then :
28780 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28782 ENABLE_LIBQUADMATH_SUPPORT
=yes
28785 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28787 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28792 # Specify what hash style to use by default.
28794 # Check whether --with-linker-hash-style was given.
28795 if test "${with_linker_hash_style+set}" = set; then :
28796 withval
=$with_linker_hash_style; case x
"$withval" in
28798 LINKER_HASH_STYLE
=sysv
28801 LINKER_HASH_STYLE
=gnu
28804 LINKER_HASH_STYLE
=both
28807 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28811 LINKER_HASH_STYLE
=''
28814 if test x
"${LINKER_HASH_STYLE}" != x
; then
28816 cat >>confdefs.h
<<_ACEOF
28817 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28822 # Specify what should be the default of -fdiagnostics-color option.
28824 # Check whether --with-diagnostics-color was given.
28825 if test "${with_diagnostics_color+set}" = set; then :
28826 withval
=$with_diagnostics_color; case x
"$withval" in
28828 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_NO
28831 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28834 DIAGNOSTICS_COLOR_DEFAULT
=-1
28837 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_YES
28840 as_fn_error
"$withval is an invalid option to --with-diagnostics-color" "$LINENO" 5
28844 DIAGNOSTICS_COLOR_DEFAULT
=DIAGNOSTICS_COLOR_AUTO
28848 cat >>confdefs.h
<<_ACEOF
28849 #define DIAGNOSTICS_COLOR_DEFAULT $DIAGNOSTICS_COLOR_DEFAULT
28853 # Generate gcc-driver-name.h containing GCC_DRIVER_NAME for the benefit
28854 # of jit/jit-playback.c.
28855 cat > gcc-driver-name.h
<<EOF
28856 #define GCC_DRIVER_NAME "${target_noncanonical}-gcc-${gcc_BASEVER}${exeext}"
28859 # Check whether --enable-default-pie was given.
28860 # Check whether --enable-default-pie was given.
28861 if test "${enable_default_pie+set}" = set; then :
28862 enableval
=$enable_default_pie; enable_default_pie
=$enableval
28864 enable_default_pie
=no
28867 if test x
$enable_default_pie == xyes
; then
28869 $as_echo "#define ENABLE_DEFAULT_PIE 1" >>confdefs.h
28874 # Check if -fno-PIE works.
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-PIE option" >&5
28876 $as_echo_n "checking for -fno-PIE option... " >&6; }
28877 if test "${gcc_cv_c_no_fpie+set}" = set; then :
28878 $as_echo_n "(cached) " >&6
28880 saved_CXXFLAGS
="$CXXFLAGS"
28881 CXXFLAGS
="$CXXFLAGS -fno-PIE"
28882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28883 /* end confdefs.h. */
28884 int main(void) {return 0;}
28886 if ac_fn_cxx_try_compile
"$LINENO"; then :
28887 gcc_cv_c_no_fpie
=yes
28889 gcc_cv_c_no_fpie
=no
28891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28892 CXXFLAGS
="$saved_CXXFLAGS"
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_no_fpie" >&5
28895 $as_echo "$gcc_cv_c_no_fpie" >&6; }
28896 if test "$gcc_cv_c_no_fpie" = "yes"; then
28897 NO_PIE_CFLAGS
="-fno-PIE"
28901 # Check if -no-pie works.
28902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -no-pie option" >&5
28903 $as_echo_n "checking for -no-pie option... " >&6; }
28904 if test "${gcc_cv_no_pie+set}" = set; then :
28905 $as_echo_n "(cached) " >&6
28907 saved_LDFLAGS
="$LDFLAGS"
28908 LDFLAGS
="$LDFLAGS -no-pie"
28909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28910 /* end confdefs.h. */
28911 int main(void) {return 0;}
28913 if ac_fn_cxx_try_link
"$LINENO"; then :
28918 rm -f core conftest.err conftest.
$ac_objext \
28919 conftest
$ac_exeext conftest.
$ac_ext
28920 LDFLAGS
="$saved_LDFLAGS"
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_no_pie" >&5
28923 $as_echo "$gcc_cv_no_pie" >&6; }
28924 if test "$gcc_cv_no_pie" = "yes"; then
28925 NO_PIE_FLAG
="-no-pie"
28929 # Check linker supports '-z bndplt'
28930 ld_bndplt_support
=no
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -z bndplt option" >&5
28932 $as_echo_n "checking linker -z bndplt option... " >&6; }
28933 if test x
"$ld_is_gold" = xno
; then
28934 if test $in_tree_ld = yes ; then
28935 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
28936 ld_bndplt_support
=yes
28938 elif test x
$gcc_cv_ld != x
; then
28939 # Check if linker supports -a bndplt option
28940 if $gcc_cv_ld --help 2>/dev
/null |
grep -- '-z bndplt' > /dev
/null
; then
28941 ld_bndplt_support
=yes
28945 if test x
"$ld_bndplt_support" = xyes
; then
28947 $as_echo "#define HAVE_LD_BNDPLT_SUPPORT 1" >>confdefs.h
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_bndplt_support" >&5
28951 $as_echo "$ld_bndplt_support" >&6; }
28953 # Configure the subdirectories
28954 # AC_CONFIG_SUBDIRS($subdirs)
28956 # Create the Makefile
28957 # and configure language subdirectories
28958 ac_config_files
="$ac_config_files $all_outputs"
28961 ac_config_commands
="$ac_config_commands default"
28963 cat >confcache
<<\_ACEOF
28964 # This file is a shell script that caches the results of configure
28965 # tests run on this system so they can be shared between configure
28966 # scripts and configure runs, see configure's option --config-cache.
28967 # It is not useful on other systems. If it contains results you don't
28968 # want to keep, you may remove or edit it.
28970 # config.status only pays attention to the cache file if you give it
28971 # the --recheck option to rerun configure.
28973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28975 # following values.
28979 # The following way of writing the cache mishandles newlines in values,
28980 # but we know of no workaround that is simple, portable, and efficient.
28981 # So, we kill variables containing newlines.
28982 # Ultrix sh set writes to stderr and can't be redirected directly,
28983 # and sets the high bit in the cache file unless we assign to the vars.
28985 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28986 eval ac_val
=\$
$ac_var
28990 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28994 _ | IFS | as_nl
) ;; #(
28995 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28996 *) { eval $ac_var=; unset $ac_var;} ;;
29002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29003 *${as_nl}ac_space
=\
*)
29004 # `set' does not quote correctly, so add quotes: double-quote
29005 # substitution turns \\\\ into \\, and sed turns \\ into \.
29008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29011 # `set' quotes correctly as required by POSIX, so do not add quotes.
29012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29025 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
29026 if test -w "$cache_file"; then
29027 test "x$cache_file" != "x/dev/null" &&
29028 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29029 $as_echo "$as_me: updating cache $cache_file" >&6;}
29030 cat confcache
>$cache_file
29032 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29033 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29038 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
29039 # Let make expand exec_prefix.
29040 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
29042 DEFS
=-DHAVE_CONFIG_H
29046 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
29047 # 1. Remove the extension, and $U if already installed.
29048 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
29049 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
29050 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29051 # will be set to the directory where LIBOBJS objects are built.
29052 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29053 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
29055 LIBOBJS
=$ac_libobjs
29057 LTLIBOBJS
=$ac_ltlibobjs
29062 : ${CONFIG_STATUS=./config.status}
29064 ac_clean_files_save
=$ac_clean_files
29065 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29067 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29069 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29071 # Generated by $as_me.
29072 # Run this file to recreate the current configuration.
29073 # Compiler output produced by configure, useful for debugging
29074 # configure, is in config.log if it exists.
29077 ac_cs_recheck=false
29080 SHELL=\${CONFIG_SHELL-$SHELL}
29083 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
29084 ## -------------------- ##
29085 ## M4sh Initialization. ##
29086 ## -------------------- ##
29088 # Be more Bourne compatible
29089 DUALCASE
=1; export DUALCASE
# for MKS sh
29090 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
29093 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29094 # is contrary to our usage. Disable this feature.
29095 alias -g '${1+"$@"}'='"$@"'
29096 setopt NO_GLOB_SUBST
29098 case `(set -o) 2>/dev/null` in #(
29110 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29111 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29112 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29114 # Prefer a ksh shell builtin over an external printf program on Solaris,
29115 # but without wasting forks for bash or zsh.
29116 if test -z "$BASH_VERSION$ZSH_VERSION" \
29117 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29118 as_echo='print
-r --'
29119 as_echo_n='print
-rn --'
29120 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29121 as_echo='printf %s
\n'
29122 as_echo_n='printf %s
'
29124 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29125 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
29126 as_echo_n='/usr
/ucb
/echo -n'
29128 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29129 as_echo_n_body='eval
29133 expr "X$arg" : "X\\(.*\\)$as_nl";
29134 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29136 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
29138 export as_echo_n_body
29139 as_echo_n='sh
-c $as_echo_n_body as_echo
'
29141 export as_echo_body
29142 as_echo='sh
-c $as_echo_body as_echo
'
29145 # The user is always right.
29146 if test "${PATH_SEPARATOR+set}" != set; then
29148 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29149 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29156 # We need space, tab and new line, in precisely that order. Quoting is
29157 # there to prevent editors from complaining about space-tab.
29158 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29159 # splitting by setting IFS to empty value.)
29162 # Find who we are. Look in the path if we contain no directory separator.
29164 *[\\/]* ) as_myself=$0 ;;
29165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29166 for as_dir in $PATH
29169 test -z "$as_dir" && as_dir=.
29170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29176 # We did not find ourselves, most probably we were run as `sh COMMAND'
29177 # in which case we are not to be found in the path.
29178 if test "x$as_myself" = x
; then
29181 if test ! -f "$as_myself"; then
29182 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29186 # Unset variables that we do not need and which cause bugs (e.g. in
29187 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
29188 # suppresses any "Segmentation fault" message there. '((' could
29189 # trigger a bug in pdksh 5.2.14.
29190 for as_var
in BASH_ENV ENV MAIL MAILPATH
29191 do eval test x\
${$as_var+set} = xset \
29192 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
29205 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
29208 # as_fn_error ERROR [LINENO LOG_FD]
29209 # ---------------------------------
29210 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
29211 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
29212 # script with status $?, using 1 if that was 0.
29215 as_status
=$?
; test $as_status -eq 0 && as_status
=1
29217 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
29218 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
29220 $as_echo "$as_me: error: $1" >&2
29221 as_fn_exit
$as_status
29225 # as_fn_set_status STATUS
29226 # -----------------------
29227 # Set $? to STATUS, without forking.
29228 as_fn_set_status
()
29231 } # as_fn_set_status
29233 # as_fn_exit STATUS
29234 # -----------------
29235 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
29239 as_fn_set_status
$1
29245 # Portably unset VAR.
29248 { eval $1=; unset $1;}
29250 as_unset
=as_fn_unset
29251 # as_fn_append VAR VALUE
29252 # ----------------------
29253 # Append the text in VALUE to the end of the definition contained in VAR. Take
29254 # advantage of any shell optimizations that allow amortized linear growth over
29255 # repeated appends, instead of the typical quadratic growth present in naive
29257 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
29258 eval 'as_fn_append ()
29269 # as_fn_arith ARG...
29270 # ------------------
29271 # Perform arithmetic evaluation on the ARGs, and store the result in the
29272 # global $as_val. Take advantage of shells that can avoid forks. The arguments
29273 # must be portable across $(()) and expr.
29274 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
29275 eval 'as_fn_arith ()
29282 as_val
=`expr "$@" || test $? -eq 1`
29287 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
29288 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
29294 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29295 as_basename
=basename
29300 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
29306 as_me
=`$as_basename -- "$0" ||
29307 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29308 X"$0" : 'X\(//\)$' \| \
29309 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29311 sed '/^.*\/\([^/][^/]*\)\/*$/{
29325 # Avoid depending upon Character Ranges.
29326 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
29327 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29328 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
29329 as_cr_digits
='0123456789'
29330 as_cr_alnum
=$as_cr_Letters$as_cr_digits
29332 ECHO_C
= ECHO_N
= ECHO_T
=
29333 case `echo -n x` in #(((((
29335 case `echo 'xy\c'` in
29336 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
29338 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
29345 rm -f conf$$ conf$$.exe conf$$.
file
29346 if test -d conf$$.dir
; then
29347 rm -f conf$$.dir
/conf$$.
file
29350 mkdir conf$$.dir
2>/dev
/null
29352 if (echo >conf$$.
file) 2>/dev
/null
; then
29353 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
29355 # ... but there are two gotchas:
29356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29358 # In both cases, we have to default to `cp -p'.
29359 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
29361 elif ln conf$$.
file conf$$
2>/dev
/null
; then
29369 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
29370 rmdir conf$$.dir
2>/dev
/null
29375 # Create "$as_dir" as a directory, including parents if necessary.
29380 -*) as_dir
=.
/$as_dir;;
29382 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
29386 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29387 *) as_qdir
=$as_dir;;
29389 as_dirs
="'$as_qdir' $as_dirs"
29390 as_dir
=`$as_dirname -- "$as_dir" ||
29391 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29392 X"$as_dir" : 'X\(//\)[^/]' \| \
29393 X"$as_dir" : 'X\(//\)$' \| \
29394 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29395 $as_echo X"$as_dir" |
29396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29400 /^X\(\/\/\)[^/].*/{
29413 test -d "$as_dir" && break
29415 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
29416 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
29420 if mkdir
-p .
2>/dev
/null
; then
29421 as_mkdir_p
='mkdir -p "$as_dir"'
29423 test -d .
/-p && rmdir .
/-p
29427 if test -x / >/dev
/null
2>&1; then
29428 as_test_x
='test -x'
29430 if ls -dL / >/dev
/null
2>&1; then
29437 if test -d "$1"; then
29443 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29444 ???[sx]*):;;*)false;;esac;fi
29448 as_executable_p
=$as_test_x
29450 # Sed expression to map a string onto a valid CPP name.
29451 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29453 # Sed expression to map a string onto a valid variable name.
29454 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29458 ## ----------------------------------- ##
29459 ## Main body of $CONFIG_STATUS script. ##
29460 ## ----------------------------------- ##
29462 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
29464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29465 # Save the log message, to keep $0 and so on meaningful, and to
29466 # report actual input values of CONFIG_FILES etc. instead of their
29467 # values after options handling.
29469 This file was extended by $as_me, which was
29470 generated by GNU Autoconf 2.64. Invocation command line was
29472 CONFIG_FILES = $CONFIG_FILES
29473 CONFIG_HEADERS = $CONFIG_HEADERS
29474 CONFIG_LINKS = $CONFIG_LINKS
29475 CONFIG_COMMANDS = $CONFIG_COMMANDS
29478 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29483 case $ac_config_files in *"
29484 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
29487 case $ac_config_headers in *"
29488 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
29492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29493 # Files that config.status was made for.
29494 config_files="$ac_config_files"
29495 config_headers="$ac_config_headers"
29496 config_links="$ac_config_links"
29497 config_commands="$ac_config_commands"
29501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29503 \`$as_me' instantiates files and other configuration actions
29504 from templates according to the current configuration. Unless the files
29505 and actions are specified as TAGs, all are instantiated by default.
29507 Usage: $0 [OPTION]... [TAG]...
29509 -h, --help print this help, then exit
29510 -V, --version print version number and configuration settings, then exit
29511 -q, --quiet, --silent
29512 do not print progress messages
29513 -d, --debug don't remove temporary files
29514 --recheck update $as_me by reconfiguring in the same conditions
29515 --file=FILE[:TEMPLATE]
29516 instantiate the configuration file FILE
29517 --header=FILE[:TEMPLATE]
29518 instantiate the configuration header FILE
29520 Configuration files:
29523 Configuration headers:
29526 Configuration links:
29529 Configuration commands:
29532 Report bugs to the package provider."
29535 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29538 configured by $0, generated by GNU Autoconf 2.64,
29539 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
29541 Copyright (C) 2009 Free Software Foundation, Inc.
29542 This config.status script is free software; the Free Software Foundation
29543 gives unlimited permission to copy, distribute and modify it."
29548 test -n "\$AWK" || AWK=awk
29551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29552 # The default lists apply if the user does not specify any file.
29558 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
29559 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
29570 # Handling of the options.
29571 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
29573 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
29574 $as_echo "$ac_cs_version"; exit ;;
29575 --debug |
--debu |
--deb |
--de |
--d |
-d )
29577 --file |
--fil |
--fi |
--f )
29580 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29582 as_fn_append CONFIG_FILES
" '$ac_optarg'"
29583 ac_need_defaults
=false
;;
29584 --header |
--heade |
--head |
--hea )
29587 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29589 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
29590 ac_need_defaults
=false
;;
29592 # Conflict between --help and --header
29593 as_fn_error
"ambiguous option: \`$1'
29594 Try \`$0 --help' for more information.";;
29595 --help |
--hel |
-h )
29596 $as_echo "$ac_cs_usage"; exit ;;
29597 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
29598 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
29601 # This is an error.
29602 -*) as_fn_error
"unrecognized option: \`$1'
29603 Try \`$0 --help' for more information." ;;
29605 *) as_fn_append ac_config_targets
" $1"
29606 ac_need_defaults
=false
;;
29612 ac_configure_extra_args
=
29614 if $ac_cs_silent; then
29616 ac_configure_extra_args
="$ac_configure_extra_args --silent"
29620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29621 if \$ac_cs_recheck; then
29622 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29624 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29625 CONFIG_SHELL='$SHELL'
29626 export CONFIG_SHELL
29631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29636 ## Running $as_me. ##
29642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29646 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29647 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
29652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29654 # Handling of arguments.
29655 for ac_config_target
in $ac_config_targets
29657 case $ac_config_target in
29658 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
29659 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
29660 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
29661 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
29662 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
29663 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
29664 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
29665 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
29666 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
29668 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29673 # If the user did not use the arguments to specify the items to instantiate,
29674 # then the envvar interface is used. Set only those that are not.
29675 # We use the long form for the default assignment because of an extremely
29676 # bizarre bug on SunOS 4.1.3.
29677 if $ac_need_defaults; then
29678 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
29679 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
29680 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
29681 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
29684 # Have a temporary directory for convenience. Make it in the build tree
29685 # simply because there is no reason against having it here, and in addition,
29686 # creating and moving files from /tmp can sometimes cause problems.
29687 # Hook for its removal unless debugging.
29688 # Note that there is a small window in which the directory will not be cleaned:
29689 # after its creation but before its name has been assigned to `$tmp'.
29693 trap 'exit_status=$?
29694 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29696 trap 'as_fn_exit 1' 1 2 13 15
29698 # Create a (secure) tmp directory for tmp files.
29701 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29702 test -n "$tmp" && test -d "$tmp"
29705 tmp
=.
/conf$$
-$RANDOM
29706 (umask 077 && mkdir
"$tmp")
29707 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
29709 # Set up the scripts for CONFIG_FILES section.
29710 # No need to generate them if there are no CONFIG_FILES.
29711 # This happens for instance with `./config.status config.h'.
29712 if test -n "$CONFIG_FILES"; then
29714 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
29715 ac_cs_awk_getline
=:
29716 ac_cs_awk_pipe_init
=
29717 ac_cs_awk_read_file
='
29718 while ((getline aline < (F[key])) > 0)
29721 ac_cs_awk_pipe_fini
=
29723 ac_cs_awk_getline
=false
29724 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
29725 ac_cs_awk_read_file
='
29727 print "cat " F[key] " &&"
29728 '$ac_cs_awk_pipe_init
29729 # The final `:' finishes the AND list.
29730 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
29732 ac_cr
=`echo X | tr X '\015'`
29733 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29734 # But we know of no other shell where ac_cr would be empty at this
29735 # point, so we can use a bashism as a fallback.
29736 if test "x$ac_cr" = x
; then
29737 eval ac_cr
=\$
\'\\r
\'
29739 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29740 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29743 ac_cs_awk_cr
=$ac_cr
29746 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29749 # Create commands to substitute file output variables.
29751 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
29752 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
29753 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
29756 } >conf$
$files.sh
&&
29757 . .
/conf$
$files.sh ||
29758 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
29759 rm -f conf$
$files.sh
29762 echo "cat >conf$$subs.awk <<_ACEOF" &&
29763 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29765 } >conf$$subs.sh ||
29766 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29767 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29769 for ac_last_try in false false false false false :; do
29770 . ./conf$$subs.sh ||
29771 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29773 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
29774 if test $ac_delim_n = $ac_delim_num; then
29776 elif $ac_last_try; then
29777 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29779 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29782 rm -f conf$$subs.sh
29784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29785 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29789 s/^/S["/; s
/!.
*/"]=/
29799 s/\(.\{148\}\).*/\1/
29801 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29806 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29813 s/\(.\{148\}\).*/\1/
29815 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29819 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29824 ' <conf$$subs.awk | sed '
29829 ' >>$CONFIG_STATUS || ac_write_fail=1
29830 rm -f conf$$subs.awk
29831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29833 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29834 for (key in S) S_is_set[key] = 1
29836 \$ac_cs_awk_pipe_init
29840 nfields = split(line, field, "@
")
29842 len = length(field[1])
29843 for (i = 2; i < nfields; i++) {
29845 keylen = length(key)
29846 if (S_is_set[key]) {
29848 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29849 len += length(value) + length(field[++i])
29854 if (nfields == 3 && !substed) {
29856 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29857 \$ac_cs_awk_read_file
29863 \$ac_cs_awk_pipe_fini
29866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29867 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29868 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29871 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29872 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29875 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29876 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29877 # trailing colons and then remove the whole line if VPATH becomes empty
29878 # (actually we leave an empty line to preserve line numbers).
29879 if test "x
$srcdir" = x.; then
29880 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29881 s/:*\$(srcdir):*/:/
29882 s/:*\${srcdir}:*/:/
29884 s/^\([^=]*=[ ]*\):*/\1/
29890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29891 fi # test -n "$CONFIG_FILES"
29893 # Set up the scripts for CONFIG_HEADERS section.
29894 # No need to generate them if there are no CONFIG_HEADERS.
29895 # This happens for instance with `./config.status Makefile'.
29896 if test -n "$CONFIG_HEADERS"; then
29897 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29901 # Transform confdefs.h into an awk script `defines.awk', embedded as
29902 # here-document in config.status, that substitutes the proper values into
29903 # config.h.in to produce config.h.
29905 # Create a delimiter string that does not exist in confdefs.h, to ease
29906 # handling of long lines.
29908 for ac_last_try in false false :; do
29909 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29910 if test -z "$ac_t"; then
29912 elif $ac_last_try; then
29913 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29915 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29919 # For the awk script, D is an array of macro values keyed by name,
29920 # likewise P contains macro parameters if any. Preserve backslash
29921 # newline sequences.
29923 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29925 s/.\{148\}/&'"$ac_delim"'/g
29928 s/^[ ]*#[ ]*define[ ][ ]*/ /
29935 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29937 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29941 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29942 D["\
1"]=" \
3\\\\\\n
"\\/p
29944 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29949 s/.\{148\}/&'"$ac_delim"'/g
29954 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29957 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29959 ' <confdefs.h | sed '
29960 s/'"$ac_delim"'/"\\\
29961 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29964 for (key in D) D_is_set[key] = 1
29967 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29969 split(line, arg, " ")
29970 if (arg[1] == "#") {
29974 defundef
= substr
(arg
[1], 2)
29977 split(mac1
, mac2
, "(") #)
29979 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29980 if (D_is_set
[macro
]) {
29981 # Preserve the white space surrounding the "#".
29982 print prefix
"define", macro P
[macro
] D
[macro
]
29985 # Replace #undef with comments. This is necessary, for example,
29986 # in the case of _POSIX_SOURCE, which is predefined and required
29987 # on some systems where configure will not decide to define it.
29988 if (defundef
== "undef") {
29989 print
"/*", prefix defundef
, macro
, "*/"
29997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29998 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29999 fi # test -n "$CONFIG_HEADERS"
30002 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
30007 :[FHLC
]) ac_mode
=$ac_tag; continue;;
30009 case $ac_mode$ac_tag in
30011 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
30012 :[FH
]-) ac_tag
=-:-;;
30013 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
30030 -) ac_f
="$tmp/stdin";;
30031 *) # Look for the file first in the build tree, then in the source tree
30032 # (if the path is not absolute). The absolute path cannot be DOS-style,
30033 # because $ac_f cannot contain `:'.
30037 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
30039 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
30041 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30042 as_fn_append ac_file_inputs
" '$ac_f'"
30045 # Let's still pretend it is `configure' which instantiates (i.e., don't
30046 # use $as_me), people would be surprised to read:
30047 # /* config.h. Generated by config.status. */
30048 configure_input
='Generated from '`
30049 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30051 if test x
"$ac_file" != x-
; then
30052 configure_input
="$ac_file. $configure_input"
30053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30054 $as_echo "$as_me: creating $ac_file" >&6;}
30056 # Neutralize special characters interpreted by sed in replacement strings.
30057 case $configure_input in #(
30058 *\
&* |
*\|
* |
*\\* )
30059 ac_sed_conf_input
=`$as_echo "$configure_input" |
30060 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30061 *) ac_sed_conf_input
=$configure_input;;
30065 *:-:* |
*:-) cat >"$tmp/stdin" \
30066 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
30071 ac_dir
=`$as_dirname -- "$ac_file" ||
30072 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30073 X"$ac_file" : 'X\(//\)[^/]' \| \
30074 X"$ac_file" : 'X\(//\)$' \| \
30075 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30076 $as_echo X"$ac_file" |
30077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30081 /^X\(\/\/\)[^/].*/{
30094 as_dir
="$ac_dir"; as_fn_mkdir_p
30098 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30100 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30101 # A ".." for each directory in $ac_dir_suffix.
30102 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30103 case $ac_top_builddir_sub in
30104 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
30105 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
30108 ac_abs_top_builddir
=$ac_pwd
30109 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
30110 # for backward compatibility:
30111 ac_top_builddir
=$ac_top_build_prefix
30114 .
) # We are building in place.
30116 ac_top_srcdir
=$ac_top_builddir_sub
30117 ac_abs_top_srcdir
=$ac_pwd ;;
30118 [\\/]* | ?
:[\\/]* ) # Absolute name.
30119 ac_srcdir
=$srcdir$ac_dir_suffix;
30120 ac_top_srcdir
=$srcdir
30121 ac_abs_top_srcdir
=$srcdir ;;
30122 *) # Relative name.
30123 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
30124 ac_top_srcdir
=$ac_top_build_prefix$srcdir
30125 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
30127 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
30138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30139 # If the template does not know about datarootdir, expand it.
30140 # FIXME: This hack should be removed a few years after 2.60.
30141 ac_datarootdir_hack
=; ac_datarootdir_seen
=
30152 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30153 *datarootdir
*) ac_datarootdir_seen
=yes;;
30154 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30156 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30159 ac_datarootdir_hack='
30160 s&@datadir@&$datadir&g
30161 s&@docdir@&$docdir&g
30162 s&@infodir@&$infodir&g
30163 s&@localedir@&$localedir&g
30164 s&@mandir@&$mandir&g
30165 s&\\\${datarootdir}&$datarootdir&g' ;;
30169 # Neutralize VPATH when `$srcdir' = `.'.
30170 # Shell code in configure.ac might set extrasub.
30171 # FIXME: do we really want to maintain this feature?
30172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30173 ac_sed_extra="$ac_vpsub
30176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
30178 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
30179 s|@configure_input@|
$ac_sed_conf_input|
;t t
30180 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
30181 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
30182 s
&@srcdir@
&$ac_srcdir&;t t
30183 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
30184 s
&@top_srcdir@
&$ac_top_srcdir&;t t
30185 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
30186 s
&@builddir@
&$ac_builddir&;t t
30187 s
&@abs_builddir@
&$ac_abs_builddir&;t t
30188 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
30189 $ac_datarootdir_hack
30191 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
30192 if $ac_cs_awk_getline; then
30193 $AWK -f "$tmp/subs.
awk"
30195 $AWK -f "$tmp/subs.
awk" | $SHELL
30197 || as_fn_error "could not create
$ac_file" "$LINENO" 5
30199 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30200 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
30201 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
30203 which seems to be undefined. Please make sure it is defined." >&5
30204 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
30205 which seems to be undefined. Please make sure it is defined." >&2;}
30209 -) cat "$tmp/out" && rm -f "$tmp/out";;
30210 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30212 || as_fn_error "could not create $ac_file" "$LINENO" 5
30218 if test x"$ac_file" != x-; then
30220 $as_echo "/* $configure_input */" \
30221 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30222 } >"$tmp/config.h" \
30223 || as_fn_error "could not create $ac_file" "$LINENO" 5
30224 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30226 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30229 mv "$tmp/config.h" "$ac_file" \
30230 || as_fn_error "could not create $ac_file" "$LINENO" 5
30233 $as_echo "/* $configure_input */" \
30234 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30235 || as_fn_error "could not create -" "$LINENO" 5
30243 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
30246 # Prefer the file from the source tree if names are identical.
30247 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30248 ac_source=$srcdir/$ac_source
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30252 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30254 if test ! -r "$ac_source"; then
30255 as_fn_error "$ac_source: file not found" "$LINENO" 5
30259 # Try a relative symlink, then a hard link, then a copy.
30261 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30262 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30264 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30265 ln "$ac_source" "$ac_file" 2>/dev/null ||
30266 cp -p "$ac_source" "$ac_file" ||
30267 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30270 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30271 $as_echo "$as_me: executing $ac_file commands" >&6;}
30276 case $ac_file$ac_mode in
30277 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
30279 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
30280 for lang in $subdirs c-family common
30282 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
30284 "as":F) chmod +x as ;;
30285 "collect-ld":F) chmod +x collect-ld ;;
30286 "nm":F) chmod +x nm ;;
30288 case ${CONFIG_HEADERS} in
30289 *auto-host.h:config.in*)
30292 # Make sure all the subdirs exist.
30293 for d in $subdirs doc build common c-family
30295 test -d $d || mkdir $d
30305 ac_clean_files=$ac_clean_files_save
30307 test $ac_write_fail = 0 ||
30308 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
30311 # configure is writing to config.log, and then calls config.status.
30312 # config.status does its own redirection, appending to config.log.
30313 # Unfortunately, on DOS this fails, as config.log is still kept open
30314 # by configure, so config.status won't be able to
write to it
; its
30315 # output is simply discarded. So we exec the FD to /dev/null,
30316 # effectively closing config.log, so it can be properly (re)opened and
30317 # appended to by config.status. When coming back to configure, we
30318 # need to make the FD available again.
30319 if test "$no_create" != yes; then
30321 ac_config_status_args
=
30322 test "$silent" = yes &&
30323 ac_config_status_args
="$ac_config_status_args --quiet"
30325 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
30327 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30328 # would make configure fail if this is the last instruction.
30329 $ac_cs_success || as_fn_exit $?
30331 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
30333 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}