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
626 common_out_object_file
642 gcc_gxx_include_dir_add_sysroot
649 user_headers_inc_next_post
650 user_headers_inc_next_pre
652 TM_MULTILIB_EXCEPTIONS_CONFIG
661 build_xm_include_list
663 build_install_headers_dir
665 all_selected_languages
683 ORIGINAL_NM_FOR_TARGET
685 ORIGINAL_LD_GOLD_FOR_TARGET
686 ORIGINAL_LD_BFD_FOR_TARGET
687 ORIGINAL_LD_FOR_TARGET
688 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 ORIGINAL_AS_FOR_TARGET
732 NATIVE_SYSTEM_HEADER_DIR
768 CROSS_SYSTEM_HEADER_DIR
769 TARGET_SYSTEM_ROOT_DEFINE
771 SYSROOT_CFLAGS_FOR_TARGET
781 valgrind_path_defines
854 program_transform_name
865 ac_subst_files
='option_includes
868 enable_option_checking
873 enable_generated_files_in_srcdir
880 enable_build_format_warnings
884 enable_gather_detailed_mem_stats
885 enable_valgrind_annotations
897 with_native_system_header_dir
907 enable_sjlj_exceptions
909 enable_leading_mingw64_underscores
912 enable_win32_registry
920 enable_gnu_indirect_function
921 enable_initfini_array
923 enable_fix_cortex_a53_835769
925 enable_gnu_unique_object
926 enable_linker_build_id
930 enable_maintainer_mode
932 enable_version_specific_runtime_libs
935 enable_libquadmath_support
936 with_linker_hash_style
938 ac_precious_vars
='build_alias
959 # Initialize some variables set by options.
961 ac_init_version
=false
962 ac_unrecognized_opts
=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
973 program_transform_name
=s
,x
,x
,
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir
='${exec_prefix}/bin'
988 sbindir
='${exec_prefix}/sbin'
989 libexecdir
='${exec_prefix}/libexec'
990 datarootdir
='${prefix}/share'
991 datadir
='${datarootdir}'
992 sysconfdir
='${prefix}/etc'
993 sharedstatedir
='${prefix}/com'
994 localstatedir
='${prefix}/var'
995 includedir
='${prefix}/include'
996 oldincludedir
='/usr/include'
997 docdir
='${datarootdir}/doc/${PACKAGE}'
998 infodir
='${datarootdir}/info'
1003 libdir
='${exec_prefix}/lib'
1004 localedir
='${datarootdir}/locale'
1005 mandir
='${datarootdir}/man'
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\
$ac_option
1019 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1025 case $ac_dashdash$ac_option in
1029 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1031 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1032 bindir
=$ac_optarg ;;
1034 -build |
--build |
--buil |
--bui |
--bu)
1035 ac_prev
=build_alias
;;
1036 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1037 build_alias
=$ac_optarg ;;
1039 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1040 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1041 ac_prev
=cache_file
;;
1042 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1043 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1044 cache_file
=$ac_optarg ;;
1046 --config-cache |
-C)
1047 cache_file
=config.cache
;;
1049 -datadir |
--datadir |
--datadi |
--datad)
1051 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1052 datadir
=$ac_optarg ;;
1054 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1055 |
--dataroo |
--dataro |
--datar)
1056 ac_prev
=datarootdir
;;
1057 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1058 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1059 datarootdir
=$ac_optarg ;;
1061 -disable-* |
--disable-*)
1062 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1065 as_fn_error
"invalid feature name: $ac_useropt"
1066 ac_useropt_orig
=$ac_useropt
1067 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_
$ac_useropt"
1072 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep
=', ';;
1075 eval enable_
$ac_useropt=no
;;
1077 -docdir |
--docdir |
--docdi |
--doc |
--do)
1079 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1080 docdir
=$ac_optarg ;;
1082 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1084 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1085 dvidir
=$ac_optarg ;;
1087 -enable-* |
--enable-*)
1088 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1091 as_fn_error
"invalid feature name: $ac_useropt"
1092 ac_useropt_orig
=$ac_useropt
1093 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_
$ac_useropt"
1098 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1099 ac_unrecognized_sep
=', ';;
1101 eval enable_
$ac_useropt=\
$ac_optarg ;;
1103 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1104 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1105 |
--exec |
--exe |
--ex)
1106 ac_prev
=exec_prefix
;;
1107 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1108 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1109 |
--exec=* |
--exe=* |
--ex=*)
1110 exec_prefix
=$ac_optarg ;;
1112 -gas |
--gas |
--ga |
--g)
1113 # Obsolete; use --with-gas.
1116 -help |
--help |
--hel |
--he |
-h)
1117 ac_init_help
=long
;;
1118 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1119 ac_init_help
=recursive
;;
1120 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1121 ac_init_help
=short
;;
1123 -host |
--host |
--hos |
--ho)
1124 ac_prev
=host_alias
;;
1125 -host=* |
--host=* |
--hos=* |
--ho=*)
1126 host_alias
=$ac_optarg ;;
1128 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1130 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1132 htmldir
=$ac_optarg ;;
1134 -includedir |
--includedir |
--includedi |
--included |
--include \
1135 |
--includ |
--inclu |
--incl |
--inc)
1136 ac_prev
=includedir
;;
1137 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1138 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1139 includedir
=$ac_optarg ;;
1141 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1143 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1144 infodir
=$ac_optarg ;;
1146 -libdir |
--libdir |
--libdi |
--libd)
1148 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1149 libdir
=$ac_optarg ;;
1151 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1152 |
--libexe |
--libex |
--libe)
1153 ac_prev
=libexecdir
;;
1154 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1155 |
--libexe=* |
--libex=* |
--libe=*)
1156 libexecdir
=$ac_optarg ;;
1158 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1159 ac_prev
=localedir
;;
1160 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1161 localedir
=$ac_optarg ;;
1163 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1164 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1165 ac_prev
=localstatedir
;;
1166 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1167 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1168 localstatedir
=$ac_optarg ;;
1170 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1172 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1173 mandir
=$ac_optarg ;;
1175 -nfp |
--nfp |
--nf)
1176 # Obsolete; use --without-fp.
1179 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1180 |
--no-cr |
--no-c |
-n)
1183 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1184 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1187 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1188 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1189 |
--oldin |
--oldi |
--old |
--ol |
--o)
1190 ac_prev
=oldincludedir
;;
1191 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1192 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1193 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1194 oldincludedir
=$ac_optarg ;;
1196 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1198 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1199 prefix
=$ac_optarg ;;
1201 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1202 |
--program-pre |
--program-pr |
--program-p)
1203 ac_prev
=program_prefix
;;
1204 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1205 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1206 program_prefix
=$ac_optarg ;;
1208 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1209 |
--program-suf |
--program-su |
--program-s)
1210 ac_prev
=program_suffix
;;
1211 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1212 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1213 program_suffix
=$ac_optarg ;;
1215 -program-transform-name |
--program-transform-name \
1216 |
--program-transform-nam |
--program-transform-na \
1217 |
--program-transform-n |
--program-transform- \
1218 |
--program-transform |
--program-transfor \
1219 |
--program-transfo |
--program-transf \
1220 |
--program-trans |
--program-tran \
1221 |
--progr-tra |
--program-tr |
--program-t)
1222 ac_prev
=program_transform_name
;;
1223 -program-transform-name=* |
--program-transform-name=* \
1224 |
--program-transform-nam=* |
--program-transform-na=* \
1225 |
--program-transform-n=* |
--program-transform-=* \
1226 |
--program-transform=* |
--program-transfor=* \
1227 |
--program-transfo=* |
--program-transf=* \
1228 |
--program-trans=* |
--program-tran=* \
1229 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1230 program_transform_name
=$ac_optarg ;;
1232 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1234 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1235 pdfdir
=$ac_optarg ;;
1237 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1239 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1242 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1243 |
-silent |
--silent |
--silen |
--sile |
--sil)
1246 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1248 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1250 sbindir
=$ac_optarg ;;
1252 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1253 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1254 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1256 ac_prev
=sharedstatedir
;;
1257 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1258 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1259 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1261 sharedstatedir
=$ac_optarg ;;
1263 -site |
--site |
--sit)
1265 -site=* |
--site=* |
--sit=*)
1268 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1270 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1271 srcdir
=$ac_optarg ;;
1273 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1274 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1275 ac_prev
=sysconfdir
;;
1276 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1277 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1278 sysconfdir
=$ac_optarg ;;
1280 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1281 ac_prev
=target_alias
;;
1282 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1283 target_alias
=$ac_optarg ;;
1285 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1288 -version |
--version |
--versio |
--versi |
--vers |
-V)
1289 ac_init_version
=: ;;
1292 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1295 as_fn_error
"invalid package name: $ac_useropt"
1296 ac_useropt_orig
=$ac_useropt
1297 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1302 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1303 ac_unrecognized_sep
=', ';;
1305 eval with_
$ac_useropt=\
$ac_optarg ;;
1307 -without-* |
--without-*)
1308 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1311 as_fn_error
"invalid package name: $ac_useropt"
1312 ac_useropt_orig
=$ac_useropt
1313 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1319 ac_unrecognized_sep
=', ';;
1321 eval with_
$ac_useropt=no
;;
1324 # Obsolete; use --with-x.
1327 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1328 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1329 ac_prev
=x_includes
;;
1330 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1331 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1332 x_includes
=$ac_optarg ;;
1334 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1335 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1336 ac_prev
=x_libraries
;;
1337 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1338 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1339 x_libraries
=$ac_optarg ;;
1341 -*) as_fn_error
"unrecognized option: \`$ac_option'
1342 Try \`$0 --help' for more information."
1346 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1347 # Reject names that are not valid shell variable names.
1348 case $ac_envvar in #(
1349 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1350 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1352 eval $ac_envvar=\
$ac_optarg
1353 export $ac_envvar ;;
1356 # FIXME: should be removed in autoconf 3.0.
1357 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1358 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1359 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1360 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1366 if test -n "$ac_prev"; then
1367 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1368 as_fn_error
"missing argument to $ac_option"
1371 if test -n "$ac_unrecognized_opts"; then
1372 case $enable_option_checking in
1374 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1375 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 # Check all directory arguments for consistency.
1380 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1381 datadir sysconfdir sharedstatedir localstatedir includedir \
1382 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1383 libdir localedir mandir
1385 eval ac_val
=\$
$ac_var
1386 # Remove trailing slashes.
1389 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1390 eval $ac_var=\
$ac_val;;
1392 # Be sure to have absolute directory names.
1394 [\\/$
]* | ?
:[\\/]* ) continue;;
1395 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1397 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1400 # There might be people who depend on the old broken behavior: `$host'
1401 # used to hold the argument of --host etc.
1402 # FIXME: To remove some day.
1405 target
=$target_alias
1407 # FIXME: To remove some day.
1408 if test "x$host_alias" != x
; then
1409 if test "x$build_alias" = x
; then
1410 cross_compiling
=maybe
1411 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1412 If a cross compiler is detected then cross compile mode will be used." >&2
1413 elif test "x$build_alias" != "x$host_alias"; then
1419 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1421 test "$silent" = yes && exec 6>/dev
/null
1424 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1425 ac_ls_di
=`ls -di .` &&
1426 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1427 as_fn_error
"working directory cannot be determined"
1428 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1429 as_fn_error
"pwd does not report name of working directory"
1432 # Find the source files, if location was not specified.
1433 if test -z "$srcdir"; then
1434 ac_srcdir_defaulted
=yes
1435 # Try the directory containing this script, then the parent directory.
1436 ac_confdir
=`$as_dirname -- "$as_myself" ||
1437 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1438 X"$as_myself" : 'X\(//\)[^/]' \| \
1439 X"$as_myself" : 'X\(//\)$' \| \
1440 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1441 $as_echo X"$as_myself" |
1442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1464 ac_srcdir_defaulted
=no
1466 if test ! -r "$srcdir/$ac_unique_file"; then
1467 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1468 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1470 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1474 # When building in place, set srcdir=.
1475 if test "$ac_abs_confdir" = "$ac_pwd"; then
1478 # Remove unnecessary trailing slashes from srcdir.
1479 # Double slashes in file names in object file debugging info
1480 # mess up M-x gdb in Emacs.
1482 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 for ac_var
in $ac_precious_vars; do
1485 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1486 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1487 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1488 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1492 # Report the --help message.
1494 if test "$ac_init_help" = "long"; then
1495 # Omit some internal or obsolete options to make the list less imposing.
1496 # This message is too long to be a string in the A/UX 3.1 sh.
1498 \`configure' configures this package to adapt to many kinds of systems.
1500 Usage: $0 [OPTION]... [VAR=VALUE]...
1502 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1503 VAR=VALUE. See below for descriptions of some of the useful variables.
1505 Defaults for the options are specified in brackets.
1508 -h, --help display this help and exit
1509 --help=short display options specific to this package
1510 --help=recursive display the short help of all the included packages
1511 -V, --version display version information and exit
1512 -q, --quiet, --silent do not print \`checking...' messages
1513 --cache-file=FILE cache test results in FILE [disabled]
1514 -C, --config-cache alias for \`--cache-file=config.cache'
1515 -n, --no-create do not create output files
1516 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518 Installation directories:
1519 --prefix=PREFIX install architecture-independent files in PREFIX
1520 [$ac_default_prefix]
1521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1524 By default, \`make install' will install all the files in
1525 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1526 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1527 for instance \`--prefix=\$HOME'.
1529 For better control, use the options below.
1531 Fine tuning of the installation directories:
1532 --bindir=DIR user executables [EPREFIX/bin]
1533 --sbindir=DIR system admin executables [EPREFIX/sbin]
1534 --libexecdir=DIR program executables [EPREFIX/libexec]
1535 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1536 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1537 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
1556 --program-prefix=PREFIX prepend PREFIX to installed program names
1557 --program-suffix=SUFFIX append SUFFIX to installed program names
1558 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1561 --build=BUILD configure
for building on BUILD
[guessed
]
1562 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1563 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1567 if test -n "$ac_init_help"; then
1572 --disable-option-checking ignore unrecognized
--enable/--with options
1573 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1574 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1575 --enable-generated-files-in-srcdir
1576 put copies of generated files
in source dir intended
1577 for creating
source tarballs
for users without
1578 texinfo bison or flex
1579 --disable-largefile omit support
for large files
1580 --disable-build-format-warnings
1581 don
't use -Wformat while building GCC
1582 --enable-werror-always enable -Werror despite compiler version
1583 --enable-checking[=LIST]
1584 enable expensive run-time checks. With LIST, enable
1585 only specific categories of checks. Categories are:
1586 yes,no,all,none,release. Flags are:
1587 assert,df,fold,gc,gcac,gimple,misc,
1588 rtlflag,rtl,runtime,tree,valgrind,types
1589 --enable-coverage[=LEVEL]
1590 enable compiler's code coverage collection. Use to
1591 measure compiler performance and
locate unused parts
1592 of the compiler. With LEVEL
, specify optimization.
1593 Values are opt
, noopt
, default is noopt
1594 --enable-gather-detailed-mem-stats
1595 enable detailed memory allocation stats gathering
1596 --enable-valgrind-annotations
1597 enable valgrind runtime interaction
1598 --enable-multilib enable library support
for multiple ABIs
1599 --enable-multiarch enable support
for multiarch paths
1600 --enable-__cxa_atexit enable __cxa_atexit
for C
++
1601 --enable-decimal-float={no
,yes,bid
,dpd
}
1602 enable decimal float extension to C. Selecting
'bid'
1603 or
'dpd' choses
which decimal floating point format
1605 --enable-fixed-point enable fixed-point arithmetic extension to C
1606 --enable-threads[=LIB
] enable thread usage
for target GCC
, using LIB thread
1608 --enable-tls enable or disable generation of tls code overriding
1609 the assembler check
for tls support
1610 --enable-objc-gc enable the use of Boehm
's garbage collector with the
1611 GNU Objective-C runtime
1612 --disable-shared don't provide a shared libgcc
1613 --enable-languages=LIST specify
which front-ends to build
1614 --disable-rpath do not hardcode runtime library paths
1615 --enable-sjlj-exceptions
1616 arrange to use setjmp
/longjmp exception handling
1617 --enable-secureplt enable -msecure-plt by default
for PowerPC
1618 --enable-leading-mingw64-underscores
1619 enable leading underscores on
64 bit mingw targets
1620 --enable-cld enable -mcld by default
for 32bit x86
1621 --enable-frame-pointer enable -fno-omit-frame-pointer by default
for 32bit
1623 --disable-win32-registry
1624 disable lookup of installation paths
in the Registry
1626 --enable-win32-registry enable registry lookup
(default
)
1627 --enable-win32-registry=KEY
1628 use KEY instead of GCC version as the last portion
1630 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1631 --enable-static[=PKGS
] build static libraries
[default
=yes]
1632 --enable-fast-install[=PKGS
]
1633 optimize
for fast installation
[default
=yes]
1634 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1635 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1636 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1637 --enable-gnu-indirect-function
1638 enable the use of the @gnu_indirect_function to
1640 --enable-initfini-array use .init_array
/.fini_array sections
1641 --enable-comdat enable COMDAT group support
1643 --enable-fix-cortex-a53-835769
1644 enable workaround
for AArch64 Cortex-A53 erratum
1646 --disable-fix-cortex-a53-835769
1647 disable workaround
for AArch64 Cortex-A53 erratum
1650 --enable-gnu-unique-object
1651 enable the use of the @gnu_unique_object ELF
1652 extension on glibc systems
1653 --enable-linker-build-id
1654 compiler will always pass
--build-id to linker
1655 --enable-maintainer-mode
1656 enable make rules and dependencies not useful
(and
1657 sometimes confusing
) to the casual installer
1658 --enable-link-mutex avoid linking multiple front-ends
at once to avoid
1659 thrashing on the build machine
1660 --enable-version-specific-runtime-libs
1661 specify that runtime libraries should be installed
1662 in a compiler-specific directory
1663 --enable-plugin enable plugin support
1664 --enable-host-shared build
host code as shared libraries
1665 --disable-libquadmath-support
1666 disable libquadmath support
for Fortran
1669 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1670 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1671 --with-build-libsubdir=DIR Directory where to
find libraries
for build system
1672 --with-local-prefix=DIR specifies directory to put
local include
1673 --with-gxx-include-dir=DIR
1674 specifies directory to put g
++ header files
1675 --with-cpp-install-dir=DIR
1676 install the user visible C preprocessor
in DIR
1677 (relative to PREFIX
) as well as PREFIX
/bin
1678 --with-gnu-ld arrange to work with GNU ld
1679 --with-ld arrange to use the specified ld
(full pathname
)
1680 --with-demangler-in-ld try to use demangler
in GNU ld
1681 --with-gnu-as arrange to work with GNU as
1682 --with-as arrange to use the specified as
(full pathname
)
1683 --with-stabs arrange to use stabs instead of
host debug format
1684 --with-dwarf2 force the default debug format to be DWARF
2
1685 --with-native-system-header-dir=dir
1686 use dir as the directory to
look for standard
1687 system header files
in. Defaults to
/usr
/include.
1688 --with-build-sysroot=sysroot
1689 use sysroot as the system root during the build
1690 --with-sysroot[=DIR
] search
for usr
/lib
, usr
/include
, et al
, within DIR
1691 --with-specs=SPECS add SPECS to driver command-line processing
1692 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GCC"
1693 --with-bugurl=URL Direct users to URL to report a bug
1694 --with-multilib-list select multilibs
(AArch64
, SH and x86-64 only
)
1695 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1696 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1697 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1698 --with-pic try to use only PIC/non-PIC objects [default=use
1700 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1701 --with-plugin-ld=[ARG] specify the plugin linker
1702 --with-glibc-version=M.N
1703 assume GCC used with glibc version M.N or later
1704 --with-long-double-128 use 128-bit long double by default
1705 --with-gc={page,zone} this option is not supported anymore. It used to
1706 choose the garbage collection mechanism to use with
1708 --with-system-zlib use installed libz
1709 --with-linker-hash-style={sysv,gnu,both}
1710 specify the linker hash style
1712 Some influential environment variables:
1713 CC C compiler command
1714 CFLAGS C compiler flags
1715 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1716 nonstandard directory <lib dir>
1717 LIBS libraries to pass to the linker, e.g. -l<library>
1718 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1719 you have headers in a nonstandard directory <include dir>
1720 CXX C++ compiler command
1721 CXXFLAGS C++ compiler flags
1723 CXXCPP C++ preprocessor
1724 GMPLIBS How to link GMP
1725 GMPINC How to find GMP include files
1726 ISLLIBS How to link ISL
1727 ISLINC How to find ISL include files
1728 CLOOGLIBS How to link CLOOG
1729 CLOOGINC How to find CLOOG include files
1731 Use these variables to override the choices made by `configure' or to
help
1732 it to
find libraries and programs with nonstandard names
/locations.
1734 Report bugs to the package provider.
1739 if test "$ac_init_help" = "recursive"; then
1740 # If there are subdirs, report their specific --help.
1741 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1742 test -d "$ac_dir" ||
1743 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1748 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1750 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1751 # A ".." for each directory in $ac_dir_suffix.
1752 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1753 case $ac_top_builddir_sub in
1754 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1755 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1758 ac_abs_top_builddir
=$ac_pwd
1759 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1760 # for backward compatibility:
1761 ac_top_builddir
=$ac_top_build_prefix
1764 .
) # We are building in place.
1766 ac_top_srcdir
=$ac_top_builddir_sub
1767 ac_abs_top_srcdir
=$ac_pwd ;;
1768 [\\/]* | ?
:[\\/]* ) # Absolute name.
1769 ac_srcdir
=$srcdir$ac_dir_suffix;
1770 ac_top_srcdir
=$srcdir
1771 ac_abs_top_srcdir
=$srcdir ;;
1773 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1774 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1775 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1777 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1779 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1780 # Check for guested configure.
1781 if test -f "$ac_srcdir/configure.gnu"; then
1783 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1784 elif test -f "$ac_srcdir/configure"; then
1786 $SHELL "$ac_srcdir/configure" --help=recursive
1788 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1794 test -n "$ac_init_help" && exit $ac_status
1795 if $ac_init_version; then
1798 generated by GNU Autoconf
2.64
1800 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1801 This configure
script is free software
; the Free Software Foundation
1802 gives unlimited permission to copy
, distribute and modify it.
1807 ## ------------------------ ##
1808 ## Autoconf initialization. ##
1809 ## ------------------------ ##
1811 # ac_fn_c_try_compile LINENO
1812 # --------------------------
1813 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1814 ac_fn_c_try_compile
()
1816 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1817 rm -f conftest.
$ac_objext
1818 if { { ac_try
="$ac_compile"
1820 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_compile") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest.$ac_objext; then :
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1844 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 } # ac_fn_c_try_compile
1849 # ac_fn_cxx_try_compile LINENO
1850 # ----------------------------
1851 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_cxx_try_compile ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 rm -f conftest.$ac_objext
1856 if { { ac_try="$ac_compile"
1858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1859 *) ac_try_echo
=$ac_try;;
1861 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_compile") 2>conftest.err
1865 if test -s conftest.err
; then
1866 grep -v '^ *+' conftest.err
>conftest.er1
1867 cat conftest.er1
>&5
1868 mv -f conftest.er1 conftest.err
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && {
1872 test -z "$ac_cxx_werror_flag" ||
1873 test ! -s conftest.err
1874 } && test -s conftest.
$ac_objext; then :
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.
$ac_ext >&5
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1885 } # ac_fn_cxx_try_compile
1887 # ac_fn_c_try_cpp LINENO
1888 # ----------------------
1889 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1892 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1893 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } >/dev/null && {
1909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1910 test ! -s conftest.err
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1925 # -------------------------------------------------------
1926 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1927 # the include files in INCLUDES and setting the cache variable VAR
1929 ac_fn_c_check_header_mongrel ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1936 $as_echo_n "(cached) " >&6
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1942 # Is the header compilable?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1944 $as_echo_n "checking $2 usability... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1950 if ac_fn_c_try_compile "$LINENO"; then :
1951 ac_header_compiler=yes
1953 ac_header_compiler=no
1955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1957 $as_echo "$ac_header_compiler" >&6; }
1959 # Is the header present?
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1961 $as_echo_n "checking $2 presence... " >&6; }
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1966 if ac_fn_c_try_cpp "$LINENO"; then :
1967 ac_header_preproc=yes
1969 ac_header_preproc=no
1971 rm -f conftest.err conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1973 $as_echo "$ac_header_preproc" >&6; }
1975 # So? What about this header?
1976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1979 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1985 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1987 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1989 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1991 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1993 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1999 $as_echo_n "(cached) " >&6
2001 eval "$3=\$ac_header_compiler"
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 } # ac_fn_c_check_header_mongrel
2011 # ac_fn_c_try_run LINENO
2012 # ----------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2014 # that executables *can* be run.
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if { { ac_try="$ac_link"
2020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2021 *) ac_try_echo
=$ac_try;;
2023 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025 (eval "$ac_link") 2>&5
2027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
2029 { { case "(($ac_try" in
2030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2031 *) ac_try_echo=$ac_try;;
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035 (eval "$ac_try") 2>&5
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; }; }; then :
2041 $as_echo "$as_me: program exited with status $ac_status" >&5
2042 $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2045 ac_retval=$ac_status
2047 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2054 # -------------------------------------------------------
2055 # Tests whether HEADER exists and can be compiled using the include files in
2056 # INCLUDES, setting the cache variable VAR accordingly.
2057 ac_fn_c_check_header_compile ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2063 $as_echo_n "(cached) " >&6
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2070 if ac_fn_c_try_compile "$LINENO"; then :
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 } # ac_fn_c_check_header_compile
2084 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2085 # --------------------------------------------
2086 # Tries to find the compile-time value of EXPR in a program that includes
2087 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2089 ac_fn_c_compute_int ()
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 if test "$cross_compiling" = yes; then
2093 # Depending upon the size, compute the lo and hi bounds.
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2100 static int test_array [1 - 2 * !(($2) >= 0)];
2107 if ac_fn_c_try_compile "$LINENO"; then :
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2116 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124 ac_hi=$ac_mid; break
2126 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2127 if test $ac_lo -le $ac_mid; then
2131 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2142 static int test_array [1 - 2 * !(($2) < 0)];
2149 if ac_fn_c_try_compile "$LINENO"; then :
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 ac_lo=$ac_mid; break
2168 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2169 if test $ac_mid -le $ac_hi; then
2173 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 # Binary search between lo and hi bounds.
2184 while test "x$ac_lo" != "x$ac_hi"; do
2185 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2199 if ac_fn_c_try_compile "$LINENO"; then :
2202 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2214 static long int longval () { return $2; }
2215 static unsigned long int ulongval () { return $2; }
2222 FILE *f = fopen ("conftest.val", "w");
2227 long int i = longval ();
2230 fprintf (f, "%ld", i);
2234 unsigned long int i = ulongval ();
2237 fprintf (f, "%lu", i);
2239 /* Do not output a trailing newline, as this causes \r\n confusion
2240 on some platforms. */
2241 return ferror (f) || fclose (f) != 0;
2247 if ac_fn_c_try_run "$LINENO"; then :
2248 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2253 conftest.$ac_objext conftest.beam conftest.$ac_ext
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260 } # ac_fn_c_compute_int
2262 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2263 # -------------------------------------------
2264 # Tests whether TYPE exists after having included INCLUDES, setting cache
2265 # variable VAR accordingly.
2266 ac_fn_c_check_type ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 $as_echo_n "(cached) " >&6
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2300 if ac_fn_c_try_compile "$LINENO"; then :
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314 } # ac_fn_c_check_type
2316 # ac_fn_c_find_intX_t LINENO BITS VAR
2317 # -----------------------------------
2318 # Finds a signed integer type with width BITS, setting cache variable VAR
2320 ac_fn_c_find_intX_t ()
2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2324 $as_echo_n "checking for int$2_t... " >&6; }
2325 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2326 $as_echo_n "(cached) " >&6
2329 for ac_type in int$2_t 'int' 'long int' \
2330 'long long int' 'short int' 'signed char'; do
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2333 $ac_includes_default
2337 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2344 if ac_fn_c_try_compile "$LINENO"; then :
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h. */
2347 $ac_includes_default
2351 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2352 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2359 if ac_fn_c_try_compile "$LINENO"; then :
2366 eval "$3=\$ac_type" ;;
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2373 if test "x$as_val" = x""no; then :
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2382 $as_echo "$ac_res" >&6; }
2383 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385 } # ac_fn_c_find_intX_t
2387 # ac_fn_c_try_link LINENO
2388 # -----------------------
2389 # Try to link conftest.$ac_ext, and return whether this succeeded.
2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2393 rm -f conftest.$ac_objext conftest$ac_exeext
2394 if { { ac_try="$ac_link"
2396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2397 *) ac_try_echo
=$ac_try;;
2399 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2400 $as_echo "$ac_try_echo"; } >&5
2401 (eval "$ac_link") 2>conftest.err
2403 if test -s conftest.err
; then
2404 grep -v '^ *+' conftest.err
>conftest.er1
2405 cat conftest.er1
>&5
2406 mv -f conftest.er1 conftest.err
2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2409 test $ac_status = 0; } && {
2410 test -z "$ac_c_werror_flag" ||
2411 test ! -s conftest.err
2412 } && test -s conftest
$ac_exeext && {
2413 test "$cross_compiling" = yes ||
2414 $as_test_x conftest
$ac_exeext
2418 $as_echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.
$ac_ext >&5
2423 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2424 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2425 # interfere with the next link command; also delete a directory that is
2426 # left behind by Apple's compiler. We do this before executing the actions.
2427 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2428 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2431 } # ac_fn_c_try_link
2433 # ac_fn_c_find_uintX_t LINENO BITS VAR
2434 # ------------------------------------
2435 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2437 ac_fn_c_find_uintX_t
()
2439 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2441 $as_echo_n "checking for uint$2_t... " >&6; }
2442 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2443 $as_echo_n "(cached) " >&6
2446 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2447 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2448 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h. */
2450 $ac_includes_default
2454 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2461 if ac_fn_c_try_compile
"$LINENO"; then :
2466 eval "$3=\$ac_type" ;;
2469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2471 if test "x$as_val" = x
""no
; then :
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2483 } # ac_fn_c_find_uintX_t
2485 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2486 # ----------------------------------------------
2487 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2488 ac_fn_c_check_header_preproc
()
2490 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2492 $as_echo_n "checking for $2... " >&6; }
2493 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2494 $as_echo_n "(cached) " >&6
2496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2500 if ac_fn_c_try_cpp
"$LINENO"; then :
2505 rm -f conftest.err conftest.
$ac_ext
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2512 } # ac_fn_c_check_header_preproc
2514 # ac_fn_cxx_try_cpp LINENO
2515 # ------------------------
2516 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2517 ac_fn_cxx_try_cpp
()
2519 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2520 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2526 $as_echo "$ac_try_echo"; } >&5
2527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2529 if test -s conftest.err; then
2530 grep -v '^ *+' conftest.err >conftest.er1
2531 cat conftest.er1 >&5
2532 mv -f conftest.er1 conftest.err
2534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2535 test $ac_status = 0; } >/dev/null && {
2536 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2537 test ! -s conftest.err
2541 $as_echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2549 } # ac_fn_cxx_try_cpp
2551 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2552 # ------------------------------------------------
2553 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2554 ac_fn_cxx_check_header_preproc ()
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2560 $as_echo_n "(cached) " >&6
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h. */
2566 if ac_fn_cxx_try_cpp "$LINENO"; then :
2571 rm -f conftest.err conftest.$ac_ext
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 } # ac_fn_cxx_check_header_preproc
2580 # ac_fn_c_check_func LINENO FUNC VAR
2581 # ----------------------------------
2582 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2583 ac_fn_c_check_func ()
2585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2587 $as_echo_n "checking for $2... " >&6; }
2588 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2589 $as_echo_n "(cached) " >&6
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2593 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2595 #define $2 innocuous_$2
2597 /* System header to define __stub macros and hopefully few prototypes,
2598 which can conflict with char $2 (); below.
2599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2600 <limits.h> exists even on freestanding compilers. */
2603 # include <limits.h>
2605 # include <assert.h>
2610 /* Override any GCC internal prototype to avoid an error.
2611 Use char because int might match the return type of a GCC
2612 builtin and then its argument prototype would still apply. */
2617 /* The GNU C library defines this for functions which it implements
2618 to always fail with ENOSYS. Some functions are actually named
2619 something starting with __ and the normal name is an alias. */
2620 #if defined __stub_$2 || defined __stub___$2
2632 if ac_fn_c_try_link "$LINENO"; then :
2637 rm -f core conftest.err conftest.$ac_objext \
2638 conftest$ac_exeext conftest.$ac_ext
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2642 $as_echo "$ac_res" >&6; }
2643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2645 } # ac_fn_c_check_func
2647 # ac_fn_cxx_try_link LINENO
2648 # -------------------------
2649 # Try to link conftest.$ac_ext, and return whether this succeeded.
2650 ac_fn_cxx_try_link ()
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 rm -f conftest.$ac_objext conftest$ac_exeext
2654 if { { ac_try="$ac_link"
2656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2657 *) ac_try_echo
=$ac_try;;
2659 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2660 $as_echo "$ac_try_echo"; } >&5
2661 (eval "$ac_link") 2>conftest.err
2663 if test -s conftest.err
; then
2664 grep -v '^ *+' conftest.err
>conftest.er1
2665 cat conftest.er1
>&5
2666 mv -f conftest.er1 conftest.err
2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669 test $ac_status = 0; } && {
2670 test -z "$ac_cxx_werror_flag" ||
2671 test ! -s conftest.err
2672 } && test -s conftest
$ac_exeext && {
2673 test "$cross_compiling" = yes ||
2674 $as_test_x conftest
$ac_exeext
2678 $as_echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.
$ac_ext >&5
2683 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2684 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2685 # interfere with the next link command; also delete a directory that is
2686 # left behind by Apple's compiler. We do this before executing the actions.
2687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2688 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2691 } # ac_fn_cxx_try_link
2692 cat >config.log
<<_ACEOF
2693 This file contains any messages produced by compilers while
2694 running configure, to aid debugging if configure makes a mistake.
2696 It was created by $as_me, which was
2697 generated by GNU Autoconf 2.64. Invocation command line was
2709 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2710 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2711 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2712 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2713 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2715 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2716 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2718 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2719 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2720 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2721 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2722 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2723 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2724 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2728 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir
=.
2733 $as_echo "PATH: $as_dir"
2749 # Keep a trace of the command line.
2750 # Strip out --no-create and --no-recursion so they do not pile up.
2751 # Strip out --silent because we don't want to record it for future runs.
2752 # Also quote any args containing shell meta-characters.
2753 # Make two passes to allow for proper duplicate-argument suppression.
2757 ac_must_keep_next
=false
2763 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2764 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2765 |
-silent |
--silent |
--silen |
--sile |
--sil)
2768 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2771 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2773 as_fn_append ac_configure_args1
" '$ac_arg'"
2774 if test $ac_must_keep_next = true
; then
2775 ac_must_keep_next
=false
# Got value, back to normal.
2778 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2779 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2780 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2781 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2782 case "$ac_configure_args0 " in
2783 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2786 -* ) ac_must_keep_next
=true
;;
2789 as_fn_append ac_configure_args
" '$ac_arg'"
2794 { ac_configure_args0
=; unset ac_configure_args0
;}
2795 { ac_configure_args1
=; unset ac_configure_args1
;}
2797 # When interrupted or exit'd, cleanup temporary files, and complete
2798 # config.log. We remove comments because anyway the quotes in there
2799 # would cause problems or look ugly.
2800 # WARNING: Use '\'' to represent an apostrophe within the trap.
2801 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2802 trap 'exit_status=$?
2803 # Save into config.log some information that might help in debugging.
2808 ## ---------------- ##
2809 ## Cache variables. ##
2810 ## ---------------- ##
2813 # The following way of writing the cache mishandles newlines in values,
2815 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2816 eval ac_val=\$$ac_var
2820 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2821 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2824 _ | IFS | as_nl) ;; #(
2825 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2826 *) { eval $ac_var=; unset $ac_var;} ;;
2831 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2832 *${as_nl}ac_space=\ *)
2834 "s/'\''/'\''\\\\'\'''\''/g;
2835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2846 ## ----------------- ##
2847 ## Output variables. ##
2848 ## ----------------- ##
2851 for ac_var in $ac_subst_vars
2853 eval ac_val=\$$ac_var
2855 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2857 $as_echo "$ac_var='\''$ac_val'\''"
2861 if test -n "$ac_subst_files"; then
2863 ## ------------------- ##
2864 ## File substitutions. ##
2865 ## ------------------- ##
2868 for ac_var
in $ac_subst_files
2870 eval ac_val
=\$
$ac_var
2872 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2874 $as_echo "$ac_var='\''$ac_val'\''"
2879 if test -s confdefs.h; then
2889 test "$ac_signal" != 0 &&
2890 $as_echo "$as_me: caught signal $ac_signal"
2891 $as_echo "$as_me: exit $exit_status"
2893 rm -f core *.core core.conftest.* &&
2894 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2897 for ac_signal
in 1 2 13 15; do
2898 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2902 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2903 rm -f -r conftest
* confdefs.h
2905 $as_echo "/* confdefs.h */" > confdefs.h
2907 # Predefined preprocessor variables.
2909 cat >>confdefs.h
<<_ACEOF
2910 #define PACKAGE_NAME "$PACKAGE_NAME"
2913 cat >>confdefs.h
<<_ACEOF
2914 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2917 cat >>confdefs.h
<<_ACEOF
2918 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2921 cat >>confdefs.h
<<_ACEOF
2922 #define PACKAGE_STRING "$PACKAGE_STRING"
2925 cat >>confdefs.h
<<_ACEOF
2926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2929 cat >>confdefs.h
<<_ACEOF
2930 #define PACKAGE_URL "$PACKAGE_URL"
2934 # Let the site file select an alternate cache file if it wants to.
2935 # Prefer an explicitly selected file to automatically selected ones.
2938 if test -n "$CONFIG_SITE"; then
2939 ac_site_file1
=$CONFIG_SITE
2940 elif test "x$prefix" != xNONE
; then
2941 ac_site_file1
=$prefix/share
/config.site
2942 ac_site_file2
=$prefix/etc
/config.site
2944 ac_site_file1
=$ac_default_prefix/share
/config.site
2945 ac_site_file2
=$ac_default_prefix/etc
/config.site
2947 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2949 test "x$ac_site_file" = xNONE
&& continue
2950 if test -r "$ac_site_file"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2952 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2953 sed 's/^/| /' "$ac_site_file" >&5
2958 if test -r "$cache_file"; then
2959 # Some versions of bash will fail to source /dev/null (special
2960 # files actually), so we avoid doing that.
2961 if test -f "$cache_file"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2963 $as_echo "$as_me: loading cache $cache_file" >&6;}
2965 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2966 *) .
"./$cache_file";;
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2971 $as_echo "$as_me: creating cache $cache_file" >&6;}
2975 # Check that the precious variables saved in the cache have kept the same
2977 ac_cache_corrupted
=false
2978 for ac_var
in $ac_precious_vars; do
2979 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2980 eval ac_new_set
=\
$ac_env_${ac_var}_set
2981 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2982 eval ac_new_val
=\
$ac_env_${ac_var}_value
2983 case $ac_old_set,$ac_new_set in
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2986 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2987 ac_cache_corrupted
=: ;;
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2990 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2991 ac_cache_corrupted
=: ;;
2994 if test "x$ac_old_val" != "x$ac_new_val"; then
2995 # differences in whitespace do not lead to failure.
2996 ac_old_val_w
=`echo x $ac_old_val`
2997 ac_new_val_w
=`echo x $ac_new_val`
2998 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3000 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3001 ac_cache_corrupted
=:
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3004 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3005 eval $ac_var=\
$ac_old_val
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3008 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3010 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3013 # Pass precious variables to config.status.
3014 if test "$ac_new_set" = set; then
3016 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3017 *) ac_arg
=$ac_var=$ac_new_val ;;
3019 case " $ac_configure_args " in
3020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3021 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3025 if $ac_cache_corrupted; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3029 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3030 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3032 ## -------------------- ##
3033 ## Main body of script. ##
3034 ## -------------------- ##
3037 ac_cpp
='$CPP $CPPFLAGS'
3038 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3047 ac_config_headers
="$ac_config_headers auto-host.h:config.in"
3050 gcc_version
=`cat $srcdir/BASE-VER`
3052 # Determine the host, build, and target systems
3054 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3055 for ac_t
in install-sh
install.sh shtool
; do
3056 if test -f "$ac_dir/$ac_t"; then
3058 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3063 if test -z "$ac_aux_dir"; then
3064 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3067 # These three variables are undocumented and unsupported,
3068 # and are intended to be withdrawn in a future Autoconf release.
3069 # They can cause serious problems if a builder's source tree is in a directory
3070 # whose full name contains unusual characters.
3071 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3072 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3073 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3076 # Make sure we can run config.sub.
3077 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3078 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3081 $as_echo_n "checking build system type... " >&6; }
3082 if test "${ac_cv_build+set}" = set; then :
3083 $as_echo_n "(cached) " >&6
3085 ac_build_alias
=$build_alias
3086 test "x$ac_build_alias" = x
&&
3087 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3088 test "x$ac_build_alias" = x
&&
3089 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3090 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3091 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3095 $as_echo "$ac_cv_build" >&6; }
3096 case $ac_cv_build in
3098 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3101 ac_save_IFS
=$IFS; IFS
='-'
3107 # Remember, the first character of IFS is used to create $*,
3108 # except with old shells:
3111 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3115 $as_echo_n "checking host system type... " >&6; }
3116 if test "${ac_cv_host+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3119 if test "x$host_alias" = x
; then
3120 ac_cv_host
=$ac_cv_build
3122 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3123 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3128 $as_echo "$ac_cv_host" >&6; }
3131 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3134 ac_save_IFS
=$IFS; IFS
='-'
3140 # Remember, the first character of IFS is used to create $*,
3141 # except with old shells:
3144 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3148 $as_echo_n "checking target system type... " >&6; }
3149 if test "${ac_cv_target+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3152 if test "x$target_alias" = x
; then
3153 ac_cv_target
=$ac_cv_host
3155 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3156 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3161 $as_echo "$ac_cv_target" >&6; }
3162 case $ac_cv_target in
3164 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3166 target
=$ac_cv_target
3167 ac_save_IFS
=$IFS; IFS
='-'
3173 # Remember, the first character of IFS is used to create $*,
3174 # except with old shells:
3177 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3180 # The aliases save the names the user supplied, while $host etc.
3181 # will get canonicalized.
3182 test -n "$target_alias" &&
3183 test "$program_prefix$program_suffix$program_transform_name" = \
3185 program_prefix
=${target_alias}-
3187 # Determine the noncanonical target name, for directory use.
3188 case ${build_alias} in
3189 "") build_noncanonical
=${build} ;;
3190 *) build_noncanonical
=${build_alias} ;;
3193 case ${host_alias} in
3194 "") host_noncanonical
=${build_noncanonical} ;;
3195 *) host_noncanonical
=${host_alias} ;;
3198 case ${target_alias} in
3199 "") target_noncanonical
=${host_noncanonical} ;;
3200 *) target_noncanonical
=${target_alias} ;;
3206 # Determine the target- and build-specific subdirectories
3208 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3209 # have matching libraries, they should use host libraries: Makefile.tpl
3210 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3211 # However, they still use the build modules, because the corresponding
3212 # host modules (e.g. bison) are only built for the host when bootstrap
3214 # - build_subdir is where we find build modules, and never changes.
3215 # - build_libsubdir is where we find build libraries, and can be overridden.
3217 # Prefix 'build-' so this never conflicts with target_subdir.
3218 build_subdir
="build-${build_noncanonical}"
3220 # Check whether --with-build-libsubdir was given.
3221 if test "${with_build_libsubdir+set}" = set; then :
3222 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
3224 build_libsubdir
="$build_subdir"
3227 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3228 if ( test $srcdir = .
&& test -d gcc
) \
3229 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
3230 host_subdir
="host-${host_noncanonical}"
3235 target_subdir
=${target_noncanonical}
3238 # Set program_transform_name
3239 test "$program_prefix" != NONE
&&
3240 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3241 # Use a double $ so make ignores it.
3242 test "$program_suffix" != NONE
&&
3243 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3244 # Double any \ or $.
3245 # By default was `s,x,x', remove it if useless.
3246 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3247 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3250 # Check for bogus environment variables.
3251 # Test if LIBRARY_PATH contains the notation for the current directory
3252 # since this would lead to problems installing/building glibc.
3253 # LIBRARY_PATH contains the current directory if one of the following
3255 # - one of the terminals (":" and ";") is the first or last sign
3256 # - two terminals occur directly after each other
3257 # - the path contains an element with a dot in it
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3259 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3260 case ${LIBRARY_PATH} in
3261 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3262 library_path_setting
="contains current directory"
3265 library_path_setting
="ok"
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3269 $as_echo "$library_path_setting" >&6; }
3270 if test "$library_path_setting" != "ok"; then
3272 *** LIBRARY_PATH shouldn't contain the current directory when
3273 *** building gcc. Please change the environment variable
3274 *** and run configure again." "$LINENO" 5
3277 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3278 # since this would lead to problems installing/building glibc.
3279 # GCC_EXEC_PREFIX contains the current directory if one of the following
3281 # - one of the terminals (":" and ";") is the first or last sign
3282 # - two terminals occur directly after each other
3283 # - the path contains an element with a dot in it
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3285 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3286 case ${GCC_EXEC_PREFIX} in
3287 [:\
;]* |
*[:\
;] |
*[:\
;][:\
;]* |
*[:\
;]. | .
[:\
;]*| . |
*[:\
;].
[:\
;]* )
3288 gcc_exec_prefix_setting
="contains current directory"
3291 gcc_exec_prefix_setting
="ok"
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3295 $as_echo "$gcc_exec_prefix_setting" >&6; }
3296 if test "$gcc_exec_prefix_setting" != "ok"; then
3298 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3299 *** building gcc. Please change the environment variable
3300 *** and run configure again." "$LINENO" 5
3307 # Specify the local prefix
3310 # Check whether --with-local-prefix was given.
3311 if test "${with_local_prefix+set}" = set; then :
3312 withval
=$with_local_prefix; case "${withval}" in
3313 yes) as_fn_error
"bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3315 *) local_prefix
=$with_local_prefix ;;
3320 # Default local prefix if it is empty
3321 if test x
$local_prefix = x
; then
3322 local_prefix
=/usr
/local
3325 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3326 # passed in by the toplevel make and thus we'd get different behavior
3327 # depending on where we built the sources.
3328 gcc_gxx_include_dir
=
3329 # Specify the g++ header file directory
3331 # Check whether --with-gxx-include-dir was given.
3332 if test "${with_gxx_include_dir+set}" = set; then :
3333 withval
=$with_gxx_include_dir; case "${withval}" in
3334 yes) as_fn_error
"bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3336 *) gcc_gxx_include_dir
=$with_gxx_include_dir ;;
3341 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3342 if test x
${gcc_gxx_include_dir} = x
; then
3343 if test x
${enable_version_specific_runtime_libs} = xyes
; then
3344 gcc_gxx_include_dir
='${libsubdir}/include/c++'
3346 libstdcxx_incdir
='include/c++/$(version)'
3347 if test x
$host != x
$target; then
3348 libstdcxx_incdir
="$target_alias/$libstdcxx_incdir"
3350 gcc_gxx_include_dir
="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3354 gcc_gxx_include_dir_add_sysroot
=0
3355 if test "${with_sysroot+set}" = set; then
3356 gcc_gxx_without_sysroot
=`expr "${gcc_gxx_include_dir}" : "${with_sysroot}"'\(.*\)'`
3357 if test "${gcc_gxx_without_sysroot}"; then
3358 gcc_gxx_include_dir
="${gcc_gxx_without_sysroot}"
3359 gcc_gxx_include_dir_add_sysroot
=1
3364 # Check whether --with-cpp_install_dir was given.
3365 if test "${with_cpp_install_dir+set}" = set; then :
3366 withval
=$with_cpp_install_dir; if test x
$withval = xyes
; then
3367 as_fn_error
"option --with-cpp-install-dir requires an argument" "$LINENO" 5
3368 elif test x
$withval != xno
; then
3369 cpp_install_dir
=$withval
3374 # We would like to our source tree to be readonly. However when releases or
3375 # pre-releases are generated, the flex/bison generated files as well as the
3376 # various formats of manuals need to be included along with the rest of the
3377 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3381 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3382 # Check whether --enable-generated-files-in-srcdir was given.
3383 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3384 enableval
=$enable_generated_files_in_srcdir; generated_files_in_srcdir
=$enableval
3386 generated_files_in_srcdir
=no
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3391 $as_echo "$generated_files_in_srcdir" >&6; }
3393 if test "$generated_files_in_srcdir" = "yes"; then
3400 # -------------------
3401 # Find default linker
3402 # -------------------
3406 # Check whether --with-gnu-ld was given.
3407 if test "${with_gnu_ld+set}" = set; then :
3408 withval
=$with_gnu_ld; gnu_ld_flag
="$with_gnu_ld"
3414 # With pre-defined ld
3416 # Check whether --with-ld was given.
3417 if test "${with_ld+set}" = set; then :
3418 withval
=$with_ld; DEFAULT_LINKER
="$with_ld"
3421 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3422 if test ! -x "$DEFAULT_LINKER"; then
3423 as_fn_error
"cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3424 elif $DEFAULT_LINKER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3428 cat >>confdefs.h
<<_ACEOF
3429 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3435 $as_echo_n "checking whether a default linker was specified... " >&6; }
3436 if test x
"${DEFAULT_LINKER+set}" = x
"set"; then
3437 if test x
"$gnu_ld_flag" = x
"no"; then
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3439 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3442 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3449 # With demangler in GNU ld
3451 # Check whether --with-demangler-in-ld was given.
3452 if test "${with_demangler_in_ld+set}" = set; then :
3453 withval
=$with_demangler_in_ld; demangler_in_ld
="$with_demangler_in_ld"
3459 # ----------------------
3460 # Find default assembler
3461 # ----------------------
3465 # Check whether --with-gnu-as was given.
3466 if test "${with_gnu_as+set}" = set; then :
3467 withval
=$with_gnu_as; gas_flag
="$with_gnu_as"
3474 # Check whether --with-as was given.
3475 if test "${with_as+set}" = set; then :
3476 withval
=$with_as; DEFAULT_ASSEMBLER
="$with_as"
3479 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3480 if test ! -x "$DEFAULT_ASSEMBLER"; then
3481 as_fn_error
"cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3482 elif $DEFAULT_ASSEMBLER -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
3486 cat >>confdefs.h
<<_ACEOF
3487 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3493 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3494 if test x
"${DEFAULT_ASSEMBLER+set}" = x
"set"; then
3495 if test x
"$gas_flag" = x
"no"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3497 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3500 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3511 # If a non-executable a.out is present (e.g. created by GNU as above even if
3512 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3513 # file, even when creating an executable, so an execution test fails.
3514 # Remove possible default executable files to avoid this.
3516 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3517 # Autoconf includes it.
3518 rm -f a.out a.exe b.out
3520 # Find the native compiler
3522 ac_cpp
='$CPP $CPPFLAGS'
3523 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3526 if test -n "$ac_tool_prefix"; then
3527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3528 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if test "${ac_cv_prog_CC+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
3534 if test -n "$CC"; then
3535 ac_cv_prog_CC
="$CC" # Let the user override the test.
3537 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3541 test -z "$as_dir" && as_dir
=.
3542 for ac_exec_ext
in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 if test -n "$CC"; then
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 $as_echo "$CC" >&6; }
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3565 if test -z "$ac_cv_prog_CC"; then
3567 # Extract the first word of "gcc", so it can be a program name with args.
3568 set dummy gcc
; ac_word
=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3574 if test -n "$ac_ct_CC"; then
3575 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3577 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3581 test -z "$as_dir" && as_dir
=.
3582 for ac_exec_ext
in '' $ac_executable_extensions; do
3583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3584 ac_cv_prog_ac_ct_CC
="gcc"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3595 if test -n "$ac_ct_CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597 $as_echo "$ac_ct_CC" >&6; }
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3603 if test "x$ac_ct_CC" = x
; then
3606 case $cross_compiling:$ac_tool_warned in
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned
=yes ;;
3618 if test -z "$CC"; then
3619 if test -n "$ac_tool_prefix"; then
3620 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3621 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if test "${ac_cv_prog_CC+set}" = set; then :
3625 $as_echo_n "(cached) " >&6
3627 if test -n "$CC"; then
3628 ac_cv_prog_CC
="$CC" # Let the user override the test.
3630 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir
=.
3635 for ac_exec_ext
in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 if test -n "$CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3650 $as_echo "$CC" >&6; }
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3659 if test -z "$CC"; then
3660 # Extract the first word of "cc", so it can be a program name with args.
3661 set dummy cc
; ac_word
=$2
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663 $as_echo_n "checking for $ac_word... " >&6; }
3664 if test "${ac_cv_prog_CC+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC
="$CC" # Let the user override the test.
3671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir
=.
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3678 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3679 ac_prog_rejected
=yes
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 if test $ac_prog_rejected = yes; then
3691 # We found a bogon in the path, so make sure we never use it.
3692 set dummy
$ac_cv_prog_CC
3694 if test $# != 0; then
3695 # We chose a different compiler from the bogus one.
3696 # However, it has the same basename, so the bogon will be chosen
3697 # first if we set CC to just the basename; use the full file name.
3699 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3705 if test -n "$CC"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707 $as_echo "$CC" >&6; }
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3715 if test -z "$CC"; then
3716 if test -n "$ac_tool_prefix"; then
3717 for ac_prog
in cl.exe
3719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC
="$CC" # Let the user override the test.
3729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir
=.
3734 for ac_exec_ext
in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 if test -n "$CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3756 test -n "$CC" && break
3759 if test -z "$CC"; then
3761 for ac_prog
in cl.exe
3763 # Extract the first word of "$ac_prog", so it can be a program name with args.
3764 set dummy
$ac_prog; ac_word
=$2
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3768 $as_echo_n "(cached) " >&6
3770 if test -n "$ac_ct_CC"; then
3771 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3777 test -z "$as_dir" && as_dir
=.
3778 for ac_exec_ext
in '' $ac_executable_extensions; do
3779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780 ac_cv_prog_ac_ct_CC
="$ac_prog"
3781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3791 if test -n "$ac_ct_CC"; then
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3793 $as_echo "$ac_ct_CC" >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3800 test -n "$ac_ct_CC" && break
3803 if test "x$ac_ct_CC" = x
; then
3806 case $cross_compiling:$ac_tool_warned in
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3810 ac_tool_warned
=yes ;;
3819 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error
"no acceptable C compiler found in \$PATH
3822 See \`config.log' for more details." "$LINENO" 5; }
3824 # Provide some information about the compiler.
3825 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3828 for ac_option
in --version -v -V -qversion; do
3829 { { ac_try
="$ac_compiler $ac_option >&5"
3831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3838 if test -s conftest.err; then
3840 ... rest of stderr output deleted ...
3841 10q' conftest.err >conftest.er1
3842 cat conftest.er1 >&5
3843 rm -f conftest.er1 conftest.err
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3860 ac_clean_files_save=$ac_clean_files
3861 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3862 # Try to create an executable without -o first, disregard a.out.
3863 # It will help us diagnose broken compilers, and finding out an intuition
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3866 $as_echo_n "checking for C compiler default output file name... " >&6; }
3867 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3869 # The possible output files:
3870 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3873 for ac_file in $ac_files
3876 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3877 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3882 if { { ac_try="$ac_link_default"
3884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3885 *) ac_try_echo
=$ac_try;;
3887 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_link_default") 2>&5
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; then :
3893 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3894 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3895 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3896 # so that the user can short-circuit this test for compilers unknown to
3898 for ac_file
in $ac_files ''
3900 test -f "$ac_file" ||
continue
3902 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3905 # We found the default executable, but exeext='' is most
3909 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3911 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3913 # We set ac_cv_exeext here because the later test for it is not
3914 # safe: cross compilers may not add the suffix if given an `-o'
3915 # argument, so we may need to know it at that point already.
3916 # Even if this section looks crufty: it has the advantage of
3923 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3929 $as_echo "$ac_file" >&6; }
3930 if test -z "$ac_file"; then :
3931 $as_echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.
$ac_ext >&5
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 { as_fn_set_status
77
3937 as_fn_error
"C compiler cannot create executables
3938 See \`config.log' for more details." "$LINENO" 5; }; }
3940 ac_exeext
=$ac_cv_exeext
3942 # Check that the compiler produces executables we can run. If not, either
3943 # the compiler is broken, or we cross compile.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3945 $as_echo_n "checking whether the C compiler works... " >&6; }
3946 # If not cross compiling, check that we can run a simple program.
3947 if test "$cross_compiling" != yes; then
3948 if { ac_try
='./$ac_file'
3949 { { case "(($ac_try" in
3950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3954 $as_echo "$ac_try_echo"; } >&5
3955 (eval "$ac_try") 2>&5
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }; }; then
3961 if test "$cross_compiling" = maybe; then
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error "cannot run C compiled programs.
3967 If you meant to cross compile
, use \
`--host'.
3968 See \`config.log
' for more details." "$LINENO" 5; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3973 $as_echo "yes" >&6; }
3975 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3976 ac_clean_files=$ac_clean_files_save
3977 # Check that the compiler produces executables we can run. If not, either
3978 # the compiler is broken, or we cross compile.
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3980 $as_echo_n "checking whether we are cross compiling... " >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3982 $as_echo "$cross_compiling" >&6; }
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3985 $as_echo_n "checking for suffix of executables... " >&6; }
3986 if { { ac_try="$ac_link"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_link") 2>&5
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }; then :
3997 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3998 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3999 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4001 for ac_file
in conftest.exe conftest conftest.
*; do
4002 test -f "$ac_file" ||
continue
4004 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4005 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4014 See \`config.log' for more details." "$LINENO" 5; }
4016 rm -f conftest
$ac_cv_exeext
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4018 $as_echo "$ac_cv_exeext" >&6; }
4020 rm -f conftest.
$ac_ext
4021 EXEEXT
=$ac_cv_exeext
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4024 $as_echo_n "checking for suffix of object files... " >&6; }
4025 if test "${ac_cv_objext+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4039 rm -f conftest.o conftest.obj
4040 if { { ac_try
="$ac_compile"
4042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4046 $as_echo "$ac_try_echo"; } >&5
4047 (eval "$ac_compile") 2>&5
4049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4050 test $ac_status = 0; }; then :
4051 for ac_file in conftest.o conftest.obj conftest.*; do
4052 test -f "$ac_file" || continue;
4054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4055 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4060 $as_echo "$as_me: failed program was:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error "cannot compute suffix of object files
: cannot compile
4066 See \
`config.log' for more details." "$LINENO" 5; }
4068 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4071 $as_echo "$ac_cv_objext" >&6; }
4072 OBJEXT=$ac_cv_objext
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4075 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4076 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4093 if ac_fn_c_try_compile "$LINENO"; then :
4098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4103 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4104 if test $ac_compiler_gnu = yes; then
4109 ac_test_CFLAGS=${CFLAGS+set}
4110 ac_save_CFLAGS=$CFLAGS
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4112 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4113 if test "${ac_cv_prog_cc_g+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
4116 ac_save_c_werror_flag=$ac_c_werror_flag
4117 ac_c_werror_flag=yes
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4131 if ac_fn_c_try_compile "$LINENO"; then :
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4146 if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_c_werror_flag=$ac_save_c_werror_flag
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4162 if ac_fn_c_try_compile "$LINENO"; then :
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_c_werror_flag=$ac_save_c_werror_flag
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4173 $as_echo "$ac_cv_prog_cc_g" >&6; }
4174 if test "$ac_test_CFLAGS" = set; then
4175 CFLAGS=$ac_save_CFLAGS
4176 elif test $ac_cv_prog_cc_g = yes; then
4177 if test "$GCC" = yes; then
4183 if test "$GCC" = yes; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4190 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4191 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4192 $as_echo_n "(cached) " >&6
4194 ac_cv_prog_cc_c89=no
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4200 #include <sys/types.h>
4201 #include <sys/stat.h>
4202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4203 struct buf { int x; };
4204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4205 static char *e (p, i)
4211 static char *f (char * (*g) (char **, int), char **p, ...)
4216 s = g (p, va_arg (v,int));
4221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4222 function prototypes and stuff, but not '\xHH' hex character constants.
4223 These don't provoke an error unfortunately, instead are silently treated
4224 as 'x'. The following induces an error, until -std is added to get
4225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4226 array size at least. It's necessary to write '\x00'==0 to get something
4227 that's true only with -std. */
4228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4231 inside strings and character constants. */
4233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4235 int test (int i, double x);
4236 struct s1 {int (*f) (int a);};
4237 struct s2 {int (*f) (double a);};
4238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4252 CC="$ac_save_CC $ac_arg"
4253 if ac_fn_c_try_compile "$LINENO"; then :
4254 ac_cv_prog_cc_c89=$ac_arg
4256 rm -f core conftest.err conftest.$ac_objext
4257 test "x$ac_cv_prog_cc_c89" != "xno" && break
4259 rm -f conftest.$ac_ext
4264 case "x$ac_cv_prog_cc_c89" in
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4267 $as_echo "none needed" >&6; } ;;
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 $as_echo "unsupported" >&6; } ;;
4272 CC="$CC $ac_cv_prog_cc_c89"
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4274 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4276 if test "x$ac_cv_prog_cc_c89" != xno; then :
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287 ac_cpp='$CXXCPP $CPPFLAGS'
4288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4291 if test -z "$CXX"; then
4292 if test -n "$CCC"; then
4295 if test -n "$ac_tool_prefix"; then
4296 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if test "${ac_cv_prog_CXX+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -n "$CXX"; then
4306 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 test -z "$as_dir" && as_dir=.
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test -n "$CXX"; then
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4328 $as_echo "$CXX" >&6; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4335 test -n "$CXX" && break
4338 if test -z "$CXX"; then
4340 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4342 # Extract the first word of "$ac_prog", so it can be a program name with args.
4343 set dummy $ac_prog; ac_word=$2
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4347 $as_echo_n "(cached) " >&6
4349 if test -n "$ac_ct_CXX"; then
4350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_CXX="$ac_prog"
4360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4370 if test -n "$ac_ct_CXX"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4372 $as_echo "$ac_ct_CXX" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4379 test -n "$ac_ct_CXX" && break
4382 if test "x$ac_ct_CXX" = x; then
4385 case $cross_compiling:$ac_tool_warned in
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4389 ac_tool_warned=yes ;;
4397 # Provide some information about the compiler.
4398 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4401 for ac_option in --version -v -V -qversion; do
4402 { { ac_try="$ac_compiler $ac_option >&5"
4404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4405 *) ac_try_echo
=$ac_try;;
4407 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4411 if test -s conftest.err
; then
4413 ... rest of stderr output deleted ...
4414 10q' conftest.err
>conftest.er1
4415 cat conftest.er1
>&5
4416 rm -f conftest.er1 conftest.err
4418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4419 test $ac_status = 0; }
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4423 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4424 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4441 if ac_fn_cxx_try_compile
"$LINENO"; then :
4446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4447 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4451 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4452 if test $ac_compiler_gnu = yes; then
4457 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4458 ac_save_CXXFLAGS
=$CXXFLAGS
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4460 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4461 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
4464 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4465 ac_cxx_werror_flag
=yes
4468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4479 if ac_fn_cxx_try_compile
"$LINENO"; then :
4480 ac_cv_prog_cxx_g
=yes
4483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4494 if ac_fn_cxx_try_compile
"$LINENO"; then :
4497 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4510 if ac_fn_cxx_try_compile
"$LINENO"; then :
4511 ac_cv_prog_cxx_g
=yes
4513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4518 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4521 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4522 if test "$ac_test_CXXFLAGS" = set; then
4523 CXXFLAGS
=$ac_save_CXXFLAGS
4524 elif test $ac_cv_prog_cxx_g = yes; then
4525 if test "$GXX" = yes; then
4531 if test "$GXX" = yes; then
4538 ac_cpp
='$CPP $CPPFLAGS'
4539 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4546 if test -n "$ac_tool_prefix"; then
4547 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4548 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4552 $as_echo_n "(cached) " >&6
4554 if test -n "$GNATBIND"; then
4555 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
4557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4561 test -z "$as_dir" && as_dir
=.
4562 for ac_exec_ext
in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
4565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 GNATBIND
=$ac_cv_prog_GNATBIND
4575 if test -n "$GNATBIND"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4577 $as_echo "$GNATBIND" >&6; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4585 if test -z "$ac_cv_prog_GNATBIND"; then
4586 ac_ct_GNATBIND
=$GNATBIND
4587 # Extract the first word of "gnatbind", so it can be a program name with args.
4588 set dummy gnatbind
; ac_word
=$2
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4592 $as_echo_n "(cached) " >&6
4594 if test -n "$ac_ct_GNATBIND"; then
4595 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
4597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4601 test -z "$as_dir" && as_dir
=.
4602 for ac_exec_ext
in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
4615 if test -n "$ac_ct_GNATBIND"; then
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4617 $as_echo "$ac_ct_GNATBIND" >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4620 $as_echo "no" >&6; }
4623 if test "x$ac_ct_GNATBIND" = x
; then
4626 case $cross_compiling:$ac_tool_warned in
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned
=yes ;;
4632 GNATBIND
=$ac_ct_GNATBIND
4635 GNATBIND
="$ac_cv_prog_GNATBIND"
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4640 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$GNATMAKE"; then
4647 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
4649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir
=.
4654 for ac_exec_ext
in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 GNATMAKE
=$ac_cv_prog_GNATMAKE
4667 if test -n "$GNATMAKE"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4669 $as_echo "$GNATMAKE" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4677 if test -z "$ac_cv_prog_GNATMAKE"; then
4678 ac_ct_GNATMAKE
=$GNATMAKE
4679 # Extract the first word of "gnatmake", so it can be a program name with args.
4680 set dummy gnatmake
; ac_word
=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4686 if test -n "$ac_ct_GNATMAKE"; then
4687 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
4689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4693 test -z "$as_dir" && as_dir
=.
4694 for ac_exec_ext
in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
4707 if test -n "$ac_ct_GNATMAKE"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4709 $as_echo "$ac_ct_GNATMAKE" >&6; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4715 if test "x$ac_ct_GNATMAKE" = x
; then
4718 case $cross_compiling:$ac_tool_warned in
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned
=yes ;;
4724 GNATMAKE
=$ac_ct_GNATMAKE
4727 GNATMAKE
="$ac_cv_prog_GNATMAKE"
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4731 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4732 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4735 cat >conftest.adb
<<EOF
4736 procedure conftest is begin null; end conftest;
4738 acx_cv_cc_gcc_supports_ada
=no
4739 # There is a bug in old released versions of GCC which causes the
4740 # driver to exit successfully when the appropriate language module
4741 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4742 # Therefore we must check for the error message as well as an
4743 # unsuccessful exit.
4744 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4745 # given a .adb file, but produce no object file. So we must check
4746 # if an object file was really produced to guard against this.
4747 errors
=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4748 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
4749 acx_cv_cc_gcc_supports_ada
=yes
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4754 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4756 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
4763 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4764 # optimizations to be activated explicitly by the toplevel.
4766 */prev-gcc
/xgcc
*) ;;
4767 *) CFLAGS
=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
4768 CXXFLAGS
=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
4773 # Determine PICFLAG for target gnatlib.
4779 # PIC is the default on some targets or must not be used.
4781 # PIC is the default on this platform
4782 # Common symbols not allowed in MH_DYLIB files
4783 PICFLAG_FOR_TARGET
=-fno-common
4786 # PIC is the default.
4789 # PIC is the default for 64-bit PA HP-UX.
4791 i
[34567]86-*-cygwin* | x86_64-
*-cygwin*)
4793 i
[34567]86-*-mingw* | x86_64-
*-mingw*)
4795 i
[34567]86-*-interix[3-9]*)
4796 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4797 # Instead, we relocate shared libraries at runtime.
4799 i
[34567]86-*-nto-qnx*)
4800 # QNX uses GNU C++, but need to define -shared option too, otherwise
4802 PICFLAG_FOR_TARGET
='-fPIC -shared'
4804 i
[34567]86-pc-msdosdjgpp*)
4805 # DJGPP does not support shared libraries at all.
4808 # On IA64 HP-UX, PIC is the default but the pic flag
4809 # sets the default TLS model and affects inlining.
4810 PICFLAG_FOR_TARGET
=-fPIC
4813 # PIC is the default.
4815 rs6000-ibm-aix
* | powerpc-ibm-aix
*)
4816 # All AIX code is PIC.
4819 # Some targets support both -fPIC and -fpic, but prefer the latter.
4821 i
[34567]86-*-* | x86_64-
*-*)
4822 PICFLAG_FOR_TARGET
=-fpic
4824 # FIXME: Override -fPIC default in libgcc only?
4825 sh-
*-linux* | sh
[2346lbe
]*-*-linux*)
4826 PICFLAG_FOR_TARGET
=-fpic
4828 # FIXME: Simplify to sh*-*-netbsd*?
4829 sh-
*-netbsdelf* | shl
*-*-netbsdelf* | sh5-
*-netbsd* | sh5l
*-*-netbsd* | \
4830 sh64-
*-netbsd* | sh64l
*-*-netbsd*)
4831 PICFLAG_FOR_TARGET
=-fpic
4833 # Default to -fPIC unless specified otherwise.
4835 PICFLAG_FOR_TARGET
=-fPIC
4839 # If the user explicitly uses -fpic/-fPIC, keep that.
4840 case "${CFLAGS_FOR_TARGET}" in
4842 PICFLAG_FOR_TARGET
=-fpic
4845 PICFLAG_FOR_TARGET
=-fPIC
4851 # -------------------------
4852 # Check C compiler features
4853 # -------------------------
4857 ac_cpp
='$CPP $CPPFLAGS'
4858 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4859 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4860 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4862 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4863 # On Suns, sometimes $CPP names a directory.
4864 if test -n "$CPP" && test -d "$CPP"; then
4867 if test -z "$CPP"; then
4868 if test "${ac_cv_prog_CPP+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4871 # Double quotes because CPP needs to be expanded
4872 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4875 for ac_c_preproc_warn_flag
in '' yes
4877 # Use a header file that comes with gcc, so configuring glibc
4878 # with a fresh cross-compiler works.
4879 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4880 # <limits.h> exists even on freestanding compilers.
4881 # On the NeXT, cc -E runs the code through the compiler's parser,
4882 # not just through cpp. "Syntax error" is here to catch this case.
4883 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4886 # include <limits.h>
4888 # include <assert.h>
4892 if ac_fn_c_try_cpp
"$LINENO"; then :
4895 # Broken: fails on valid input.
4898 rm -f conftest.err conftest.
$ac_ext
4900 # OK, works on sane cases. Now check whether nonexistent headers
4901 # can be detected and how.
4902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <ac_nonexistent.h>
4906 if ac_fn_c_try_cpp
"$LINENO"; then :
4907 # Broken: success on invalid input.
4910 # Passes both tests.
4914 rm -f conftest.err conftest.
$ac_ext
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.
$ac_ext
4919 if $ac_preproc_ok; then :
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4932 $as_echo "$CPP" >&6; }
4934 for ac_c_preproc_warn_flag
in '' yes
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4945 # include <limits.h>
4947 # include <assert.h>
4951 if ac_fn_c_try_cpp
"$LINENO"; then :
4954 # Broken: fails on valid input.
4957 rm -f conftest.err conftest.
$ac_ext
4959 # OK, works on sane cases. Now check whether nonexistent headers
4960 # can be detected and how.
4961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #include <ac_nonexistent.h>
4965 if ac_fn_c_try_cpp
"$LINENO"; then :
4966 # Broken: success on invalid input.
4969 # Passes both tests.
4973 rm -f conftest.err conftest.
$ac_ext
4976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4977 rm -f conftest.err conftest.
$ac_ext
4978 if $ac_preproc_ok; then :
4981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4983 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
4984 See \`config.log' for more details." "$LINENO" 5; }
4988 ac_cpp
='$CPP $CPPFLAGS'
4989 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4995 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4996 if test "${ac_cv_path_GREP+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4999 if test -z "$GREP"; then
5000 ac_path_GREP_found
=false
5001 # Loop through the user's path and test for each of PROGNAME-LIST
5002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5003 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5006 test -z "$as_dir" && as_dir
=.
5007 for ac_prog
in grep ggrep
; do
5008 for ac_exec_ext
in '' $ac_executable_extensions; do
5009 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5010 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5011 # Check for GNU ac_path_GREP and select it if it is found.
5012 # Check for GNU $ac_path_GREP
5013 case `"$ac_path_GREP" --version 2>&1` in
5015 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5018 $as_echo_n 0123456789 >"conftest.in"
5021 cat "conftest.in" "conftest.in" >"conftest.tmp"
5022 mv "conftest.tmp" "conftest.in"
5023 cp "conftest.in" "conftest.nl"
5024 $as_echo 'GREP' >> "conftest.nl"
5025 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5026 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5027 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5028 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5029 # Best one so far, save it but keep looking for a better one
5030 ac_cv_path_GREP
="$ac_path_GREP"
5031 ac_path_GREP_max
=$ac_count
5033 # 10*(2^10) chars as input seems more than enough
5034 test $ac_count -gt 10 && break
5036 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5039 $ac_path_GREP_found && break 3
5044 if test -z "$ac_cv_path_GREP"; then
5045 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5048 ac_cv_path_GREP
=$GREP
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5053 $as_echo "$ac_cv_path_GREP" >&6; }
5054 GREP
="$ac_cv_path_GREP"
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5058 $as_echo_n "checking for egrep... " >&6; }
5059 if test "${ac_cv_path_EGREP+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5062 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5063 then ac_cv_path_EGREP
="$GREP -E"
5065 if test -z "$EGREP"; then
5066 ac_path_EGREP_found
=false
5067 # Loop through the user's path and test for each of PROGNAME-LIST
5068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5069 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5072 test -z "$as_dir" && as_dir
=.
5073 for ac_prog
in egrep; do
5074 for ac_exec_ext
in '' $ac_executable_extensions; do
5075 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5076 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5077 # Check for GNU ac_path_EGREP and select it if it is found.
5078 # Check for GNU $ac_path_EGREP
5079 case `"$ac_path_EGREP" --version 2>&1` in
5081 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5084 $as_echo_n 0123456789 >"conftest.in"
5087 cat "conftest.in" "conftest.in" >"conftest.tmp"
5088 mv "conftest.tmp" "conftest.in"
5089 cp "conftest.in" "conftest.nl"
5090 $as_echo 'EGREP' >> "conftest.nl"
5091 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5092 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5093 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5094 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5095 # Best one so far, save it but keep looking for a better one
5096 ac_cv_path_EGREP
="$ac_path_EGREP"
5097 ac_path_EGREP_max
=$ac_count
5099 # 10*(2^10) chars as input seems more than enough
5100 test $ac_count -gt 10 && break
5102 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5105 $ac_path_EGREP_found && break 3
5110 if test -z "$ac_cv_path_EGREP"; then
5111 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5114 ac_cv_path_EGREP
=$EGREP
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5120 $as_echo "$ac_cv_path_EGREP" >&6; }
5121 EGREP
="$ac_cv_path_EGREP"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5125 $as_echo_n "checking for ANSI C header files... " >&6; }
5126 if test "${ac_cv_header_stdc+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5144 if ac_fn_c_try_compile
"$LINENO"; then :
5145 ac_cv_header_stdc
=yes
5147 ac_cv_header_stdc
=no
5149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5151 if test $ac_cv_header_stdc = yes; then
5152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "memchr" >/dev
/null
2>&1; then :
5162 ac_cv_header_stdc
=no
5168 if test $ac_cv_header_stdc = yes; then
5169 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5176 $EGREP "free" >/dev
/null
2>&1; then :
5179 ac_cv_header_stdc
=no
5185 if test $ac_cv_header_stdc = yes; then
5186 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5187 if test "$cross_compiling" = yes; then :
5190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5194 #if ((' ' & 0x0FF) == 0x020)
5195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5198 # define ISLOWER(c) \
5199 (('a' <= (c) && (c) <= 'i') \
5200 || ('j' <= (c) && (c) <= 'r') \
5201 || ('s' <= (c) && (c) <= 'z'))
5202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5210 for (i = 0; i < 256; i++)
5211 if (XOR (islower (i), ISLOWER (i))
5212 || toupper (i) != TOUPPER (i))
5217 if ac_fn_c_try_run
"$LINENO"; then :
5220 ac_cv_header_stdc
=no
5222 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5223 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5229 $as_echo "$ac_cv_header_stdc" >&6; }
5230 if test $ac_cv_header_stdc = yes; then
5232 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5236 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5237 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5238 inttypes.h stdint.h unistd.h
5240 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5243 eval as_val
=\$
$as_ac_Header
5244 if test "x$as_val" = x
""yes; then :
5245 cat >>confdefs.h
<<_ACEOF
5246 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5256 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
5263 if test "$MINIX" = yes; then
5265 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5268 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5271 $as_echo "#define _MINIX 1" >>confdefs.h
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5277 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5278 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5282 /* end confdefs.h. */
5284 # define __EXTENSIONS__ 1
5285 $ac_includes_default
5294 if ac_fn_c_try_compile
"$LINENO"; then :
5295 ac_cv_safe_to_define___extensions__
=yes
5297 ac_cv_safe_to_define___extensions__
=no
5299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5302 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5303 test $ac_cv_safe_to_define___extensions__ = yes &&
5304 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5306 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5308 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5310 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5312 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5316 ac_cpp
='$CPP $CPPFLAGS'
5317 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5318 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5319 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5321 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5322 # On Suns, sometimes $CPP names a directory.
5323 if test -n "$CPP" && test -d "$CPP"; then
5326 if test -z "$CPP"; then
5327 if test "${ac_cv_prog_CPP+set}" = set; then :
5328 $as_echo_n "(cached) " >&6
5330 # Double quotes because CPP needs to be expanded
5331 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5334 for ac_c_preproc_warn_flag
in '' yes
5336 # Use a header file that comes with gcc, so configuring glibc
5337 # with a fresh cross-compiler works.
5338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5339 # <limits.h> exists even on freestanding compilers.
5340 # On the NeXT, cc -E runs the code through the compiler's parser,
5341 # not just through cpp. "Syntax error" is here to catch this case.
5342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5345 # include <limits.h>
5347 # include <assert.h>
5351 if ac_fn_c_try_cpp
"$LINENO"; then :
5354 # Broken: fails on valid input.
5357 rm -f conftest.err conftest.
$ac_ext
5359 # OK, works on sane cases. Now check whether nonexistent headers
5360 # can be detected and how.
5361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5363 #include <ac_nonexistent.h>
5365 if ac_fn_c_try_cpp
"$LINENO"; then :
5366 # Broken: success on invalid input.
5369 # Passes both tests.
5373 rm -f conftest.err conftest.
$ac_ext
5376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5377 rm -f conftest.err conftest.
$ac_ext
5378 if $ac_preproc_ok; then :
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5391 $as_echo "$CPP" >&6; }
5393 for ac_c_preproc_warn_flag
in '' yes
5395 # Use a header file that comes with gcc, so configuring glibc
5396 # with a fresh cross-compiler works.
5397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398 # <limits.h> exists even on freestanding compilers.
5399 # On the NeXT, cc -E runs the code through the compiler's parser,
5400 # not just through cpp. "Syntax error" is here to catch this case.
5401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5404 # include <limits.h>
5406 # include <assert.h>
5410 if ac_fn_c_try_cpp
"$LINENO"; then :
5413 # Broken: fails on valid input.
5416 rm -f conftest.err conftest.
$ac_ext
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ac_nonexistent.h>
5424 if ac_fn_c_try_cpp
"$LINENO"; then :
5425 # Broken: success on invalid input.
5428 # Passes both tests.
5432 rm -f conftest.err conftest.
$ac_ext
5435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5436 rm -f conftest.err conftest.
$ac_ext
5437 if $ac_preproc_ok; then :
5440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5442 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5443 See \`config.log' for more details." "$LINENO" 5; }
5447 ac_cpp
='$CPP $CPPFLAGS'
5448 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5453 $as_echo_n "checking for inline... " >&6; }
5454 if test "${ac_cv_c_inline+set}" = set; then :
5455 $as_echo_n "(cached) " >&6
5458 for ac_kw
in inline __inline__ __inline
; do
5459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5463 static $ac_kw foo_t static_foo () {return 0; }
5464 $ac_kw foo_t foo () {return 0; }
5468 if ac_fn_c_try_compile
"$LINENO"; then :
5469 ac_cv_c_inline
=$ac_kw
5471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5472 test "$ac_cv_c_inline" != no
&& break
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5477 $as_echo "$ac_cv_c_inline" >&6; }
5479 case $ac_cv_c_inline in
5482 case $ac_cv_c_inline in
5484 *) ac_val
=$ac_cv_c_inline;;
5486 cat >>confdefs.h
<<_ACEOF
5488 #define inline $ac_val
5495 # Check whether --enable-largefile was given.
5496 if test "${enable_largefile+set}" = set; then :
5497 enableval
=$enable_largefile;
5500 if test "$enable_largefile" != no
; then
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5503 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5504 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5507 ac_cv_sys_largefile_CC
=no
5508 if test "$GCC" != yes; then
5511 # IRIX 6.2 and later do not support large files by default,
5512 # so use the C compiler's -n32 option if that helps.
5513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 #include <sys/types.h>
5516 /* Check that off_t can represent 2**63 - 1 correctly.
5517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5518 since some C++ compilers masquerading as C compilers
5519 incorrectly reject 9223372036854775807. */
5520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5522 && LARGE_OFF_T % 2147483647 == 1)
5532 if ac_fn_c_try_compile
"$LINENO"; then :
5535 rm -f core conftest.err conftest.
$ac_objext
5537 if ac_fn_c_try_compile
"$LINENO"; then :
5538 ac_cv_sys_largefile_CC
=' -n32'; break
5540 rm -f core conftest.err conftest.
$ac_objext
5544 rm -f conftest.
$ac_ext
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5548 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5549 if test "$ac_cv_sys_largefile_CC" != no
; then
5550 CC
=$CC$ac_cv_sys_largefile_CC
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5554 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5555 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5560 /* end confdefs.h. */
5561 #include <sys/types.h>
5562 /* Check that off_t can represent 2**63 - 1 correctly.
5563 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5564 since some C++ compilers masquerading as C compilers
5565 incorrectly reject 9223372036854775807. */
5566 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5567 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5568 && LARGE_OFF_T % 2147483647 == 1)
5578 if ac_fn_c_try_compile
"$LINENO"; then :
5579 ac_cv_sys_file_offset_bits
=no
; break
5581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #define _FILE_OFFSET_BITS 64
5585 #include <sys/types.h>
5586 /* Check that off_t can represent 2**63 - 1 correctly.
5587 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5588 since some C++ compilers masquerading as C compilers
5589 incorrectly reject 9223372036854775807. */
5590 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5591 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5592 && LARGE_OFF_T % 2147483647 == 1)
5602 if ac_fn_c_try_compile
"$LINENO"; then :
5603 ac_cv_sys_file_offset_bits
=64; break
5605 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5606 ac_cv_sys_file_offset_bits
=unknown
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5611 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5612 case $ac_cv_sys_file_offset_bits in #(
5615 cat >>confdefs.h
<<_ACEOF
5616 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5621 if test $ac_cv_sys_file_offset_bits = unknown
; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5623 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5624 if test "${ac_cv_sys_large_files+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
5628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 #include <sys/types.h>
5631 /* Check that off_t can represent 2**63 - 1 correctly.
5632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5633 since some C++ compilers masquerading as C compilers
5634 incorrectly reject 9223372036854775807. */
5635 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5637 && LARGE_OFF_T % 2147483647 == 1)
5647 if ac_fn_c_try_compile
"$LINENO"; then :
5648 ac_cv_sys_large_files
=no
; break
5650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #define _LARGE_FILES 1
5654 #include <sys/types.h>
5655 /* Check that off_t can represent 2**63 - 1 correctly.
5656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5657 since some C++ compilers masquerading as C compilers
5658 incorrectly reject 9223372036854775807. */
5659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5661 && LARGE_OFF_T % 2147483647 == 1)
5671 if ac_fn_c_try_compile
"$LINENO"; then :
5672 ac_cv_sys_large_files
=1; break
5674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5675 ac_cv_sys_large_files
=unknown
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5680 $as_echo "$ac_cv_sys_large_files" >&6; }
5681 case $ac_cv_sys_large_files in #(
5684 cat >>confdefs.h
<<_ACEOF
5685 #define _LARGE_FILES $ac_cv_sys_large_files
5694 # sizeof(char) is 1 by definition.
5695 # The cast to long int works around a bug in the HP C Compiler
5696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5698 # This bug is HP SR number 8606223364.
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5700 $as_echo_n "checking size of void *... " >&6; }
5701 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5702 $as_echo_n "(cached) " >&6
5704 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5707 if test "$ac_cv_type_void_p" = yes; then
5708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5710 { as_fn_set_status
77
5711 as_fn_error
"cannot compute sizeof (void *)
5712 See \`config.log' for more details." "$LINENO" 5; }; }
5714 ac_cv_sizeof_void_p
=0
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5720 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5724 cat >>confdefs.h
<<_ACEOF
5725 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5729 # The cast to long int works around a bug in the HP C Compiler
5730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5732 # This bug is HP SR number 8606223364.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5734 $as_echo_n "checking size of short... " >&6; }
5735 if test "${ac_cv_sizeof_short+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5738 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5741 if test "$ac_cv_type_short" = yes; then
5742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5744 { as_fn_set_status
77
5745 as_fn_error
"cannot compute sizeof (short)
5746 See \`config.log' for more details." "$LINENO" 5; }; }
5748 ac_cv_sizeof_short
=0
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5754 $as_echo "$ac_cv_sizeof_short" >&6; }
5758 cat >>confdefs.h
<<_ACEOF
5759 #define SIZEOF_SHORT $ac_cv_sizeof_short
5763 # The cast to long int works around a bug in the HP C Compiler
5764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5766 # This bug is HP SR number 8606223364.
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5768 $as_echo_n "checking size of int... " >&6; }
5769 if test "${ac_cv_sizeof_int+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5772 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5775 if test "$ac_cv_type_int" = yes; then
5776 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5778 { as_fn_set_status
77
5779 as_fn_error
"cannot compute sizeof (int)
5780 See \`config.log' for more details." "$LINENO" 5; }; }
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5788 $as_echo "$ac_cv_sizeof_int" >&6; }
5792 cat >>confdefs.h
<<_ACEOF
5793 #define SIZEOF_INT $ac_cv_sizeof_int
5797 # The cast to long int works around a bug in the HP C Compiler
5798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5800 # This bug is HP SR number 8606223364.
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5802 $as_echo_n "checking size of long... " >&6; }
5803 if test "${ac_cv_sizeof_long+set}" = set; then :
5804 $as_echo_n "(cached) " >&6
5806 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5809 if test "$ac_cv_type_long" = yes; then
5810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5812 { as_fn_set_status
77
5813 as_fn_error
"cannot compute sizeof (long)
5814 See \`config.log' for more details." "$LINENO" 5; }; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5822 $as_echo "$ac_cv_sizeof_long" >&6; }
5826 cat >>confdefs.h
<<_ACEOF
5827 #define SIZEOF_LONG $ac_cv_sizeof_long
5831 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5832 if test "x$ac_cv_type_long_long" = x
""yes; then :
5834 cat >>confdefs.h
<<_ACEOF
5835 #define HAVE_LONG_LONG 1
5838 # The cast to long int works around a bug in the HP C Compiler
5839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5841 # This bug is HP SR number 8606223364.
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5843 $as_echo_n "checking size of long long... " >&6; }
5844 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5845 $as_echo_n "(cached) " >&6
5847 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5850 if test "$ac_cv_type_long_long" = yes; then
5851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5853 { as_fn_set_status
77
5854 as_fn_error
"cannot compute sizeof (long long)
5855 See \`config.log' for more details." "$LINENO" 5; }; }
5857 ac_cv_sizeof_long_long
=0
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5863 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5867 cat >>confdefs.h
<<_ACEOF
5868 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5874 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5875 case $ac_cv_c_int8_t in #(
5879 cat >>confdefs.h
<<_ACEOF
5880 #define int8_t $ac_cv_c_int8_t
5885 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5886 case $ac_cv_c_int16_t in #(
5890 cat >>confdefs.h
<<_ACEOF
5891 #define int16_t $ac_cv_c_int16_t
5896 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5897 case $ac_cv_c_int32_t in #(
5901 cat >>confdefs.h
<<_ACEOF
5902 #define int32_t $ac_cv_c_int32_t
5907 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5908 case $ac_cv_c_int64_t in #(
5912 cat >>confdefs.h
<<_ACEOF
5913 #define int64_t $ac_cv_c_int64_t
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5920 $as_echo_n "checking for long long int... " >&6; }
5921 if test "${ac_cv_type_long_long_int+set}" = set; then :
5922 $as_echo_n "(cached) " >&6
5924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5927 /* For now, do not test the preprocessor; as of 2007 there are too many
5928 implementations with broken preprocessors. Perhaps this can
5929 be revisited in 2012. In the meantime, code should not expect
5930 #if to work with literals wider than 32 bits. */
5931 /* Test literals. */
5932 long long int ll = 9223372036854775807ll;
5933 long long int nll = -9223372036854775807LL;
5934 unsigned long long int ull = 18446744073709551615ULL;
5935 /* Test constant expressions. */
5936 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5938 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5944 /* Test availability of runtime routines for shift and division. */
5945 long long int llmax = 9223372036854775807ll;
5946 unsigned long long int ullmax = 18446744073709551615ull;
5947 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5948 | (llmax / ll) | (llmax % ll)
5949 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5950 | (ullmax / ull) | (ullmax % ull));
5956 if ac_fn_c_try_link
"$LINENO"; then :
5957 if test "$cross_compiling" = yes; then :
5958 ac_cv_type_long_long_int
=yes
5960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5965 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5966 # define LLONG_MAX (HALF - 1 + HALF)
5971 long long int n = 1;
5975 long long int m = n << i;
5978 if (LLONG_MAX / 2 < m)
5986 if ac_fn_c_try_run
"$LINENO"; then :
5987 ac_cv_type_long_long_int
=yes
5989 ac_cv_type_long_long_int
=no
5991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5992 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5996 ac_cv_type_long_long_int
=no
5998 rm -f core conftest.err conftest.
$ac_objext \
5999 conftest
$ac_exeext conftest.
$ac_ext
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6002 $as_echo "$ac_cv_type_long_long_int" >&6; }
6003 if test $ac_cv_type_long_long_int = yes; then
6005 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6011 ac_fn_c_check_type
"$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6012 if test "x$ac_cv_type_intmax_t" = x
""yes; then :
6014 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6017 test $ac_cv_type_long_long_int = yes \
6018 && ac_type
='long long int' \
6019 || ac_type
='long int'
6021 cat >>confdefs.h
<<_ACEOF
6022 #define intmax_t $ac_type
6029 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6030 if test "x$ac_cv_type_intptr_t" = x
""yes; then :
6032 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6035 for ac_type
in 'int' 'long int' 'long long int'; do
6036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6038 $ac_includes_default
6042 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6049 if ac_fn_c_try_compile
"$LINENO"; then :
6051 cat >>confdefs.h
<<_ACEOF
6052 #define intptr_t $ac_type
6057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6058 test -z "$ac_type" && break
6063 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
6064 case $ac_cv_c_uint8_t in #(
6068 $as_echo "#define _UINT8_T 1" >>confdefs.h
6071 cat >>confdefs.h
<<_ACEOF
6072 #define uint8_t $ac_cv_c_uint8_t
6077 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
6078 case $ac_cv_c_uint16_t in #(
6083 cat >>confdefs.h
<<_ACEOF
6084 #define uint16_t $ac_cv_c_uint16_t
6089 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
6090 case $ac_cv_c_uint32_t in #(
6094 $as_echo "#define _UINT32_T 1" >>confdefs.h
6097 cat >>confdefs.h
<<_ACEOF
6098 #define uint32_t $ac_cv_c_uint32_t
6103 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
6104 case $ac_cv_c_uint64_t in #(
6108 $as_echo "#define _UINT64_T 1" >>confdefs.h
6111 cat >>confdefs.h
<<_ACEOF
6112 #define uint64_t $ac_cv_c_uint64_t
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6119 $as_echo_n "checking for unsigned long long int... " >&6; }
6120 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6126 /* For now, do not test the preprocessor; as of 2007 there are too many
6127 implementations with broken preprocessors. Perhaps this can
6128 be revisited in 2012. In the meantime, code should not expect
6129 #if to work with literals wider than 32 bits. */
6130 /* Test literals. */
6131 long long int ll = 9223372036854775807ll;
6132 long long int nll = -9223372036854775807LL;
6133 unsigned long long int ull = 18446744073709551615ULL;
6134 /* Test constant expressions. */
6135 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6137 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6143 /* Test availability of runtime routines for shift and division. */
6144 long long int llmax = 9223372036854775807ll;
6145 unsigned long long int ullmax = 18446744073709551615ull;
6146 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6147 | (llmax / ll) | (llmax % ll)
6148 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6149 | (ullmax / ull) | (ullmax % ull));
6155 if ac_fn_c_try_link
"$LINENO"; then :
6156 ac_cv_type_unsigned_long_long_int
=yes
6158 ac_cv_type_unsigned_long_long_int
=no
6160 rm -f core conftest.err conftest.
$ac_objext \
6161 conftest
$ac_exeext conftest.
$ac_ext
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6164 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6165 if test $ac_cv_type_unsigned_long_long_int = yes; then
6167 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6173 ac_fn_c_check_type
"$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6174 if test "x$ac_cv_type_uintmax_t" = x
""yes; then :
6176 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6179 test $ac_cv_type_unsigned_long_long_int = yes \
6180 && ac_type
='unsigned long long int' \
6181 || ac_type
='unsigned long int'
6183 cat >>confdefs.h
<<_ACEOF
6184 #define uintmax_t $ac_type
6191 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6192 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6194 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6197 for ac_type
in 'unsigned int' 'unsigned long int' \
6198 'unsigned long long int'; do
6199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6200 /* end confdefs.h. */
6201 $ac_includes_default
6205 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6212 if ac_fn_c_try_compile
"$LINENO"; then :
6214 cat >>confdefs.h
<<_ACEOF
6215 #define uintptr_t $ac_type
6220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6221 test -z "$ac_type" && break
6238 if test x
"$ac_cv_c_uint64_t" = x
"no" -o x
"$ac_cv_c_int64_t" = x
"no"; then
6239 as_fn_error
"uint64_t or int64_t not found" "$LINENO" 5
6242 # check what underlying integer type int64_t uses
6244 ac_cpp
='$CXXCPP $CPPFLAGS'
6245 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t underlying type" >&5
6251 $as_echo_n "checking for int64_t underlying type... " >&6; }
6252 if test "${ac_cv_int64_t_type+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6257 /* end confdefs.h. */
6259 #ifdef HAVE_STDINT_H
6262 template <typename T> struct X { };
6264 struct X<long> { typedef long t; };
6274 if ac_fn_cxx_try_compile
"$LINENO"; then :
6275 ac_cv_int64_t_type
=long
6277 ac_cv_int64_t_type
="long long"
6279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_int64_t_type" >&5
6282 $as_echo "$ac_cv_int64_t_type" >&6; }
6283 if test "$ac_cv_int64_t_type" = "long"; then
6285 $as_echo "#define INT64_T_IS_LONG 1" >>confdefs.h
6288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6291 #ifdef HAVE_STDINT_H
6294 template <typename T> struct X { };
6296 struct X<long long> { typedef long long t; };
6306 if ac_fn_cxx_try_compile
"$LINENO"; then :
6309 as_fn_error
"error verifying int64_t uses long long" "$LINENO" 5
6311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6314 ac_cpp
='$CPP $CPPFLAGS'
6315 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6316 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6317 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6323 # ---------------------
6324 # Warnings and checking
6325 # ---------------------
6327 # Check $CC warning features (if it's GCC).
6328 # We want to use -pedantic, but we don't want warnings about
6331 # * overlong strings
6332 # * C++11 narrowing conversions in { }
6333 # So, we only use -pedantic if we can disable those warnings.
6335 # In stage 1, disable -Wformat warnings from old GCCs about new % codes
6336 # Check whether --enable-build-format-warnings was given.
6337 if test "${enable_build_format_warnings+set}" = set; then :
6338 enableval
=$enable_build_format_warnings;
6340 enable_build_format_warnings
=yes
6343 if test $enable_build_format_warnings = no
; then :
6349 save_CFLAGS
="$CFLAGS"
6350 for real_option
in -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual $wf_opt; do
6351 # Do the check with the no- prefix removed since gcc silently
6352 # accepts any -Wno-* option on purpose
6353 case $real_option in
6354 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6355 *) option
=$real_option ;;
6357 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6360 $as_echo_n "checking whether $CC supports $option... " >&6; }
6361 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6362 $as_echo_n "(cached) " >&6
6365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6376 if ac_fn_c_try_compile
"$LINENO"; then :
6377 eval "$as_acx_Woption=yes"
6379 eval "$as_acx_Woption=no"
6381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6384 eval ac_res
=\$
$as_acx_Woption
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6386 $as_echo "$ac_res" >&6; }
6387 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6388 loose_warn
="$loose_warn${loose_warn:+ }$real_option"
6391 CFLAGS
="$save_CFLAGS"
6394 save_CFLAGS
="$CFLAGS"
6395 for real_option
in -Wstrict-prototypes -Wmissing-prototypes; do
6396 # Do the check with the no- prefix removed since gcc silently
6397 # accepts any -Wno-* option on purpose
6398 case $real_option in
6399 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6400 *) option
=$real_option ;;
6402 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6405 $as_echo_n "checking whether $CC supports $option... " >&6; }
6406 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6407 $as_echo_n "(cached) " >&6
6410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6421 if ac_fn_c_try_compile
"$LINENO"; then :
6422 eval "$as_acx_Woption=yes"
6424 eval "$as_acx_Woption=no"
6426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6429 eval ac_res
=\$
$as_acx_Woption
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6431 $as_echo "$ac_res" >&6; }
6432 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6433 c_loose_warn
="$c_loose_warn${c_loose_warn:+ }$real_option"
6436 CFLAGS
="$save_CFLAGS"
6439 save_CFLAGS
="$CFLAGS"
6440 for real_option
in -Wmissing-format-attribute; do
6441 # Do the check with the no- prefix removed since gcc silently
6442 # accepts any -Wno-* option on purpose
6443 case $real_option in
6444 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6445 *) option
=$real_option ;;
6447 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6450 $as_echo_n "checking whether $CC supports $option... " >&6; }
6451 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6452 $as_echo_n "(cached) " >&6
6455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6466 if ac_fn_c_try_compile
"$LINENO"; then :
6467 eval "$as_acx_Woption=yes"
6469 eval "$as_acx_Woption=no"
6471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6474 eval ac_res
=\$
$as_acx_Woption
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6476 $as_echo "$ac_res" >&6; }
6477 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6478 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6481 CFLAGS
="$save_CFLAGS"
6483 save_CFLAGS
="$CFLAGS"
6484 for real_option
in -Woverloaded-virtual; do
6485 # Do the check with the no- prefix removed since gcc silently
6486 # accepts any -Wno-* option on purpose
6487 case $real_option in
6488 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6489 *) option
=$real_option ;;
6491 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6494 $as_echo_n "checking whether $CC supports $option... " >&6; }
6495 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6496 $as_echo_n "(cached) " >&6
6499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6510 if ac_fn_c_try_compile
"$LINENO"; then :
6511 eval "$as_acx_Woption=yes"
6513 eval "$as_acx_Woption=no"
6515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6518 eval ac_res
=\$
$as_acx_Woption
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6520 $as_echo "$ac_res" >&6; }
6521 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6522 strict_warn
="$strict_warn${strict_warn:+ }$real_option"
6525 CFLAGS
="$save_CFLAGS"
6528 save_CFLAGS
="$CFLAGS"
6529 for real_option
in -Wold-style-definition -Wc++-compat; do
6530 # Do the check with the no- prefix removed since gcc silently
6531 # accepts any -Wno-* option on purpose
6532 case $real_option in
6533 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6534 *) option
=$real_option ;;
6536 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6539 $as_echo_n "checking whether $CC supports $option... " >&6; }
6540 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6541 $as_echo_n "(cached) " >&6
6544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6555 if ac_fn_c_try_compile
"$LINENO"; then :
6556 eval "$as_acx_Woption=yes"
6558 eval "$as_acx_Woption=no"
6560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6563 eval ac_res
=\$
$as_acx_Woption
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6565 $as_echo "$ac_res" >&6; }
6566 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6567 c_strict_warn
="$c_strict_warn${c_strict_warn:+ }$real_option"
6570 CFLAGS
="$save_CFLAGS"
6572 # Do the check with the no- prefix removed from the warning options
6573 # since gcc silently accepts any -Wno-* option on purpose
6574 if test "$GCC" = yes; then :
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings" >&5
6576 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings... " >&6; }
6577 if test "${acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6580 save_CFLAGS
="$CFLAGS"
6581 CFLAGS
="-pedantic -Wlong-long -Wvariadic-macros -Woverlength-strings"
6582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6593 if ac_fn_c_try_compile
"$LINENO"; then :
6594 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=yes
6596 acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings
=no
6598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6599 CFLAGS
="$save_CFLAGS"
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&5
6602 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings" >&6; }
6603 if test $acx_cv_prog_cc_pedantic__Wlong_long__Wvariadic_macros__Woverlength_strings = yes; then :
6604 strict_warn
="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6609 # Check whether --enable-werror-always was given.
6610 if test "${enable_werror_always+set}" = set; then :
6611 enableval
=$enable_werror_always;
6613 enable_werror_always
=no
6616 if test $enable_werror_always = yes; then :
6617 strict_warn
="$strict_warn${strict_warn:+ }-Werror"
6622 # The above macros do nothing if the compiler is not GCC. However, the
6623 # Makefile has more goo to add other flags, so these variables are used
6624 # to enable warnings only for GCC.
6627 if test "x$GCC" = "xyes"; then
6628 warn_cflags
='$(GCC_WARN_CFLAGS)'
6629 warn_cxxflags
='$(GCC_WARN_CXXFLAGS)'
6634 # Disable exceptions and RTTI if building with g++
6636 save_CFLAGS
="$CFLAGS"
6637 for real_option
in -fno-exceptions -fno-rtti -fasynchronous-unwind-tables; do
6638 # Do the check with the no- prefix removed since gcc silently
6639 # accepts any -Wno-* option on purpose
6640 case $real_option in
6641 -Wno-*) option
=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
6642 *) option
=$real_option ;;
6644 as_acx_Woption
=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6647 $as_echo_n "checking whether $CC supports $option... " >&6; }
6648 if { as_var
=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6649 $as_echo_n "(cached) " >&6
6652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6663 if ac_fn_c_try_compile
"$LINENO"; then :
6664 eval "$as_acx_Woption=yes"
6666 eval "$as_acx_Woption=no"
6668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6671 eval ac_res
=\$
$as_acx_Woption
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6673 $as_echo "$ac_res" >&6; }
6674 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6675 noexception_flags
="$noexception_flags${noexception_flags:+ }$real_option"
6678 CFLAGS
="$save_CFLAGS"
6681 # Enable expensive internal checks
6683 if test x
"`cat $srcdir/DEV-PHASE`" != xexperimental
; then
6687 # Check whether --enable-checking was given.
6688 if test "${enable_checking+set}" = set; then :
6689 enableval
=$enable_checking; ac_checking_flags
="${enableval}"
6692 # Determine the default checks.
6693 if test x
$is_release = x
; then
6694 ac_checking_flags
=yes
6696 ac_checking_flags
=release
6700 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="$IFS,"
6701 for check
in release
$ac_checking_flags
6704 # these set all the flags to specific states
6705 yes) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
= ;
6706 ac_fold_checking
= ; ac_gc_checking
=1 ;
6707 ac_gc_always_collect
= ; ac_gimple_checking
=1 ; ac_rtl_checking
= ;
6708 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6709 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6710 ac_types_checking
=1 ;;
6711 no|none
) ac_assert_checking
= ; ac_checking
= ; ac_df_checking
= ;
6712 ac_fold_checking
= ; ac_gc_checking
= ;
6713 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6714 ac_rtlflag_checking
= ; ac_runtime_checking
= ;
6715 ac_tree_checking
= ; ac_valgrind_checking
= ;
6716 ac_types_checking
= ;;
6717 all
) ac_assert_checking
=1 ; ac_checking
=1 ; ac_df_checking
=1 ;
6718 ac_fold_checking
=1 ; ac_gc_checking
=1 ;
6719 ac_gc_always_collect
=1 ; ac_gimple_checking
=1 ; ac_rtl_checking
=1 ;
6720 ac_rtlflag_checking
=1 ; ac_runtime_checking
=1 ;
6721 ac_tree_checking
=1 ; ac_valgrind_checking
= ;
6722 ac_types_checking
=1 ;;
6723 release
) ac_assert_checking
=1 ; ac_checking
= ; ac_df_checking
= ;
6724 ac_fold_checking
= ; ac_gc_checking
= ;
6725 ac_gc_always_collect
= ; ac_gimple_checking
= ; ac_rtl_checking
= ;
6726 ac_rtlflag_checking
= ; ac_runtime_checking
=1 ;
6727 ac_tree_checking
= ; ac_valgrind_checking
= ;
6728 ac_types_checking
= ;;
6729 # these enable particular checks
6730 assert
) ac_assert_checking
=1 ;;
6731 df
) ac_df_checking
=1 ;;
6732 fold) ac_fold_checking
=1 ;;
6733 gc
) ac_gc_checking
=1 ;;
6734 gcac
) ac_gc_always_collect
=1 ;;
6735 gimple
) ac_gimple_checking
=1 ;;
6736 misc
) ac_checking
=1 ;;
6737 rtl
) ac_rtl_checking
=1 ;;
6738 rtlflag
) ac_rtlflag_checking
=1 ;;
6739 runtime
) ac_runtime_checking
=1 ;;
6740 tree
) ac_tree_checking
=1 ;;
6741 types
) ac_types_checking
=1 ;;
6742 valgrind
) ac_valgrind_checking
=1 ;;
6743 *) as_fn_error
"unknown check category $check" "$LINENO" 5 ;;
6749 if test x
$ac_checking != x
; then
6751 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6753 nocommon_flag
=-fno-common
6756 if test x
$ac_df_checking != x
; then
6758 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6761 if test x
$ac_assert_checking != x
; then
6763 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6766 if test x
$ac_gimple_checking != x
; then
6768 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6772 if test x
$ac_runtime_checking != x
; then
6774 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6777 if test x
$ac_tree_checking != x
; then
6779 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6781 TREEBROWSER
=tree-browser.o
6784 if test x
$ac_types_checking != x
; then
6786 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6791 if test x
$ac_rtl_checking != x
; then
6793 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6796 if test x
$ac_rtlflag_checking != x
; then
6798 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6801 if test x
$ac_gc_checking != x
; then
6803 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6806 if test x
$ac_gc_always_collect != x
; then
6808 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6811 if test x
$ac_fold_checking != x
; then
6813 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6816 valgrind_path_defines
=
6819 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6820 if test "x$ac_cv_header_valgrind_h" = x
""yes; then :
6828 # It is certainly possible that there's valgrind but no valgrind.h.
6829 # GCC relies on making annotations so we must have both.
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6831 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 #include <valgrind/memcheck.h>
6835 #ifndef VALGRIND_DISCARD
6836 #error VALGRIND_DISCARD not defined
6839 if ac_fn_c_try_cpp
"$LINENO"; then :
6840 gcc_cv_header_valgrind_memcheck_h
=yes
6842 gcc_cv_header_valgrind_memcheck_h
=no
6844 rm -f conftest.err conftest.
$ac_ext
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6846 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6848 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #include <memcheck.h>
6852 #ifndef VALGRIND_DISCARD
6853 #error VALGRIND_DISCARD not defined
6856 if ac_fn_c_try_cpp
"$LINENO"; then :
6857 gcc_cv_header_memcheck_h
=yes
6859 gcc_cv_header_memcheck_h
=no
6861 rm -f conftest.err conftest.
$ac_ext
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6863 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6864 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6866 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6869 if test $gcc_cv_header_memcheck_h = yes; then
6871 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6875 if test x
$ac_valgrind_checking != x
; then
6877 # Prepare PATH_SEPARATOR.
6878 # The user is always right.
6879 if test "${PATH_SEPARATOR+set}" != set; then
6880 echo "#! /bin/sh" >conf$$.sh
6881 echo "exit 0" >>conf$$.sh
6883 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6891 # Find out how to test for executable files. Don't use a zero-byte file,
6892 # as systems may use methods other than mode bits to determine executability.
6893 cat >conf$$.
file <<_ASEOF
6897 chmod +x conf$$.
file
6898 if test -x conf$$.
file >/dev
/null
2>&1; then
6899 ac_executable_p
="test -x"
6901 ac_executable_p
="test -f"
6905 # Extract the first word of "valgrind", so it can be a program name with args.
6906 set dummy valgrind
; ac_word
=$2
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6908 $as_echo_n "checking for $ac_word... " >&6; }
6909 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6912 case "$valgrind_path" in
6914 ac_cv_path_valgrind_path
="$valgrind_path" # Let the user override the test with a path.
6917 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6918 for ac_dir
in $PATH; do
6920 test -z "$ac_dir" && ac_dir
=.
6921 for ac_exec_ext
in '' $ac_executable_extensions; do
6922 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6923 if $ac_dir/$ac_word --version |
grep valgrind-
>/dev
/null
2>&1; then
6924 ac_cv_path_valgrind_path
="$ac_dir/$ac_word$ac_exec_ext"
6934 valgrind_path
="$ac_cv_path_valgrind_path"
6935 if test -n "$valgrind_path"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6937 $as_echo "$valgrind_path" >&6; }
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6943 if test "x$valgrind_path" = "x" \
6944 ||
(test $have_valgrind_h = no \
6945 && test $gcc_cv_header_memcheck_h = no \
6946 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
6947 as_fn_error
"*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6949 valgrind_path_defines
=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6950 valgrind_command
="$valgrind_path -q"
6952 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6958 # Enable code coverage collection
6959 # Check whether --enable-coverage was given.
6960 if test "${enable_coverage+set}" = set; then :
6961 enableval
=$enable_coverage; case "${enableval}" in
6963 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6966 coverage_flags
="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6969 # a.k.a. --disable-coverage
6973 as_fn_error
"unknown coverage setting $enableval" "$LINENO" 5
6982 # Check whether --enable-gather-detailed-mem-stats was given.
6983 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6984 enableval
=$enable_gather_detailed_mem_stats;
6986 enable_gather_detailed_mem_stats
=no
6989 gather_stats
=`if test $enable_gather_detailed_mem_stats != no; then echo 1; else echo 0; fi`
6991 cat >>confdefs.h
<<_ACEOF
6992 #define GATHER_STATISTICS $gather_stats
6996 # Check whether --enable-valgrind-annotations was given.
6997 if test "${enable_valgrind_annotations+set}" = set; then :
6998 enableval
=$enable_valgrind_annotations;
7000 enable_valgrind_annotations
=no
7003 if test x
$enable_valgrind_annotations != xno \
7004 ||
test x
$ac_valgrind_checking != x
; then
7005 if (test $have_valgrind_h = no \
7006 && test $gcc_cv_header_memcheck_h = no \
7007 && test $gcc_cv_header_valgrind_memcheck_h = no
); then
7008 as_fn_error
"*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7011 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7015 # -------------------------------
7016 # Miscenalleous configure options
7017 # -------------------------------
7021 # Check whether --with-stabs was given.
7022 if test "${with_stabs+set}" = set; then :
7023 withval
=$with_stabs; stabs
="$with_stabs"
7029 # Determine whether or not multilibs are enabled.
7030 # Check whether --enable-multilib was given.
7031 if test "${enable_multilib+set}" = set; then :
7032 enableval
=$enable_multilib;
7039 # Determine whether or not multiarch is enabled.
7040 # Check whether --enable-multiarch was given.
7041 if test "${enable_multiarch+set}" = set; then :
7042 enableval
=$enable_multiarch; case "${enableval}" in
7043 yes|no|auto
) enable_multiarch
=$enableval;;
7044 *) as_fn_error
"bad value ${enableval} given for --enable-multiarch option" "$LINENO" 5 ;;
7047 enable_multiarch
=auto
7050 if test x
${enable_multiarch} = xauto
; then
7051 if test x
${with_native_system_header_dir} != x
; then
7052 ma_msg_suffix
=", disabled auto check (configured with --native-system-header-dir)"
7055 if test x
$host != x
$target && test "x$with_sysroot" = x
; then
7056 ma_msg_suffix
=", disabled auto check (cross build configured without --with-sysroot)"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multiarch configuration" >&5
7061 $as_echo_n "checking for multiarch configuration... " >&6; }
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multiarch$ma_msg_suffix" >&5
7064 $as_echo "$enable_multiarch$ma_msg_suffix" >&6; }
7066 # needed for setting the multiarch name for soft-float/hard-float ABIs
7070 # Enable __cxa_atexit for C++.
7071 # Check whether --enable-__cxa_atexit was given.
7072 if test "${enable___cxa_atexit+set}" = set; then :
7073 enableval
=$enable___cxa_atexit;
7077 # Enable C extension for decimal float if target supports it.
7079 # Check whether --enable-decimal-float was given.
7080 if test "${enable_decimal_float+set}" = set; then :
7081 enableval
=$enable_decimal_float;
7082 case $enable_decimal_float in
7083 yes | no | bid | dpd
) default_decimal_float
=$enable_decimal_float ;;
7084 *) as_fn_error
"'$enable_decimal_float' is an invalid value for --enable-decimal-float.
7085 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
7091 powerpc
*-*-linux* | i?
86*-*-linux* | x86_64
*-*-linux* | s390
*-*-linux* | \
7093 i?
86*-*-mingw* | x86_64
*-*-mingw* | \
7094 i?
86*-*-cygwin* | x86_64
*-*-cygwin*)
7095 enable_decimal_float
=yes
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
7099 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
7100 enable_decimal_float
=no
7107 # x86's use BID format instead of DPD
7108 case x
$enable_decimal_float in
7111 i?
86*-*-* | x86_64
*-*-*)
7112 enable_decimal_float
=bid
7115 enable_decimal_float
=dpd
7118 default_decimal_float
=$enable_decimal_float
7121 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
7122 # dependency on libdecnumber.
7123 default_decimal_float
=dpd
7130 dfp
=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
7132 cat >>confdefs.h
<<_ACEOF
7133 #define ENABLE_DECIMAL_FLOAT $dfp
7137 # Use default_decimal_float for dependency.
7138 enable_decimal_float
=$default_decimal_float
7140 bid
=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
7142 cat >>confdefs.h
<<_ACEOF
7143 #define ENABLE_DECIMAL_BID_FORMAT $bid
7147 # Enable C extension for fixed-point arithmetic.
7148 # Check whether --enable-fixed-point was given.
7149 if test "${enable_fixed_point+set}" = set; then :
7150 enableval
=$enable_fixed_point;
7155 enable_fixed_point
=yes
7159 enable_fixed_point
=yes
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
7163 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
7164 enable_fixed_point
=no
7172 fixedpoint
=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
7174 cat >>confdefs.h
<<_ACEOF
7175 #define ENABLE_FIXED_POINT $fixedpoint
7180 # Pass with no value to take the default
7181 # Pass with a value to specify a thread package
7182 # Check whether --enable-threads was given.
7183 if test "${enable_threads+set}" = set; then :
7184 enableval
=$enable_threads;
7190 # Check whether --enable-tls was given.
7191 if test "${enable_tls+set}" = set; then :
7192 enableval
=$enable_tls;
7195 *) as_fn_error
"'$enable_tls' is an invalid value for --enable-tls.
7196 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7204 # Check whether --enable-objc-gc was given.
7205 if test "${enable_objc_gc+set}" = set; then :
7206 enableval
=$enable_objc_gc; if test x
$enable_objc_gc = xno
; then
7217 # Check whether --with-dwarf2 was given.
7218 if test "${with_dwarf2+set}" = set; then :
7219 withval
=$with_dwarf2; dwarf2
="$with_dwarf2"
7225 # Check whether --enable-shared was given.
7226 if test "${enable_shared+set}" = set; then :
7227 enableval
=$enable_shared;
7228 case $enable_shared in
7232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
7233 for pkg
in $enableval; do
7234 if test "X$pkg" = "Xgcc" ||
test "X$pkg" = "Xlibgcc"; then
7249 # Check whether --with-native-system-header-dir was given.
7250 if test "${with_native_system_header_dir+set}" = set; then :
7251 withval
=$with_native_system_header_dir;
7252 case ${with_native_system_header_dir} in
7253 yes|no
) as_fn_error
"bad value ${withval} given for --with-native-system-header-dir" "$LINENO" 5 ;;
7254 /* |
[A-Za-z
]:[\\/]*) ;;
7255 *) as_fn_error
"--with-native-system-header-dir argument ${withval} must be an absolute directory" "$LINENO" 5 ;;
7257 configured_native_system_header_dir
="${withval}"
7260 configured_native_system_header_dir
=
7265 # Check whether --with-build-sysroot was given.
7266 if test "${with_build_sysroot+set}" = set; then :
7267 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
7268 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
7271 SYSROOT_CFLAGS_FOR_TARGET
=
7276 if test "x$prefix" = xNONE
; then
7277 test_prefix
=/usr
/local
7281 if test "x$exec_prefix" = xNONE
; then
7282 test_exec_prefix
=$test_prefix
7284 test_exec_prefix
=$exec_prefix
7288 # Check whether --with-sysroot was given.
7289 if test "${with_sysroot+set}" = set; then :
7290 withval
=$with_sysroot;
7291 case ${with_sysroot} in
7292 yes) TARGET_SYSTEM_ROOT
='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7293 *) TARGET_SYSTEM_ROOT
=$with_sysroot ;;
7296 TARGET_SYSTEM_ROOT_DEFINE
='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7297 CROSS_SYSTEM_HEADER_DIR
='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7299 case ${TARGET_SYSTEM_ROOT} in
7300 "${test_prefix}"|
"${test_prefix}/"*|\
7301 "${test_exec_prefix}"|
"${test_exec_prefix}/"*|\
7302 '${prefix}'|
'${prefix}/'*|\
7303 '${exec_prefix}'|
'${exec_prefix}/'*)
7304 t
="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7305 TARGET_SYSTEM_ROOT_DEFINE
="$t"
7312 TARGET_SYSTEM_ROOT_DEFINE
=
7313 CROSS_SYSTEM_HEADER_DIR
='$(gcc_tooldir)/sys-include'
7322 # Check whether --with-specs was given.
7323 if test "${with_specs+set}" = set; then :
7324 withval
=$with_specs; CONFIGURE_SPECS
=$withval
7334 # Check whether --with-pkgversion was given.
7335 if test "${with_pkgversion+set}" = set; then :
7336 withval
=$with_pkgversion; case "$withval" in
7337 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
7339 *) PKGVERSION
="($withval) " ;;
7350 # Check whether --with-bugurl was given.
7351 if test "${with_bugurl+set}" = set; then :
7352 withval
=$with_bugurl; case "$withval" in
7353 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
7356 *) BUGURL
="$withval"
7360 BUGURL
="http://gcc.gnu.org/bugs.html"
7370 REPORT_BUGS_TO
="<$BUGURL>"
7371 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7378 # Sanity check enable_languages in case someone does not run the toplevel
7379 # configure # script.
7380 # Check whether --enable-languages was given.
7381 if test "${enable_languages+set}" = set; then :
7382 enableval
=$enable_languages; case ,${enable_languages}, in
7384 # go safe -- we cannot be much sure without the toplevel
7386 # analysis of which target libs are present and usable
7390 as_fn_error
"only the toplevel supports --enable-languages=all" "$LINENO" 5
7395 enable_languages
=c
,${enable_languages}
7404 # Check whether --with-multilib-list was given.
7405 if test "${with_multilib_list+set}" = set; then :
7406 withval
=$with_multilib_list; :
7408 with_multilib_list
=default
7412 # -------------------------
7413 # Checks for other programs
7414 # -------------------------
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7417 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7419 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7420 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7421 $as_echo_n "(cached) " >&6
7423 cat >conftest.
make <<\_ACEOF
7426 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7428 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7429 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7431 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7433 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7437 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7439 $as_echo "yes" >&6; }
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 SET_MAKE
="MAKE=${MAKE-make}"
7448 # Find some useful tools
7449 for ac_prog
in gawk mawk nawk
awk
7451 # Extract the first word of "$ac_prog", so it can be a program name with args.
7452 set dummy
$ac_prog; ac_word
=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if test "${ac_cv_prog_AWK+set}" = set; then :
7456 $as_echo_n "(cached) " >&6
7458 if test -n "$AWK"; then
7459 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7465 test -z "$as_dir" && as_dir
=.
7466 for ac_exec_ext
in '' $ac_executable_extensions; do
7467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468 ac_cv_prog_AWK
="$ac_prog"
7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 if test -n "$AWK"; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7481 $as_echo "$AWK" >&6; }
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7488 test -n "$AWK" && break
7491 # We need awk to create options.c and options.h.
7492 # Bail out if it's missing.
7494 "") as_fn_error
"can't build without awk, bailing out" "$LINENO" 5 ;;
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7498 $as_echo_n "checking whether ln -s works... " >&6; }
7499 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7500 $as_echo_n "(cached) " >&6
7502 rm -f conftestdata_t
7503 echo >conftestdata_f
7504 if ln -s conftestdata_f conftestdata_t
2>/dev
/null
7506 gcc_cv_prog_LN_S
="ln -s"
7508 if ln conftestdata_f conftestdata_t
2>/dev
/null
7512 if cp -p conftestdata_f conftestdata_t
2>/dev
/null
7514 gcc_cv_prog_LN_S
="cp -p"
7520 rm -f conftestdata_f conftestdata_t
7523 LN_S
="$gcc_cv_prog_LN_S"
7524 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7526 $as_echo "yes" >&6; }
7528 if test "$gcc_cv_prog_LN_S" = "ln"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7530 $as_echo "no, using ln" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7533 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7538 $as_echo_n "checking whether ln works... " >&6; }
7539 if test "${acx_cv_prog_LN+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
7542 rm -f conftestdata_t
7543 echo >conftestdata_f
7544 if ln conftestdata_f conftestdata_t
2>/dev
/null
7550 rm -f conftestdata_f conftestdata_t
7553 if test $acx_cv_prog_LN = no
; then
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7556 $as_echo "no, using $LN" >&6; }
7558 LN
="$acx_cv_prog_LN"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7560 $as_echo "yes" >&6; }
7563 if test -n "$ac_tool_prefix"; then
7564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7565 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7569 $as_echo_n "(cached) " >&6
7571 if test -n "$RANLIB"; then
7572 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7578 test -z "$as_dir" && as_dir
=.
7579 for ac_exec_ext
in '' $ac_executable_extensions; do
7580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7581 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 RANLIB
=$ac_cv_prog_RANLIB
7592 if test -n "$RANLIB"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7594 $as_echo "$RANLIB" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7602 if test -z "$ac_cv_prog_RANLIB"; then
7603 ac_ct_RANLIB
=$RANLIB
7604 # Extract the first word of "ranlib", so it can be a program name with args.
7605 set dummy ranlib
; ac_word
=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7611 if test -n "$ac_ct_RANLIB"; then
7612 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7614 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir
=.
7619 for ac_exec_ext
in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7632 if test -n "$ac_ct_RANLIB"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7634 $as_echo "$ac_ct_RANLIB" >&6; }
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7640 if test "x$ac_ct_RANLIB" = x
; then
7643 case $cross_compiling:$ac_tool_warned in
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7647 ac_tool_warned
=yes ;;
7649 RANLIB
=$ac_ct_RANLIB
7652 RANLIB
="$ac_cv_prog_RANLIB"
7658 # Find a good install program. We prefer a C program (faster),
7659 # so one script is as good as another. But avoid the broken or
7660 # incompatible versions:
7661 # SysV /etc/install, /usr/sbin/install
7662 # SunOS /usr/etc/install
7663 # IRIX /sbin/install
7665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7667 # ./install, which can be erroneously created by make from ./install.sh.
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7669 $as_echo_n "checking for a BSD compatible install... " >&6; }
7670 if test -z "$INSTALL"; then
7671 if test "${ac_cv_path_install+set}" = set; then :
7672 $as_echo_n "(cached) " >&6
7674 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
7675 for ac_dir
in $PATH; do
7676 # Account for people who put trailing slashes in PATH elements.
7678 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
7680 # OSF1 and SCO ODT 3.0 have their own names for install.
7681 for ac_prog
in ginstall scoinst
install; do
7682 if test -f $ac_dir/$ac_prog; then
7683 if test $ac_prog = install &&
7684 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
7685 # AIX install. It has an incompatible calling convention.
7686 # OSF/1 installbsd also uses dspmsg, but is usable.
7689 ac_cv_path_install
="$ac_dir/$ac_prog -c"
7700 if test "${ac_cv_path_install+set}" = set; then
7701 INSTALL
="$ac_cv_path_install"
7703 # As a last resort, use the slow shell script. We don't cache a
7704 # path for INSTALL within a source directory, because that will
7705 # break other packages using the cache if that directory is
7706 # removed, or if the path is relative.
7707 INSTALL
="$ac_install_sh"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7711 $as_echo "$INSTALL" >&6; }
7713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7714 # It thinks the first close brace ends the variable substitution.
7715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7717 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7720 # See if cmp has --ignore-initial.
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7722 $as_echo_n "checking for cmp's capabilities... " >&6; }
7723 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7728 gcc_cv_prog_cmp_skip
=slowcompare
7729 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
7730 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
7733 gcc_cv_prog_cmp_skip
=gnucompare
7736 if test $gcc_cv_prog_cmp_skip = slowcompare
; then
7737 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
7738 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
7741 gcc_cv_prog_cmp_skip
=fastcompare
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7749 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7750 make_compare_target
=$gcc_cv_prog_cmp_skip
7754 # See if we have the mktemp command.
7755 # Extract the first word of "mktemp", so it can be a program name with args.
7756 set dummy mktemp
; ac_word
=$2
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758 $as_echo_n "checking for $ac_word... " >&6; }
7759 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7762 if test -n "$have_mktemp_command"; then
7763 ac_cv_prog_have_mktemp_command
="$have_mktemp_command" # Let the user override the test.
7765 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7769 test -z "$as_dir" && as_dir
=.
7770 for ac_exec_ext
in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_have_mktemp_command
="yes"
7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command
="no"
7783 have_mktemp_command
=$ac_cv_prog_have_mktemp_command
7784 if test -n "$have_mktemp_command"; then
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7786 $as_echo "$have_mktemp_command" >&6; }
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7794 # See if makeinfo has been installed and is modern enough
7795 # that we can use it.
7797 # Extract the first word of "makeinfo", so it can be a program name with args.
7798 set dummy makeinfo
; ac_word
=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7804 if test -n "$MAKEINFO"; then
7805 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
7807 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7811 test -z "$as_dir" && as_dir
=.
7812 for ac_exec_ext
in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_MAKEINFO
="makeinfo"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824 MAKEINFO
=$ac_cv_prog_MAKEINFO
7825 if test -n "$MAKEINFO"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7827 $as_echo "$MAKEINFO" >&6; }
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7834 if test -n "$MAKEINFO"; then
7835 # Found it, now check the version.
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7837 $as_echo_n "checking for modern makeinfo... " >&6; }
7838 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
7841 ac_prog_version
=`eval $MAKEINFO --version 2>&1 |
7842 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7844 case $ac_prog_version in
7845 '') gcc_cv_prog_makeinfo_modern
=no
;;
7846 4.
[7-9]*|
4.
[1-9][0-9]*|
[5-9]*|
[1-9][0-9]*) gcc_cv_prog_makeinfo_modern
=yes;;
7847 *) gcc_cv_prog_makeinfo_modern
=no
;;
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7852 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7854 gcc_cv_prog_makeinfo_modern
=no
7856 if test $gcc_cv_prog_makeinfo_modern = no
; then
7857 MAKEINFO
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7860 if test $gcc_cv_prog_makeinfo_modern = no
; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7862 *** Makeinfo is missing or too old.
7863 *** Info documentation will not be built." >&5
7864 $as_echo "$as_me: WARNING:
7865 *** Makeinfo is missing or too old.
7866 *** Info documentation will not be built." >&2;}
7873 # Is pod2man recent enough to regenerate manpages?
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7875 $as_echo_n "checking for recent Pod::Man... " >&6; }
7876 if (perl
-e 'use 1.10 Pod::Man') >/dev
/null
2>&1; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7878 $as_echo "yes" >&6; }
7879 GENERATED_MANPAGES
=generated-manpages
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7887 MISSING
="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7892 # Extract the first word of "$ac_prog", so it can be a program name with args.
7893 set dummy
$ac_prog; ac_word
=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if test "${ac_cv_prog_FLEX+set}" = set; then :
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$FLEX"; then
7900 ac_cv_prog_FLEX
="$FLEX" # Let the user override the test.
7902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir
=.
7907 for ac_exec_ext
in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_FLEX
="$ac_prog"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 FLEX
=$ac_cv_prog_FLEX
7920 if test -n "$FLEX"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7922 $as_echo "$FLEX" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7929 test -n "$FLEX" && break
7931 test -n "$FLEX" || FLEX
="$MISSING flex"
7935 for ac_prog
in bison
7937 # Extract the first word of "$ac_prog", so it can be a program name with args.
7938 set dummy
$ac_prog; ac_word
=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if test "${ac_cv_prog_BISON+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7944 if test -n "$BISON"; then
7945 ac_cv_prog_BISON
="$BISON" # Let the user override the test.
7947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7951 test -z "$as_dir" && as_dir
=.
7952 for ac_exec_ext
in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954 ac_cv_prog_BISON
="$ac_prog"
7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 BISON
=$ac_cv_prog_BISON
7965 if test -n "$BISON"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7967 $as_echo "$BISON" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7974 test -n "$BISON" && break
7976 test -n "$BISON" || BISON
="$MISSING bison"
7979 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7980 # check for build == host before using them.
7983 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/nm.c \
7984 && test -d ..
/binutils
; then
7985 NM
='${objdir}/../binutils/nm-new'
7987 # Extract the first word of "nm", so it can be a program name with args.
7988 set dummy nm
; ac_word
=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_prog_NM+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7994 if test -n "$NM"; then
7995 ac_cv_prog_NM
="$NM" # Let the user override the test.
7997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir
=.
8002 for ac_exec_ext
in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
8016 if test -n "$NM"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8018 $as_echo "$NM" >&6; }
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8028 if test x
${build} = x
${host} && test -f $srcdir/..
/binutils
/ar.c \
8029 && test -d ..
/binutils
; then
8030 AR
='${objdir}/../binutils/ar'
8032 # Extract the first word of "ar", so it can be a program name with args.
8033 set dummy
ar; ac_word
=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if test "${ac_cv_prog_AR+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8039 if test -n "$AR"; then
8040 ac_cv_prog_AR
="$AR" # Let the user override the test.
8042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir
=.
8047 for ac_exec_ext
in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8057 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
8061 if test -n "$AR"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8063 $as_echo "$AR" >&6; }
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8073 # --------------------
8074 # Checks for C headers
8075 # --------------------
8077 # Need to reject headers which give warnings, so that the -Werror bootstrap
8078 # works later. *sigh* This needs to come before all header checks.
8080 ac_c_preproc_warn_flag
=yes
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8083 $as_echo_n "checking for ANSI C header files... " >&6; }
8084 if test "${ac_cv_header_stdc+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8102 if ac_fn_c_try_compile
"$LINENO"; then :
8103 ac_cv_header_stdc
=yes
8105 ac_cv_header_stdc
=no
8107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8109 if test $ac_cv_header_stdc = yes; then
8110 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8112 /* end confdefs.h. */
8116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8117 $EGREP "memchr" >/dev
/null
2>&1; then :
8120 ac_cv_header_stdc
=no
8126 if test $ac_cv_header_stdc = yes; then
8127 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8134 $EGREP "free" >/dev
/null
2>&1; then :
8137 ac_cv_header_stdc
=no
8143 if test $ac_cv_header_stdc = yes; then
8144 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8145 if test "$cross_compiling" = yes; then :
8148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8152 #if ((' ' & 0x0FF) == 0x020)
8153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8156 # define ISLOWER(c) \
8157 (('a' <= (c) && (c) <= 'i') \
8158 || ('j' <= (c) && (c) <= 'r') \
8159 || ('s' <= (c) && (c) <= 'z'))
8160 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8163 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8168 for (i = 0; i < 256; i++)
8169 if (XOR (islower (i), ISLOWER (i))
8170 || toupper (i) != TOUPPER (i))
8175 if ac_fn_c_try_run
"$LINENO"; then :
8178 ac_cv_header_stdc
=no
8180 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8181 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8187 $as_echo "$ac_cv_header_stdc" >&6; }
8188 if test $ac_cv_header_stdc = yes; then
8190 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8195 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8196 if test "${ac_cv_header_time+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #include <sys/types.h>
8202 #include <sys/time.h>
8208 if ((struct tm *) 0)
8214 if ac_fn_c_try_compile
"$LINENO"; then :
8215 ac_cv_header_time
=yes
8217 ac_cv_header_time
=no
8219 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8222 $as_echo "$ac_cv_header_time" >&6; }
8223 if test $ac_cv_header_time = yes; then
8225 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8230 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8231 if test "${gcc_cv_header_string+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8237 #include <strings.h>
8246 if ac_fn_c_try_compile
"$LINENO"; then :
8247 gcc_cv_header_string
=yes
8249 gcc_cv_header_string
=no
8251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8254 $as_echo "$gcc_cv_header_string" >&6; }
8255 if test $gcc_cv_header_string = yes; then
8257 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8262 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8263 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
8266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <sys/types.h>
8269 #include <sys/wait.h>
8271 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8274 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8282 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8287 if ac_fn_c_try_compile
"$LINENO"; then :
8288 ac_cv_header_sys_wait_h
=yes
8290 ac_cv_header_sys_wait_h
=no
8292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8295 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8296 if test $ac_cv_header_sys_wait_h = yes; then
8298 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
8303 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
8304 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
8305 $as_echo_n "(cached) " >&6
8307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 #include <sys/types.h>
8310 #include <termios.h>
8316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8317 $EGREP "yes" >/dev
/null
2>&1; then :
8318 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
8320 ac_cv_sys_tiocgwinsz_in_termios_h
=no
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
8326 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
8328 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
8330 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
8331 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 #include <sys/types.h>
8337 #include <sys/ioctl.h>
8343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8344 $EGREP "yes" >/dev
/null
2>&1; then :
8345 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
8347 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
8353 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
8355 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
8357 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
8362 for ac_header
in limits.h stddef.h string.h
strings.h stdlib.h
time.h
iconv.h \
8363 fcntl.h unistd.h sys
/file.h sys
/time.h sys
/mman.h \
8364 sys
/resource.h sys
/param.h sys
/times.h sys
/stat.h \
8365 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8367 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8368 ac_fn_c_check_header_preproc
"$LINENO" "$ac_header" "$as_ac_Header"
8369 eval as_val
=\$
$as_ac_Header
8370 if test "x$as_val" = x
""yes; then :
8371 cat >>confdefs.h
<<_ACEOF
8372 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8379 # Check for thread headers.
8380 ac_fn_c_check_header_preproc
"$LINENO" "thread.h" "ac_cv_header_thread_h"
8381 if test "x$ac_cv_header_thread_h" = x
""yes; then :
8387 ac_fn_c_check_header_preproc
"$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8388 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
8395 # These tests can't be done till we know if we have limits.h.
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8397 $as_echo_n "checking for CHAR_BIT... " >&6; }
8398 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #ifdef HAVE_LIMITS_H
8410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8411 $EGREP "found" >/dev
/null
2>&1; then :
8412 gcc_cv_decl_char_bit
=yes
8414 gcc_cv_decl_char_bit
=no
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8421 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8422 if test $gcc_cv_decl_char_bit = no
; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8424 $as_echo_n "checking number of bits in a byte... " >&6; }
8425 if test "${gcc_cv_c_nbby+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8430 while test $i -lt 65; do
8431 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8438 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8439 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8445 if ac_fn_c_try_compile
"$LINENO"; then :
8446 gcc_cv_c_nbby
=$i; break
8448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8451 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby
=failed
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8455 $as_echo "$gcc_cv_c_nbby" >&6; }
8456 if test $gcc_cv_c_nbby = failed
; then
8457 as_fn_error
"cannot determine number of bits in a byte" "$LINENO" 5
8460 cat >>confdefs.h
<<_ACEOF
8461 #define CHAR_BIT $gcc_cv_c_nbby
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8467 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8468 if test "${ac_cv_c_bigendian+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8471 ac_cv_c_bigendian
=unknown
8472 # See if we're dealing with a universal compiler.
8473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 #ifndef __APPLE_CC__
8476 not a universal capable compiler
8481 if ac_fn_c_try_compile
"$LINENO"; then :
8483 # Check for potential -arch flags. It is not universal unless
8484 # there are at least two -arch flags with different values.
8487 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8488 if test -n "$ac_prev"; then
8490 i?
86 | x86_64 | ppc | ppc64
)
8491 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
8494 ac_cv_c_bigendian
=universal
8500 elif test "x$ac_word" = "x-arch"; then
8505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8506 if test $ac_cv_c_bigendian = unknown
; then
8507 # See if sys/param.h defines the BYTE_ORDER macro.
8508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 #include <sys/types.h>
8511 #include <sys/param.h>
8516 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8517 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8526 if ac_fn_c_try_compile
"$LINENO"; then :
8527 # It does; now see whether it defined to BIG_ENDIAN or not.
8528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8530 #include <sys/types.h>
8531 #include <sys/param.h>
8536 #if BYTE_ORDER != BIG_ENDIAN
8544 if ac_fn_c_try_compile
"$LINENO"; then :
8545 ac_cv_c_bigendian
=yes
8547 ac_cv_c_bigendian
=no
8549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8553 if test $ac_cv_c_bigendian = unknown
; then
8554 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8562 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8570 if ac_fn_c_try_compile
"$LINENO"; then :
8571 # It does; now see whether it defined to _BIG_ENDIAN or not.
8572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8587 if ac_fn_c_try_compile
"$LINENO"; then :
8588 ac_cv_c_bigendian
=yes
8590 ac_cv_c_bigendian
=no
8592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8596 if test $ac_cv_c_bigendian = unknown
; then
8597 # Compile a test program.
8598 if test "$cross_compiling" = yes; then :
8599 # Try to guess by grepping values from an object file.
8600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h. */
8602 short int ascii_mm[] =
8603 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8604 short int ascii_ii[] =
8605 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8606 int use_ascii (int i) {
8607 return ascii_mm[i] + ascii_ii[i];
8609 short int ebcdic_ii[] =
8610 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8611 short int ebcdic_mm[] =
8612 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8613 int use_ebcdic (int i) {
8614 return ebcdic_mm[i] + ebcdic_ii[i];
8621 return use_ascii (foo) == use_ebcdic (foo);
8626 if ac_fn_c_try_compile
"$LINENO"; then :
8627 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
8628 ac_cv_c_bigendian
=yes
8630 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
8631 if test "$ac_cv_c_bigendian" = unknown
; then
8632 ac_cv_c_bigendian
=no
8634 # finding both strings is unlikely to happen, but who knows?
8635 ac_cv_c_bigendian
=unknown
8639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 $ac_includes_default
8648 /* Are we little or big endian? From Harbison&Steele. */
8652 char c[sizeof (long int)];
8655 return u.c[sizeof (long int) - 1] == 1;
8661 if ac_fn_c_try_run
"$LINENO"; then :
8662 ac_cv_c_bigendian
=no
8664 ac_cv_c_bigendian
=yes
8666 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
8667 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8673 $as_echo "$ac_cv_c_bigendian" >&6; }
8674 case $ac_cv_c_bigendian in #(
8676 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8682 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8686 as_fn_error
"unknown endianness
8687 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8691 # ----------------------
8692 # Checks for C++ headers
8693 # ----------------------
8696 ac_cpp
='$CXXCPP $CPPFLAGS'
8697 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8698 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8699 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8701 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8702 if test -z "$CXXCPP"; then
8703 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
8706 # Double quotes because CXXCPP needs to be expanded
8707 for CXXCPP
in "$CXX -E" "/lib/cpp"
8710 for ac_cxx_preproc_warn_flag
in '' yes
8712 # Use a header file that comes with gcc, so configuring glibc
8713 # with a fresh cross-compiler works.
8714 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8715 # <limits.h> exists even on freestanding compilers.
8716 # On the NeXT, cc -E runs the code through the compiler's parser,
8717 # not just through cpp. "Syntax error" is here to catch this case.
8718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8719 /* end confdefs.h. */
8721 # include <limits.h>
8723 # include <assert.h>
8727 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8730 # Broken: fails on valid input.
8733 rm -f conftest.err conftest.
$ac_ext
8735 # OK, works on sane cases. Now check whether nonexistent headers
8736 # can be detected and how.
8737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <ac_nonexistent.h>
8741 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8742 # Broken: success on invalid input.
8745 # Passes both tests.
8749 rm -f conftest.err conftest.
$ac_ext
8752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8753 rm -f conftest.err conftest.
$ac_ext
8754 if $ac_preproc_ok; then :
8759 ac_cv_prog_CXXCPP
=$CXXCPP
8762 CXXCPP
=$ac_cv_prog_CXXCPP
8764 ac_cv_prog_CXXCPP
=$CXXCPP
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8767 $as_echo "$CXXCPP" >&6; }
8769 for ac_cxx_preproc_warn_flag
in '' yes
8771 # Use a header file that comes with gcc, so configuring glibc
8772 # with a fresh cross-compiler works.
8773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774 # <limits.h> exists even on freestanding compilers.
8775 # On the NeXT, cc -E runs the code through the compiler's parser,
8776 # not just through cpp. "Syntax error" is here to catch this case.
8777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8780 # include <limits.h>
8782 # include <assert.h>
8786 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8789 # Broken: fails on valid input.
8792 rm -f conftest.err conftest.
$ac_ext
8794 # OK, works on sane cases. Now check whether nonexistent headers
8795 # can be detected and how.
8796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 #include <ac_nonexistent.h>
8800 if ac_fn_cxx_try_cpp
"$LINENO"; then :
8801 # Broken: success on invalid input.
8804 # Passes both tests.
8808 rm -f conftest.err conftest.
$ac_ext
8811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8812 rm -f conftest.err conftest.
$ac_ext
8813 if $ac_preproc_ok; then :
8816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8819 See \`config.log' for more details." >&5
8820 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8821 See \`config.log' for more details." >&2;}; }
8825 ac_cpp
='$CPP $CPPFLAGS'
8826 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8832 ac_cpp
='$CXXCPP $CPPFLAGS'
8833 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8834 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8835 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8839 for ac_header
in unordered_map
8841 ac_fn_cxx_check_header_preproc
"$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8842 if test "x$ac_cv_header_unordered_map" = x
""yes; then :
8843 cat >>confdefs.h
<<_ACEOF
8844 #define HAVE_UNORDERED_MAP 1
8850 for ac_header
in tr1/unordered_map
8852 ac_fn_cxx_check_header_preproc
"$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8853 if test "x$ac_cv_header_tr1_unordered_map" = x
""yes; then :
8854 cat >>confdefs.h
<<_ACEOF
8855 #define HAVE_TR1_UNORDERED_MAP 1
8861 for ac_header
in ext
/hash_map
8863 ac_fn_cxx_check_header_preproc
"$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8864 if test "x$ac_cv_header_ext_hash_map" = x
""yes; then :
8865 cat >>confdefs.h
<<_ACEOF
8866 #define HAVE_EXT_HASH_MAP 1
8874 ac_cpp
='$CPP $CPPFLAGS'
8875 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8876 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8877 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8881 # Dependency checking.
8885 ac_cpp
='$CXXCPP $CPPFLAGS'
8886 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8890 rm -rf .tst
2>/dev
/null
8891 mkdir .tst
2>/dev
/null
8892 if test -d .tst
; then
8897 rmdir .tst
2>/dev
/null
8899 DEPDIR
="${am__leading_dot}deps"
8901 ac_config_commands
="$ac_config_commands depdir"
8904 ac_config_commands
="$ac_config_commands gccdepdir"
8907 depcc
="$CXX" am_compiler_list
=
8909 am_depcomp
=$ac_aux_dir/depcomp
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8911 $as_echo_n "checking dependency style of $depcc... " >&6; }
8912 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8913 $as_echo_n "(cached) " >&6
8915 if test -f "$am_depcomp"; then
8916 # We make a subdir and do the tests there. Otherwise we can end up
8917 # making bogus files that we don't know about and never remove. For
8918 # instance it was reported that on HP-UX the gcc test will end up
8919 # making a dummy file named `D' -- because `-MD' means `put the output
8922 # Copy depcomp to subdir because otherwise we won't find it if we're
8923 # using a relative directory.
8924 cp "$am_depcomp" conftest.dir
8926 # We will build objects and dependencies in a subdirectory because
8927 # it helps to detect inapplicable dependency modes. For instance
8928 # both Tru64's cc and ICC support -MD to output dependencies as a
8929 # side effect of compilation, but ICC will put the dependencies in
8930 # the current directory while Tru64 will put them in the object
8934 am_cv_CXX_dependencies_compiler_type
=none
8935 if test "$am_compiler_list" = ""; then
8936 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8938 for depmode
in $am_compiler_list; do
8939 if test $depmode = none
; then break; fi
8941 $as_echo "$as_me:$LINENO: trying $depmode" >&5
8942 # Setup a source with many dependencies, because some compilers
8943 # like to wrap large dependency lists on column 80 (with \), and
8944 # we should not choose a depcomp mode which is confused by this.
8946 # We need to recreate these files for each test, as the compiler may
8947 # overwrite some of them when testing with obscure command lines.
8948 # This happens at least with the AIX C compiler.
8950 for i
in 1 2 3 4 5 6; do
8951 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
8952 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8953 # Solaris 8's {/usr,}/bin/sh.
8954 touch sub
/conftst
$i.h
8956 echo "include sub/conftest.Po" > confmf
8958 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8959 # mode. It turns out that the SunPro C++ compiler does not properly
8960 # handle `-M -o', and we need to detect this.
8961 depcmd
="depmode=$depmode \
8962 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8963 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8964 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
8965 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
8966 if env
$depcmd > conftest.err
2>&1 &&
8967 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
8968 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
8969 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
8970 # icc doesn't choke on unknown options, it will just issue warnings
8971 # or remarks (even with -Werror). So we grep stderr for any message
8972 # that says an option was ignored or not supported.
8973 # When given -MP, icc 7.0 and 7.1 complain thusly:
8974 # icc: Command line warning: ignoring option '-M'; no argument required
8975 # The diagnosis changed in icc 8.0:
8976 # icc: Command line remark: option '-MP' not supported
8977 if (grep 'ignoring option' conftest.err ||
8978 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
8979 am_cv_CXX_dependencies_compiler_type
=$depmode
8980 $as_echo "$as_me:$LINENO: success" >&5
8984 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
8985 sed -e 's/^/| /' < conftest.err
>&5
8991 am_cv_CXX_dependencies_compiler_type
=none
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8996 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8997 if test x
${am_cv_CXX_dependencies_compiler_type-none} = xnone
8998 then as_fn_error
"no usable dependency style found" "$LINENO" 5
8999 else CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
9004 ac_cpp
='$CPP $CPPFLAGS'
9005 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9006 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9007 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9015 # These libraries may be used by collect2.
9016 # We may need a special search path to get them linked.
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
9018 $as_echo_n "checking for collect2 libraries... " >&6; }
9019 if test "${gcc_cv_collect2_libs+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9023 for libs
in '' -lld -lmld \
9024 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
9025 '-L/usr/lib/cmplrs/cc3.11 -lmld'
9028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9031 /* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9046 if ac_fn_c_try_link
"$LINENO"; then :
9047 gcc_cv_collect2_libs
="$libs"; break
9049 rm -f core conftest.err conftest.
$ac_objext \
9050 conftest
$ac_exeext conftest.
$ac_ext
9053 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs
='none required'
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
9056 $as_echo "$gcc_cv_collect2_libs" >&6; }
9057 case $gcc_cv_collect2_libs in
9059 *) COLLECT2_LIBS
=$gcc_cv_collect2_libs ;;
9063 # When building Ada code on Alpha, we need exc_resume which is usually in
9064 # -lexc. So test for it.
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
9068 $as_echo_n "checking for library containing exc_resume... " >&6; }
9069 if test "${ac_cv_search_exc_resume+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
9072 ac_func_search_save_LIBS
=$LIBS
9073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9076 /* Override any GCC internal prototype to avoid an error.
9077 Use char because int might match the return type of a GCC
9078 builtin and then its argument prototype would still apply. */
9086 return exc_resume ();
9091 for ac_lib
in '' exc
; do
9092 if test -z "$ac_lib"; then
9093 ac_res
="none required"
9096 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9098 if ac_fn_c_try_link
"$LINENO"; then :
9099 ac_cv_search_exc_resume
=$ac_res
9101 rm -f core conftest.err conftest.
$ac_objext \
9103 if test "${ac_cv_search_exc_resume+set}" = set; then :
9107 if test "${ac_cv_search_exc_resume+set}" = set; then :
9110 ac_cv_search_exc_resume
=no
9113 LIBS
=$ac_func_search_save_LIBS
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
9116 $as_echo "$ac_cv_search_exc_resume" >&6; }
9117 ac_res
=$ac_cv_search_exc_resume
9118 if test "$ac_res" != no
; then :
9119 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9127 # To support -mcpu=native on Solaris/SPARC, we need libkstat.
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kstat_open" >&5
9131 $as_echo_n "checking for library containing kstat_open... " >&6; }
9132 if test "${ac_cv_search_kstat_open+set}" = set; then :
9133 $as_echo_n "(cached) " >&6
9135 ac_func_search_save_LIBS
=$LIBS
9136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9139 /* Override any GCC internal prototype to avoid an error.
9140 Use char because int might match the return type of a GCC
9141 builtin and then its argument prototype would still apply. */
9149 return kstat_open ();
9154 for ac_lib
in '' kstat
; do
9155 if test -z "$ac_lib"; then
9156 ac_res
="none required"
9159 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9161 if ac_fn_c_try_link
"$LINENO"; then :
9162 ac_cv_search_kstat_open
=$ac_res
9164 rm -f core conftest.err conftest.
$ac_objext \
9166 if test "${ac_cv_search_kstat_open+set}" = set; then :
9170 if test "${ac_cv_search_kstat_open+set}" = set; then :
9173 ac_cv_search_kstat_open
=no
9176 LIBS
=$ac_func_search_save_LIBS
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kstat_open" >&5
9179 $as_echo "$ac_cv_search_kstat_open" >&6; }
9180 ac_res
=$ac_cv_search_kstat_open
9181 if test "$ac_res" != no
; then :
9182 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9186 EXTRA_GCC_LIBS
="$LIBS"
9190 # Some systems put ldexp and frexp in libm instead of libc; assume
9191 # they're both in the same place. jcf-dump needs them.
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
9195 $as_echo_n "checking for library containing ldexp... " >&6; }
9196 if test "${ac_cv_search_ldexp+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9199 ac_func_search_save_LIBS
=$LIBS
9200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9203 /* Override any GCC internal prototype to avoid an error.
9204 Use char because int might match the return type of a GCC
9205 builtin and then its argument prototype would still apply. */
9218 for ac_lib
in '' m
; do
9219 if test -z "$ac_lib"; then
9220 ac_res
="none required"
9223 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9225 if ac_fn_c_try_link
"$LINENO"; then :
9226 ac_cv_search_ldexp
=$ac_res
9228 rm -f core conftest.err conftest.
$ac_objext \
9230 if test "${ac_cv_search_ldexp+set}" = set; then :
9234 if test "${ac_cv_search_ldexp+set}" = set; then :
9237 ac_cv_search_ldexp
=no
9240 LIBS
=$ac_func_search_save_LIBS
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
9243 $as_echo "$ac_cv_search_ldexp" >&6; }
9244 ac_res
=$ac_cv_search_ldexp
9245 if test "$ac_res" != no
; then :
9246 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9254 # Use <inttypes.h> only if it exists,
9255 # doesn't clash with <sys/types.h>, declares intmax_t and defines
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9258 $as_echo_n "checking for inttypes.h... " >&6; }
9259 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 #define __STDC_FORMAT_MACROS
9265 #include <sys/types.h>
9266 #include <inttypes.h>
9278 if ac_fn_c_try_compile
"$LINENO"; then :
9279 gcc_cv_header_inttypes_h
=yes
9281 gcc_cv_header_inttypes_h
=no
9283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
9287 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
9288 if test $gcc_cv_header_inttypes_h = yes; then
9290 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
9296 for ac_func
in times clock kill getrlimit setrlimit atoll atoq \
9297 popen sysconf strsignal getrusage nl_langinfo \
9298 gettimeofday mbstowcs wcswidth mmap setlocale \
9299 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
9301 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9302 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9303 eval as_val
=\$
$as_ac_var
9304 if test "x$as_val" = x
""yes; then :
9305 cat >>confdefs.h
<<_ACEOF
9306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9313 if test x
$ac_cv_func_mbstowcs = xyes
; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
9315 $as_echo_n "checking whether mbstowcs works... " >&6; }
9316 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
9317 $as_echo_n "(cached) " >&6
9319 if test "$cross_compiling" = yes; then :
9320 gcc_cv_func_mbstowcs_works
=yes
9322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9331 if ac_fn_c_try_run
"$LINENO"; then :
9332 gcc_cv_func_mbstowcs_works
=yes
9334 gcc_cv_func_mbstowcs_works
=no
9336 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9337 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
9342 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
9343 if test x
$gcc_cv_func_mbstowcs_works = xyes
; then
9345 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
9350 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
9351 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
9355 cat >>confdefs.h
<<_ACEOF
9361 ac_fn_c_check_type
"$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
9362 if test "x$ac_cv_type_caddr_t" = x
""yes; then :
9366 cat >>confdefs.h
<<_ACEOF
9367 #define caddr_t char *
9374 ac_fn_c_check_header_preproc
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
9375 if test "x$ac_cv_header_sys_mman_h" = x
""yes; then :
9376 gcc_header_sys_mman_h
=yes
9378 gcc_header_sys_mman_h
=no
9381 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
9382 if test "x$ac_cv_func_mmap" = x
""yes; then :
9388 if test "$gcc_header_sys_mman_h" != yes \
9389 ||
test "$gcc_func_mmap" != yes; then
9390 gcc_cv_func_mmap_file
=no
9391 gcc_cv_func_mmap_dev_zero
=no
9392 gcc_cv_func_mmap_anon
=no
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
9395 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
9396 if test "${gcc_cv_func_mmap_file+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9399 # Add a system to this blacklist if
9400 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
9401 # memory area containing the same data that you'd get if you applied
9402 # read() to the same fd. The only system known to have a problem here
9403 # is VMS, where text files have record structure.
9406 gcc_cv_func_mmap_file
=no
;;
9408 gcc_cv_func_mmap_file
=yes;;
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
9412 $as_echo "$gcc_cv_func_mmap_file" >&6; }
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
9414 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
9415 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9418 # Add a system to this blacklist if it has mmap() but /dev/zero
9419 # does not exist, or if mmapping /dev/zero does not give anonymous
9420 # zeroed pages with both the following properties:
9421 # 1. If you map N consecutive pages in with one call, and then
9422 # unmap any subset of those pages, the pages that were not
9423 # explicitly unmapped remain accessible.
9424 # 2. If you map two adjacent blocks of memory and then unmap them
9425 # both at once, they must both go away.
9426 # Systems known to be in this category are Windows (all variants),
9429 *vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
9430 gcc_cv_func_mmap_dev_zero
=no
;;
9432 gcc_cv_func_mmap_dev_zero
=yes;;
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
9436 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
9438 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
9440 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
9441 if test "${gcc_cv_decl_map_anon+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9446 #include <sys/types.h>
9447 #include <sys/mman.h>
9450 #ifndef MAP_ANONYMOUS
9451 #define MAP_ANONYMOUS MAP_ANON
9457 int n = MAP_ANONYMOUS;
9462 if ac_fn_c_try_compile
"$LINENO"; then :
9463 gcc_cv_decl_map_anon
=yes
9465 gcc_cv_decl_map_anon
=no
9467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9470 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9472 if test $gcc_cv_decl_map_anon = no
; then
9473 gcc_cv_func_mmap_anon
=no
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9476 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9477 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9478 $as_echo_n "(cached) " >&6
9480 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9481 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9482 # doesn't give anonymous zeroed pages with the same properties listed
9483 # above for use of /dev/zero.
9484 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9486 *vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
9487 gcc_cv_func_mmap_anon
=no
;;
9489 gcc_cv_func_mmap_anon
=yes;;
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9493 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9497 if test $gcc_cv_func_mmap_file = yes; then
9499 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9502 if test $gcc_cv_func_mmap_dev_zero = yes; then
9504 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9507 if test $gcc_cv_func_mmap_anon = yes; then
9509 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9516 # Under VMS, vfork works very differently than on Unix. The standard test
9517 # won't work, and it isn't easily adaptable. It makes more sense to
9519 ac_cv_func_vfork_works
=yes
9522 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9523 if test "x$ac_cv_type_pid_t" = x
""yes; then :
9527 cat >>confdefs.h
<<_ACEOF
9533 for ac_header
in vfork.h
9535 ac_fn_c_check_header_preproc
"$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9536 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
9537 cat >>confdefs.h
<<_ACEOF
9538 #define HAVE_VFORK_H 1
9544 for ac_func
in fork vfork
9546 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9547 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9548 eval as_val
=\$
$as_ac_var
9549 if test "x$as_val" = x
""yes; then :
9550 cat >>confdefs.h
<<_ACEOF
9551 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9557 if test "x$ac_cv_func_fork" = xyes
; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9559 $as_echo_n "checking for working fork... " >&6; }
9560 if test "${ac_cv_func_fork_works+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9563 if test "$cross_compiling" = yes; then :
9564 ac_cv_func_fork_works
=cross
9566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 $ac_includes_default
9573 /* By Ruediger Kuhlmann. */
9580 if ac_fn_c_try_run
"$LINENO"; then :
9581 ac_cv_func_fork_works
=yes
9583 ac_cv_func_fork_works
=no
9585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9591 $as_echo "$ac_cv_func_fork_works" >&6; }
9594 ac_cv_func_fork_works
=$ac_cv_func_fork
9596 if test "x$ac_cv_func_fork_works" = xcross
; then
9598 *-*-amigaos* |
*-*-msdosdjgpp*)
9599 # Override, as these systems have only a dummy fork() stub
9600 ac_cv_func_fork_works
=no
9603 ac_cv_func_fork_works
=yes
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9607 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9609 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9610 if test "x$ac_cv_func_vfork" = xyes
; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9612 $as_echo_n "checking for working vfork... " >&6; }
9613 if test "${ac_cv_func_vfork_works+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9616 if test "$cross_compiling" = yes; then :
9617 ac_cv_func_vfork_works
=cross
9619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h. */
9621 /* Thanks to Paul Eggert for this test. */
9622 $ac_includes_default
9623 #include <sys/wait.h>
9627 /* On some sparc systems, changes by the child to local and incoming
9628 argument registers are propagated back to the parent. The compiler
9629 is told about this with #include <vfork.h>, but some compilers
9630 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9631 static variable whose address is put into a register that is
9632 clobbered by the vfork. */
9635 sparc_address_test (int arg)
9637 sparc_address_test (arg) int arg;
9658 pid_t parent = getpid ();
9661 sparc_address_test (0);
9666 /* Here is another test for sparc vfork register problems. This
9667 test uses lots of local variables, at least as many local
9668 variables as main has allocated so far including compiler
9669 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9670 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9671 reuse the register of parent for one of the local variables,
9672 since it will think that parent can't possibly be used any more
9673 in this routine. Assigning to the local variable will thus
9674 munge parent in the parent process. */
9676 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9677 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9678 /* Convince the compiler that p..p7 are live; otherwise, it might
9679 use the same hardware register for all 8 local variables. */
9680 if (p != p1 || p != p2 || p != p3 || p != p4
9681 || p != p5 || p != p6 || p != p7)
9684 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9685 from child file descriptors. If the child closes a descriptor
9686 before it execs or exits, this munges the parent's descriptor
9687 as well. Test for this by closing stdout in the child. */
9688 _exit(close(fileno(stdout)) != 0);
9693 while (wait(&status) != child)
9696 /* Was there some problem with vforking? */
9699 /* Did the child fail? (This shouldn't happen.) */
9702 /* Did the vfork/compiler bug occur? */
9703 || parent != getpid()
9705 /* Did the file descriptor bug occur? */
9706 || fstat(fileno(stdout), &st) != 0
9711 if ac_fn_c_try_run
"$LINENO"; then :
9712 ac_cv_func_vfork_works
=yes
9714 ac_cv_func_vfork_works
=no
9716 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9717 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9722 $as_echo "$ac_cv_func_vfork_works" >&6; }
9725 if test "x$ac_cv_func_fork_works" = xcross
; then
9726 ac_cv_func_vfork_works
=$ac_cv_func_vfork
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9728 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9731 if test "x$ac_cv_func_vfork_works" = xyes
; then
9733 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9737 $as_echo "#define vfork fork" >>confdefs.h
9740 if test "x$ac_cv_func_fork_works" = xyes
; then
9742 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9747 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
9748 # iconv() prototype.
9750 ac_cpp
='$CXXCPP $CPPFLAGS'
9751 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9752 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9753 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
9756 if test "X$prefix" = "XNONE"; then
9757 acl_final_prefix
="$ac_default_prefix"
9759 acl_final_prefix
="$prefix"
9761 if test "X$exec_prefix" = "XNONE"; then
9762 acl_final_exec_prefix
='${prefix}'
9764 acl_final_exec_prefix
="$exec_prefix"
9766 acl_save_prefix
="$prefix"
9767 prefix
="$acl_final_prefix"
9768 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
9769 prefix
="$acl_save_prefix"
9772 # Check whether --with-gnu-ld was given.
9773 if test "${with_gnu_ld+set}" = set; then :
9774 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
9779 # Prepare PATH_SEPARATOR.
9780 # The user is always right.
9781 if test "${PATH_SEPARATOR+set}" != set; then
9782 echo "#! /bin/sh" >conf$$.sh
9783 echo "exit 0" >>conf$$.sh
9785 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9793 if test "$GCC" = yes; then
9794 # Check if gcc -print-prog-name=ld gives a path.
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9796 $as_echo_n "checking for ld used by GCC... " >&6; }
9799 # gcc leaves a trailing carriage return which upsets mingw
9800 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9802 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
9805 # Accept absolute paths.
9806 [\\/]* |
[A-Za-z
]:[\\/]*)
9807 re_direlt
='/[^/][^/]*/\.\./'
9808 # Canonicalize the path of ld
9809 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
9810 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
9811 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
9813 test -z "$LD" && LD
="$ac_prog"
9816 # If it fails, then pretend we aren't using GCC.
9820 # If it is relative, then search for the first ld in PATH.
9824 elif test "$with_gnu_ld" = yes; then
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9826 $as_echo_n "checking for GNU ld... " >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9829 $as_echo_n "checking for non-GNU ld... " >&6; }
9831 if test "${acl_cv_path_LD+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9834 if test -z "$LD"; then
9835 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9836 for ac_dir
in $PATH; do
9837 test -z "$ac_dir" && ac_dir
=.
9838 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
9839 acl_cv_path_LD
="$ac_dir/$ac_prog"
9840 # Check to see if the program is GNU ld. I'd rather use --version,
9841 # but apparently some GNU ld's only accept -v.
9842 # Break only if it was the GNU/non-GNU ld that we prefer.
9843 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
9844 test "$with_gnu_ld" != no
&& break
9846 test "$with_gnu_ld" != yes && break
9852 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
9856 LD
="$acl_cv_path_LD"
9857 if test -n "$LD"; then
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9859 $as_echo "$LD" >&6; }
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862 $as_echo "no" >&6; }
9864 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9866 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9867 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9870 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9871 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
9872 acl_cv_prog_gnu_ld
=yes
9874 acl_cv_prog_gnu_ld
=no
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9878 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9879 with_gnu_ld
=$acl_cv_prog_gnu_ld
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9884 $as_echo_n "checking for shared library run path origin... " >&6; }
9885 if test "${acl_cv_rpath+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9889 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
9890 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9897 $as_echo "$acl_cv_rpath" >&6; }
9899 libext
="$acl_cv_libext"
9900 shlibext
="$acl_cv_shlibext"
9901 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
9902 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
9903 hardcode_direct
="$acl_cv_hardcode_direct"
9904 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
9905 # Check whether --enable-rpath was given.
9906 if test "${enable_rpath+set}" = set; then :
9907 enableval
=$enable_rpath; :
9921 acl_save_prefix
="$prefix"
9922 prefix
="$acl_final_prefix"
9923 acl_save_exec_prefix
="$exec_prefix"
9924 exec_prefix
="$acl_final_exec_prefix"
9926 eval additional_includedir
=\"$includedir\"
9927 eval additional_libdir
=\"$libdir\"
9929 exec_prefix
="$acl_save_exec_prefix"
9930 prefix
="$acl_save_prefix"
9933 # Check whether --with-libiconv-prefix was given.
9934 if test "${with_libiconv_prefix+set}" = set; then :
9935 withval
=$with_libiconv_prefix;
9936 if test "X$withval" = "Xno"; then
9939 if test "X$withval" = "X"; then
9941 acl_save_prefix
="$prefix"
9942 prefix
="$acl_final_prefix"
9943 acl_save_exec_prefix
="$exec_prefix"
9944 exec_prefix
="$acl_final_exec_prefix"
9946 eval additional_includedir
=\"$includedir\"
9947 eval additional_libdir
=\"$libdir\"
9949 exec_prefix
="$acl_save_exec_prefix"
9950 prefix
="$acl_save_prefix"
9953 additional_includedir
="$withval/include"
9954 additional_libdir
="$withval/lib"
9965 names_already_handled
=
9966 names_next_round
='iconv '
9967 while test -n "$names_next_round"; do
9968 names_this_round
="$names_next_round"
9970 for name
in $names_this_round; do
9972 for n
in $names_already_handled; do
9973 if test "$n" = "$name"; then
9978 if test -z "$already_handled"; then
9979 names_already_handled
="$names_already_handled $name"
9980 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9981 eval value
=\"\
$HAVE_LIB$uppername\"
9982 if test -n "$value"; then
9983 if test "$value" = yes; then
9984 eval value
=\"\
$LIB$uppername\"
9985 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
9986 eval value
=\"\
$LTLIB$uppername\"
9987 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
9996 if test $use_additional = yes; then
9997 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9998 found_dir
="$additional_libdir"
9999 found_so
="$additional_libdir/lib$name.$shlibext"
10000 if test -f "$additional_libdir/lib$name.la"; then
10001 found_la
="$additional_libdir/lib$name.la"
10004 if test -f "$additional_libdir/lib$name.$libext"; then
10005 found_dir
="$additional_libdir"
10006 found_a
="$additional_libdir/lib$name.$libext"
10007 if test -f "$additional_libdir/lib$name.la"; then
10008 found_la
="$additional_libdir/lib$name.la"
10013 if test "X$found_dir" = "X"; then
10014 for x
in $LDFLAGS $LTLIBICONV; do
10016 acl_save_prefix
="$prefix"
10017 prefix
="$acl_final_prefix"
10018 acl_save_exec_prefix
="$exec_prefix"
10019 exec_prefix
="$acl_final_exec_prefix"
10021 exec_prefix
="$acl_save_exec_prefix"
10022 prefix
="$acl_save_prefix"
10026 dir
=`echo "X$x" | sed -e 's/^X-L//'`
10027 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10029 found_so
="$dir/lib$name.$shlibext"
10030 if test -f "$dir/lib$name.la"; then
10031 found_la
="$dir/lib$name.la"
10034 if test -f "$dir/lib$name.$libext"; then
10036 found_a
="$dir/lib$name.$libext"
10037 if test -f "$dir/lib$name.la"; then
10038 found_la
="$dir/lib$name.la"
10044 if test "X$found_dir" != "X"; then
10049 if test "X$found_dir" != "X"; then
10050 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10051 if test "X$found_so" != "X"; then
10052 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
10053 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10056 for x
in $ltrpathdirs; do
10057 if test "X$x" = "X$found_dir"; then
10062 if test -z "$haveit"; then
10063 ltrpathdirs
="$ltrpathdirs $found_dir"
10065 if test "$hardcode_direct" = yes; then
10066 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10068 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
10069 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10071 for x
in $rpathdirs; do
10072 if test "X$x" = "X$found_dir"; then
10077 if test -z "$haveit"; then
10078 rpathdirs
="$rpathdirs $found_dir"
10082 for x
in $LDFLAGS $LIBICONV; do
10084 acl_save_prefix
="$prefix"
10085 prefix
="$acl_final_prefix"
10086 acl_save_exec_prefix
="$exec_prefix"
10087 exec_prefix
="$acl_final_exec_prefix"
10089 exec_prefix
="$acl_save_exec_prefix"
10090 prefix
="$acl_save_prefix"
10092 if test "X$x" = "X-L$found_dir"; then
10097 if test -z "$haveit"; then
10098 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10100 if test "$hardcode_minus_L" != no
; then
10101 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
10103 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10109 if test "X$found_a" != "X"; then
10110 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
10112 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10115 additional_includedir
=
10116 case "$found_dir" in
10118 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10119 additional_includedir
="$basedir/include"
10122 if test "X$additional_includedir" != "X"; then
10123 if test "X$additional_includedir" != "X/usr/include"; then
10125 if test "X$additional_includedir" = "X/usr/local/include"; then
10126 if test -n "$GCC"; then
10128 linux
*) haveit
=yes;;
10132 if test -z "$haveit"; then
10133 for x
in $CPPFLAGS $INCICONV; do
10135 acl_save_prefix
="$prefix"
10136 prefix
="$acl_final_prefix"
10137 acl_save_exec_prefix
="$exec_prefix"
10138 exec_prefix
="$acl_final_exec_prefix"
10140 exec_prefix
="$acl_save_exec_prefix"
10141 prefix
="$acl_save_prefix"
10143 if test "X$x" = "X-I$additional_includedir"; then
10148 if test -z "$haveit"; then
10149 if test -d "$additional_includedir"; then
10150 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10156 if test -n "$found_la"; then
10157 save_libdir
="$libdir"
10158 case "$found_la" in
10159 */* |
*\\*) .
"$found_la" ;;
10160 *) .
"./$found_la" ;;
10162 libdir
="$save_libdir"
10163 for dep
in $dependency_libs; do
10166 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10167 if test "X$additional_libdir" != "X/usr/lib"; then
10169 if test "X$additional_libdir" = "X/usr/local/lib"; then
10170 if test -n "$GCC"; then
10172 linux
*) haveit
=yes;;
10176 if test -z "$haveit"; then
10178 for x
in $LDFLAGS $LIBICONV; do
10180 acl_save_prefix
="$prefix"
10181 prefix
="$acl_final_prefix"
10182 acl_save_exec_prefix
="$exec_prefix"
10183 exec_prefix
="$acl_final_exec_prefix"
10185 exec_prefix
="$acl_save_exec_prefix"
10186 prefix
="$acl_save_prefix"
10188 if test "X$x" = "X-L$additional_libdir"; then
10193 if test -z "$haveit"; then
10194 if test -d "$additional_libdir"; then
10195 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10199 for x
in $LDFLAGS $LTLIBICONV; do
10201 acl_save_prefix
="$prefix"
10202 prefix
="$acl_final_prefix"
10203 acl_save_exec_prefix
="$exec_prefix"
10204 exec_prefix
="$acl_final_exec_prefix"
10206 exec_prefix
="$acl_save_exec_prefix"
10207 prefix
="$acl_save_prefix"
10209 if test "X$x" = "X-L$additional_libdir"; then
10214 if test -z "$haveit"; then
10215 if test -d "$additional_libdir"; then
10216 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10223 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10224 if test "$enable_rpath" != no
; then
10226 for x
in $rpathdirs; do
10227 if test "X$x" = "X$dir"; then
10232 if test -z "$haveit"; then
10233 rpathdirs
="$rpathdirs $dir"
10236 for x
in $ltrpathdirs; do
10237 if test "X$x" = "X$dir"; then
10242 if test -z "$haveit"; then
10243 ltrpathdirs
="$ltrpathdirs $dir"
10248 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10251 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10254 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
10255 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10261 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
10262 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10268 if test "X$rpathdirs" != "X"; then
10269 if test -n "$hardcode_libdir_separator"; then
10271 for found_dir
in $rpathdirs; do
10272 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10274 acl_save_libdir
="$libdir"
10276 eval flag
=\"$hardcode_libdir_flag_spec\"
10277 libdir
="$acl_save_libdir"
10278 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10280 for found_dir
in $rpathdirs; do
10281 acl_save_libdir
="$libdir"
10282 libdir
="$found_dir"
10283 eval flag
=\"$hardcode_libdir_flag_spec\"
10284 libdir
="$acl_save_libdir"
10285 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
10289 if test "X$ltrpathdirs" != "X"; then
10290 for found_dir
in $ltrpathdirs; do
10291 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10301 am_save_CPPFLAGS
="$CPPFLAGS"
10303 for element
in $INCICONV; do
10305 for x
in $CPPFLAGS; do
10307 acl_save_prefix
="$prefix"
10308 prefix
="$acl_final_prefix"
10309 acl_save_exec_prefix
="$exec_prefix"
10310 exec_prefix
="$acl_final_exec_prefix"
10312 exec_prefix
="$acl_save_exec_prefix"
10313 prefix
="$acl_save_prefix"
10315 if test "X$x" = "X$element"; then
10320 if test -z "$haveit"; then
10321 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10327 $as_echo_n "checking for iconv... " >&6; }
10328 if test "${am_cv_func_iconv+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
10332 am_cv_func_iconv
="no, consider installing GNU libiconv"
10334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10335 /* end confdefs.h. */
10336 #include <stdlib.h>
10341 iconv_t cd = iconv_open("","");
10342 iconv(cd,NULL,NULL,NULL,NULL);
10348 if ac_fn_cxx_try_link
"$LINENO"; then :
10349 am_cv_func_iconv
=yes
10351 rm -f core conftest.err conftest.
$ac_objext \
10352 conftest
$ac_exeext conftest.
$ac_ext
10353 if test "$am_cv_func_iconv" != yes; then
10354 am_save_LIBS
="$LIBS"
10355 LIBS
="$LIBS $LIBICONV"
10356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358 #include <stdlib.h>
10363 iconv_t cd = iconv_open("","");
10364 iconv(cd,NULL,NULL,NULL,NULL);
10370 if ac_fn_cxx_try_link
"$LINENO"; then :
10371 am_cv_lib_iconv
=yes
10372 am_cv_func_iconv
=yes
10374 rm -f core conftest.err conftest.
$ac_objext \
10375 conftest
$ac_exeext conftest.
$ac_ext
10376 LIBS
="$am_save_LIBS"
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10381 $as_echo "$am_cv_func_iconv" >&6; }
10382 if test "$am_cv_func_iconv" = yes; then
10384 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
10387 if test "$am_cv_lib_iconv" = yes; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10389 $as_echo_n "checking how to link with libiconv... " >&6; }
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10391 $as_echo "$LIBICONV" >&6; }
10393 CPPFLAGS
="$am_save_CPPFLAGS"
10400 if test "$am_cv_func_iconv" = yes; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
10402 $as_echo_n "checking for iconv declaration... " >&6; }
10403 if test "${am_cv_proto_iconv+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10410 #include <stdlib.h>
10416 #if defined(__STDC__) || defined(__cplusplus)
10417 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10430 if ac_fn_cxx_try_compile
"$LINENO"; then :
10431 am_cv_proto_iconv_arg1
=""
10433 am_cv_proto_iconv_arg1
="const"
10435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10436 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);"
10439 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
10441 }$am_cv_proto_iconv" >&5
10443 }$am_cv_proto_iconv" >&6; }
10445 cat >>confdefs.h
<<_ACEOF
10446 #define ICONV_CONST $am_cv_proto_iconv_arg1
10452 ac_cpp
='$CPP $CPPFLAGS'
10453 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10454 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10455 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10458 # Until we have in-tree GNU iconv:
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10464 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10465 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10466 $as_echo_n "(cached) " >&6
10468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10470 #include <locale.h>
10479 if ac_fn_c_try_link
"$LINENO"; then :
10480 am_cv_val_LC_MESSAGES
=yes
10482 am_cv_val_LC_MESSAGES
=no
10484 rm -f core conftest.err conftest.
$ac_objext \
10485 conftest
$ac_exeext conftest.
$ac_ext
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10488 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10489 if test $am_cv_val_LC_MESSAGES = yes; then
10491 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10498 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10499 if test "${am_cv_langinfo_codeset+set}" = set; then :
10500 $as_echo_n "(cached) " >&6
10502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 #include <langinfo.h>
10508 char* cs = nl_langinfo(CODESET);
10513 if ac_fn_c_try_link
"$LINENO"; then :
10514 am_cv_langinfo_codeset
=yes
10516 am_cv_langinfo_codeset
=no
10518 rm -f core conftest.err conftest.
$ac_objext \
10519 conftest
$ac_exeext conftest.
$ac_ext
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10523 $as_echo "$am_cv_langinfo_codeset" >&6; }
10524 if test $am_cv_langinfo_codeset = yes; then
10526 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10531 # We will need to find libiberty.h and ansidecl.h
10532 saved_CFLAGS
="$CFLAGS"
10533 CFLAGS
="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10534 saved_CXXFLAGS
="$CXXFLAGS"
10535 CXXFLAGS
="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC"
10536 for ac_func
in getenv atol asprintf sbrk abort atof getcwd getwd \
10537 stpcpy strnlen strsignal strstr strverscmp \
10538 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10539 free
basename 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
10541 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10543 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10544 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10545 $as_echo_n "(cached) " >&6
10547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10550 #define $ac_tr_decl 1
10552 #include "ansidecl.h"
10553 #include "system.h"
10559 char *(*pfn) = (char *(*)) $ac_func ;
10565 if ac_fn_c_try_compile
"$LINENO"; then :
10566 eval "gcc_cv_have_decl_$ac_func=yes"
10568 eval "gcc_cv_have_decl_$ac_func=no"
10570 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10573 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10575 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10576 #define $ac_tr_decl 1
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10582 #define $ac_tr_decl 0
10590 for ac_func
in getrlimit setrlimit getrusage
10592 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10594 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10595 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10596 $as_echo_n "(cached) " >&6
10598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10601 #define $ac_tr_decl 1
10603 #include "ansidecl.h"
10604 #include "system.h"
10605 #ifdef HAVE_SYS_RESOURCE_H
10606 #include <sys/resource.h>
10614 char *(*pfn) = (char *(*)) $ac_func ;
10620 if ac_fn_c_try_compile
"$LINENO"; then :
10621 eval "gcc_cv_have_decl_$ac_func=yes"
10623 eval "gcc_cv_have_decl_$ac_func=no"
10625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10628 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10630 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10631 #define $ac_tr_decl 1
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10636 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10637 #define $ac_tr_decl 0
10645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 #include "ansidecl.h"
10649 #include "system.h"
10650 #ifdef HAVE_SYS_RESOURCE_H
10651 #include <sys/resource.h>
10662 if ac_fn_c_try_compile
"$LINENO"; then :
10666 $as_echo "#define rlim_t long" >>confdefs.h
10669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10671 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10672 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10673 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10674 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10675 for ac_func
in ldgetname
10677 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10679 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10680 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10681 $as_echo_n "(cached) " >&6
10683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 #define $ac_tr_decl 1
10688 #include "ansidecl.h"
10689 #include "system.h"
10690 #ifdef HAVE_LDFCN_H
10701 char *(*pfn) = (char *(*)) $ac_func ;
10707 if ac_fn_c_try_compile
"$LINENO"; then :
10708 eval "gcc_cv_have_decl_$ac_func=yes"
10710 eval "gcc_cv_have_decl_$ac_func=no"
10712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10715 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10717 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10718 #define $ac_tr_decl 1
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10724 #define $ac_tr_decl 0
10732 for ac_func
in times
10734 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10736 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10737 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10738 $as_echo_n "(cached) " >&6
10740 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10743 #define $ac_tr_decl 1
10745 #include "ansidecl.h"
10746 #include "system.h"
10747 #ifdef HAVE_SYS_TIMES_H
10748 #include <sys/times.h>
10756 char *(*pfn) = (char *(*)) $ac_func ;
10762 if ac_fn_c_try_compile
"$LINENO"; then :
10763 eval "gcc_cv_have_decl_$ac_func=yes"
10765 eval "gcc_cv_have_decl_$ac_func=no"
10767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10770 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10773 #define $ac_tr_decl 1
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10779 #define $ac_tr_decl 0
10787 for ac_func
in sigaltstack
10789 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10791 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10792 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10793 $as_echo_n "(cached) " >&6
10795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10798 #define $ac_tr_decl 1
10800 #include "ansidecl.h"
10801 #include "system.h"
10802 #include <signal.h>
10809 char *(*pfn) = (char *(*)) $ac_func ;
10815 if ac_fn_c_try_compile
"$LINENO"; then :
10816 eval "gcc_cv_have_decl_$ac_func=yes"
10818 eval "gcc_cv_have_decl_$ac_func=no"
10820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10823 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10825 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10826 #define $ac_tr_decl 1
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10831 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10832 #define $ac_tr_decl 0
10840 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which hides the madvise()
10843 ac_cpp
='$CXXCPP $CPPFLAGS'
10844 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10845 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10846 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10848 for ac_func
in madvise
10850 ac_tr_decl
=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10852 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10853 if { as_var
=gcc_cv_have_decl_
$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10854 $as_echo_n "(cached) " >&6
10856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 #define $ac_tr_decl 1
10861 #include "ansidecl.h"
10862 #include "system.h"
10869 char *(*pfn) = (char *(*)) $ac_func ;
10875 if ac_fn_cxx_try_compile
"$LINENO"; then :
10876 eval "gcc_cv_have_decl_$ac_func=yes"
10878 eval "gcc_cv_have_decl_$ac_func=no"
10880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10883 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10885 $as_echo "yes" >&6; } ; cat >>confdefs.h
<<_ACEOF
10886 #define $ac_tr_decl 1
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; } ; cat >>confdefs.h
<<_ACEOF
10892 #define $ac_tr_decl 0
10900 ac_cpp
='$CPP $CPPFLAGS'
10901 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10906 # More time-related stuff.
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10908 $as_echo_n "checking for struct tms... " >&6; }
10909 if test "${ac_cv_struct_tms+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10916 #include "ansidecl.h"
10917 #include "system.h"
10918 #ifdef HAVE_SYS_TIMES_H
10919 #include <sys/times.h>
10930 if ac_fn_c_try_compile
"$LINENO"; then :
10931 ac_cv_struct_tms
=yes
10933 ac_cv_struct_tms
=no
10935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10938 $as_echo "$ac_cv_struct_tms" >&6; }
10939 if test $ac_cv_struct_tms = yes; then
10941 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10945 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10946 # revisit after autoconf 2.50.
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10948 $as_echo_n "checking for clock_t... " >&6; }
10949 if test "${gcc_cv_type_clock_t+set}" = set; then :
10950 $as_echo_n "(cached) " >&6
10953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10956 #include "ansidecl.h"
10957 #include "system.h"
10967 if ac_fn_c_try_compile
"$LINENO"; then :
10968 gcc_cv_type_clock_t
=yes
10970 gcc_cv_type_clock_t
=no
10972 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10975 $as_echo "$gcc_cv_type_clock_t" >&6; }
10976 if test $gcc_cv_type_clock_t = yes; then
10978 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10982 # Check if F_SETLKW is supported by fcntl.
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETLKW" >&5
10984 $as_echo_n "checking for F_SETLKW... " >&6; }
10985 if test "${ac_cv_f_setlkw+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
11002 return fcntl (1, F_SETLKW, &fl);
11007 if ac_fn_c_try_compile
"$LINENO"; then :
11012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f_setlkw" >&5
11015 $as_echo "$ac_cv_f_setlkw" >&6; }
11016 if test $ac_cv_f_setlkw = yes; then
11018 $as_echo "#define HOST_HAS_F_SETLKW 1" >>confdefs.h
11022 # Restore CFLAGS, CXXFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
11023 CFLAGS
="$saved_CFLAGS"
11024 CXXFLAGS
="$saved_CXXFLAGS"
11026 # mkdir takes a single argument on some systems.
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
11028 $as_echo_n "checking if mkdir takes one argument... " >&6; }
11029 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11035 #include <sys/types.h>
11036 #ifdef HAVE_SYS_STAT_H
11037 # include <sys/stat.h>
11039 #ifdef HAVE_UNISTD_H
11040 # include <unistd.h>
11042 #ifdef HAVE_DIRECT_H
11043 # include <direct.h>
11053 if ac_fn_c_try_compile
"$LINENO"; then :
11054 gcc_cv_mkdir_takes_one_arg
=no
11056 gcc_cv_mkdir_takes_one_arg
=yes
11058 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
11061 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
11062 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
11064 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
11075 # With Setjmp/Longjmp based exception handling.
11076 # Check whether --enable-sjlj-exceptions was given.
11077 if test "${enable_sjlj_exceptions+set}" = set; then :
11078 enableval
=$enable_sjlj_exceptions; case $target in
11080 if test $enableval != yes; then
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
11082 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
11087 force_sjlj_exceptions
=yes
11091 force_sjlj_exceptions
=yes
11095 force_sjlj_exceptions
=yes
11099 force_sjlj_exceptions
=no
11104 if test $force_sjlj_exceptions = yes; then
11105 sjlj
=`if test $enableval = yes; then echo 1; else echo 0; fi`
11107 cat >>confdefs.h
<<_ACEOF
11108 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
11113 # --------------------------------------------------------
11114 # Build, host, and target specific configuration fragments
11115 # --------------------------------------------------------
11117 # Collect build-machine-specific information.
11118 .
${srcdir}/config.build
11120 # Collect host-machine-specific information.
11121 .
${srcdir}/config.
host
11125 # Collect target-machine-specific information.
11126 .
${srcdir}/config.gcc
11128 extra_objs
="${host_extra_objs} ${extra_objs}"
11129 extra_gcc_objs
="${host_extra_gcc_objs} ${extra_gcc_objs}"
11131 # Default the target-machine variables that were not explicitly set.
11132 if test x
"$tm_file" = x
11133 then tm_file
=$cpu_type/$cpu_type.h
; fi
11135 if test x
"$extra_headers" = x
11136 then extra_headers
=; fi
11138 if test x
$md_file = x
11139 then md_file
=$cpu_type/$cpu_type.md
; fi
11141 if test x
$out_file = x
11142 then out_file
=$cpu_type/$cpu_type.c
; fi
11144 if test x
"$tmake_file" = x
11145 then tmake_file
=$cpu_type/t-
$cpu_type
11148 # Support --enable-initfini-array.
11149 if test x
$enable_initfini_array != xno
; then
11150 tm_file
="${tm_file} initfini-array.h"
11153 if test x
"$dwarf2" = xyes
11154 then tm_file
="$tm_file tm-dwarf2.h"
11157 # Say what files are being used for the output code and MD file.
11158 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
11159 echo "Using \`$srcdir/config/$md_file' as machine description file."
11161 # If any of the xm_file variables contain nonexistent files, warn
11162 # about them and drop them.
11165 for x
in $build_xm_file; do
11166 if test -f $srcdir/config
/$x
11168 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11169 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11172 build_xm_file
="$bx"
11175 for x
in $host_xm_file; do
11176 if test -f $srcdir/config
/$x
11178 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11179 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11185 for x
in $xm_file; do
11186 if test -f $srcdir/config
/$x
11188 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
11189 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
11195 for f
in $tm_file; do
11198 if test $count = ax
; then
11199 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
11201 echo "Using the following target machine macro files:"
11202 for f
in $tm_file; do
11203 echo " $srcdir/config/$f"
11207 if test x
$use_long_long_for_widest_fast_int = xyes
; then
11209 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
11213 gnu_ld_bool
=`if test x"$gnu_ld" = x"yes"; then echo 1; else echo 0; fi`
11215 cat >>confdefs.h
<<_ACEOF
11216 #define HAVE_GNU_LD $gnu_ld_bool
11220 gnu_as_bool
=`if test x"$gas" = x"yes"; then echo 1; else echo 0; fi`
11222 cat >>confdefs.h
<<_ACEOF
11223 #define HAVE_GNU_AS $gnu_as_bool
11228 for f
in $host_xm_file; do
11231 if test $count = a
; then
11233 elif test $count = ax
; then
11234 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
11236 echo "Using the following host machine macro files:"
11237 for f
in $host_xm_file; do
11238 echo " $srcdir/config/$f"
11241 echo "Using ${out_host_hook_obj} for host machine hooks."
11243 if test "$host_xm_file" != "$build_xm_file"; then
11245 for f
in $build_xm_file; do
11248 if test $count = a
; then
11250 elif test $count = ax
; then
11251 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
11253 echo "Using the following build machine macro files:"
11254 for f
in $build_xm_file; do
11255 echo " $srcdir/config/$f"
11260 if test -n "$configured_native_system_header_dir"; then
11261 native_system_header_dir
=$configured_native_system_header_dir
11263 NATIVE_SYSTEM_HEADER_DIR
="$native_system_header_dir"
11267 powerpc
*-*-darwin*)
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
11269 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
11270 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11273 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11276 #include <sys/cdefs.h>
11277 #include <sys/signal.h>
11278 #include <ucontext.h>
11279 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
11282 if ac_fn_c_try_compile
"$LINENO"; then :
11283 gcc_cv_mcontext_underscores
=no
11285 gcc_cv_mcontext_underscores
=yes
11287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
11290 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
11291 if test $gcc_cv_mcontext_underscores = yes; then
11293 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
11303 # Check if a valid thread package
11304 case ${enable_threads} in
11307 target_thread_file
='single'
11311 target_thread_file
='single'
11313 aix | dce | lynx | mipssde | posix | rtems | \
11314 single | tpf | vxworks | win32
)
11315 target_thread_file
=${enable_threads}
11318 echo "${enable_threads} is an unknown thread package" 1>&2
11323 if test x
${thread_file} = x
; then
11324 # No thread file set by target-specific clauses in config.gcc,
11325 # so use file chosen by default logic above
11326 thread_file
=${target_thread_file}
11334 if test x
$enable___cxa_atexit = xyes || \
11335 test x
$enable___cxa_atexit = x
-a x
$default_use_cxa_atexit = xyes
; then
11336 if test x
$host = x
$target; then
11338 # mingw32 doesn't have __cxa_atexit but uses atexit registration
11339 # keyed to flag_use_cxa_atexit
11347 ac_fn_c_check_func
"$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
11348 if test "x$ac_cv_func___cxa_atexit" = x
""yes; then :
11351 echo "__cxa_atexit can't be enabled on this target"
11357 # We can't check for __cxa_atexit when building a cross, so assume
11361 if test x
$use_cxa_atexit = xyes
; then
11363 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
11368 # Look for a file containing extra machine modes.
11369 if test -n "$extra_modes" && test -f $srcdir/config
/$extra_modes; then
11370 extra_modes_file
='$(srcdir)'/config
/${extra_modes}
11373 cat >>confdefs.h
<<_ACEOF
11374 #define EXTRA_MODES_FILE "config/$extra_modes"
11379 # Convert extra_options into a form suitable for Makefile use.
11382 for f
in $extra_options; do
11383 extra_opt_files
="$extra_opt_files \$(srcdir)/config/$f"
11384 all_opt_files
="$all_opt_files $srcdir/config/$f"
11388 # auto-host.h is the file containing items generated by autoconf and is
11389 # the first file included by config.h.
11390 # If host=build, it is correct to have bconfig include auto-host.h
11391 # as well. If host!=build, we are in error and need to do more
11392 # work to find out the build config parameters.
11393 if test x
$host = x
$build
11395 build_auto
=auto-host.h
11397 # We create a subdir, then run autoconf in the subdir.
11398 # To prevent recursion we set host and build for the new
11399 # invocation of configure to the build for this invocation
11406 /* | A-Za-z
:\\/* ) realsrcdir
=${srcdir};;
11407 *) realsrcdir
=..
/${srcdir};;
11409 # Clearing GMPINC is necessary to prevent host headers being
11410 # used by the build compiler. Defining GENERATOR_FILE stops
11411 # system.h from including gmp.h.
11412 CC
="${CC_FOR_BUILD}" CFLAGS
="${CFLAGS_FOR_BUILD}" \
11413 CXX
="${CXX_FOR_BUILD}" CXXFLAGS
="${CXXFLAGS_FOR_BUILD}" \
11414 LD
="${LD_FOR_BUILD}" LDFLAGS
="${LDFLAGS_FOR_BUILD}" \
11415 GMPINC
="" CPPFLAGS
="${CPPFLAGS} -DGENERATOR_FILE" \
11416 ${realsrcdir}/configure \
11417 --enable-languages=${enable_languages-all} \
11418 --target=$target_alias --host=$build_alias --build=$build_alias
11420 # We just finished tests for the build machine, so rename
11421 # the file auto-build.h in the gcc directory.
11422 mv auto-host.h ..
/auto-build.h
11425 build_auto
=auto-build.h
11429 tm_file
="${tm_file} defaults.h"
11430 tm_p_file
="${tm_p_file} tm-preds.h"
11431 host_xm_file
="auto-host.h ansidecl.h ${host_xm_file}"
11432 build_xm_file
="${build_auto} ansidecl.h ${build_xm_file}"
11433 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11434 # put this back in temporarily.
11435 xm_file
="auto-host.h ansidecl.h ${xm_file}"
11441 # Compile in configure arguments.
11442 if test -f configargs.h
; then
11443 # Being re-configured.
11444 gcc_config_arguments
=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11445 gcc_config_arguments
="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11447 gcc_config_arguments
="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11450 # Double all backslashes and backslash all quotes to turn
11451 # gcc_config_arguments into a C string.
11452 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11453 $gcc_config_arguments
11455 gcc_config_arguments_str
=`cat conftest.out`
11458 cat > configargs.h
<<EOF
11459 /* Generated automatically. */
11460 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11461 static const char thread_model[] = "$thread_file";
11463 static const struct {
11464 const char *name, *value;
11465 } configure_default_options[] = $configure_default_options;
11468 gcc_BASEVER
=`cat $srcdir/BASE-VER`
11469 gcc_DEVPHASE
=`cat $srcdir/DEV-PHASE`
11470 gcc_DATESTAMP
=`cat $srcdir/DATESTAMP`
11471 if test -f $srcdir/REVISION
; then
11472 gcc_REVISION
=`cat $srcdir/REVISION`
11476 cat > plugin-version.h
<<EOF
11477 #include "configargs.h"
11479 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11480 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11481 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11482 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11484 static char basever[] = "$gcc_BASEVER";
11485 static char datestamp[] = "$gcc_DATESTAMP";
11486 static char devphase[] = "$gcc_DEVPHASE";
11487 static char revision[] = "$gcc_REVISION";
11489 /* FIXME plugins: We should make the version information more precise.
11490 One way to do is to add a checksum. */
11492 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11493 devphase, revision,
11494 configuration_arguments};
11497 # Internationalization
11498 # If we haven't got the data from the intl directory,
11499 # assume NLS is disabled.
11508 if test -f ..
/intl
/config.intl
; then
11509 . ..
/intl
/config.intl
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11512 $as_echo_n "checking whether NLS is requested... " >&6; }
11513 if test x
"$USE_NLS" != xyes
; then
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 $as_echo "no" >&6; }
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518 $as_echo "yes" >&6; }
11520 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11524 $as_echo_n "checking for catalogs to be installed... " >&6; }
11525 # Look for .po and .gmo files in the source directory.
11528 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
11529 # If there aren't any .gmo files the shell will give us the
11530 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11532 case "$cat" in *\
**)
11535 # The quadruple backslash is collapsed to a double backslash
11536 # by the backticks, then collapsed again by the double quotes,
11537 # leaving us with one backslash in the sed expression (right
11538 # before the dot that mustn't act as a wildcard).
11539 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11540 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
11541 # The user is allowed to set LINGUAS to a list of languages to
11542 # install catalogs for. If it's empty that means "all of them."
11543 if test "x$LINGUAS" = x
; then
11544 CATALOGS
="$CATALOGS $cat"
11545 XLINGUAS
="$XLINGUAS $lang"
11547 case "$LINGUAS" in *$lang*)
11548 CATALOGS
="$CATALOGS $cat"
11549 XLINGUAS
="$XLINGUAS $lang"
11554 LINGUAS
="$XLINGUAS"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11556 $as_echo "$LINGUAS" >&6; }
11569 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11570 # -liconv on the link line twice.
11571 case "$LIBINTL" in *$LIBICONV*)
11575 # Check whether --enable-secureplt was given.
11576 if test "${enable_secureplt+set}" = set; then :
11577 enableval
=$enable_secureplt;
11581 # Check whether --enable-leading-mingw64-underscores was given.
11582 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11583 enableval
=$enable_leading_mingw64_underscores;
11586 if test x
"$enable_leading_mingw64_underscores" = xyes
; then :
11588 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11592 # Check whether --enable-cld was given.
11593 if test "${enable_cld+set}" = set; then :
11594 enableval
=$enable_cld;
11600 # Check whether --enable-frame-pointer was given.
11601 if test "${enable_frame_pointer+set}" = set; then :
11602 enableval
=$enable_frame_pointer;
11606 linux
* | darwin
[8912]*)
11607 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11609 enable_frame_pointer
=no
11612 enable_frame_pointer
=yes
11619 # Windows32 Registry support for specifying GCC installation paths.
11620 # Check whether --enable-win32-registry was given.
11621 if test "${enable_win32_registry+set}" = set; then :
11622 enableval
=$enable_win32_registry;
11627 win32 | pe | cygwin
* | mingw32
* | uwin
*)
11628 if test "x$enable_win32_registry" != xno
; then
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11630 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11631 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11632 $as_echo_n "(cached) " >&6
11634 ac_func_search_save_LIBS
=$LIBS
11635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11636 /* end confdefs.h. */
11638 /* Override any GCC internal prototype to avoid an error.
11639 Use char because int might match the return type of a GCC
11640 builtin and then its argument prototype would still apply. */
11644 char RegOpenKeyExA ();
11648 return RegOpenKeyExA ();
11653 for ac_lib
in '' advapi32
; do
11654 if test -z "$ac_lib"; then
11655 ac_res
="none required"
11658 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11660 if ac_fn_c_try_link
"$LINENO"; then :
11661 ac_cv_search_RegOpenKeyExA
=$ac_res
11663 rm -f core conftest.err conftest.
$ac_objext \
11665 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11669 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11672 ac_cv_search_RegOpenKeyExA
=no
11674 rm conftest.
$ac_ext
11675 LIBS
=$ac_func_search_save_LIBS
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11678 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11679 ac_res
=$ac_cv_search_RegOpenKeyExA
11680 if test "$ac_res" != no
; then :
11681 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11684 enable_win32_registry
=no
11689 if test "x$enable_win32_registry" != xno
; then
11691 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11694 if test "x$enable_win32_registry" != xyes \
11695 && test "x$enable_win32_registry" != x
; then
11697 cat >>confdefs.h
<<_ACEOF
11698 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11706 # Get an absolute path to the GCC top-level source directory
11707 holddir
=`${PWDCMD-pwd}`
11709 topdir
=`${PWDCMD-pwd}`
11712 # Conditionalize the makefile for this host machine.
11714 for f
in ${host_xmake_file}
11716 if test -f ${srcdir}/config
/$f
11718 xmake_file
="${xmake_file} \$(srcdir)/config/$f"
11722 # Conditionalize the makefile for this target machine.
11724 for f
in ${tmake_file}
11726 if test -f ${srcdir}/config
/$f
11728 tmake_file_
="${tmake_file_} \$(srcdir)/config/$f"
11731 tmake_file
="${tmake_file_}"
11733 out_object_file
=`basename $out_file .c`.o
11734 common_out_object_file
=`basename $common_out_file .c`.o
11736 tm_file_list
="options.h"
11737 tm_include_list
="options.h insn-constants.h"
11738 for f
in $tm_file; do
11741 f
=`echo $f | sed 's/^..//'`
11742 tm_file_list
="${tm_file_list} $f"
11743 tm_include_list
="${tm_include_list} $f"
11746 tm_file_list
="${tm_file_list} \$(srcdir)/$f"
11747 tm_include_list
="${tm_include_list} $f"
11750 tm_file_list
="${tm_file_list} \$(srcdir)/config/$f"
11751 tm_include_list
="${tm_include_list} config/$f"
11758 for f
in $tm_p_file; do
11761 tm_p_file_list
="${tm_p_file_list} $f"
11762 tm_p_include_list
="${tm_p_include_list} $f"
11765 tm_p_file_list
="${tm_p_file_list} \$(srcdir)/config/$f"
11766 tm_p_include_list
="${tm_p_include_list} config/$f"
11772 for f
in $xm_file; do
11775 xm_file_list
="${xm_file_list} \$(srcdir)/../include/$f"
11776 xm_include_list
="${xm_include_list} $f"
11779 xm_file_list
="${xm_file_list} $f"
11780 xm_include_list
="${xm_include_list} $f"
11783 xm_file_list
="${xm_file_list} \$(srcdir)/config/$f"
11784 xm_include_list
="${xm_include_list} config/$f"
11790 host_xm_include_list
=
11791 for f
in $host_xm_file; do
11794 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/../include/$f"
11795 host_xm_include_list
="${host_xm_include_list} $f"
11798 host_xm_file_list
="${host_xm_file_list} $f"
11799 host_xm_include_list
="${host_xm_include_list} $f"
11802 host_xm_file_list
="${host_xm_file_list} \$(srcdir)/config/$f"
11803 host_xm_include_list
="${host_xm_include_list} config/$f"
11808 build_xm_file_list
=
11809 for f
in $build_xm_file; do
11812 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/../include/$f"
11813 build_xm_include_list
="${build_xm_include_list} $f"
11815 auto-build.h | auto-host.h
)
11816 build_xm_file_list
="${build_xm_file_list} $f"
11817 build_xm_include_list
="${build_xm_include_list} $f"
11820 build_xm_file_list
="${build_xm_file_list} \$(srcdir)/config/$f"
11821 build_xm_include_list
="${build_xm_include_list} config/$f"
11826 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11827 # cross-compiler which does not use the native headers and libraries.
11828 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11831 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11833 if test "x$with_build_sysroot" != x
; then
11834 build_system_header_dir
=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11836 # This value is used, even on a native system, because
11837 # CROSS_SYSTEM_HEADER_DIR is just
11838 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11839 build_system_header_dir
='$(CROSS_SYSTEM_HEADER_DIR)'
11842 if test x
$host != x
$target
11844 CROSS
="-DCROSS_DIRECTORY_STRUCTURE"
11846 SYSTEM_HEADER_DIR
=$build_system_header_dir
11847 case "$host","$target" in
11848 # Darwin crosses can use the host system's libraries and headers,
11849 # because of the fat library support. Of course, it must be the
11850 # same version of Darwin on both sides. Allow the user to
11851 # just say --target=foo-darwin without a version number to mean
11852 # "the version on this system".
11853 *-*-darwin*,*-*-darwin*)
11854 hostos
=`echo $host | sed 's/.*-darwin/darwin/'`
11855 targetos
=`echo $target | sed 's/.*-darwin/darwin/'`
11856 if test $hostos = $targetos -o $targetos = darwin
; then
11858 SYSTEM_HEADER_DIR
='$(NATIVE_SYSTEM_HEADER_DIR)'
11863 i?
86-*-*,x86_64-
*-* \
11864 | powerpc
*-*-*,powerpc64
*-*-*)
11865 CROSS
="$CROSS -DNATIVE_CROSS" ;;
11870 if test "x$with_headers" = x
; then
11877 elif test "x$TARGET_SYSTEM_ROOT" != x
; then
11878 SYSTEM_HEADER_DIR
=$build_system_header_dir
11881 if test x
$host != x
$target ||
test "x$TARGET_SYSTEM_ROOT" != x
; then
11882 if test "x$with_headers" != x
; then
11883 target_header_dir
=$with_headers
11884 elif test "x$with_sysroot" = x
; then
11885 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-include"
11886 elif test "x$with_build_sysroot" != "x"; then
11887 target_header_dir
="${with_build_sysroot}${native_system_header_dir}"
11888 elif test "x$with_sysroot" = xyes
; then
11889 target_header_dir
="${test_exec_prefix}/${target_noncanonical}/sys-root${native_system_header_dir}"
11891 target_header_dir
="${with_sysroot}${native_system_header_dir}"
11894 target_header_dir
=${native_system_header_dir}
11897 # If this is a cross-compiler that does not
11898 # have its own set of headers then define
11901 # If this is using newlib, without having the headers available now,
11902 # then define inhibit_libc in LIBGCC2_CFLAGS.
11903 # This prevents libgcc2 from containing any code which requires libc
11905 : ${inhibit_libc=false}
11906 if { { test x
$host != x
$target && test "x$with_sysroot" = x
; } ||
11907 test x
$with_newlib = xyes
; } &&
11908 { test "x$with_headers" = xno ||
test ! -f "$target_header_dir/stdio.h"; } ; then
11913 # When building gcc with a cross-compiler, we need to adjust things so
11914 # that the generator programs are still built with the native compiler.
11915 # Also, we cannot run fixincludes.
11917 # These are the normal (build=host) settings:
11918 CC_FOR_BUILD
='$(CC)'
11919 CXX_FOR_BUILD
='$(CXX)'
11920 BUILD_CFLAGS
='$(ALL_CFLAGS)'
11921 BUILD_CXXFLAGS
='$(ALL_CXXFLAGS)'
11922 BUILD_LDFLAGS
='$(LDFLAGS)'
11923 STMP_FIXINC
=stmp-fixinc
11925 # And these apply if build != host, or we are generating coverage data
11926 if test x
$build != x
$host ||
test "x$coverage_flags" != x
11928 BUILD_CFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11929 BUILD_CXXFLAGS
='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CXXFLAGS_FOR_BUILD)'
11930 BUILD_LDFLAGS
='$(LDFLAGS_FOR_BUILD)'
11933 # Expand extra_headers to include complete path.
11934 # This substitutes for lots of t-* files.
11935 extra_headers_list
=
11936 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11937 for file in ${extra_headers} ; do
11938 extra_headers_list
="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11941 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11942 if test x
"$use_gcc_tgmath" = xyes
11943 then extra_headers_list
="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11946 # Define collect2 in Makefile.
11947 case $host_can_use_collect2 in
11949 *) collect2
='collect2$(exeext)' ;;
11953 # Add a definition of USE_COLLECT2 if system wants one.
11954 case $use_collect2 in
11955 no
) use_collect2
= ;;
11958 host_xm_defines
="${host_xm_defines} USE_COLLECT2"
11959 xm_defines
="${xm_defines} USE_COLLECT2"
11960 case $host_can_use_collect2 in
11962 as_fn_error
"collect2 is required but cannot be built on this system" "$LINENO" 5
11969 cat >>confdefs.h
<<_ACEOF
11970 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11974 # ---------------------------
11975 # Assembler & linker features
11976 # ---------------------------
11978 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11979 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11980 # However when ld-new is first executed from the build tree, libtool will
11981 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11982 # to the build tree. While doing this we need to use the previous-stage
11983 # linker, or we have an infinite loop. The presence of a shell script as
11984 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11985 # the gcc/collect-ld script. So we need to know how libtool works, or
11986 # exec-tool will fail.
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11992 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11997 macro_version
='2.2.7a'
11998 macro_revision
='1.3134'
12012 ltmain
="$ac_aux_dir/ltmain.sh"
12014 # Backslashify metacharacters that are still active within
12015 # double-quoted strings.
12016 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
12018 # Same as above, but do not quote variable references.
12019 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
12021 # Sed substitution to delay expansion of an escaped shell variable in a
12022 # double_quote_subst'ed string.
12023 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
12025 # Sed substitution to delay expansion of an escaped single quote.
12026 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
12028 # Sed substitution to avoid accidental globbing in evaled expressions
12029 no_glob_subst
='s/\*/\\\*/g'
12031 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12033 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
12036 $as_echo_n "checking how to print strings... " >&6; }
12037 # Test print first, because it will be a builtin if present.
12038 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
12039 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
12041 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
12044 # Use this function as a fallback that always works.
12045 func_fallback_echo ()
12047 eval 'cat <<_LTECHO_EOF
12051 ECHO='func_fallback_echo
'
12054 # func_echo_all arg...
12055 # Invoke $ECHO with all args, space-separated.
12062 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
12063 $as_echo "printf" >&6; } ;;
12064 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
12065 $as_echo "print -r" >&6; } ;;
12066 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
12067 $as_echo "cat" >&6; } ;;
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12084 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12085 if test "${ac_cv_path_SED+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12089 for ac_i in 1 2 3 4 5 6 7; do
12090 ac_script="$ac_script$as_nl$ac_script"
12092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12093 { ac_script=; unset ac_script;}
12094 if test -z "$SED"; then
12095 ac_path_SED_found=false
12096 # Loop through the user's path and
test for each of PROGNAME-LIST
12097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12098 for as_dir
in $PATH
12101 test -z "$as_dir" && as_dir
=.
12102 for ac_prog
in sed gsed
; do
12103 for ac_exec_ext
in '' $ac_executable_extensions; do
12104 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
12105 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
12106 # Check for GNU ac_path_SED and select it if it is found.
12107 # Check for GNU $ac_path_SED
12108 case `"$ac_path_SED" --version 2>&1` in
12110 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
12113 $as_echo_n 0123456789 >"conftest.in"
12116 cat "conftest.in" "conftest.in" >"conftest.tmp"
12117 mv "conftest.tmp" "conftest.in"
12118 cp "conftest.in" "conftest.nl"
12119 $as_echo '' >> "conftest.nl"
12120 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12121 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12122 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12123 if test $ac_count -gt ${ac_path_SED_max-0}; then
12124 # Best one so far, save it but keep looking for a better one
12125 ac_cv_path_SED
="$ac_path_SED"
12126 ac_path_SED_max
=$ac_count
12128 # 10*(2^10) chars as input seems more than enough
12129 test $ac_count -gt 10 && break
12131 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12134 $ac_path_SED_found && break 3
12139 if test -z "$ac_cv_path_SED"; then
12140 as_fn_error
"no acceptable sed could be found in \$PATH" "$LINENO" 5
12143 ac_cv_path_SED
=$SED
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12148 $as_echo "$ac_cv_path_SED" >&6; }
12149 SED
="$ac_cv_path_SED"
12152 test -z "$SED" && SED
=sed
12153 Xsed
="$SED -e 1s/^X//"
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12166 $as_echo_n "checking for fgrep... " >&6; }
12167 if test "${ac_cv_path_FGREP+set}" = set; then :
12168 $as_echo_n "(cached) " >&6
12170 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
12171 then ac_cv_path_FGREP
="$GREP -F"
12173 if test -z "$FGREP"; then
12174 ac_path_FGREP_found
=false
12175 # Loop through the user's path and test for each of PROGNAME-LIST
12176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12177 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
12180 test -z "$as_dir" && as_dir
=.
12181 for ac_prog
in fgrep
; do
12182 for ac_exec_ext
in '' $ac_executable_extensions; do
12183 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
12184 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
12185 # Check for GNU ac_path_FGREP and select it if it is found.
12186 # Check for GNU $ac_path_FGREP
12187 case `"$ac_path_FGREP" --version 2>&1` in
12189 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
12192 $as_echo_n 0123456789 >"conftest.in"
12195 cat "conftest.in" "conftest.in" >"conftest.tmp"
12196 mv "conftest.tmp" "conftest.in"
12197 cp "conftest.in" "conftest.nl"
12198 $as_echo 'FGREP' >> "conftest.nl"
12199 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
12200 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
12201 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
12202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12203 # Best one so far, save it but keep looking for a better one
12204 ac_cv_path_FGREP
="$ac_path_FGREP"
12205 ac_path_FGREP_max
=$ac_count
12207 # 10*(2^10) chars as input seems more than enough
12208 test $ac_count -gt 10 && break
12210 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
12213 $ac_path_FGREP_found && break 3
12218 if test -z "$ac_cv_path_FGREP"; then
12219 as_fn_error
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12222 ac_cv_path_FGREP
=$FGREP
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12228 $as_echo "$ac_cv_path_FGREP" >&6; }
12229 FGREP
="$ac_cv_path_FGREP"
12232 test -z "$GREP" && GREP
=grep
12252 # Check whether --with-gnu-ld was given.
12253 if test "${with_gnu_ld+set}" = set; then :
12254 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
12260 if test "$GCC" = yes; then
12261 # Check if gcc -print-prog-name=ld gives a path.
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12263 $as_echo_n "checking for ld used by $CC... " >&6; }
12266 # gcc leaves a trailing carriage return which upsets mingw
12267 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12269 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
12272 # Accept absolute paths.
12274 re_direlt
='/[^/][^/]*/\.\./'
12275 # Canonicalize the pathname of ld
12276 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12277 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
12278 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12280 test -z "$LD" && LD
="$ac_prog"
12283 # If it fails, then pretend we aren't using GCC.
12287 # If it is relative, then search for the first ld in PATH.
12288 with_gnu_ld
=unknown
12291 elif test "$with_gnu_ld" = yes; then
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12293 $as_echo_n "checking for GNU ld... " >&6; }
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12296 $as_echo_n "checking for non-GNU ld... " >&6; }
12298 if test "${lt_cv_path_LD+set}" = set; then :
12299 $as_echo_n "(cached) " >&6
12301 if test -z "$LD"; then
12302 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12303 for ac_dir
in $PATH; do
12305 test -z "$ac_dir" && ac_dir
=.
12306 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
12307 lt_cv_path_LD
="$ac_dir/$ac_prog"
12308 # Check to see if the program is GNU ld. I'd rather use --version,
12309 # but apparently some variants of GNU ld only accept -v.
12310 # Break only if it was the GNU/non-GNU ld that we prefer.
12311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12312 *GNU
* |
*'with BFD'*)
12313 test "$with_gnu_ld" != no
&& break
12316 test "$with_gnu_ld" != yes && break
12323 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
12327 LD
="$lt_cv_path_LD"
12328 if test -n "$LD"; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12330 $as_echo "$LD" >&6; }
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 $as_echo "no" >&6; }
12335 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12337 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12338 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12341 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12342 case `$LD -v 2>&1 </dev/null` in
12343 *GNU
* |
*'with BFD'*)
12344 lt_cv_prog_gnu_ld
=yes
12347 lt_cv_prog_gnu_ld
=no
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12352 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12353 with_gnu_ld
=$lt_cv_prog_gnu_ld
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12364 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12365 if test "${lt_cv_path_NM+set}" = set; then :
12366 $as_echo_n "(cached) " >&6
12368 if test -n "$NM"; then
12369 # Let the user override the test.
12370 lt_cv_path_NM
="$NM"
12372 lt_nm_to_check
="${ac_tool_prefix}nm"
12373 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12374 lt_nm_to_check
="$lt_nm_to_check nm"
12376 for lt_tmp_nm
in $lt_nm_to_check; do
12377 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12378 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
12380 test -z "$ac_dir" && ac_dir
=.
12381 tmp_nm
="$ac_dir/$lt_tmp_nm"
12382 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
12383 # Check to see if the nm accepts a BSD-compat flag.
12384 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12385 # nm: unknown option "B" ignored
12386 # Tru64's nm complains that /dev/null is an invalid object file
12387 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12388 */dev
/null
* |
*'Invalid file or object type'*)
12389 lt_cv_path_NM
="$tmp_nm -B"
12393 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12395 lt_cv_path_NM
="$tmp_nm -p"
12399 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12400 continue # so that we can try to find one that supports BSD flags
12409 : ${lt_cv_path_NM=no}
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12413 $as_echo "$lt_cv_path_NM" >&6; }
12414 if test "$lt_cv_path_NM" != "no"; then
12415 NM
="$lt_cv_path_NM"
12417 # Didn't find any BSD compatible name lister, look for dumpbin.
12418 if test -n "$DUMPBIN"; then :
12419 # Let the user override the test.
12421 if test -n "$ac_tool_prefix"; then
12422 for ac_prog
in dumpbin
"link -dump"
12424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12425 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12429 $as_echo_n "(cached) " >&6
12431 if test -n "$DUMPBIN"; then
12432 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
12434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12435 for as_dir
in $PATH
12438 test -z "$as_dir" && as_dir
=.
12439 for ac_exec_ext
in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
12442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 DUMPBIN
=$ac_cv_prog_DUMPBIN
12452 if test -n "$DUMPBIN"; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12454 $as_echo "$DUMPBIN" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12461 test -n "$DUMPBIN" && break
12464 if test -z "$DUMPBIN"; then
12465 ac_ct_DUMPBIN
=$DUMPBIN
12466 for ac_prog
in dumpbin
"link -dump"
12468 # Extract the first word of "$ac_prog", so it can be a program name with args.
12469 set dummy
$ac_prog; ac_word
=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12475 if test -n "$ac_ct_DUMPBIN"; then
12476 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
12478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12479 for as_dir
in $PATH
12482 test -z "$as_dir" && as_dir
=.
12483 for ac_exec_ext
in '' $ac_executable_extensions; do
12484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12485 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
12496 if test -n "$ac_ct_DUMPBIN"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12498 $as_echo "$ac_ct_DUMPBIN" >&6; }
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12505 test -n "$ac_ct_DUMPBIN" && break
12508 if test "x$ac_ct_DUMPBIN" = x
; then
12511 case $cross_compiling:$ac_tool_warned in
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12515 ac_tool_warned
=yes ;;
12517 DUMPBIN
=$ac_ct_DUMPBIN
12521 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12523 DUMPBIN
="$DUMPBIN -symbols"
12531 if test "$DUMPBIN" != ":"; then
12535 test -z "$NM" && NM
=nm
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12543 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12544 if test "${lt_cv_nm_interface+set}" = set; then :
12545 $as_echo_n "(cached) " >&6
12547 lt_cv_nm_interface
="BSD nm"
12548 echo "int some_variable = 0;" > conftest.
$ac_ext
12549 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12550 (eval "$ac_compile" 2>conftest.err
)
12551 cat conftest.err
>&5
12552 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12553 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
12554 cat conftest.err
>&5
12555 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12556 cat conftest.out
>&5
12557 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
12558 lt_cv_nm_interface
="MS dumpbin"
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12563 $as_echo "$lt_cv_nm_interface" >&6; }
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12566 $as_echo_n "checking whether ln -s works... " >&6; }
12568 if test "$LN_S" = "ln -s"; then
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12570 $as_echo "yes" >&6; }
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12573 $as_echo "no, using $LN_S" >&6; }
12576 # find the maximum length of command line arguments
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12578 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12579 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
12587 # On DJGPP, this test can blow up pretty badly due to problems in libc
12588 # (any single argument exceeding 2000 bytes causes a buffer overrun
12589 # during glob expansion). Even if it were fixed, the result of this
12590 # check would be larger than it should be.
12591 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
12595 # Under GNU Hurd, this test is not required because there is
12596 # no limit to the length of command line arguments.
12597 # Libtool will interpret -1 as no limit whatsoever
12598 lt_cv_sys_max_cmd_len
=-1;
12601 cygwin
* | mingw
* | cegcc
*)
12602 # On Win9x/ME, this test blows up -- it succeeds, but takes
12603 # about 5 minutes as the teststring grows exponentially.
12604 # Worse, since 9x/ME are not pre-emptively multitasking,
12605 # you end up with a "frozen" computer, even though with patience
12606 # the test eventually succeeds (with a max line length of 256k).
12607 # Instead, let's just punt: use the minimum linelength reported by
12608 # all of the supported platforms: 8192 (on NT/2K/XP).
12609 lt_cv_sys_max_cmd_len
=8192;
12613 # On MiNT this can take a long time and run out of memory.
12614 lt_cv_sys_max_cmd_len
=8192;
12618 # On AmigaOS with pdksh, this test takes hours, literally.
12619 # So we just punt and use a minimum line length of 8192.
12620 lt_cv_sys_max_cmd_len
=8192;
12623 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
12624 # This has been around since 386BSD, at least. Likely further.
12625 if test -x /sbin
/sysctl
; then
12626 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
12627 elif test -x /usr
/sbin
/sysctl
; then
12628 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
12630 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
12632 # And add a safety zone
12633 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12634 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12638 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12639 lt_cv_sys_max_cmd_len
=196608
12643 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12644 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12645 # nice to cause kernel panics so lets avoid the loop below.
12646 # First set a reasonable default.
12647 lt_cv_sys_max_cmd_len
=16384
12649 if test -x /sbin
/sysconfig
; then
12650 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12651 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
12656 lt_cv_sys_max_cmd_len
=102400
12658 sysv5
* | sco5v6
* | sysv4.2uw2
*)
12659 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12660 if test -n "$kargmax"; then
12661 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
12663 lt_cv_sys_max_cmd_len
=32768
12667 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
12668 if test -n "$lt_cv_sys_max_cmd_len"; then
12669 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
12670 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
12672 # Make teststring a little bigger before we do anything with it.
12673 # a 1K string should be a reasonable start.
12674 for i
in 1 2 3 4 5 6 7 8 ; do
12675 teststring
=$teststring$teststring
12677 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
12678 # If test is not a shell built-in, we'll probably end up computing a
12679 # maximum length that is only half of the actual maximum length, but
12681 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12682 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
12683 test $i != 17 # 1/2 MB should be enough
12686 teststring
=$teststring$teststring
12688 # Only check the string length outside the loop.
12689 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
12691 # Add a significant safety factor because C++ compilers can tack on
12692 # massive amounts of additional arguments before passing them to the
12693 # linker. It appears as though 1/2 is a usable value.
12694 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
12701 if test -n $lt_cv_sys_max_cmd_len ; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12703 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12706 $as_echo "none" >&6; }
12708 max_cmd_len
=$lt_cv_sys_max_cmd_len
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12720 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12721 # Try some XSI features
12723 ( _lt_dummy
="a/b/c"
12724 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12726 && eval 'test $(( 1 + 1 )) -eq 2 \
12727 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
12730 $as_echo "$xsi_shell" >&6; }
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
12734 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
12736 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
12738 && lt_shell_append=yes
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
12740 $as_echo "$lt_shell_append" >&6; }
12743 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12753 # test EBCDIC or ASCII
12754 case `echo X|tr X '\101'` in
12755 A) # ASCII based system
12756 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12757 lt_SP2NL='tr \040 \012'
12758 lt_NL2SP='tr \015\012 \040\040'
12760 *) # EBCDIC based system
12761 lt_SP2NL='tr \100 \n'
12762 lt_NL2SP='tr \r\n \100\100'
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
12775 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
12776 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12777 $as_echo_n "(cached
) " >&6
12779 lt_cv_ld_reload_flag='-r'
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
12782 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12783 reload_flag=$lt_cv_ld_reload_flag
12784 case $reload_flag in
12786 *) reload_flag=" $reload_flag" ;;
12788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12791 if test "$GCC" = yes; then
12792 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12794 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12807 if test -n "$ac_tool_prefix"; then
12808 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
12809 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12811 $as_echo_n "checking
for $ac_word...
" >&6; }
12812 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12813 $as_echo_n "(cached
) " >&6
12815 if test -n "$OBJDUMP"; then
12816 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819 for as_dir in $PATH
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12825 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12835 OBJDUMP=$ac_cv_prog_OBJDUMP
12836 if test -n "$OBJDUMP"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12838 $as_echo "$OBJDUMP" >&6; }
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12841 $as_echo "no
" >&6; }
12846 if test -z "$ac_cv_prog_OBJDUMP"; then
12847 ac_ct_OBJDUMP=$OBJDUMP
12848 # Extract the first word of "objdump
", so it can be a program name with args.
12849 set dummy objdump; ac_word=$2
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12851 $as_echo_n "checking
for $ac_word...
" >&6; }
12852 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12853 $as_echo_n "(cached
) " >&6
12855 if test -n "$ac_ct_OBJDUMP"; then
12856 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12859 for as_dir in $PATH
12862 test -z "$as_dir" && as_dir=.
12863 for ac_exec_ext in '' $ac_executable_extensions; do
12864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12865 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
12866 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12875 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12876 if test -n "$ac_ct_OBJDUMP"; then
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
12878 $as_echo "$ac_ct_OBJDUMP" >&6; }
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12881 $as_echo "no
" >&6; }
12884 if test "x
$ac_ct_OBJDUMP" = x; then
12887 case $cross_compiling:$ac_tool_warned in
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12890 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12891 ac_tool_warned=yes ;;
12893 OBJDUMP=$ac_ct_OBJDUMP
12896 OBJDUMP="$ac_cv_prog_OBJDUMP"
12899 test -z "$OBJDUMP" && OBJDUMP=objdump
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
12910 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
12911 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12912 $as_echo_n "(cached
) " >&6
12914 lt_cv_file_magic_cmd='$MAGIC_CMD'
12915 lt_cv_file_magic_test_file=
12916 lt_cv_deplibs_check_method='unknown'
12917 # Need to set the preceding variable on all platforms that support
12918 # interlibrary dependencies.
12919 # 'none' -- dependencies not supported.
12920 # `unknown' -- same as none, but documents that we really don't know.
12921 # 'pass_all' -- all dependencies passed with no checks.
12922 # 'test_compile' -- check by making test program.
12923 # 'file_magic [[regex]]' -- check by looking for files in library path
12924 # which responds to the $file_magic_cmd with a given extended regex.
12925 # If you have `file' or equivalent on your system and you're not sure
12926 # whether `pass_all' will *always* work, you probably want this one.
12930 lt_cv_deplibs_check_method=pass_all
12934 lt_cv_deplibs_check_method=pass_all
12938 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12939 lt_cv_file_magic_cmd='/usr/bin/file -L'
12940 lt_cv_file_magic_test_file=/shlib/libc.so
12944 # func_win32_libid is a shell function defined in ltmain.sh
12945 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12946 lt_cv_file_magic_cmd='func_win32_libid'
12950 # Base MSYS/MinGW do not provide the 'file' command needed by
12951 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12952 # unless we find 'file', for example because we are cross-compiling.
12953 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12954 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
12955 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12956 lt_cv_file_magic_cmd='func_win32_libid'
12958 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12959 lt_cv_file_magic_cmd='$OBJDUMP -f'
12964 # use the weaker test based on 'objdump'. See mingw*.
12965 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12966 lt_cv_file_magic_cmd='$OBJDUMP -f'
12969 darwin* | rhapsody*)
12970 lt_cv_deplibs_check_method=pass_all
12973 freebsd* | dragonfly*)
12974 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12977 # Not sure whether the presence of OpenBSD here was a mistake.
12978 # Let's accept both of them until this is cleared up.
12979 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12980 lt_cv_file_magic_cmd=/usr/bin/file
12981 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12985 lt_cv_deplibs_check_method=pass_all
12990 lt_cv_deplibs_check_method=pass_all
12994 lt_cv_deplibs_check_method=pass_all
12997 hpux10.20* | hpux11*)
12998 lt_cv_file_magic_cmd=/usr/bin/file
13001 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13002 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13005 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]'
13006 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13010 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13016 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13020 irix5* | irix6* | nonstopux*)
13022 *-32|*"-32 ") libmagic=32-bit;;
13023 *-n32|*"-n32 ") libmagic=N32;;
13024 *-64|*"-64 ") libmagic=64-bit;;
13025 *) libmagic=never-match;;
13027 lt_cv_deplibs_check_method=pass_all
13030 # This must be Linux ELF.
13031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13032 lt_cv_deplibs_check_method=pass_all
13036 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13045 lt_cv_file_magic_cmd=/usr/bin/file
13046 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13050 lt_cv_deplibs_check_method=pass_all
13054 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
13055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13061 osf3* | osf4* | osf5*)
13062 lt_cv_deplibs_check_method=pass_all
13066 lt_cv_deplibs_check_method=pass_all
13070 lt_cv_deplibs_check_method=pass_all
13073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13074 lt_cv_deplibs_check_method=pass_all
13078 case $host_vendor in
13080 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]'
13081 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13084 lt_cv_deplibs_check_method=pass_all
13087 lt_cv_file_magic_cmd='/bin/file'
13088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13091 lt_cv_file_magic_cmd='/bin/file'
13092 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
13093 lt_cv_file_magic_test_file=/lib/libc.so
13096 lt_cv_deplibs_check_method=pass_all
13099 lt_cv_deplibs_check_method=pass_all
13105 lt_cv_deplibs_check_method=pass_all
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
13111 $as_echo "$lt_cv_deplibs_check_method" >&6; }
13112 file_magic_cmd=$lt_cv_file_magic_cmd
13113 deplibs_check_method=$lt_cv_deplibs_check_method
13114 test -z "$deplibs_check_method" && deplibs_check_method=unknown
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}ar; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13131 $as_echo_n "checking
for $ac_word...
" >&6; }
13132 if test "${ac_cv_prog_AR+set}" = set; then :
13133 $as_echo_n "(cached
) " >&6
13135 if test -n "$AR"; then
13136 ac_cv_prog_AR="$AR" # Let the user override the test.
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_AR="${ac_tool_prefix}ar"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13156 if test -n "$AR"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13158 $as_echo "$AR" >&6; }
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13161 $as_echo "no
" >&6; }
13166 if test -z "$ac_cv_prog_AR"; then
13168 # Extract the first word of "ar", so it can be a program name with args.
13169 set dummy ar; ac_word=$2
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13171 $as_echo_n "checking
for $ac_word...
" >&6; }
13172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
13173 $as_echo_n "(cached
) " >&6
13175 if test -n "$ac_ct_AR"; then
13176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_ac_ct_AR="ar"
13186 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196 if test -n "$ac_ct_AR"; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13198 $as_echo "$ac_ct_AR" >&6; }
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13201 $as_echo "no
" >&6; }
13204 if test "x
$ac_ct_AR" = x; then
13207 case $cross_compiling:$ac_tool_warned in
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13210 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13211 ac_tool_warned=yes ;;
13216 AR="$ac_cv_prog_AR"
13219 test -z "$AR" && AR=ar
13220 test -z "$AR_FLAGS" && AR_FLAGS=cru
13232 if test -n "$ac_tool_prefix"; then
13233 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
13234 set dummy ${ac_tool_prefix}strip; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13236 $as_echo_n "checking
for $ac_word...
" >&6; }
13237 if test "${ac_cv_prog_STRIP+set}" = set; then :
13238 $as_echo_n "(cached
) " >&6
13240 if test -n "$STRIP"; then
13241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13250 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13260 STRIP=$ac_cv_prog_STRIP
13261 if test -n "$STRIP"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13263 $as_echo "$STRIP" >&6; }
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13266 $as_echo "no
" >&6; }
13271 if test -z "$ac_cv_prog_STRIP"; then
13273 # Extract the first word of "strip
", so it can be a program name with args.
13274 set dummy strip; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13276 $as_echo_n "checking
for $ac_word...
" >&6; }
13277 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13278 $as_echo_n "(cached
) " >&6
13280 if test -n "$ac_ct_STRIP"; then
13281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13290 ac_cv_prog_ac_ct_STRIP="strip
"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13301 if test -n "$ac_ct_STRIP"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
13303 $as_echo "$ac_ct_STRIP" >&6; }
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13306 $as_echo "no
" >&6; }
13309 if test "x
$ac_ct_STRIP" = x; then
13312 case $cross_compiling:$ac_tool_warned in
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13315 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13316 ac_tool_warned=yes ;;
13321 STRIP="$ac_cv_prog_STRIP"
13324 test -z "$STRIP" && STRIP=:
13331 if test -n "$ac_tool_prefix"; then
13332 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
13333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13335 $as_echo_n "checking
for $ac_word...
" >&6; }
13336 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13337 $as_echo_n "(cached
) " >&6
13339 if test -n "$RANLIB"; then
13340 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
13348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13349 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
13350 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13359 RANLIB=$ac_cv_prog_RANLIB
13360 if test -n "$RANLIB"; then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13362 $as_echo "$RANLIB" >&6; }
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13365 $as_echo "no
" >&6; }
13370 if test -z "$ac_cv_prog_RANLIB"; then
13371 ac_ct_RANLIB=$RANLIB
13372 # Extract the first word of "ranlib
", so it can be a program name with args.
13373 set dummy ranlib; ac_word=$2
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13375 $as_echo_n "checking
for $ac_word...
" >&6; }
13376 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13377 $as_echo_n "(cached
) " >&6
13379 if test -n "$ac_ct_RANLIB"; then
13380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13383 for as_dir in $PATH
13386 test -z "$as_dir" && as_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13389 ac_cv_prog_ac_ct_RANLIB="ranlib
"
13390 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13400 if test -n "$ac_ct_RANLIB"; then
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
13402 $as_echo "$ac_ct_RANLIB" >&6; }
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13405 $as_echo "no
" >&6; }
13408 if test "x
$ac_ct_RANLIB" = x; then
13411 case $cross_compiling:$ac_tool_warned in
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13414 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13415 ac_tool_warned=yes ;;
13417 RANLIB=$ac_ct_RANLIB
13420 RANLIB="$ac_cv_prog_RANLIB"
13423 test -z "$RANLIB" && RANLIB=:
13430 # Determine commands to create old-style static archives.
13431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13432 old_postinstall_cmds='chmod 644 $oldlib'
13433 old_postuninstall_cmds=
13435 if test -n "$RANLIB"; then
13438 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
13441 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
13444 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
13449 lock_old_archive_extraction=yes ;;
13451 lock_old_archive_extraction=no ;;
13492 # If no C compiler was specified, use CC.
13495 # If no C compiler flags were specified, use CFLAGS.
13496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13498 # Allow CC to be a program name with arguments.
13502 # Check for command to grab the raw symbol name followed by C symbol from nm.
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
13504 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
13505 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13506 $as_echo_n "(cached
) " >&6
13509 # These are sane defaults that work on at least a few old systems.
13510 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13512 # Character class describing NM global symbol codes.
13513 symcode='[BCDEGRST]'
13515 # Regexp to match symbols that can be accessed directly from C.
13516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13518 # Define system-specific variables.
13523 cygwin* | mingw* | pw32* | cegcc*)
13524 symcode='[ABCDGISTW]'
13527 if test "$host_cpu" = ia64; then
13528 symcode='[ABCDEGRST]'
13531 irix* | nonstopux*)
13532 symcode='[BCDEGRST]'
13535 symcode='[BCDEGQRST]'
13546 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13554 # If we're using GNU nm, then use its standard symbol codes.
13555 case `$NM -V 2>&1` in
13556 *GNU* | *'with BFD'*)
13557 symcode='[ABCDGIRSTW]' ;;
13560 # Transform an extracted symbol line into a proper C declaration.
13561 # Some systems (esp. on ia64) link data and code symbols differently,
13562 # so use this general approach.
13563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13565 # Transform an extracted symbol line into symbol name and symbol address
13566 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13567 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'"
13569 # Handle CRLF in mingw tool chain
13573 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13577 # Try without a prefix underscore, then with it.
13578 for ac_symprfx in "" "_
"; do
13580 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13581 symxfrm="\\1 $ac_symprfx\\2 \\2"
13583 # Write the raw and C identifiers.
13584 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
13585 # Fake it for dumpbin and say T for any non-static function
13586 # and D for any global variable.
13587 # Also find C++ and __fastcall symbols from MSVC++,
13588 # which start with @ or ?.
13589 lt_cv_sys_global_symbol_pipe="$AWK '"\
13590 " {last_section=section; section=\$ 3};"\
13591 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13592 " \$ 0!~/External *\|/{next};"\
13593 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13594 " {if(hide[section]) next};"\
13595 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13596 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13597 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13598 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13599 " ' prfx
=^
$ac_symprfx"
13601 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13604 # Check to see that the pipe works correctly.
13608 cat > conftest.$ac_ext <<_LT_EOF
13613 void nm_test_func(void);
13614 void nm_test_func(void){}
13618 int main(){nm_test_var='a';nm_test_func();return(0);}
13621 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13622 (eval $ac_compile) 2>&5
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13625 test $ac_status = 0; }; then
13626 # Now try to grab the symbols.
13628 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
13629 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13631 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13632 test $ac_status = 0; } && test -s "$nlist"; then
13633 # Try sorting and uniquifying the output.
13634 if sort "$nlist" | uniq > "$nlist"T; then
13635 mv -f "$nlist"T "$nlist"
13640 # Make sure that we snagged all the symbols we need.
13641 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13642 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13643 cat <<_LT_EOF > conftest.$ac_ext
13649 # Now generate the symbol file.
13650 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13652 cat <<_LT_EOF >> conftest.$ac_ext
13654 /* The mapping between symbol names and symbols. */
13659 lt__PROGRAM__LTX_preloaded_symbols[] =
13661 { "@PROGRAM@
", (void *) 0 },
13663 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13664 cat <<\_LT_EOF >> conftest.$ac_ext
13668 /* This works around a problem in FreeBSD linker */
13669 #ifdef FREEBSD_WORKAROUND
13670 static const void *lt_preloaded_setup() {
13671 return lt__PROGRAM__LTX_preloaded_symbols;
13679 # Now try linking the two files.
13680 mv conftest.$ac_objext conftstm.$ac_objext
13681 lt_save_LIBS="$LIBS"
13682 lt_save_CFLAGS="$CFLAGS"
13683 LIBS="conftstm.
$ac_objext"
13684 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13685 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13686 (eval $ac_link) 2>&5
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13689 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13692 LIBS="$lt_save_LIBS"
13693 CFLAGS="$lt_save_CFLAGS"
13695 echo "cannot
find nm_test_func
in $nlist" >&5
13698 echo "cannot
find nm_test_var
in $nlist" >&5
13701 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
13704 echo "$progname: failed program was
:" >&5
13705 cat conftest.$ac_ext >&5
13707 rm -rf conftest* conftst*
13709 # Do not use the global_symbol_pipe unless it works.
13710 if test "$pipe_works" = yes; then
13713 lt_cv_sys_global_symbol_pipe=
13719 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13720 lt_cv_sys_global_symbol_to_cdecl=
13722 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
13724 $as_echo "failed
" >&6; }
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
13727 $as_echo "ok
" >&6; }
13751 # Check whether --enable-libtool-lock was given.
13752 if test "${enable_libtool_lock+set}" = set; then :
13753 enableval=$enable_libtool_lock;
13756 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
13758 # Some flags need to be propagated to the compiler or linker for good
13762 # Find out which ABI we are using.
13763 echo 'int i;' > conftest.$ac_ext
13764 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13765 (eval $ac_compile) 2>&5
13767 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13768 test $ac_status = 0; }; then
13769 case `/usr/bin/file conftest.$ac_objext` in
13771 HPUX_IA64_MODE="32"
13774 HPUX_IA64_MODE="64"
13781 # Find out which ABI we are using.
13782 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
13783 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13784 (eval $ac_compile) 2>&5
13786 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13787 test $ac_status = 0; }; then
13788 if test "$lt_cv_prog_gnu_ld" = yes; then
13789 case `/usr/bin/file conftest.$ac_objext` in
13791 LD="${LD-ld} -melf32bsmip"
13794 LD="${LD-ld} -melf32bmipn32"
13797 LD="${LD-ld} -melf64bmip"
13801 case `/usr/bin/file conftest.$ac_objext` in
13817 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13818 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13819 # Find out which ABI we are using.
13820 echo 'int i;' > conftest.$ac_ext
13821 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13822 (eval $ac_compile) 2>&5
13824 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13825 test $ac_status = 0; }; then
13826 case `/usr/bin/file conftest.o` in
13829 x86_64-*kfreebsd*-gnu)
13830 LD="${LD-ld} -m elf_i386_fbsd
"
13833 case `/usr/bin/file conftest.o` in
13835 LD="${LD-ld} -m elf32_x86_64
"
13838 LD="${LD-ld} -m elf_i386
"
13842 powerpc64le-*linux*)
13843 LD="${LD-ld} -m elf32lppclinux
"
13846 LD="${LD-ld} -m elf32ppclinux
"
13849 LD="${LD-ld} -m elf_s390
"
13852 LD="${LD-ld} -m elf32_sparc
"
13858 x86_64-*kfreebsd*-gnu)
13859 LD="${LD-ld} -m elf_x86_64_fbsd
"
13862 LD="${LD-ld} -m elf_x86_64
"
13865 LD="${LD-ld} -m elf64lppc
"
13868 LD="${LD-ld} -m elf64ppc
"
13870 s390*-*linux*|s390*-*tpf*)
13871 LD="${LD-ld} -m elf64_s390
"
13874 LD="${LD-ld} -m elf64_sparc
"
13884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13885 SAVE_CFLAGS="$CFLAGS"
13886 CFLAGS="$CFLAGS -belf"
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
13888 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
13889 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13890 $as_echo_n "(cached
) " >&6
13893 ac_cpp='$CPP $CPPFLAGS'
13894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13899 /* end confdefs.h. */
13909 if ac_fn_c_try_link "$LINENO"; then :
13910 lt_cv_cc_needs_belf=yes
13912 lt_cv_cc_needs_belf=no
13914 rm -f core conftest.err conftest.$ac_objext \
13915 conftest$ac_exeext conftest.$ac_ext
13917 ac_cpp='$CPP $CPPFLAGS'
13918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
13924 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13925 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13926 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13927 CFLAGS="$SAVE_CFLAGS"
13931 # Find out which ABI we are using.
13932 echo 'int i;' > conftest.$ac_ext
13933 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13934 (eval $ac_compile) 2>&5
13936 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
13937 test $ac_status = 0; }; then
13938 case `/usr/bin/file conftest.o` in
13940 case $lt_cv_prog_gnu_ld in
13941 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
13943 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13955 need_locks="$enable_libtool_lock"
13959 rhapsody* | darwin*)
13960 if test -n "$ac_tool_prefix"; then
13961 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
13962 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13964 $as_echo_n "checking
for $ac_word...
" >&6; }
13965 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13966 $as_echo_n "(cached
) " >&6
13968 if test -n "$DSYMUTIL"; then
13969 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13975 test -z "$as_dir" && as_dir=.
13976 for ac_exec_ext in '' $ac_executable_extensions; do
13977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13978 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
13979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13988 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13989 if test -n "$DSYMUTIL"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
13991 $as_echo "$DSYMUTIL" >&6; }
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13994 $as_echo "no
" >&6; }
13999 if test -z "$ac_cv_prog_DSYMUTIL"; then
14000 ac_ct_DSYMUTIL=$DSYMUTIL
14001 # Extract the first word of "dsymutil
", so it can be a program name with args.
14002 set dummy dsymutil; ac_word=$2
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14004 $as_echo_n "checking
for $ac_word...
" >&6; }
14005 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
14006 $as_echo_n "(cached
) " >&6
14008 if test -n "$ac_ct_DSYMUTIL"; then
14009 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14015 test -z "$as_dir" && as_dir=.
14016 for ac_exec_ext in '' $ac_executable_extensions; do
14017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14018 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
14019 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14028 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14029 if test -n "$ac_ct_DSYMUTIL"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
14031 $as_echo "$ac_ct_DSYMUTIL" >&6; }
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14034 $as_echo "no
" >&6; }
14037 if test "x
$ac_ct_DSYMUTIL" = x; then
14040 case $cross_compiling:$ac_tool_warned in
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14043 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14044 ac_tool_warned=yes ;;
14046 DSYMUTIL=$ac_ct_DSYMUTIL
14049 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14052 if test -n "$ac_tool_prefix"; then
14053 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
14054 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14056 $as_echo_n "checking
for $ac_word...
" >&6; }
14057 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
14058 $as_echo_n "(cached
) " >&6
14060 if test -n "$NMEDIT"; then
14061 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14067 test -z "$as_dir" && as_dir=.
14068 for ac_exec_ext in '' $ac_executable_extensions; do
14069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14070 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
14071 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14080 NMEDIT=$ac_cv_prog_NMEDIT
14081 if test -n "$NMEDIT"; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
14083 $as_echo "$NMEDIT" >&6; }
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14086 $as_echo "no
" >&6; }
14091 if test -z "$ac_cv_prog_NMEDIT"; then
14092 ac_ct_NMEDIT=$NMEDIT
14093 # Extract the first word of "nmedit
", so it can be a program name with args.
14094 set dummy nmedit; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14096 $as_echo_n "checking
for $ac_word...
" >&6; }
14097 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
14098 $as_echo_n "(cached
) " >&6
14100 if test -n "$ac_ct_NMEDIT"; then
14101 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14110 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14120 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14121 if test -n "$ac_ct_NMEDIT"; then
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
14123 $as_echo "$ac_ct_NMEDIT" >&6; }
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14126 $as_echo "no
" >&6; }
14129 if test "x
$ac_ct_NMEDIT" = x; then
14132 case $cross_compiling:$ac_tool_warned in
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14135 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14136 ac_tool_warned=yes ;;
14138 NMEDIT=$ac_ct_NMEDIT
14141 NMEDIT="$ac_cv_prog_NMEDIT"
14144 if test -n "$ac_tool_prefix"; then
14145 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
14146 set dummy ${ac_tool_prefix}lipo; ac_word=$2
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14148 $as_echo_n "checking
for $ac_word...
" >&6; }
14149 if test "${ac_cv_prog_LIPO+set}" = set; then :
14150 $as_echo_n "(cached
) " >&6
14152 if test -n "$LIPO"; then
14153 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14159 test -z "$as_dir" && as_dir=.
14160 for ac_exec_ext in '' $ac_executable_extensions; do
14161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14162 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
14163 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14172 LIPO=$ac_cv_prog_LIPO
14173 if test -n "$LIPO"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
14175 $as_echo "$LIPO" >&6; }
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14178 $as_echo "no
" >&6; }
14183 if test -z "$ac_cv_prog_LIPO"; then
14185 # Extract the first word of "lipo
", so it can be a program name with args.
14186 set dummy lipo; ac_word=$2
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14188 $as_echo_n "checking
for $ac_word...
" >&6; }
14189 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
14190 $as_echo_n "(cached
) " >&6
14192 if test -n "$ac_ct_LIPO"; then
14193 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14196 for as_dir in $PATH
14199 test -z "$as_dir" && as_dir=.
14200 for ac_exec_ext in '' $ac_executable_extensions; do
14201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14202 ac_cv_prog_ac_ct_LIPO="lipo
"
14203 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14212 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14213 if test -n "$ac_ct_LIPO"; then
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
14215 $as_echo "$ac_ct_LIPO" >&6; }
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14218 $as_echo "no
" >&6; }
14221 if test "x
$ac_ct_LIPO" = x; then
14224 case $cross_compiling:$ac_tool_warned in
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14227 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14228 ac_tool_warned=yes ;;
14233 LIPO="$ac_cv_prog_LIPO"
14236 if test -n "$ac_tool_prefix"; then
14237 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
14238 set dummy ${ac_tool_prefix}otool; ac_word=$2
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14240 $as_echo_n "checking
for $ac_word...
" >&6; }
14241 if test "${ac_cv_prog_OTOOL+set}" = set; then :
14242 $as_echo_n "(cached
) " >&6
14244 if test -n "$OTOOL"; then
14245 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14248 for as_dir in $PATH
14251 test -z "$as_dir" && as_dir=.
14252 for ac_exec_ext in '' $ac_executable_extensions; do
14253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14254 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
14255 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14264 OTOOL=$ac_cv_prog_OTOOL
14265 if test -n "$OTOOL"; then
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
14267 $as_echo "$OTOOL" >&6; }
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14270 $as_echo "no
" >&6; }
14275 if test -z "$ac_cv_prog_OTOOL"; then
14277 # Extract the first word of "otool
", so it can be a program name with args.
14278 set dummy otool; ac_word=$2
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14280 $as_echo_n "checking
for $ac_word...
" >&6; }
14281 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
14282 $as_echo_n "(cached
) " >&6
14284 if test -n "$ac_ct_OTOOL"; then
14285 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14288 for as_dir in $PATH
14291 test -z "$as_dir" && as_dir=.
14292 for ac_exec_ext in '' $ac_executable_extensions; do
14293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14294 ac_cv_prog_ac_ct_OTOOL="otool
"
14295 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14304 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14305 if test -n "$ac_ct_OTOOL"; then
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
14307 $as_echo "$ac_ct_OTOOL" >&6; }
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14310 $as_echo "no
" >&6; }
14313 if test "x
$ac_ct_OTOOL" = x; then
14316 case $cross_compiling:$ac_tool_warned in
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14319 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14320 ac_tool_warned=yes ;;
14325 OTOOL="$ac_cv_prog_OTOOL"
14328 if test -n "$ac_tool_prefix"; then
14329 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
14330 set dummy ${ac_tool_prefix}otool64; ac_word=$2
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14332 $as_echo_n "checking
for $ac_word...
" >&6; }
14333 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
14334 $as_echo_n "(cached
) " >&6
14336 if test -n "$OTOOL64"; then
14337 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340 for as_dir in $PATH
14343 test -z "$as_dir" && as_dir=.
14344 for ac_exec_ext in '' $ac_executable_extensions; do
14345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14346 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
14347 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14356 OTOOL64=$ac_cv_prog_OTOOL64
14357 if test -n "$OTOOL64"; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
14359 $as_echo "$OTOOL64" >&6; }
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14362 $as_echo "no
" >&6; }
14367 if test -z "$ac_cv_prog_OTOOL64"; then
14368 ac_ct_OTOOL64=$OTOOL64
14369 # Extract the first word of "otool64
", so it can be a program name with args.
14370 set dummy otool64; ac_word=$2
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14372 $as_echo_n "checking
for $ac_word...
" >&6; }
14373 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
14374 $as_echo_n "(cached
) " >&6
14376 if test -n "$ac_ct_OTOOL64"; then
14377 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14380 for as_dir in $PATH
14383 test -z "$as_dir" && as_dir=.
14384 for ac_exec_ext in '' $ac_executable_extensions; do
14385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14386 ac_cv_prog_ac_ct_OTOOL64="otool64
"
14387 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14396 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14397 if test -n "$ac_ct_OTOOL64"; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
14399 $as_echo "$ac_ct_OTOOL64" >&6; }
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14402 $as_echo "no
" >&6; }
14405 if test "x
$ac_ct_OTOOL64" = x; then
14408 case $cross_compiling:$ac_tool_warned in
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14411 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14412 ac_tool_warned=yes ;;
14414 OTOOL64=$ac_ct_OTOOL64
14417 OTOOL64="$ac_cv_prog_OTOOL64"
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
14447 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
14448 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14449 $as_echo_n "(cached
) " >&6
14451 lt_cv_apple_cc_single_mod=no
14452 if test -z "${LT_MULTI_MODULE}"; then
14453 # By default we will add the -single_module flag. You can override
14454 # by either setting the environment variable LT_MULTI_MODULE
14455 # non-empty at configure time, or by adding -multi_module to the
14457 rm -rf libconftest.dylib*
14458 echo "int foo
(void
){return 1;}" > conftest.c
14459 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14460 -dynamiclib -Wl,-single_module conftest.c
" >&5
14461 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14462 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14464 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14465 lt_cv_apple_cc_single_mod=yes
14467 cat conftest.err >&5
14469 rm -rf libconftest.dylib*
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
14474 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
14476 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
14477 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14478 $as_echo_n "(cached
) " >&6
14480 lt_cv_ld_exported_symbols_list=no
14481 save_LDFLAGS=$LDFLAGS
14482 echo "_main
" > conftest.sym
14483 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
14484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14495 if ac_fn_c_try_link "$LINENO"; then :
14496 lt_cv_ld_exported_symbols_list=yes
14498 lt_cv_ld_exported_symbols_list=no
14500 rm -f core conftest.err conftest.$ac_objext \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LDFLAGS="$save_LDFLAGS"
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
14506 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
14508 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
14509 if test "${lt_cv_ld_force_load+set}" = set; then :
14510 $as_echo_n "(cached
) " >&6
14512 lt_cv_ld_force_load=no
14513 cat > conftest.c << _LT_EOF
14514 int forced_loaded() { return 2;}
14516 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
14517 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14518 echo "$AR cru libconftest.a conftest.o
" >&5
14519 $AR cru libconftest.a conftest.o 2>&5
14520 cat > conftest.c << _LT_EOF
14521 int main() { return 0;}
14523 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
14524 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14526 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14527 lt_cv_ld_force_load=yes
14529 cat conftest.err >&5
14531 rm -f conftest.err libconftest.a conftest conftest.c
14532 rm -rf conftest.dSYM
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
14536 $as_echo "$lt_cv_ld_force_load" >&6; }
14538 rhapsody* | darwin1.[012])
14539 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14541 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14542 darwin*) # darwin 5.x on
14543 # if running on 10.5 or later, the deployment target defaults
14544 # to the OS version, if on x86, and 10.4, the deployment
14545 # target defaults to 10.4. Don't you love it?
14546 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14547 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14548 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14550 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14552 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14556 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14557 _lt_dar_single_mod='$single_module'
14559 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14560 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14562 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14564 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
14565 _lt_dsymutil='~$DSYMUTIL $lib || :'
14572 for ac_header in dlfcn.h
14574 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h
" "ac_cv_header_dlfcn_h
"
14575 if test "x
$ac_cv_header_dlfcn_h" = x""yes; then :
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_DLFCN_H 1
14594 enable_win32_dll=no
14597 # Check whether --enable-shared was given.
14598 if test "${enable_shared+set}" = set; then :
14599 enableval=$enable_shared; p=${PACKAGE-default}
14601 yes) enable_shared=yes ;;
14602 no) enable_shared=no ;;
14605 # Look at the argument we got. We use all the common list separators.
14606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14607 for pkg in $enableval; do
14609 if test "X
$pkg" = "X
$p"; then
14628 # Check whether --enable-static was given.
14629 if test "${enable_static+set}" = set; then :
14630 enableval=$enable_static; p=${PACKAGE-default}
14632 yes) enable_static=yes ;;
14633 no) enable_static=no ;;
14636 # Look at the argument we got. We use all the common list separators.
14637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14638 for pkg in $enableval; do
14640 if test "X
$pkg" = "X
$p"; then
14660 # Check whether --with-pic was given.
14661 if test "${with_pic+set}" = set; then :
14662 withval=$with_pic; pic_mode="$withval"
14668 test -z "$pic_mode" && pic_mode=default
14676 # Check whether --enable-fast-install was given.
14677 if test "${enable_fast_install+set}" = set; then :
14678 enableval=$enable_fast_install; p=${PACKAGE-default}
14680 yes) enable_fast_install=yes ;;
14681 no) enable_fast_install=no ;;
14683 enable_fast_install=no
14684 # Look at the argument we got. We use all the common list separators.
14685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14686 for pkg in $enableval; do
14688 if test "X
$pkg" = "X
$p"; then
14689 enable_fast_install=yes
14696 enable_fast_install=yes
14709 # This can be used to rebuild libtool when needed
14710 LIBTOOL_DEPS="$ltmain"
14712 # Always use our own libtool.
14713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14740 test -z "$LN_S" && LN_S="ln -s"
14755 if test -n "${ZSH_VERSION+set}" ; then
14756 setopt NO_GLOB_SUBST
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdir
" >&5
14760 $as_echo_n "checking
for objdir...
" >&6; }
14761 if test "${lt_cv_objdir+set}" = set; then :
14762 $as_echo_n "(cached
) " >&6
14764 rm -f .libs 2>/dev/null
14765 mkdir .libs 2>/dev/null
14766 if test -d .libs; then
14769 # MS-DOS does not allow filenames that begin with a dot.
14772 rmdir .libs 2>/dev/null
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_objdir" >&5
14775 $as_echo "$lt_cv_objdir" >&6; }
14776 objdir=$lt_cv_objdir
14782 cat >>confdefs.h <<_ACEOF
14783 #define LT_OBJDIR "$lt_cv_objdir/"
14791 # AIX sometimes has problems with the GCC collect2 program. For some
14792 # reason, if we set the COLLECT_NAMES environment variable, the problems
14793 # vanish in a puff of smoke.
14794 if test "X
${COLLECT_NAMES+set}" != Xset; then
14796 export COLLECT_NAMES
14801 # Global variables:
14803 can_build_shared=yes
14805 # All known linkers require a `.a' archive for static linking (except MSVC,
14806 # which needs '.lib').
14809 with_gnu_ld="$lt_cv_prog_gnu_ld"
14812 old_CFLAGS="$CFLAGS"
14814 # Set sane defaults for various variables
14815 test -z "$CC" && CC=cc
14816 test -z "$LTCC" && LTCC=$CC
14817 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14818 test -z "$LD" && LD=ld
14819 test -z "$ac_objext" && ac_objext=o
14821 for cc_temp in $compiler""; do
14823 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14824 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14829 cc_basename=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
14832 # Only perform the check for file, if the check method requires it
14833 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14834 case $deplibs_check_method in
14836 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ac_tool_prefix}file" >&5
14838 $as_echo_n "checking
for ${ac_tool_prefix}file...
" >&6; }
14839 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14840 $as_echo_n "(cached
) " >&6
14844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14847 lt_save_MAGIC_CMD="$MAGIC_CMD"
14848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14849 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14850 for ac_dir in $ac_dummy; do
14852 test -z "$ac_dir" && ac_dir=.
14853 if test -f $ac_dir/${ac_tool_prefix}file; then
14854 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14855 if test -n "$file_magic_test_file"; then
14856 case $deplibs_check_method in
14858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14861 $EGREP "$file_magic_regex" > /dev/null; then
14866 *** Warning: the command libtool uses to detect shared libraries,
14867 *** $file_magic_cmd, produces output that libtool cannot recognize.
14868 *** The result is that libtool may fail to recognize shared libraries
14869 *** as such. This will affect the creation of libtool libraries that
14870 *** depend on shared libraries, but programs linked with such libtool
14871 *** libraries will work regardless of this problem. Nevertheless, you
14872 *** may want to report the problem to your system manager and/or to
14873 *** bug-libtool@gnu.org
14883 MAGIC_CMD="$lt_save_MAGIC_CMD"
14888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14889 if test -n "$MAGIC_CMD"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14891 $as_echo "$MAGIC_CMD" >&6; }
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14894 $as_echo "no
" >&6; }
14901 if test -z "$lt_cv_path_MAGIC_CMD"; then
14902 if test -n "$ac_tool_prefix"; then
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for file" >&5
14904 $as_echo_n "checking
for file...
" >&6; }
14905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14906 $as_echo_n "(cached
) " >&6
14910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14913 lt_save_MAGIC_CMD="$MAGIC_CMD"
14914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14915 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
14916 for ac_dir in $ac_dummy; do
14918 test -z "$ac_dir" && ac_dir=.
14919 if test -f $ac_dir/file; then
14920 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14921 if test -n "$file_magic_test_file"; then
14922 case $deplibs_check_method in
14924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
14925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14927 $EGREP "$file_magic_regex" > /dev/null; then
14932 *** Warning: the command libtool uses to detect shared libraries,
14933 *** $file_magic_cmd, produces output that libtool cannot recognize.
14934 *** The result is that libtool may fail to recognize shared libraries
14935 *** as such. This will affect the creation of libtool libraries that
14936 *** depend on shared libraries, but programs linked with such libtool
14937 *** libraries will work regardless of this problem. Nevertheless, you
14938 *** may want to report the problem to your system manager and/or to
14939 *** bug-libtool@gnu.org
14949 MAGIC_CMD="$lt_save_MAGIC_CMD"
14954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14955 if test -n "$MAGIC_CMD"; then
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAGIC_CMD" >&5
14957 $as_echo "$MAGIC_CMD" >&6; }
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14960 $as_echo "no
" >&6; }
14973 # Use C for the default configuration in the libtool script
14977 ac_cpp='$CPP $CPPFLAGS'
14978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14983 # Source file extension for C test sources.
14986 # Object file extension for compiled C test sources.
14990 # Code to be used in simple compile tests
14991 lt_simple_compile_test_code="int some_variable
= 0;"
14993 # Code to be used in simple link tests
14994 lt_simple_link_test_code='int main(){return(0);}'
15002 # If no C compiler was specified, use CC.
15005 # If no C compiler flags were specified, use CFLAGS.
15006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15008 # Allow CC to be a program name with arguments.
15011 # Save the default compiler, since it gets overwritten when the other
15012 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15013 compiler_DEFAULT=$CC
15015 # save warnings/boilerplate of simple test code
15016 ac_outfile=conftest.$ac_objext
15017 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15018 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15019 _lt_compiler_boilerplate=`cat conftest.err`
15022 ac_outfile=conftest.$ac_objext
15023 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15024 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15025 _lt_linker_boilerplate=`cat conftest.err`
15030 ## There is no encapsulation within the following macros, do not change
15031 ## the running order or otherwise move them around unless you know exactly
15032 ## what you are doing...
15033 if test -n "$compiler"; then
15035 lt_prog_compiler_no_builtin_flag=
15037 if test "$GCC" = yes; then
15038 case $cc_basename in
15040 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15042 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
15046 $as_echo_n "checking
if $compiler supports
-fno-rtti -fno-exceptions...
" >&6; }
15047 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15048 $as_echo_n "(cached
) " >&6
15050 lt_cv_prog_compiler_rtti_exceptions=no
15051 ac_outfile=conftest.$ac_objext
15052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15053 lt_compiler_flag="-fno-rtti -fno-exceptions"
15054 # Insert the option either (1) after the last *FLAGS variable, or
15055 # (2) before a word containing "conftest.
", or (3) at the end.
15056 # Note that $ac_compile itself does not contain backslashes and begins
15057 # with a dollar sign (not a hyphen), so the echo should work correctly.
15058 # The option is referenced via a variable to avoid confusing sed.
15059 lt_compile=`echo "$ac_compile" | $SED \
15060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15062 -e 's:$: $lt_compiler_flag:'`
15063 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15064 (eval "$lt_compile" 2>conftest.err)
15066 cat conftest.err >&5
15067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15068 if (exit $ac_status) && test -s "$ac_outfile"; then
15069 # The compiler can only warn and ignore the option if not recognized
15070 # So say no if there are warnings other than the usual output.
15071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15074 lt_cv_prog_compiler_rtti_exceptions=yes
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
15081 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15083 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15084 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15096 lt_prog_compiler_wl=
15097 lt_prog_compiler_pic=
15098 lt_prog_compiler_static=
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $compiler option to produce PIC
" >&5
15101 $as_echo_n "checking
for $compiler option to produce PIC...
" >&6; }
15103 if test "$GCC" = yes; then
15104 lt_prog_compiler_wl='-Wl,'
15105 lt_prog_compiler_static='-static'
15109 # All AIX code is PIC.
15110 if test "$host_cpu" = ia64; then
15111 # AIX 5 now supports IA64 processor
15112 lt_prog_compiler_static='-Bstatic'
15114 lt_prog_compiler_pic='-fPIC'
15120 # see comment about AmigaOS4 .so support
15121 lt_prog_compiler_pic='-fPIC'
15124 # FIXME: we need at least 68020 code to build shared libraries, but
15125 # adding the `-m68020' flag to GCC prevents building anything better,
15127 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15132 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15133 # PIC is the default for these OSes.
15136 mingw* | cygwin* | pw32* | os2* | cegcc*)
15137 # This hack is so that the source file can tell whether it is being
15138 # built for inclusion in a dll (and should export symbols for example).
15139 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15140 # (--disable-auto-import) libraries
15141 lt_prog_compiler_pic='-DDLL_EXPORT'
15144 darwin* | rhapsody*)
15145 # PIC is the default on this platform
15146 # Common symbols not allowed in MH_DYLIB files
15147 lt_prog_compiler_pic='-fno-common'
15151 # PIC is the default for Haiku.
15152 # The "-static" flag exists, but is broken.
15153 lt_prog_compiler_static=
15157 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15158 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15159 # sets the default TLS model and affects inlining.
15165 lt_prog_compiler_pic='-fPIC'
15171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15172 # Instead, we relocate shared libraries at runtime.
15176 # Just because we use GCC doesn't mean we suddenly get shared libraries
15177 # on systems that don't support them.
15178 lt_prog_compiler_can_build_shared=no
15183 # QNX uses GNU C++, but need to define -shared option too, otherwise
15184 # it will coredump.
15185 lt_prog_compiler_pic='-fPIC -shared'
15189 if test -d /usr/nec; then
15190 lt_prog_compiler_pic=-Kconform_pic
15195 lt_prog_compiler_pic='-fPIC'
15199 case $cc_basename in
15200 nvcc*) # Cuda Compiler Driver 2.2
15201 lt_prog_compiler_wl='-Xlinker '
15202 lt_prog_compiler_pic='-Xcompiler -fPIC'
15206 # PORTME Check for flag to pass linker flags through the system compiler.
15209 lt_prog_compiler_wl='-Wl,'
15210 if test "$host_cpu" = ia64; then
15211 # AIX 5 now supports IA64 processor
15212 lt_prog_compiler_static='-Bstatic'
15214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15218 mingw* | cygwin* | pw32* | os2* | cegcc*)
15219 # This hack is so that the source file can tell whether it is being
15220 # built for inclusion in a dll (and should export symbols for example).
15221 lt_prog_compiler_pic='-DDLL_EXPORT'
15224 hpux9* | hpux10* | hpux11*)
15225 lt_prog_compiler_wl='-Wl,'
15226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15227 # not for PA HP-UX.
15233 lt_prog_compiler_pic='+Z'
15236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15237 lt_prog_compiler_static='${wl}-a ${wl}archive'
15240 irix5* | irix6* | nonstopux*)
15241 lt_prog_compiler_wl='-Wl,'
15242 # PIC (with -KPIC) is the default.
15243 lt_prog_compiler_static='-non_shared'
15246 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15247 case $cc_basename in
15248 # old Intel for x86_64 which still supported -KPIC.
15250 lt_prog_compiler_wl='-Wl,'
15251 lt_prog_compiler_pic='-KPIC'
15252 lt_prog_compiler_static='-static'
15254 # icc used to be incompatible with GCC.
15255 # ICC 10 doesn't accept -KPIC any more.
15257 lt_prog_compiler_wl='-Wl,'
15258 lt_prog_compiler_pic='-fPIC'
15259 lt_prog_compiler_static='-static'
15261 # Lahey Fortran 8.1.
15263 lt_prog_compiler_wl='-Wl,'
15264 lt_prog_compiler_pic='--shared'
15265 lt_prog_compiler_static='--static'
15267 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15268 # Portland Group compilers (*not* the Pentium gcc compiler,
15269 # which looks to be a dead project)
15270 lt_prog_compiler_wl='-Wl,'
15271 lt_prog_compiler_pic='-fpic'
15272 lt_prog_compiler_static='-Bstatic'
15275 lt_prog_compiler_wl='-Wl,'
15276 # All Alpha code is PIC.
15277 lt_prog_compiler_static='-non_shared'
15279 xl* | bgxl* | bgf* | mpixl*)
15280 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15281 lt_prog_compiler_wl='-Wl,'
15282 lt_prog_compiler_pic='-qpic'
15283 lt_prog_compiler_static='-qstaticlink'
15286 case `$CC -V 2>&1 | sed 5q` in
15287 *Sun\ F* | *Sun*Fortran*)
15288 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15289 lt_prog_compiler_pic='-KPIC'
15290 lt_prog_compiler_static='-Bstatic'
15291 lt_prog_compiler_wl=''
15295 lt_prog_compiler_pic='-KPIC'
15296 lt_prog_compiler_static='-Bstatic'
15297 lt_prog_compiler_wl='-Wl,'
15305 lt_prog_compiler_pic='-KPIC'
15306 lt_prog_compiler_static='-Bstatic'
15310 # QNX uses GNU C++, but need to define -shared option too, otherwise
15311 # it will coredump.
15312 lt_prog_compiler_pic='-fPIC -shared'
15315 osf3* | osf4* | osf5*)
15316 lt_prog_compiler_wl='-Wl,'
15317 # All OSF/1 code is PIC.
15318 lt_prog_compiler_static='-non_shared'
15322 lt_prog_compiler_static='-non_shared'
15326 lt_prog_compiler_pic='-KPIC'
15327 lt_prog_compiler_static='-Bstatic'
15328 case $cc_basename in
15329 f77* | f90* | f95*)
15330 lt_prog_compiler_wl='-Qoption ld ';;
15332 lt_prog_compiler_wl='-Wl,';;
15337 lt_prog_compiler_wl='-Qoption ld '
15338 lt_prog_compiler_pic='-PIC'
15339 lt_prog_compiler_static='-Bstatic'
15342 sysv4 | sysv4.2uw2* | sysv4.3*)
15343 lt_prog_compiler_wl='-Wl,'
15344 lt_prog_compiler_pic='-KPIC'
15345 lt_prog_compiler_static='-Bstatic'
15349 if test -d /usr/nec ;then
15350 lt_prog_compiler_pic='-Kconform_pic'
15351 lt_prog_compiler_static='-Bstatic'
15355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15356 lt_prog_compiler_wl='-Wl,'
15357 lt_prog_compiler_pic='-KPIC'
15358 lt_prog_compiler_static='-Bstatic'
15362 lt_prog_compiler_wl='-Wl,'
15363 lt_prog_compiler_can_build_shared=no
15367 lt_prog_compiler_pic='-pic'
15368 lt_prog_compiler_static='-Bstatic'
15372 lt_prog_compiler_can_build_shared=no
15378 # For platforms which do not support PIC, -DPIC is meaningless:
15380 lt_prog_compiler_pic=
15383 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_prog_compiler_pic" >&5
15387 $as_echo "$lt_prog_compiler_pic" >&6; }
15395 # Check to make sure the PIC flag actually works.
15397 if test -n "$lt_prog_compiler_pic"; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
15399 $as_echo_n "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
" >&6; }
15400 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15401 $as_echo_n "(cached
) " >&6
15403 lt_cv_prog_compiler_pic_works=no
15404 ac_outfile=conftest.$ac_objext
15405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15406 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15407 # Insert the option either (1) after the last *FLAGS variable, or
15408 # (2) before a word containing "conftest.
", or (3) at the end.
15409 # Note that $ac_compile itself does not contain backslashes and begins
15410 # with a dollar sign (not a hyphen), so the echo should work correctly.
15411 # The option is referenced via a variable to avoid confusing sed.
15412 lt_compile=`echo "$ac_compile" | $SED \
15413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15415 -e 's:$: $lt_compiler_flag:'`
15416 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15417 (eval "$lt_compile" 2>conftest.err)
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15421 if (exit $ac_status) && test -s "$ac_outfile"; then
15422 # The compiler can only warn and ignore the option if not recognized
15423 # So say no if there are warnings other than the usual output.
15424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15427 lt_cv_prog_compiler_pic_works=yes
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_pic_works" >&5
15434 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15436 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15437 case $lt_prog_compiler_pic in
15439 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15442 lt_prog_compiler_pic=
15443 lt_prog_compiler_can_build_shared=no
15454 # Check to make sure the static flag actually works.
15456 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
15458 $as_echo_n "checking
if $compiler static flag
$lt_tmp_static_flag works...
" >&6; }
15459 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15460 $as_echo_n "(cached
) " >&6
15462 lt_cv_prog_compiler_static_works=no
15463 save_LDFLAGS="$LDFLAGS"
15464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15465 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15467 # The linker can only warn and ignore the option if not recognized
15468 # So say no if there are warnings
15469 if test -s conftest.err; then
15470 # Append any errors to the config.log.
15471 cat conftest.err 1>&5
15472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15474 if diff conftest.exp conftest.er2 >/dev/null; then
15475 lt_cv_prog_compiler_static_works=yes
15478 lt_cv_prog_compiler_static_works=yes
15482 LDFLAGS="$save_LDFLAGS"
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_static_works" >&5
15486 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15488 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15491 lt_prog_compiler_static=
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15501 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15502 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15503 $as_echo_n "(cached
) " >&6
15505 lt_cv_prog_compiler_c_o=no
15506 $RM -r conftest 2>/dev/null
15510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15512 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15513 # Insert the option either (1) after the last *FLAGS variable, or
15514 # (2) before a word containing "conftest.
", or (3) at the end.
15515 # Note that $ac_compile itself does not contain backslashes and begins
15516 # with a dollar sign (not a hyphen), so the echo should work correctly.
15517 lt_compile=`echo "$ac_compile" | $SED \
15518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15520 -e 's:$: $lt_compiler_flag:'`
15521 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15522 (eval "$lt_compile" 2>out/conftest.err)
15524 cat out/conftest.err >&5
15525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15528 # The compiler can only warn and ignore the option if not recognized
15529 # So say no if there are warnings
15530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15533 lt_cv_prog_compiler_c_o=yes
15538 # SGI C++ compiler will create directory out/ii_files/ for
15539 # template instantiation
15540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15541 $RM out/* && rmdir out
15547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15548 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
15556 $as_echo_n "checking
if $compiler supports
-c -o file.
$ac_objext...
" >&6; }
15557 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15558 $as_echo_n "(cached
) " >&6
15560 lt_cv_prog_compiler_c_o=no
15561 $RM -r conftest 2>/dev/null
15565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15567 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
15568 # Insert the option either (1) after the last *FLAGS variable, or
15569 # (2) before a word containing "conftest.
", or (3) at the end.
15570 # Note that $ac_compile itself does not contain backslashes and begins
15571 # with a dollar sign (not a hyphen), so the echo should work correctly.
15572 lt_compile=`echo "$ac_compile" | $SED \
15573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15575 -e 's:$: $lt_compiler_flag:'`
15576 (eval echo "\"\
$as_me:$LINENO: $lt_compile\"" >&5)
15577 (eval "$lt_compile" 2>out/conftest.err)
15579 cat out/conftest.err >&5
15580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15583 # The compiler can only warn and ignore the option if not recognized
15584 # So say no if there are warnings
15585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15588 lt_cv_prog_compiler_c_o=yes
15593 # SGI C++ compiler will create directory out/ii_files/ for
15594 # template instantiation
15595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15596 $RM out/* && rmdir out
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_compiler_c_o" >&5
15603 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15608 hard_links="nottested
"
15609 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15610 # do not overwrite the value of need_locks provided by the user
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if we can lock with hard links
" >&5
15612 $as_echo_n "checking
if we can lock with hard links...
" >&6; }
15615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15617 ln conftest.a conftest.b 2>&5 || hard_links=no
15618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $hard_links" >&5
15620 $as_echo "$hard_links" >&6; }
15621 if test "$hard_links" = no; then
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
15623 $as_echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
15636 $as_echo_n "checking whether the
$compiler linker
($LD) supports shared libraries...
" >&6; }
15639 allow_undefined_flag=
15640 always_export_symbols=no
15642 archive_expsym_cmds=
15643 compiler_needs_object=no
15644 enable_shared_with_static_runtimes=no
15645 export_dynamic_flag_spec=
15646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15647 hardcode_automatic=no
15649 hardcode_direct_absolute=no
15650 hardcode_libdir_flag_spec=
15651 hardcode_libdir_flag_spec_ld=
15652 hardcode_libdir_separator=
15653 hardcode_minus_L=no
15654 hardcode_shlibpath_var=unsupported
15656 link_all_deplibs=unknown
15658 module_expsym_cmds=
15659 old_archive_from_new_cmds=
15660 old_archive_from_expsyms_cmds=
15661 thread_safe_flag_spec=
15662 whole_archive_flag_spec=
15663 # include_expsyms should be a list of space-separated symbols to be *always*
15664 # included in the symbol list
15666 # exclude_expsyms can be an extended regexp of symbols to exclude
15667 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15669 # as well as any symbol that contains `d'.
15670 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15672 # platforms (ab)use it in PIC code, but their linkers get confused if
15673 # the symbol is explicitly referenced. Since portable code cannot
15674 # rely on this symbol name, it's probably fine to never include it in
15675 # preloaded symbol tables.
15676 # Exclude shared library initialization/finalization symbols.
15677 extract_expsyms_cmds=
15680 cygwin* | mingw* | pw32* | cegcc*)
15681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15682 # When not using gcc, we currently assume that we are using
15683 # Microsoft Visual C++.
15684 if test "$GCC" != yes; then
15689 # we just hope/assume this is gcc and not c89 (= MSVC++)
15699 # On some targets, GNU ld is compatible enough with the native linker
15700 # that we're better off using the native interface for both.
15701 lt_use_gnu_ld_interface=no
15702 if test "$with_gnu_ld" = yes; then
15705 # The AIX port of GNU ld has always aspired to compatibility
15706 # with the native linker. However, as the warning in the GNU ld
15707 # block says, versions before 2.19.5* couldn't really create working
15708 # shared libraries, regardless of the interface used.
15709 case `$LD -v 2>&1` in
15710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15712 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15714 lt_use_gnu_ld_interface=yes
15719 lt_use_gnu_ld_interface=yes
15724 if test "$lt_use_gnu_ld_interface" = yes; then
15725 # If archive_cmds runs LD, not CC, wlarc should be empty
15728 # Set some defaults for GNU ld with shared library support. These
15729 # are reset later if shared libraries are not supported. Putting them
15730 # here allows them to be overridden if necessary.
15731 runpath_var=LD_RUN_PATH
15732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15733 export_dynamic_flag_spec='${wl}--export-dynamic'
15734 # ancient GNU ld didn't support --whole-archive et. al.
15735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15738 whole_archive_flag_spec=
15740 supports_anon_versioning=no
15741 case `$LD -v 2>&1` in
15742 *GNU\ gold*) supports_anon_versioning=yes ;;
15743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15746 *\ 2.11.*) ;; # other 2.11 versions
15747 *) supports_anon_versioning=yes ;;
15750 # See if GNU ld supports shared libraries.
15753 # On AIX/PPC, the GNU linker is very broken
15754 if test "$host_cpu" != ia64; then
15758 *** Warning: the GNU linker, at least up to release 2.19, is reported
15759 *** to be unable to reliably create shared libraries on AIX.
15760 *** Therefore, libtool is disabling shared libraries support. If you
15761 *** really care for shared libraries, you may want to install binutils
15762 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15763 *** You will then need to restart the configuration process.
15772 # see comment about AmigaOS4 .so support
15773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15774 archive_expsym_cmds=''
15777 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)'
15778 hardcode_libdir_flag_spec
='-L$libdir'
15779 hardcode_minus_L
=yes
15785 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15786 allow_undefined_flag
=unsupported
15787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15788 # support --undefined. This deserves some investigation. FIXME
15789 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15795 cygwin
* | mingw
* | pw32
* | cegcc
*)
15796 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15797 # as there is no search path for DLLs.
15798 hardcode_libdir_flag_spec
='-L$libdir'
15799 export_dynamic_flag_spec
='${wl}--export-all-symbols'
15800 allow_undefined_flag
=unsupported
15801 always_export_symbols
=no
15802 enable_shared_with_static_runtimes
=yes
15803 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15805 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
15806 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15807 # If the export-symbols file already is a .def file (1st line
15808 # is EXPORTS), use it as is; otherwise, prepend...
15809 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15810 cp $export_symbols $output_objdir/$soname.def;
15812 echo EXPORTS > $output_objdir/$soname.def;
15813 cat $export_symbols >> $output_objdir/$soname.def;
15815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15822 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15823 link_all_deplibs
=yes
15828 hardcode_shlibpath_var
=no
15829 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
15830 export_dynamic_flag_spec
='${wl}-E'
15831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15832 # Instead, shared libraries are loaded at an image base (0x10000000 by
15833 # default) and relocated if they conflict, which is a slow very memory
15834 # consuming and fragmenting process. To avoid this, we pick a random,
15835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15837 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15838 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'
15841 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
15843 if test "$host_os" = linux-dietlibc
; then
15844 case $cc_basename in
15845 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
15848 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
15849 && test "$tmp_diet" = no
15852 tmp_sharedflag
='-shared'
15853 case $cc_basename,$host_cpu in
15854 pgcc
*) # Portland Group C compiler
15855 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'
15856 tmp_addflag
=' $pic_flag'
15858 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
15859 # Portland Group f77 and f90 compilers
15860 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'
15861 tmp_addflag
=' $pic_flag -Mnomain' ;;
15862 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
15863 tmp_addflag
=' -i_dynamic' ;;
15864 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
15865 tmp_addflag
=' -i_dynamic -nofor_main' ;;
15866 ifc
* | ifort
*) # Intel Fortran compiler
15867 tmp_addflag
=' -nofor_main' ;;
15868 lf95
*) # Lahey Fortran 8.1
15869 whole_archive_flag_spec
=
15870 tmp_sharedflag
='--shared' ;;
15871 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15872 tmp_sharedflag
='-qmkshrobj'
15874 nvcc
*) # Cuda Compiler Driver 2.2
15875 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'
15876 compiler_needs_object
=yes
15879 case `$CC -V 2>&1 | sed 5q` in
15880 *Sun\ C
*) # Sun C 5.9
15881 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'
15882 compiler_needs_object
=yes
15883 tmp_sharedflag
='-G' ;;
15884 *Sun\ F
*) # Sun Fortran 8.3
15885 tmp_sharedflag
='-G' ;;
15887 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15889 if test "x$supports_anon_versioning" = xyes
; then
15890 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15892 echo "local: *; };" >> $output_objdir/$libname.ver~
15893 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15896 case $cc_basename in
15897 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
15898 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15899 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
15900 hardcode_libdir_flag_spec
=
15901 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
15902 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15903 if test "x$supports_anon_versioning" = xyes
; then
15904 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
15905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15906 echo "local: *; };" >> $output_objdir/$libname.ver~
15907 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15917 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
15918 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15921 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15922 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15927 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
15931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15932 *** create shared libraries on Solaris systems. Therefore, libtool
15933 *** is disabling shared libraries support. We urge you to upgrade GNU
15934 *** binutils to release 2.9.1 or newer. Another option is to modify
15935 *** your PATH or compiler configuration so that the native linker is
15936 *** used, and then restart.
15939 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15940 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15941 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15947 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
15948 case `$LD -v 2>&1` in
15949 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
15953 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15954 *** reliably create shared libraries on SCO systems. Therefore, libtool
15955 *** is disabling shared libraries support. We urge you to upgrade GNU
15956 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15957 *** your PATH or compiler configuration so that the native linker is
15958 *** used, and then restart.
15963 # For security reasons, it is highly recommended that you always
15964 # use absolute paths for naming shared libraries, and exclude the
15965 # DT_RUNPATH tag from executables and libraries. But doing so
15966 # requires that you compile everything twice, which is a pain.
15967 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15968 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
15969 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15970 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15979 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15981 hardcode_direct
=yes
15982 hardcode_shlibpath_var
=no
15986 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
15987 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15988 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15995 if test "$ld_shlibs" = no
; then
15997 hardcode_libdir_flag_spec
=
15998 export_dynamic_flag_spec
=
15999 whole_archive_flag_spec
=
16002 # PORTME fill in a description of your system's linker (not GNU ld)
16005 allow_undefined_flag
=unsupported
16006 always_export_symbols
=yes
16007 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'
16008 # Note: this linker hardcodes the directories in LIBPATH if there
16009 # are no directories specified by -L.
16010 hardcode_minus_L
=yes
16011 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16012 # Neither direct hardcoding nor static linking is supported with a
16014 hardcode_direct
=unsupported
16019 if test "$host_cpu" = ia64
; then
16020 # On IA64, the linker does run time linking by default, so we don't
16021 # have to do anything special.
16022 aix_use_runtimelinking
=no
16023 exp_sym_flag
='-Bexport'
16026 # If we're using GNU nm, then we don't want the "-C" option.
16027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16028 # Also, AIX nm treats weak defined symbols like other global
16029 # defined symbols, whereas GNU nm marks them as "W".
16030 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
16031 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'
16033 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'
16035 aix_use_runtimelinking
=no
16037 # Test if we are trying to use run time linking or normal
16038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16039 # need to do runtime linking.
16040 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
16041 for ld_flag
in $LDFLAGS; do
16042 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
16043 aix_use_runtimelinking
=yes
16050 exp_sym_flag
='-bexport'
16051 no_entry_flag
='-bnoentry'
16054 # When large executables or shared objects are built, AIX ld can
16055 # have problems creating the table of contents. If linking a library
16056 # or program results in "error TOC overflow" add -mminimal-toc to
16057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16061 hardcode_direct
=yes
16062 hardcode_direct_absolute
=yes
16063 hardcode_libdir_separator
=':'
16064 link_all_deplibs
=yes
16065 file_list_spec
='${wl}-f,'
16067 if test "$GCC" = yes; then
16068 case $host_os in aix4.
[012]|aix4.
[012].
*)
16069 # We only want to do this on AIX 4.2 and lower, the check
16070 # below for broken collect2 doesn't work under 4.3+
16071 collect2name
=`${CC} -print-prog-name=collect2`
16072 if test -f "$collect2name" &&
16073 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
16075 # We have reworked collect2
16078 # We have old collect2
16079 hardcode_direct
=unsupported
16080 # It fails to find uninstalled libraries when the uninstalled
16081 # path is not listed in the libpath. Setting hardcode_minus_L
16082 # to unsupported forces relinking
16083 hardcode_minus_L
=yes
16084 hardcode_libdir_flag_spec
='-L$libdir'
16085 hardcode_libdir_separator
=
16089 shared_flag
='-shared'
16090 if test "$aix_use_runtimelinking" = yes; then
16091 shared_flag
="$shared_flag "'${wl}-G'
16095 if test "$host_cpu" = ia64
; then
16096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16097 # chokes on -Wl,-G. The following line is correct:
16100 if test "$aix_use_runtimelinking" = yes; then
16101 shared_flag
='${wl}-G'
16103 shared_flag
='${wl}-bM:SRE'
16108 export_dynamic_flag_spec
='${wl}-bexpall'
16109 # It seems that -bexpall does not export symbols beginning with
16110 # underscore (_), so it is better to generate a list of symbols to export.
16111 always_export_symbols
=yes
16112 if test "$aix_use_runtimelinking" = yes; then
16113 # Warning - without using the other runtime loading flags (-brtl),
16114 # -berok will link without error, but may produce a broken library.
16115 allow_undefined_flag
='-berok'
16116 # Determine the default libpath from the value encoded in an
16117 # empty executable.
16118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16129 if ac_fn_c_try_link
"$LINENO"; then :
16131 lt_aix_libpath_sed
='
16132 /Import File Strings/,/^$/ {
16138 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16139 # Check for a 64-bit object if we didn't find anything.
16140 if test -z "$aix_libpath"; then
16141 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16144 rm -f core conftest.err conftest.
$ac_objext \
16145 conftest
$ac_exeext conftest.
$ac_ext
16146 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16148 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16149 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"
16151 if test "$host_cpu" = ia64
; then
16152 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
16153 allow_undefined_flag
="-z nodefs"
16154 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"
16156 # Determine the default libpath from the value encoded in an
16157 # empty executable.
16158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16169 if ac_fn_c_try_link
"$LINENO"; then :
16171 lt_aix_libpath_sed
='
16172 /Import File Strings/,/^$/ {
16178 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16179 # Check for a 64-bit object if we didn't find anything.
16180 if test -z "$aix_libpath"; then
16181 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16184 rm -f core conftest.err conftest.
$ac_objext \
16185 conftest
$ac_exeext conftest.
$ac_ext
16186 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16188 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
16189 # Warning - without using the other run time loading flags,
16190 # -berok will link without error, but may produce a broken library.
16191 no_undefined_flag
=' ${wl}-bernotok'
16192 allow_undefined_flag
=' ${wl}-berok'
16193 if test "$with_gnu_ld" = yes; then
16194 # We only use this code for GNU lds that support --whole-archive.
16195 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16197 # Exported symbols can be pulled into shared objects from archives
16198 whole_archive_flag_spec
='$convenience'
16200 archive_cmds_need_lc
=yes
16201 # This is similar to how AIX traditionally builds its shared libraries.
16202 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'
16210 # see comment about AmigaOS4 .so support
16211 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16212 archive_expsym_cmds
=''
16215 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)'
16216 hardcode_libdir_flag_spec
='-L$libdir'
16217 hardcode_minus_L
=yes
16223 export_dynamic_flag_spec
=-rdynamic
16226 cygwin
* | mingw
* | pw32
* | cegcc
*)
16227 # When not using gcc, we currently assume that we are using
16228 # Microsoft Visual C++.
16229 # hardcode_libdir_flag_spec is actually meaningless, as there is
16230 # no search path for DLLs.
16231 hardcode_libdir_flag_spec
=' '
16232 allow_undefined_flag
=unsupported
16233 # Tell ltmain to make .lib files, not .a files.
16235 # Tell ltmain to make .dll files, not .so files.
16237 # FIXME: Setting linknames here is a bad hack.
16238 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16239 # The linker will automatically build a .lib file if we build a DLL.
16240 old_archive_from_new_cmds
='true'
16241 # FIXME: Should let the user specify the lib program.
16242 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
16243 fix_srcfile_path
='`cygpath -w "$srcfile"`'
16244 enable_shared_with_static_runtimes
=yes
16247 darwin
* | rhapsody
*)
16250 archive_cmds_need_lc
=no
16252 hardcode_automatic
=yes
16253 hardcode_shlibpath_var
=unsupported
16254 if test "$lt_cv_ld_force_load" = "yes"; then
16255 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\"`'
16257 whole_archive_flag_spec
=''
16259 link_all_deplibs
=yes
16260 allow_undefined_flag
="$_lt_dar_allow_undefined"
16261 case $cc_basename in
16262 ifort
*) _lt_dar_can_shared
=yes ;;
16263 *) _lt_dar_can_shared
=$GCC ;;
16265 if test "$_lt_dar_can_shared" = "yes"; then
16266 output_verbose_link_cmd
=func_echo_all
16267 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16268 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16269 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}"
16270 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}"
16279 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16280 hardcode_libdir_flag_spec
='-L$libdir'
16281 hardcode_shlibpath_var
=no
16284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16285 # support. Future versions do this automatically, but an explicit c++rt0.o
16286 # does not break anything, and helps significantly (at the cost of a little
16289 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16290 hardcode_libdir_flag_spec
='-R$libdir'
16291 hardcode_direct
=yes
16292 hardcode_shlibpath_var
=no
16295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16297 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16298 hardcode_direct
=yes
16299 hardcode_minus_L
=yes
16300 hardcode_shlibpath_var
=no
16303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16304 freebsd
* | dragonfly
*)
16305 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16306 hardcode_libdir_flag_spec
='-R$libdir'
16307 hardcode_direct
=yes
16308 hardcode_shlibpath_var
=no
16312 if test "$GCC" = yes; then
16313 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'
16315 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'
16317 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16318 hardcode_libdir_separator
=:
16319 hardcode_direct
=yes
16321 # hardcode_minus_L: Not really in the search PATH,
16322 # but as the default location of the library.
16323 hardcode_minus_L
=yes
16324 export_dynamic_flag_spec
='${wl}-E'
16328 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16329 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16331 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16333 if test "$with_gnu_ld" = no
; then
16334 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16335 hardcode_libdir_flag_spec_ld
='+b $libdir'
16336 hardcode_libdir_separator
=:
16337 hardcode_direct
=yes
16338 hardcode_direct_absolute
=yes
16339 export_dynamic_flag_spec
='${wl}-E'
16340 # hardcode_minus_L: Not really in the search PATH,
16341 # but as the default location of the library.
16342 hardcode_minus_L
=yes
16347 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
16350 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16353 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16356 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16362 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16365 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16369 # Older versions of the 11.00 compiler do not understand -b yet
16370 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16372 $as_echo_n "checking if $CC understands -b... " >&6; }
16373 if test "${lt_cv_prog_compiler__b+set}" = set; then :
16374 $as_echo_n "(cached) " >&6
16376 lt_cv_prog_compiler__b
=no
16377 save_LDFLAGS
="$LDFLAGS"
16378 LDFLAGS
="$LDFLAGS -b"
16379 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
16380 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
16381 # The linker can only warn and ignore the option if not recognized
16382 # So say no if there are warnings
16383 if test -s conftest.err
; then
16384 # Append any errors to the config.log.
16385 cat conftest.err
1>&5
16386 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
16387 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16388 if diff conftest.exp conftest.er2
>/dev
/null
; then
16389 lt_cv_prog_compiler__b
=yes
16392 lt_cv_prog_compiler__b
=yes
16396 LDFLAGS
="$save_LDFLAGS"
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16400 $as_echo "$lt_cv_prog_compiler__b" >&6; }
16402 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
16403 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16405 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16411 if test "$with_gnu_ld" = no
; then
16412 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
16413 hardcode_libdir_separator
=:
16418 hardcode_shlibpath_var
=no
16421 hardcode_direct
=yes
16422 hardcode_direct_absolute
=yes
16423 export_dynamic_flag_spec
='${wl}-E'
16425 # hardcode_minus_L: Not really in the search PATH,
16426 # but as the default location of the library.
16427 hardcode_minus_L
=yes
16433 irix5
* | irix6
* | nonstopux
*)
16434 if test "$GCC" = yes; then
16435 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'
16436 # Try to use the -exported_symbol ld option, if it does not
16437 # work, assume that -exports_file does not work either and
16438 # implicitly export all symbols.
16439 save_LDFLAGS
="$LDFLAGS"
16440 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16445 if ac_fn_c_try_link
"$LINENO"; then :
16446 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'
16449 rm -f core conftest.err conftest.
$ac_objext \
16450 conftest
$ac_exeext conftest.
$ac_ext
16451 LDFLAGS
="$save_LDFLAGS"
16453 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'
16454 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'
16456 archive_cmds_need_lc
='no'
16457 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16458 hardcode_libdir_separator
=:
16460 link_all_deplibs
=yes
16464 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
16465 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16467 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16469 hardcode_libdir_flag_spec
='-R$libdir'
16470 hardcode_direct
=yes
16471 hardcode_shlibpath_var
=no
16475 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16476 hardcode_direct
=yes
16477 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16478 hardcode_libdir_separator
=:
16479 hardcode_shlibpath_var
=no
16486 if test -f /usr
/libexec
/ld.so
; then
16487 hardcode_direct
=yes
16488 hardcode_shlibpath_var
=no
16489 hardcode_direct_absolute
=yes
16490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16491 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16492 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16493 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16494 export_dynamic_flag_spec
='${wl}-E'
16497 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
16498 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16499 hardcode_libdir_flag_spec
='-R$libdir'
16502 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16503 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
16513 hardcode_libdir_flag_spec
='-L$libdir'
16514 hardcode_minus_L
=yes
16515 allow_undefined_flag
=unsupported
16516 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'
16517 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16521 if test "$GCC" = yes; then
16522 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16523 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'
16525 allow_undefined_flag
=' -expect_unresolved \*'
16526 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'
16528 archive_cmds_need_lc
='no'
16529 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16530 hardcode_libdir_separator
=:
16533 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
16534 if test "$GCC" = yes; then
16535 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
16536 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'
16537 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
16539 allow_undefined_flag
=' -expect_unresolved \*'
16540 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'
16541 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~
16542 $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'
16544 # Both c and cxx compiler support -rpath directly
16545 hardcode_libdir_flag_spec
='-rpath $libdir'
16547 archive_cmds_need_lc
='no'
16548 hardcode_libdir_separator
=:
16552 no_undefined_flag
=' -z defs'
16553 if test "$GCC" = yes; then
16555 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16556 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16557 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16559 case `$CC -V 2>&1` in
16562 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16564 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16568 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16570 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16574 hardcode_libdir_flag_spec
='-R$libdir'
16575 hardcode_shlibpath_var
=no
16577 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16579 # The compiler driver will combine and reorder linker options,
16580 # but understands `-z linker_flag'. GCC discards it without `$wl',
16581 # but is careful enough not to reorder.
16582 # Supported since Solaris 2.6 (maybe 2.5.1?)
16583 if test "$GCC" = yes; then
16584 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16586 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
16590 link_all_deplibs
=yes
16594 if test "x$host_vendor" = xsequent
; then
16595 # Use $CC to link under sequent, because it throws in some extra .o
16596 # files that make .init and .fini sections work.
16597 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16599 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16601 hardcode_libdir_flag_spec
='-L$libdir'
16602 hardcode_direct
=yes
16603 hardcode_minus_L
=yes
16604 hardcode_shlibpath_var
=no
16608 case $host_vendor in
16610 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16611 hardcode_direct
=yes # is this really true???
16614 ## LD is ld it makes a PLAMLIB
16615 ## CC just makes a GrossModule.
16616 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16617 reload_cmds
='$CC -r -o $output$reload_objs'
16621 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
16625 runpath_var
='LD_RUN_PATH'
16626 hardcode_shlibpath_var
=no
16630 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_shlibpath_var
=no
16632 export_dynamic_flag_spec
='-Bexport'
16636 if test -d /usr
/nec
; then
16637 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16638 hardcode_shlibpath_var
=no
16639 runpath_var
=LD_RUN_PATH
16640 hardcode_runpath_var
=yes
16645 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16646 no_undefined_flag
='${wl}-z,text'
16647 archive_cmds_need_lc
=no
16648 hardcode_shlibpath_var
=no
16649 runpath_var
='LD_RUN_PATH'
16651 if test "$GCC" = yes; then
16652 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16653 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16655 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16656 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16660 sysv5
* | sco3.2v5
* | sco5v6
*)
16661 # Note: We can NOT use -z defs as we might desire, because we do not
16662 # link with -lc, and that would cause any symbols used from libc to
16663 # always be unresolved, which means just about no library would
16664 # ever link correctly. If we're not using GNU ld we use -z text
16665 # though, which does catch some bad symbols but isn't as heavy-handed
16667 no_undefined_flag
='${wl}-z,text'
16668 allow_undefined_flag
='${wl}-z,nodefs'
16669 archive_cmds_need_lc
=no
16670 hardcode_shlibpath_var
=no
16671 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
16672 hardcode_libdir_separator
=':'
16673 link_all_deplibs
=yes
16674 export_dynamic_flag_spec
='${wl}-Bexport'
16675 runpath_var
='LD_RUN_PATH'
16677 if test "$GCC" = yes; then
16678 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16679 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16681 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16682 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16687 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16688 hardcode_libdir_flag_spec
='-L$libdir'
16689 hardcode_shlibpath_var
=no
16697 if test x
$host_vendor = xsni
; then
16699 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
16700 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16707 $as_echo "$ld_shlibs" >&6; }
16708 test "$ld_shlibs" = no
&& can_build_shared
=no
16710 with_gnu_ld
=$with_gnu_ld
16727 # Do we need to explicitly link libc?
16729 case "x$archive_cmds_need_lc" in
16731 # Assume -lc should be added
16732 archive_cmds_need_lc
=yes
16734 if test "$enable_shared" = yes && test "$GCC" = yes; then
16735 case $archive_cmds in
16737 # FIXME: we may have to deal with multi-command sequences.
16740 # Test whether the compiler implicitly links with -lc since on some
16741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16742 # to ld, don't add -lc before -lgcc.
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16744 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16745 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16746 $as_echo_n "(cached) " >&6
16749 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16752 (eval $ac_compile) 2>&5
16754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16755 test $ac_status = 0; } 2>conftest.err
; then
16758 libobjs
=conftest.
$ac_objext
16760 wl
=$lt_prog_compiler_wl
16761 pic_flag
=$lt_prog_compiler_pic
16767 lt_save_allow_undefined_flag
=$allow_undefined_flag
16768 allow_undefined_flag
=
16769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16770 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
16772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16773 test $ac_status = 0; }
16775 lt_cv_archive_cmds_need_lc
=no
16777 lt_cv_archive_cmds_need_lc
=yes
16779 allow_undefined_flag
=$lt_save_allow_undefined_flag
16781 cat conftest.err
1>&5
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16787 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16788 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16952 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16954 if test "$GCC" = yes; then
16956 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
16957 *) lt_awk_arg
="/^libraries:/" ;;
16960 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
16961 *) lt_sed_strip_eq
="s,=/,/,g" ;;
16963 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16964 case $lt_search_path_spec in
16966 # if the path contains ";" then we assume it to be the separator
16967 # otherwise default to the standard path separator (i.e. ":") - it is
16968 # assumed that no part of a normal pathname contains ";" but that should
16969 # okay in the real world where ";" in dirpaths is itself problematic.
16970 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16973 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16976 # Ok, now we have the path, separated by spaces, we can step through it
16977 # and add multilib dir if necessary.
16978 lt_tmp_lt_search_path_spec
=
16979 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16980 for lt_sys_path
in $lt_search_path_spec; do
16981 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16982 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16984 test -d "$lt_sys_path" && \
16985 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
16988 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16989 BEGIN {RS=" "; FS="/|\n";} {
16992 for (lt_i = NF; lt_i > 0; lt_i--) {
16993 if ($lt_i != "" && $lt_i != ".") {
16994 if ($lt_i == "..") {
16997 if (lt_count == 0) {
16998 lt_foo="/" $lt_i lt_foo;
17005 if (lt_foo != "") { lt_freq[lt_foo]++; }
17006 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17008 # AWK program above erroneously prepends '/' to C:/dos/paths
17011 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
17012 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
17014 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17016 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
17018 library_names_spec
=
17019 libname_spec
='lib$name'
17023 postuninstall_cmds
=
17027 shlibpath_overrides_runpath
=unknown
17029 dynamic_linker
="$host_os ld.so"
17030 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17031 need_lib_prefix
=unknown
17032 hardcode_into_libs
=no
17034 # when you set need_version to no, make sure it does not cause -set_version
17035 # flags to be left without arguments
17036 need_version
=unknown
17041 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17042 shlibpath_var
=LIBPATH
17044 # AIX 3 has no versioning support, so we append a major version to the name.
17045 soname_spec
='${libname}${release}${shared_ext}$major'
17052 hardcode_into_libs
=yes
17053 if test "$host_cpu" = ia64
; then
17054 # AIX 5 supports IA64
17055 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17056 shlibpath_var
=LD_LIBRARY_PATH
17058 # With GCC up to 2.95.x, collect2 would create an import file
17059 # for dependence libraries. The import file would start with
17060 # the line `#! .'. This would cause the generated library to
17061 # depend on `.', always an invalid library. This was fixed in
17062 # development snapshots of GCC prior to 3.0.
17064 aix4 | aix4.
[01] | aix4.
[01].
*)
17065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17067 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
17070 can_build_shared
=no
17074 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17075 # soname into executable. Probably we can add versioning support to
17076 # collect2, so additional links can be useful in future.
17077 if test "$aix_use_runtimelinking" = yes; then
17078 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17079 # instead of lib<name>.a to let people know that these are not
17080 # typical AIX shared libraries.
17081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17083 # We preserve .a as extension for shared libraries through AIX4.2
17084 # and later when we are not doing run time linking.
17085 library_names_spec
='${libname}${release}.a $libname.a'
17086 soname_spec
='${libname}${release}${shared_ext}$major'
17088 shlibpath_var
=LIBPATH
17095 # Since July 2007 AmigaOS4 officially supports .so libraries.
17096 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17097 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100 library_names_spec
='$libname.ixlibrary $libname.a'
17101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17102 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'
17108 library_names_spec
='${libname}${shared_ext}'
17109 dynamic_linker
="$host_os ld.so"
17110 shlibpath_var
=LIBRARY_PATH
17116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17117 soname_spec
='${libname}${release}${shared_ext}$major'
17118 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17119 shlibpath_var
=LD_LIBRARY_PATH
17120 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17121 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17122 # the default ld.so.conf also contains /usr/contrib/lib and
17123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17124 # libtool to hard-code these into programs
17127 cygwin
* | mingw
* | pw32
* | cegcc
*)
17128 version_type
=windows
17133 case $GCC,$host_os in
17134 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
17135 library_names_spec
='$libname.dll.a'
17136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17137 postinstall_cmds
='base_file=`basename \${file}`~
17138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17139 dldir=$destdir/`dirname \$dlpath`~
17140 test -d \$dldir || mkdir -p \$dldir~
17141 $install_prog $dir/$dlname \$dldir/$dlname~
17142 chmod a+x \$dldir/$dlname~
17143 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17144 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17146 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17147 dlpath=$dir/\$dldll~
17149 shlibpath_overrides_runpath
=yes
17153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17154 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17156 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
17159 # MinGW DLLs use traditional 'lib' prefix
17160 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17163 # pw32 DLLs use 'pw' prefix rather than 'lib'
17164 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17170 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17173 dynamic_linker
='Win32 ld.exe'
17174 # FIXME: first we should search . and the directory the executable is in
17178 darwin
* | rhapsody
*)
17179 dynamic_linker
="$host_os dyld"
17180 version_type
=darwin
17183 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17184 soname_spec
='${libname}${release}${major}$shared_ext'
17185 shlibpath_overrides_runpath
=yes
17186 shlibpath_var
=DYLD_LIBRARY_PATH
17187 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17189 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
17190 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17197 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17198 soname_spec
='${libname}${release}${shared_ext}$major'
17199 shlibpath_var
=LD_LIBRARY_PATH
17202 freebsd
* | dragonfly
*)
17203 # DragonFly does not have aout. When/if they implement a new
17204 # versioning mechanism, adjust this.
17205 if test -x /usr
/bin
/objformat
; then
17206 objformat
=`/usr/bin/objformat`
17209 freebsd
[23].
*) objformat
=aout
;;
17210 *) objformat
=elf
;;
17213 version_type
=freebsd-
$objformat
17214 case $version_type in
17216 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17221 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17225 shlibpath_var
=LD_LIBRARY_PATH
17228 shlibpath_overrides_runpath
=yes
17230 freebsd3.
[01]* | freebsdelf3.
[01]*)
17231 shlibpath_overrides_runpath
=yes
17232 hardcode_into_libs
=yes
17234 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17235 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17236 shlibpath_overrides_runpath
=no
17237 hardcode_into_libs
=yes
17239 *) # from 4.6 on, and DragonFly
17240 shlibpath_overrides_runpath
=yes
17241 hardcode_into_libs
=yes
17250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17251 soname_spec
='${libname}${release}${shared_ext}$major'
17252 shlibpath_var
=LD_LIBRARY_PATH
17253 hardcode_into_libs
=yes
17260 dynamic_linker
="$host_os runtime_loader"
17261 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17262 soname_spec
='${libname}${release}${shared_ext}$major'
17263 shlibpath_var
=LIBRARY_PATH
17264 shlibpath_overrides_runpath
=yes
17265 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
17266 hardcode_into_libs
=yes
17269 hpux9
* | hpux10
* | hpux11
*)
17270 # Give a soname corresponding to the major version so that dld.sl refuses to
17271 # link against other versions.
17278 hardcode_into_libs
=yes
17279 dynamic_linker
="$host_os dld.so"
17280 shlibpath_var
=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17283 soname_spec
='${libname}${release}${shared_ext}$major'
17284 if test "X$HPUX_IA64_MODE" = X32
; then
17285 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17287 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17289 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17293 hardcode_into_libs
=yes
17294 dynamic_linker
="$host_os dld.sl"
17295 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
17296 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17297 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298 soname_spec
='${libname}${release}${shared_ext}$major'
17299 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17300 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
17304 dynamic_linker
="$host_os dld.sl"
17305 shlibpath_var
=SHLIB_PATH
17306 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
17307 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17308 soname_spec
='${libname}${release}${shared_ext}$major'
17311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17312 postinstall_cmds
='chmod 555 $lib'
17313 # or fails outright, so override atomically:
17314 install_override_mode
=555
17321 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17322 soname_spec
='${libname}${release}${shared_ext}$major'
17323 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
17324 shlibpath_var
=LD_LIBRARY_PATH
17325 shlibpath_overrides_runpath
=no
17326 hardcode_into_libs
=yes
17329 irix5
* | irix6
* | nonstopux
*)
17331 nonstopux
*) version_type
=nonstopux
;;
17333 if test "$lt_cv_prog_gnu_ld" = yes; then
17341 soname_spec
='${libname}${release}${shared_ext}$major'
17342 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17344 irix5
* | nonstopux
*)
17345 libsuff
= shlibsuff
=
17348 case $LD in # libtool.m4 will add one of these switches to LD
17349 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
17350 libsuff
= shlibsuff
= libmagic
=32-bit;;
17351 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
17352 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
17353 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
17354 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
17355 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
17359 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
17360 shlibpath_overrides_runpath
=no
17361 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17362 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
17363 hardcode_into_libs
=yes
17366 # No shared lib support for Linux oldld, aout, or coff.
17367 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
17371 # This must be Linux ELF.
17372 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
17376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17377 soname_spec
='${libname}${release}${shared_ext}$major'
17378 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17379 shlibpath_var
=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath
=no
17382 # Some binutils ld are patched to set DT_RUNPATH
17383 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
17384 $as_echo_n "(cached) " >&6
17386 lt_cv_shlibpath_overrides_runpath
=no
17387 save_LDFLAGS
=$LDFLAGS
17388 save_libdir
=$libdir
17389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17392 /* end confdefs.h. */
17402 if ac_fn_c_try_link
"$LINENO"; then :
17403 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
17404 lt_cv_shlibpath_overrides_runpath
=yes
17407 rm -f core conftest.err conftest.
$ac_objext \
17408 conftest
$ac_exeext conftest.
$ac_ext
17409 LDFLAGS
=$save_LDFLAGS
17410 libdir
=$save_libdir
17414 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
17416 # This implies no fast_install, which is unacceptable.
17417 # Some rework will be needed to allow for fast_install
17418 # before this can be enabled.
17419 hardcode_into_libs
=yes
17421 # Append ld.so.conf contents to the search path
17422 if test -f /etc
/ld.so.conf
; then
17423 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' ' '`
17424 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
17427 # We used to test for /lib/ld.so.1 and disable shared libraries on
17428 # powerpc, because MkLinux only supported shared libraries with the
17429 # GNU dynamic linker. Since this was broken with cross compilers,
17430 # most powerpc-linux boxes support dynamic linking these days and
17431 # people can always --disable-shared, the test was removed, and we
17432 # assume the GNU/Linux dynamic linker is in use.
17433 dynamic_linker
='GNU/Linux ld.so'
17440 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
17441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17442 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17443 dynamic_linker
='NetBSD (a.out) ld.so'
17445 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17446 soname_spec
='${libname}${release}${shared_ext}$major'
17447 dynamic_linker
='NetBSD ld.elf_so'
17449 shlibpath_var
=LD_LIBRARY_PATH
17450 shlibpath_overrides_runpath
=yes
17451 hardcode_into_libs
=yes
17456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17457 shlibpath_var
=LD_LIBRARY_PATH
17458 shlibpath_overrides_runpath
=yes
17465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466 soname_spec
='${libname}${release}${shared_ext}$major'
17467 shlibpath_var
=LD_LIBRARY_PATH
17468 shlibpath_overrides_runpath
=no
17469 hardcode_into_libs
=yes
17470 dynamic_linker
='ldqnx.so'
17475 sys_lib_dlsearch_path_spec
="/usr/lib"
17477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17479 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
17480 *) need_version
=no
;;
17482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17483 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17484 shlibpath_var
=LD_LIBRARY_PATH
17485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17487 openbsd2.
[89] | openbsd2.
[89].
*)
17488 shlibpath_overrides_runpath
=no
17491 shlibpath_overrides_runpath
=yes
17495 shlibpath_overrides_runpath
=yes
17500 libname_spec
='$name'
17503 library_names_spec
='$libname${shared_ext} $libname.a'
17504 dynamic_linker
='OS/2 ld.exe'
17505 shlibpath_var
=LIBPATH
17508 osf3
* | osf4
* | osf5
*)
17512 soname_spec
='${libname}${release}${shared_ext}$major'
17513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514 shlibpath_var
=LD_LIBRARY_PATH
17515 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17516 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
17527 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17528 soname_spec
='${libname}${release}${shared_ext}$major'
17529 shlibpath_var
=LD_LIBRARY_PATH
17530 shlibpath_overrides_runpath
=yes
17531 hardcode_into_libs
=yes
17532 # ldd complains unless libraries are executable
17533 postinstall_cmds
='chmod +x $lib'
17538 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17539 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17540 shlibpath_var
=LD_LIBRARY_PATH
17541 shlibpath_overrides_runpath
=yes
17542 if test "$with_gnu_ld" = yes; then
17550 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17551 soname_spec
='${libname}${release}${shared_ext}$major'
17552 shlibpath_var
=LD_LIBRARY_PATH
17553 case $host_vendor in
17555 shlibpath_overrides_runpath
=no
17557 runpath_var
=LD_RUN_PATH
17565 shlibpath_overrides_runpath
=no
17566 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
17572 if test -d /usr
/nec
;then
17574 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17575 soname_spec
='$libname${shared_ext}.$major'
17576 shlibpath_var
=LD_LIBRARY_PATH
17580 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
17581 version_type
=freebsd-elf
17584 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17585 soname_spec
='${libname}${release}${shared_ext}$major'
17586 shlibpath_var
=LD_LIBRARY_PATH
17587 shlibpath_overrides_runpath
=yes
17588 hardcode_into_libs
=yes
17589 if test "$with_gnu_ld" = yes; then
17590 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17592 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
17595 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
17599 sys_lib_dlsearch_path_spec
='/usr/lib'
17603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17607 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608 shlibpath_var
=LD_LIBRARY_PATH
17609 shlibpath_overrides_runpath
=no
17610 hardcode_into_libs
=yes
17615 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17616 soname_spec
='${libname}${release}${shared_ext}$major'
17617 shlibpath_var
=LD_LIBRARY_PATH
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17625 $as_echo "$dynamic_linker" >&6; }
17626 test "$dynamic_linker" = no
&& can_build_shared
=no
17628 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
17629 if test "$GCC" = yes; then
17630 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17633 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17634 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
17636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17637 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17732 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17734 if test -n "$hardcode_libdir_flag_spec" ||
17735 test -n "$runpath_var" ||
17736 test "X$hardcode_automatic" = "Xyes" ; then
17738 # We can hardcode non-existent directories.
17739 if test "$hardcode_direct" != no
&&
17740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17741 # have to relink, otherwise we might link with an installed library
17742 # when we should be linking with a yet-to-be-installed one
17743 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17744 test "$hardcode_minus_L" != no
; then
17745 # Linking always hardcodes the temporary library directory.
17746 hardcode_action
=relink
17748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17749 hardcode_action
=immediate
17752 # We cannot hardcode anything, or else we can only hardcode existing
17754 hardcode_action
=unsupported
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17757 $as_echo "$hardcode_action" >&6; }
17759 if test "$hardcode_action" = relink ||
17760 test "$inherit_rpath" = yes; then
17761 # Fast installation is not supported
17762 enable_fast_install
=no
17763 elif test "$shlibpath_overrides_runpath" = yes ||
17764 test "$enable_shared" = no
; then
17765 # Fast installation is not necessary
17766 enable_fast_install
=needless
17774 if test "x$enable_dlopen" != xyes
; then
17775 enable_dlopen
=unknown
17776 enable_dlopen_self
=unknown
17777 enable_dlopen_self_static
=unknown
17784 lt_cv_dlopen
="load_add_on"
17786 lt_cv_dlopen_self
=yes
17789 mingw
* | pw32
* | cegcc
*)
17790 lt_cv_dlopen
="LoadLibrary"
17795 lt_cv_dlopen
="dlopen"
17800 # if libdl is installed we need to link against it
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17804 $as_echo_n "(cached) " >&6
17806 ac_check_lib_save_LIBS
=$LIBS
17808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17809 /* end confdefs.h. */
17811 /* Override any GCC internal prototype to avoid an error.
17812 Use char because int might match the return type of a GCC
17813 builtin and then its argument prototype would still apply. */
17826 if ac_fn_c_try_link
"$LINENO"; then :
17827 ac_cv_lib_dl_dlopen
=yes
17829 ac_cv_lib_dl_dlopen
=no
17831 rm -f core conftest.err conftest.
$ac_objext \
17832 conftest
$ac_exeext conftest.
$ac_ext
17833 LIBS
=$ac_check_lib_save_LIBS
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17836 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17837 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17838 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17841 lt_cv_dlopen
="dyld"
17843 lt_cv_dlopen_self
=yes
17850 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
17851 if test "x$ac_cv_func_shl_load" = x
""yes; then :
17852 lt_cv_dlopen
="shl_load"
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17855 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17856 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17857 $as_echo_n "(cached) " >&6
17859 ac_check_lib_save_LIBS
=$LIBS
17861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17862 /* end confdefs.h. */
17864 /* Override any GCC internal prototype to avoid an error.
17865 Use char because int might match the return type of a GCC
17866 builtin and then its argument prototype would still apply. */
17874 return shl_load ();
17879 if ac_fn_c_try_link
"$LINENO"; then :
17880 ac_cv_lib_dld_shl_load
=yes
17882 ac_cv_lib_dld_shl_load
=no
17884 rm -f core conftest.err conftest.
$ac_objext \
17885 conftest
$ac_exeext conftest.
$ac_ext
17886 LIBS
=$ac_check_lib_save_LIBS
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17889 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17890 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
17891 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
17893 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17894 if test "x$ac_cv_func_dlopen" = x
""yes; then :
17895 lt_cv_dlopen
="dlopen"
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17898 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17900 $as_echo_n "(cached) " >&6
17902 ac_check_lib_save_LIBS
=$LIBS
17904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17905 /* end confdefs.h. */
17907 /* Override any GCC internal prototype to avoid an error.
17908 Use char because int might match the return type of a GCC
17909 builtin and then its argument prototype would still apply. */
17922 if ac_fn_c_try_link
"$LINENO"; then :
17923 ac_cv_lib_dl_dlopen
=yes
17925 ac_cv_lib_dl_dlopen
=no
17927 rm -f core conftest.err conftest.
$ac_objext \
17928 conftest
$ac_exeext conftest.
$ac_ext
17929 LIBS
=$ac_check_lib_save_LIBS
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17932 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17933 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
17934 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17937 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17938 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17939 $as_echo_n "(cached) " >&6
17941 ac_check_lib_save_LIBS
=$LIBS
17942 LIBS
="-lsvld $LIBS"
17943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17944 /* end confdefs.h. */
17946 /* Override any GCC internal prototype to avoid an error.
17947 Use char because int might match the return type of a GCC
17948 builtin and then its argument prototype would still apply. */
17961 if ac_fn_c_try_link
"$LINENO"; then :
17962 ac_cv_lib_svld_dlopen
=yes
17964 ac_cv_lib_svld_dlopen
=no
17966 rm -f core conftest.err conftest.
$ac_objext \
17967 conftest
$ac_exeext conftest.
$ac_ext
17968 LIBS
=$ac_check_lib_save_LIBS
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17971 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17972 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
17973 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17976 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17978 $as_echo_n "(cached) " >&6
17980 ac_check_lib_save_LIBS
=$LIBS
17982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17983 /* end confdefs.h. */
17985 /* Override any GCC internal prototype to avoid an error.
17986 Use char because int might match the return type of a GCC
17987 builtin and then its argument prototype would still apply. */
17995 return dld_link ();
18000 if ac_fn_c_try_link
"$LINENO"; then :
18001 ac_cv_lib_dld_dld_link
=yes
18003 ac_cv_lib_dld_dld_link
=no
18005 rm -f core conftest.err conftest.
$ac_objext \
18006 conftest
$ac_exeext conftest.
$ac_ext
18007 LIBS
=$ac_check_lib_save_LIBS
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18010 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18011 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
18012 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
18033 if test "x$lt_cv_dlopen" != xno
; then
18039 case $lt_cv_dlopen in
18041 save_CPPFLAGS
="$CPPFLAGS"
18042 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
18044 save_LDFLAGS
="$LDFLAGS"
18045 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
18048 LIBS
="$lt_cv_dlopen_libs $LIBS"
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18051 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18052 if test "${lt_cv_dlopen_self+set}" = set; then :
18053 $as_echo_n "(cached) " >&6
18055 if test "$cross_compiling" = yes; then :
18056 lt_cv_dlopen_self
=cross
18058 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18059 lt_status
=$lt_dlunknown
18060 cat > conftest.
$ac_ext <<_LT_EOF
18061 #line 18061 "configure"
18062 #include "confdefs.h"
18071 # define LT_DLGLOBAL RTLD_GLOBAL
18074 # define LT_DLGLOBAL DL_GLOBAL
18076 # define LT_DLGLOBAL 0
18080 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18081 find out it does not work in some platform. */
18082 #ifndef LT_DLLAZY_OR_NOW
18084 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18087 # define LT_DLLAZY_OR_NOW DL_LAZY
18090 # define LT_DLLAZY_OR_NOW RTLD_NOW
18093 # define LT_DLLAZY_OR_NOW DL_NOW
18095 # define LT_DLLAZY_OR_NOW 0
18102 /* When -fvisbility=hidden is used, assume the code has been annotated
18103 correspondingly for the symbols needed. */
18104 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18105 void fnord () __attribute__((visibility("default")));
18108 void fnord () { int i=42; }
18111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18112 int status = $lt_dlunknown;
18116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18119 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18120 else puts (dlerror ());
18122 /* dlclose (self); */
18130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18131 (eval $ac_link) 2>&5
18133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18134 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18135 (.
/conftest
; exit; ) >&5 2>/dev
/null
18137 case x
$lt_status in
18138 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
18139 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
18140 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
18143 # compilation failed
18144 lt_cv_dlopen_self
=no
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18152 $as_echo "$lt_cv_dlopen_self" >&6; }
18154 if test "x$lt_cv_dlopen_self" = xyes
; then
18155 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18157 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18158 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18159 $as_echo_n "(cached) " >&6
18161 if test "$cross_compiling" = yes; then :
18162 lt_cv_dlopen_self_static
=cross
18164 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
18165 lt_status
=$lt_dlunknown
18166 cat > conftest.
$ac_ext <<_LT_EOF
18167 #line 18167 "configure"
18168 #include "confdefs.h"
18177 # define LT_DLGLOBAL RTLD_GLOBAL
18180 # define LT_DLGLOBAL DL_GLOBAL
18182 # define LT_DLGLOBAL 0
18186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18187 find out it does not work in some platform. */
18188 #ifndef LT_DLLAZY_OR_NOW
18190 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18193 # define LT_DLLAZY_OR_NOW DL_LAZY
18196 # define LT_DLLAZY_OR_NOW RTLD_NOW
18199 # define LT_DLLAZY_OR_NOW DL_NOW
18201 # define LT_DLLAZY_OR_NOW 0
18208 /* When -fvisbility=hidden is used, assume the code has been annotated
18209 correspondingly for the symbols needed. */
18210 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18211 void fnord () __attribute__((visibility("default")));
18214 void fnord () { int i=42; }
18217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18218 int status = $lt_dlunknown;
18222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18225 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18226 else puts (dlerror ());
18228 /* dlclose (self); */
18236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18237 (eval $ac_link) 2>&5
18239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18240 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
18241 (.
/conftest
; exit; ) >&5 2>/dev
/null
18243 case x
$lt_status in
18244 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
18245 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
18246 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
18249 # compilation failed
18250 lt_cv_dlopen_self_static
=no
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18258 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18261 CPPFLAGS
="$save_CPPFLAGS"
18262 LDFLAGS
="$save_LDFLAGS"
18267 case $lt_cv_dlopen_self in
18268 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
18269 *) enable_dlopen_self
=unknown
;;
18272 case $lt_cv_dlopen_self_static in
18273 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
18274 *) enable_dlopen_self_static
=unknown
;;
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18297 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18298 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
18299 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
18300 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18302 $as_echo "yes" >&6; }
18304 # FIXME - insert some real tests, host_os isn't really good enough
18307 if test -n "$STRIP" ; then
18308 striplib
="$STRIP -x"
18309 old_striplib
="$STRIP -S"
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18311 $as_echo "yes" >&6; }
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18314 $as_echo "no" >&6; }
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18319 $as_echo "no" >&6; }
18335 # Report which library types will actually be built
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18337 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18339 $as_echo "$can_build_shared" >&6; }
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18342 $as_echo_n "checking whether to build shared libraries... " >&6; }
18343 test "$can_build_shared" = "no" && enable_shared
=no
18345 # On AIX, shared libraries and static libraries use the same namespace, and
18346 # are all built from PIC.
18349 test "$enable_shared" = yes && enable_static
=no
18350 if test -n "$RANLIB"; then
18351 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18352 postinstall_cmds
='$RANLIB $lib'
18357 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18358 test "$enable_shared" = yes && enable_static
=no
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18363 $as_echo "$enable_shared" >&6; }
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18366 $as_echo_n "checking whether to build static libraries... " >&6; }
18367 # Make sure either enable_shared or enable_static is yes.
18368 test "$enable_shared" = yes || enable_static
=yes
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18370 $as_echo "$enable_static" >&6; }
18377 ac_cpp
='$CPP $CPPFLAGS'
18378 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18379 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18380 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18384 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18385 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18386 (test "X$CXX" != "Xg++"))) ; then
18388 ac_cpp
='$CXXCPP $CPPFLAGS'
18389 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18390 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18391 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18393 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18394 if test -z "$CXXCPP"; then
18395 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
18396 $as_echo_n "(cached) " >&6
18398 # Double quotes because CXXCPP needs to be expanded
18399 for CXXCPP
in "$CXX -E" "/lib/cpp"
18401 ac_preproc_ok
=false
18402 for ac_cxx_preproc_warn_flag
in '' yes
18404 # Use a header file that comes with gcc, so configuring glibc
18405 # with a fresh cross-compiler works.
18406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407 # <limits.h> exists even on freestanding compilers.
18408 # On the NeXT, cc -E runs the code through the compiler's parser,
18409 # not just through cpp. "Syntax error" is here to catch this case.
18410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18413 # include <limits.h>
18415 # include <assert.h>
18419 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18422 # Broken: fails on valid input.
18425 rm -f conftest.err conftest.
$ac_ext
18427 # OK, works on sane cases. Now check whether nonexistent headers
18428 # can be detected and how.
18429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18430 /* end confdefs.h. */
18431 #include <ac_nonexistent.h>
18433 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18434 # Broken: success on invalid input.
18437 # Passes both tests.
18441 rm -f conftest.err conftest.
$ac_ext
18444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18445 rm -f conftest.err conftest.
$ac_ext
18446 if $ac_preproc_ok; then :
18451 ac_cv_prog_CXXCPP
=$CXXCPP
18454 CXXCPP
=$ac_cv_prog_CXXCPP
18456 ac_cv_prog_CXXCPP
=$CXXCPP
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18459 $as_echo "$CXXCPP" >&6; }
18460 ac_preproc_ok
=false
18461 for ac_cxx_preproc_warn_flag
in '' yes
18463 # Use a header file that comes with gcc, so configuring glibc
18464 # with a fresh cross-compiler works.
18465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18466 # <limits.h> exists even on freestanding compilers.
18467 # On the NeXT, cc -E runs the code through the compiler's parser,
18468 # not just through cpp. "Syntax error" is here to catch this case.
18469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18470 /* end confdefs.h. */
18472 # include <limits.h>
18474 # include <assert.h>
18478 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18481 # Broken: fails on valid input.
18484 rm -f conftest.err conftest.
$ac_ext
18486 # OK, works on sane cases. Now check whether nonexistent headers
18487 # can be detected and how.
18488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18489 /* end confdefs.h. */
18490 #include <ac_nonexistent.h>
18492 if ac_fn_cxx_try_cpp
"$LINENO"; then :
18493 # Broken: success on invalid input.
18496 # Passes both tests.
18500 rm -f conftest.err conftest.
$ac_ext
18503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18504 rm -f conftest.err conftest.
$ac_ext
18505 if $ac_preproc_ok; then :
18508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18510 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
18511 See \`config.log' for more details." "$LINENO" 5; }
18515 ac_cpp
='$CPP $CPPFLAGS'
18516 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18517 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18518 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18521 _lt_caught_CXX_error
=yes
18525 ac_cpp
='$CXXCPP $CPPFLAGS'
18526 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18530 archive_cmds_need_lc_CXX
=no
18531 allow_undefined_flag_CXX
=
18532 always_export_symbols_CXX
=no
18533 archive_expsym_cmds_CXX
=
18534 compiler_needs_object_CXX
=no
18535 export_dynamic_flag_spec_CXX
=
18536 hardcode_direct_CXX
=no
18537 hardcode_direct_absolute_CXX
=no
18538 hardcode_libdir_flag_spec_CXX
=
18539 hardcode_libdir_flag_spec_ld_CXX
=
18540 hardcode_libdir_separator_CXX
=
18541 hardcode_minus_L_CXX
=no
18542 hardcode_shlibpath_var_CXX
=unsupported
18543 hardcode_automatic_CXX
=no
18544 inherit_rpath_CXX
=no
18546 module_expsym_cmds_CXX
=
18547 link_all_deplibs_CXX
=unknown
18548 old_archive_cmds_CXX
=$old_archive_cmds
18549 reload_flag_CXX
=$reload_flag
18550 reload_cmds_CXX
=$reload_cmds
18551 no_undefined_flag_CXX
=
18552 whole_archive_flag_spec_CXX
=
18553 enable_shared_with_static_runtimes_CXX
=no
18555 # Source file extension for C++ test sources.
18558 # Object file extension for compiled C++ test sources.
18562 # No sense in running all these tests if we already determined that
18563 # the CXX compiler isn't working. Some variables (like enable_shared)
18564 # are currently assumed to apply to all compilers on this platform,
18565 # and will be corrupted by setting them based on a non-working compiler.
18566 if test "$_lt_caught_CXX_error" != yes; then
18567 # Code to be used in simple compile tests
18568 lt_simple_compile_test_code
="int some_variable = 0;"
18570 # Code to be used in simple link tests
18571 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
18573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18580 # If no C compiler was specified, use CC.
18583 # If no C compiler flags were specified, use CFLAGS.
18584 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18586 # Allow CC to be a program name with arguments.
18590 # save warnings/boilerplate of simple test code
18591 ac_outfile
=conftest.
$ac_objext
18592 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18593 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18594 _lt_compiler_boilerplate
=`cat conftest.err`
18597 ac_outfile
=conftest.
$ac_objext
18598 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18599 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18600 _lt_linker_boilerplate
=`cat conftest.err`
18604 # Allow CC to be a program name with arguments.
18609 lt_save_with_gnu_ld
=$with_gnu_ld
18610 lt_save_path_LD
=$lt_cv_path_LD
18611 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18612 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
18614 $as_unset lt_cv_prog_gnu_ld
18616 if test -n "${lt_cv_path_LDCXX+set}"; then
18617 lt_cv_path_LD
=$lt_cv_path_LDCXX
18619 $as_unset lt_cv_path_LD
18621 test -z "${LDCXX+set}" || LD
=$LDCXX
18625 for cc_temp
in $compiler""; do
18627 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18628 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18633 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18636 if test -n "$compiler"; then
18637 # We don't want -fno-exception when compiling C++ code, so set the
18638 # no_builtin_flag separately
18639 if test "$GXX" = yes; then
18640 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
18642 lt_prog_compiler_no_builtin_flag_CXX
=
18645 if test "$GXX" = yes; then
18646 # Set up default GNU C++ configuration
18650 # Check whether --with-gnu-ld was given.
18651 if test "${with_gnu_ld+set}" = set; then :
18652 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
18658 if test "$GCC" = yes; then
18659 # Check if gcc -print-prog-name=ld gives a path.
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18661 $as_echo_n "checking for ld used by $CC... " >&6; }
18664 # gcc leaves a trailing carriage return which upsets mingw
18665 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18667 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
18670 # Accept absolute paths.
18672 re_direlt
='/[^/][^/]*/\.\./'
18673 # Canonicalize the pathname of ld
18674 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18675 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
18676 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18678 test -z "$LD" && LD
="$ac_prog"
18681 # If it fails, then pretend we aren't using GCC.
18685 # If it is relative, then search for the first ld in PATH.
18686 with_gnu_ld
=unknown
18689 elif test "$with_gnu_ld" = yes; then
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18691 $as_echo_n "checking for GNU ld... " >&6; }
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18694 $as_echo_n "checking for non-GNU ld... " >&6; }
18696 if test "${lt_cv_path_LD+set}" = set; then :
18697 $as_echo_n "(cached) " >&6
18699 if test -z "$LD"; then
18700 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
18701 for ac_dir
in $PATH; do
18703 test -z "$ac_dir" && ac_dir
=.
18704 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
18705 lt_cv_path_LD
="$ac_dir/$ac_prog"
18706 # Check to see if the program is GNU ld. I'd rather use --version,
18707 # but apparently some variants of GNU ld only accept -v.
18708 # Break only if it was the GNU/non-GNU ld that we prefer.
18709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18710 *GNU
* |
*'with BFD'*)
18711 test "$with_gnu_ld" != no
&& break
18714 test "$with_gnu_ld" != yes && break
18721 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
18725 LD
="$lt_cv_path_LD"
18726 if test -n "$LD"; then
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18728 $as_echo "$LD" >&6; }
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18731 $as_echo "no" >&6; }
18733 test -z "$LD" && as_fn_error
"no acceptable ld found in \$PATH" "$LINENO" 5
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18736 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18737 $as_echo_n "(cached) " >&6
18739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18740 case `$LD -v 2>&1 </dev/null` in
18741 *GNU
* |
*'with BFD'*)
18742 lt_cv_prog_gnu_ld
=yes
18745 lt_cv_prog_gnu_ld
=no
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18751 with_gnu_ld
=$lt_cv_prog_gnu_ld
18759 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18760 # archiving commands below assume that GNU ld is being used.
18761 if test "$with_gnu_ld" = yes; then
18762 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18763 archive_expsym_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18765 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
18766 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
18768 # If archive_cmds runs LD, not CC, wlarc should be empty
18769 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18770 # investigate it a little bit more. (MM)
18773 # ancient GNU ld didn't support --whole-archive et. al.
18774 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18775 $GREP 'no-whole-archive' > /dev
/null
; then
18776 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18778 whole_archive_flag_spec_CXX
=
18784 # A generic and very simple default shared library creation
18785 # command for GNU C++ for the case where it uses the native
18786 # linker, instead of GNU ld. If possible, this setting should
18787 # overridden to take advantage of the native linker features on
18788 # the platform it is being used on.
18789 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18792 # Commands to make compiler produce verbose output that lists
18793 # what "hidden" libraries, object files and flags are used when
18794 # linking a shared library.
18795 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18803 # PORTME: fill in a description of your system's C++ link characteristics
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18809 # FIXME: insert proper C++ library support
18813 if test "$host_cpu" = ia64
; then
18814 # On IA64, the linker does run time linking by default, so we don't
18815 # have to do anything special.
18816 aix_use_runtimelinking
=no
18817 exp_sym_flag
='-Bexport'
18820 aix_use_runtimelinking
=no
18822 # Test if we are trying to use run time linking or normal
18823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18824 # need to do runtime linking.
18825 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
18826 for ld_flag
in $LDFLAGS; do
18829 aix_use_runtimelinking
=yes
18837 exp_sym_flag
='-bexport'
18838 no_entry_flag
='-bnoentry'
18841 # When large executables or shared objects are built, AIX ld can
18842 # have problems creating the table of contents. If linking a library
18843 # or program results in "error TOC overflow" add -mminimal-toc to
18844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18847 archive_cmds_CXX
=''
18848 hardcode_direct_CXX
=yes
18849 hardcode_direct_absolute_CXX
=yes
18850 hardcode_libdir_separator_CXX
=':'
18851 link_all_deplibs_CXX
=yes
18852 file_list_spec_CXX
='${wl}-f,'
18854 if test "$GXX" = yes; then
18855 case $host_os in aix4.
[012]|aix4.
[012].
*)
18856 # We only want to do this on AIX 4.2 and lower, the check
18857 # below for broken collect2 doesn't work under 4.3+
18858 collect2name
=`${CC} -print-prog-name=collect2`
18859 if test -f "$collect2name" &&
18860 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
18862 # We have reworked collect2
18865 # We have old collect2
18866 hardcode_direct_CXX
=unsupported
18867 # It fails to find uninstalled libraries when the uninstalled
18868 # path is not listed in the libpath. Setting hardcode_minus_L
18869 # to unsupported forces relinking
18870 hardcode_minus_L_CXX
=yes
18871 hardcode_libdir_flag_spec_CXX
='-L$libdir'
18872 hardcode_libdir_separator_CXX
=
18875 shared_flag
='-shared'
18876 if test "$aix_use_runtimelinking" = yes; then
18877 shared_flag
="$shared_flag "'${wl}-G'
18881 if test "$host_cpu" = ia64
; then
18882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18883 # chokes on -Wl,-G. The following line is correct:
18886 if test "$aix_use_runtimelinking" = yes; then
18887 shared_flag
='${wl}-G'
18889 shared_flag
='${wl}-bM:SRE'
18894 export_dynamic_flag_spec_CXX
='${wl}-bexpall'
18895 # It seems that -bexpall does not export symbols beginning with
18896 # underscore (_), so it is better to generate a list of symbols to
18898 always_export_symbols_CXX
=yes
18899 if test "$aix_use_runtimelinking" = yes; then
18900 # Warning - without using the other runtime loading flags (-brtl),
18901 # -berok will link without error, but may produce a broken library.
18902 allow_undefined_flag_CXX
='-berok'
18903 # Determine the default libpath from the value encoded in an empty
18905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18906 /* end confdefs.h. */
18916 if ac_fn_cxx_try_link
"$LINENO"; then :
18918 lt_aix_libpath_sed
='
18919 /Import File Strings/,/^$/ {
18925 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18926 # Check for a 64-bit object if we didn't find anything.
18927 if test -z "$aix_libpath"; then
18928 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18931 rm -f core conftest.err conftest.
$ac_objext \
18932 conftest
$ac_exeext conftest.
$ac_ext
18933 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18935 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18937 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"
18939 if test "$host_cpu" = ia64
; then
18940 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
18941 allow_undefined_flag_CXX
="-z nodefs"
18942 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"
18944 # Determine the default libpath from the value encoded in an
18945 # empty executable.
18946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18957 if ac_fn_cxx_try_link
"$LINENO"; then :
18959 lt_aix_libpath_sed
='
18960 /Import File Strings/,/^$/ {
18966 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18967 # Check for a 64-bit object if we didn't find anything.
18968 if test -z "$aix_libpath"; then
18969 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18972 rm -f core conftest.err conftest.
$ac_objext \
18973 conftest
$ac_exeext conftest.
$ac_ext
18974 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
18976 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
18977 # Warning - without using the other run time loading flags,
18978 # -berok will link without error, but may produce a broken library.
18979 no_undefined_flag_CXX
=' ${wl}-bernotok'
18980 allow_undefined_flag_CXX
=' ${wl}-berok'
18981 if test "$with_gnu_ld" = yes; then
18982 # We only use this code for GNU lds that support --whole-archive.
18983 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18985 # Exported symbols can be pulled into shared objects from archives
18986 whole_archive_flag_spec_CXX
='$convenience'
18988 archive_cmds_need_lc_CXX
=yes
18989 # This is similar to how AIX traditionally builds its shared
18991 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'
18997 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
18998 allow_undefined_flag_CXX
=unsupported
18999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19000 # support --undefined. This deserves some investigation. FIXME
19001 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19008 case $cc_basename in
19010 # FIXME: insert proper C++ library support
19016 cygwin
* | mingw
* | pw32
* | cegcc
*)
19017 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19018 # as there is no search path for DLLs.
19019 hardcode_libdir_flag_spec_CXX
='-L$libdir'
19020 export_dynamic_flag_spec_CXX
='${wl}--export-all-symbols'
19021 allow_undefined_flag_CXX
=unsupported
19022 always_export_symbols_CXX
=no
19023 enable_shared_with_static_runtimes_CXX
=yes
19025 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
19026 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'
19027 # If the export-symbols file already is a .def file (1st line
19028 # is EXPORTS), use it as is; otherwise, prepend...
19029 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19030 cp $export_symbols $output_objdir/$soname.def;
19032 echo EXPORTS > $output_objdir/$soname.def;
19033 cat $export_symbols >> $output_objdir/$soname.def;
19035 $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'
19040 darwin
* | rhapsody
*)
19043 archive_cmds_need_lc_CXX
=no
19044 hardcode_direct_CXX
=no
19045 hardcode_automatic_CXX
=yes
19046 hardcode_shlibpath_var_CXX
=unsupported
19047 if test "$lt_cv_ld_force_load" = "yes"; then
19048 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\"`'
19050 whole_archive_flag_spec_CXX
=''
19052 link_all_deplibs_CXX
=yes
19053 allow_undefined_flag_CXX
="$_lt_dar_allow_undefined"
19054 case $cc_basename in
19055 ifort
*) _lt_dar_can_shared
=yes ;;
19056 *) _lt_dar_can_shared
=$GCC ;;
19058 if test "$_lt_dar_can_shared" = "yes"; then
19059 output_verbose_link_cmd
=func_echo_all
19060 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}"
19061 module_cmds_CXX
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19062 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}"
19063 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}"
19064 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19065 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}"
19066 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}"
19076 case $cc_basename in
19078 # FIXME: insert proper C++ library support
19082 # Green Hills C++ Compiler
19083 # FIXME: insert proper C++ library support
19087 # FIXME: insert proper C++ library support
19094 # C++ shared libraries reported to be fairly broken before
19100 archive_cmds_need_lc_CXX
=no
19103 freebsd
* | dragonfly
*)
19104 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19113 archive_cmds_CXX
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19114 link_all_deplibs_CXX
=yes
19118 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19119 hardcode_libdir_separator_CXX
=:
19120 export_dynamic_flag_spec_CXX
='${wl}-E'
19121 hardcode_direct_CXX
=yes
19122 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19123 # but as the default
19124 # location of the library.
19126 case $cc_basename in
19128 # FIXME: insert proper C++ library support
19132 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'
19133 # Commands to make compiler produce verbose output that lists
19134 # what "hidden" libraries, object files and flags are used when
19135 # linking a shared library.
19137 # There doesn't appear to be a way to prevent this compiler from
19138 # explicitly linking system object files so we need to strip them
19139 # from the output so that they don't get included in the library
19141 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"'
19144 if test "$GXX" = yes; then
19145 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'
19147 # FIXME: insert proper C++ library support
19155 if test $with_gnu_ld = no
; then
19156 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
19157 hardcode_libdir_separator_CXX
=:
19163 export_dynamic_flag_spec_CXX
='${wl}-E'
19169 hardcode_direct_CXX
=no
19170 hardcode_shlibpath_var_CXX
=no
19173 hardcode_direct_CXX
=yes
19174 hardcode_direct_absolute_CXX
=yes
19175 hardcode_minus_L_CXX
=yes # Not in the search PATH,
19176 # but as the default
19177 # location of the library.
19181 case $cc_basename in
19183 # FIXME: insert proper C++ library support
19189 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19192 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19195 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19198 # Commands to make compiler produce verbose output that lists
19199 # what "hidden" libraries, object files and flags are used when
19200 # linking a shared library.
19202 # There doesn't appear to be a way to prevent this compiler from
19203 # explicitly linking system object files so we need to strip them
19204 # from the output so that they don't get included in the library
19206 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"'
19209 if test "$GXX" = yes; then
19210 if test $with_gnu_ld = no
; then
19213 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19216 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19219 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'
19224 # FIXME: insert proper C++ library support
19232 hardcode_direct_CXX
=no
19233 hardcode_shlibpath_var_CXX
=no
19234 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19235 export_dynamic_flag_spec_CXX
='${wl}-E'
19236 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19237 # Instead, shared libraries are loaded at an image base (0x10000000 by
19238 # default) and relocated if they conflict, which is a slow very memory
19239 # consuming and fragmenting process. To avoid this, we pick a random,
19240 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19241 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19242 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'
19243 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'
19246 case $cc_basename in
19249 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'
19251 # Archives containing C++ object files must be created using
19252 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19253 # necessary to make sure instantiated templates are included
19255 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
19258 if test "$GXX" = yes; then
19259 if test "$with_gnu_ld" = no
; then
19260 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'
19262 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'
19265 link_all_deplibs_CXX
=yes
19268 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19269 hardcode_libdir_separator_CXX
=:
19270 inherit_rpath_CXX
=yes
19273 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
19274 case $cc_basename in
19276 # Kuck and Associates, Inc. (KAI) C++ Compiler
19278 # KCC will only create a shared library if the output file
19279 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19280 # to its proper name (with version) after linking.
19281 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'
19282 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'
19283 # Commands to make compiler produce verbose output that lists
19284 # what "hidden" libraries, object files and flags are used when
19285 # linking a shared library.
19287 # There doesn't appear to be a way to prevent this compiler from
19288 # explicitly linking system object files so we need to strip them
19289 # from the output so that they don't get included in the library
19291 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"'
19293 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19294 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19296 # Archives containing C++ object files must be created using
19297 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19298 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
19303 # version 8.0 and above of icpc choke on multiply defined symbols
19304 # if we add $predep_objects and $postdep_objects, however 7.1 and
19305 # earlier do not add the objects themselves.
19306 case `$CC -V 2>&1` in
19308 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309 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'
19311 *) # Version 8.0 or newer
19314 ia64
*) tmp_idyn
=' -i_dynamic';;
19316 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19317 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'
19320 archive_cmds_need_lc_CXX
=no
19321 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19322 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19323 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19326 # Portland Group C++ compiler
19328 *pgCC\
[1-5].
* |
*pgcpp\
[1-5].
*)
19329 prelink_cmds_CXX
='tpldir=Template.dir~
19331 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19332 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19333 old_archive_cmds_CXX
='tpldir=Template.dir~
19335 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19336 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19338 archive_cmds_CXX
='tpldir=Template.dir~
19340 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19341 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19342 archive_expsym_cmds_CXX
='tpldir=Template.dir~
19344 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19345 $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'
19347 *) # Version 6 and above use weak symbols
19348 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19349 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'
19353 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
19354 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19355 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'
19359 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19360 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'
19362 runpath_var
=LD_RUN_PATH
19363 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19364 hardcode_libdir_separator_CXX
=:
19366 # Commands to make compiler produce verbose output that lists
19367 # what "hidden" libraries, object files and flags are used when
19368 # linking a shared library.
19370 # There doesn't appear to be a way to prevent this compiler from
19371 # explicitly linking system object files so we need to strip them
19372 # from the output so that they don't get included in the library
19374 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'
19376 xl
* | mpixl
* | bgxl
*)
19377 # IBM XL 8.0 on PPC, with GNU ld
19378 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19379 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
19380 archive_cmds_CXX
='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19381 if test "x$supports_anon_versioning" = xyes
; then
19382 archive_expsym_cmds_CXX
='echo "{ global:" > $output_objdir/$libname.ver~
19383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19384 echo "local: *; };" >> $output_objdir/$libname.ver~
19385 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19389 case `$CC -V 2>&1 | sed 5q` in
19392 no_undefined_flag_CXX
=' -zdefs'
19393 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19394 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'
19395 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19396 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'
19397 compiler_needs_object_CXX
=yes
19399 # Not sure whether something based on
19400 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19402 output_verbose_link_cmd
='func_echo_all'
19404 # Archives containing C++ object files must be created using
19405 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19406 # necessary to make sure instantiated templates are included
19408 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19416 # FIXME: insert proper C++ library support
19421 # FIXME: insert proper C++ library support
19426 case $cc_basename in
19428 # FIXME: insert proper C++ library support
19432 # FIXME: insert proper C++ library support
19439 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
19440 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19442 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19443 hardcode_direct_CXX
=yes
19444 hardcode_shlibpath_var_CXX
=no
19446 # Workaround some broken pre-1.5 toolchains
19447 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19455 # C++ shared libraries are fairly broken
19460 if test -f /usr
/libexec
/ld.so
; then
19461 hardcode_direct_CXX
=yes
19462 hardcode_shlibpath_var_CXX
=no
19463 hardcode_direct_absolute_CXX
=yes
19464 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19465 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19467 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19468 export_dynamic_flag_spec_CXX
='${wl}-E'
19469 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19471 output_verbose_link_cmd
=func_echo_all
19477 osf3
* | osf4
* | osf5
*)
19478 case $cc_basename in
19480 # Kuck and Associates, Inc. (KAI) C++ Compiler
19482 # KCC will only create a shared library if the output file
19483 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19484 # to its proper name (with version) after linking.
19485 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'
19487 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
19488 hardcode_libdir_separator_CXX
=:
19490 # Archives containing C++ object files must be created using
19491 # the KAI C++ compiler.
19493 osf3
*) old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs' ;;
19494 *) old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs' ;;
19498 # Rational C++ 2.4.1
19499 # FIXME: insert proper C++ library support
19505 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19506 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'
19507 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19510 allow_undefined_flag_CXX
=' -expect_unresolved \*'
19511 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'
19512 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19513 echo "-hidden">> $lib.exp~
19514 $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~
19516 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
19520 hardcode_libdir_separator_CXX
=:
19522 # Commands to make compiler produce verbose output that lists
19523 # what "hidden" libraries, object files and flags are used when
19524 # linking a shared library.
19526 # There doesn't appear to be a way to prevent this compiler from
19527 # explicitly linking system object files so we need to strip them
19528 # from the output so that they don't get included in the library
19530 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"'
19533 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19534 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
19537 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'
19540 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'
19544 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
19545 hardcode_libdir_separator_CXX
=:
19547 # Commands to make compiler produce verbose output that lists
19548 # what "hidden" libraries, object files and flags are used when
19549 # linking a shared library.
19550 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19553 # FIXME: insert proper C++ library support
19561 # FIXME: insert proper C++ library support
19566 case $cc_basename in
19569 # FIXME: insert proper C++ library support
19574 # FIXME: insert proper C++ library support
19578 # FIXME: insert proper C++ library support
19585 case $cc_basename in
19587 # Sun C++ 4.2, 5.x and Centerline C++
19588 archive_cmds_need_lc_CXX
=yes
19589 no_undefined_flag_CXX
=' -zdefs'
19590 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19591 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19592 $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'
19594 hardcode_libdir_flag_spec_CXX
='-R$libdir'
19595 hardcode_shlibpath_var_CXX
=no
19597 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19599 # The compiler driver will combine and reorder linker options,
19600 # but understands `-z linker_flag'.
19601 # Supported since Solaris 2.6 (maybe 2.5.1?)
19602 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
19605 link_all_deplibs_CXX
=yes
19607 output_verbose_link_cmd
='func_echo_all'
19609 # Archives containing C++ object files must be created using
19610 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19611 # necessary to make sure instantiated templates are included
19613 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
19616 # Green Hills C++ Compiler
19617 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19619 # The C++ compiler must be used to create the archive.
19620 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19623 # GNU C++ compiler with Solaris linker
19624 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
19625 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
19626 if $CC --version |
$GREP -v '^2\.7' > /dev
/null
; then
19627 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19628 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19629 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19631 # Commands to make compiler produce verbose output that lists
19632 # what "hidden" libraries, object files and flags are used when
19633 # linking a shared library.
19634 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19636 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19638 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19639 archive_expsym_cmds_CXX
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19640 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19642 # Commands to make compiler produce verbose output that lists
19643 # what "hidden" libraries, object files and flags are used when
19644 # linking a shared library.
19645 output_verbose_link_cmd
='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19648 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
19650 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
19652 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19660 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
19661 no_undefined_flag_CXX
='${wl}-z,text'
19662 archive_cmds_need_lc_CXX
=no
19663 hardcode_shlibpath_var_CXX
=no
19664 runpath_var
='LD_RUN_PATH'
19666 case $cc_basename in
19668 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19669 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19672 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19673 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19678 sysv5
* | sco3.2v5
* | sco5v6
*)
19679 # Note: We can NOT use -z defs as we might desire, because we do not
19680 # link with -lc, and that would cause any symbols used from libc to
19681 # always be unresolved, which means just about no library would
19682 # ever link correctly. If we're not using GNU ld we use -z text
19683 # though, which does catch some bad symbols but isn't as heavy-handed
19685 no_undefined_flag_CXX
='${wl}-z,text'
19686 allow_undefined_flag_CXX
='${wl}-z,nodefs'
19687 archive_cmds_need_lc_CXX
=no
19688 hardcode_shlibpath_var_CXX
=no
19689 hardcode_libdir_flag_spec_CXX
='${wl}-R,$libdir'
19690 hardcode_libdir_separator_CXX
=':'
19691 link_all_deplibs_CXX
=yes
19692 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
19693 runpath_var
='LD_RUN_PATH'
19695 case $cc_basename in
19697 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19698 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19699 old_archive_cmds_CXX
='$CC -Tprelink_objects $oldobjs~
19700 '"$old_archive_cmds_CXX"
19701 reload_cmds_CXX
='$CC -Tprelink_objects $reload_objs~
19702 '"$reload_cmds_CXX"
19705 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19706 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19712 case $cc_basename in
19714 # NonStop-UX NCC 3.20
19715 # FIXME: insert proper C++ library support
19719 # FIXME: insert proper C++ library support
19726 # FIXME: insert proper C++ library support
19731 # FIXME: insert proper C++ library support
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19737 $as_echo "$ld_shlibs_CXX" >&6; }
19738 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
19744 ## There is no encapsulation within the following macros, do not change
19745 ## the running order or otherwise move them around unless you know exactly
19746 ## what you are doing...
19747 # Dependencies to place before and after the object being linked:
19748 predep_objects_CXX
=
19749 postdep_objects_CXX
=
19752 compiler_lib_search_path_CXX
=
19754 cat > conftest.
$ac_ext <<_LT_EOF
19758 Foo (void) { a = 0; }
19764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19765 (eval $ac_compile) 2>&5
19767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19768 test $ac_status = 0; }; then
19769 # Parse the compiler output and extract the necessary
19770 # objects, libraries and library flags.
19772 # Sentinel used to keep track of whether or not we are before
19773 # the conftest object file.
19774 pre_test_object_deps_done
=no
19776 for p
in `eval "$output_verbose_link_cmd"`; do
19780 # Some compilers place space between "-{L,R}" and the path.
19781 # Remove the space.
19782 if test $p = "-L" ||
19783 test $p = "-R"; then
19790 if test "$pre_test_object_deps_done" = no
; then
19793 # Internal compiler library paths should come after those
19794 # provided the user. The postdeps already come after the
19795 # user supplied libs so there is no need to process them.
19796 if test -z "$compiler_lib_search_path_CXX"; then
19797 compiler_lib_search_path_CXX
="${prev}${p}"
19799 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
19802 # The "-l" case would never come before the object being
19803 # linked, so don't bother handling this case.
19806 if test -z "$postdeps_CXX"; then
19807 postdeps_CXX
="${prev}${p}"
19809 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
19815 # This assumes that the test object file only shows up
19816 # once in the compiler output.
19817 if test "$p" = "conftest.$objext"; then
19818 pre_test_object_deps_done
=yes
19822 if test "$pre_test_object_deps_done" = no
; then
19823 if test -z "$predep_objects_CXX"; then
19824 predep_objects_CXX
="$p"
19826 predep_objects_CXX
="$predep_objects_CXX $p"
19829 if test -z "$postdep_objects_CXX"; then
19830 postdep_objects_CXX
="$p"
19832 postdep_objects_CXX
="$postdep_objects_CXX $p"
19837 *) ;; # Ignore the rest.
19845 echo "libtool.m4: error: problem compiling CXX test program"
19848 $RM -f confest.
$objext
19850 # PORTME: override above test on systems where it is broken
19853 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19854 # hack all around it, let's just trust "g++" to DTRT.
19855 predep_objects_CXX
=
19856 postdep_objects_CXX
=
19861 case `$CC -V 2>&1 | sed 5q` in
19865 # The more standards-conforming stlport4 library is
19866 # incompatible with the Cstd library. Avoid specifying
19867 # it if it's in CXXFLAGS. Ignore libCrun as
19868 # -library=stlport4 depends on it.
19869 case " $CXX $CXXFLAGS " in
19870 *" -library=stlport4 "*)
19871 solaris_use_stlport4
=yes
19875 if test "$solaris_use_stlport4" != yes; then
19876 postdeps_CXX
='-library=Cstd -library=Crun'
19883 case $cc_basename in
19885 # The more standards-conforming stlport4 library is
19886 # incompatible with the Cstd library. Avoid specifying
19887 # it if it's in CXXFLAGS. Ignore libCrun as
19888 # -library=stlport4 depends on it.
19889 case " $CXX $CXXFLAGS " in
19890 *" -library=stlport4 "*)
19891 solaris_use_stlport4
=yes
19895 # Adding this requires a known-good setup of shared libraries for
19896 # Sun compiler versions before 5.6, else PIC objects from an old
19897 # archive will be linked into the output, leading to subtle bugs.
19898 if test "$solaris_use_stlport4" != yes; then
19899 postdeps_CXX
='-library=Cstd -library=Crun'
19907 case " $postdeps_CXX " in
19908 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
19910 compiler_lib_search_dirs_CXX
=
19911 if test -n "${compiler_lib_search_path_CXX}"; then
19912 compiler_lib_search_dirs_CXX
=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19945 lt_prog_compiler_wl_CXX
=
19946 lt_prog_compiler_pic_CXX
=
19947 lt_prog_compiler_static_CXX
=
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19952 # C++ specific cases for pic, static, wl, etc.
19953 if test "$GXX" = yes; then
19954 lt_prog_compiler_wl_CXX
='-Wl,'
19955 lt_prog_compiler_static_CXX
='-static'
19959 # All AIX code is PIC.
19960 if test "$host_cpu" = ia64
; then
19961 # AIX 5 now supports IA64 processor
19962 lt_prog_compiler_static_CXX
='-Bstatic'
19964 lt_prog_compiler_pic_CXX
='-fPIC'
19970 # see comment about AmigaOS4 .so support
19971 lt_prog_compiler_pic_CXX
='-fPIC'
19974 # FIXME: we need at least 68020 code to build shared libraries, but
19975 # adding the `-m68020' flag to GCC prevents building anything better,
19977 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
19982 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
19983 # PIC is the default for these OSes.
19985 mingw
* | cygwin
* | os2
* | pw32
* | cegcc
*)
19986 # This hack is so that the source file can tell whether it is being
19987 # built for inclusion in a dll (and should export symbols for example).
19988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19989 # (--disable-auto-import) libraries
19990 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
19992 darwin
* | rhapsody
*)
19993 # PIC is the default on this platform
19994 # Common symbols not allowed in MH_DYLIB files
19995 lt_prog_compiler_pic_CXX
='-fno-common'
19998 # DJGPP does not support shared libraries at all
19999 lt_prog_compiler_pic_CXX
=
20002 # PIC is the default for Haiku.
20003 # The "-static" flag exists, but is broken.
20004 lt_prog_compiler_static_CXX
=
20007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20008 # Instead, we relocate shared libraries at runtime.
20011 if test -d /usr
/nec
; then
20012 lt_prog_compiler_pic_CXX
=-Kconform_pic
20016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20018 # sets the default TLS model and affects inlining.
20023 lt_prog_compiler_pic_CXX
='-fPIC'
20028 # QNX uses GNU C++, but need to define -shared option too, otherwise
20029 # it will coredump.
20030 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20033 lt_prog_compiler_pic_CXX
='-fPIC'
20039 # All AIX code is PIC.
20040 if test "$host_cpu" = ia64
; then
20041 # AIX 5 now supports IA64 processor
20042 lt_prog_compiler_static_CXX
='-Bstatic'
20044 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
20048 case $cc_basename in
20050 # Green Hills C++ Compiler
20051 # _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"
20056 case $cc_basename in
20058 lt_prog_compiler_pic_CXX
='-KPIC'
20061 # Green Hills C++ Compiler
20062 lt_prog_compiler_pic_CXX
='-pic'
20068 freebsd
* | dragonfly
*)
20069 # FreeBSD uses GNU C++
20071 hpux9
* | hpux10
* | hpux11
*)
20072 case $cc_basename in
20074 lt_prog_compiler_wl_CXX
='-Wl,'
20075 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20076 if test "$host_cpu" != ia64
; then
20077 lt_prog_compiler_pic_CXX
='+Z'
20081 lt_prog_compiler_wl_CXX
='-Wl,'
20082 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
20088 lt_prog_compiler_pic_CXX
='+Z'
20097 # This is c89, which is MS Visual C++ (no shared libs)
20098 # Anyone wants to do a port?
20100 irix5
* | irix6
* | nonstopux
*)
20101 case $cc_basename in
20103 lt_prog_compiler_wl_CXX
='-Wl,'
20104 lt_prog_compiler_static_CXX
='-non_shared'
20105 # CC pic flag -KPIC is the default.
20111 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
20112 case $cc_basename in
20115 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20116 lt_prog_compiler_pic_CXX
='-fPIC'
20119 # old Intel C++ for x86_64 which still supported -KPIC.
20120 lt_prog_compiler_wl_CXX
='-Wl,'
20121 lt_prog_compiler_pic_CXX
='-KPIC'
20122 lt_prog_compiler_static_CXX
='-static'
20125 # Intel C++, used to be incompatible with GCC.
20126 # ICC 10 doesn't accept -KPIC any more.
20127 lt_prog_compiler_wl_CXX
='-Wl,'
20128 lt_prog_compiler_pic_CXX
='-fPIC'
20129 lt_prog_compiler_static_CXX
='-static'
20132 # Portland Group C++ compiler
20133 lt_prog_compiler_wl_CXX
='-Wl,'
20134 lt_prog_compiler_pic_CXX
='-fpic'
20135 lt_prog_compiler_static_CXX
='-Bstatic'
20139 # Make sure the PIC flag is empty. It appears that all Alpha
20140 # Linux and Compaq Tru64 Unix objects are PIC.
20141 lt_prog_compiler_pic_CXX
=
20142 lt_prog_compiler_static_CXX
='-non_shared'
20144 xlc
* | xlC
* | bgxl
[cC
]* | mpixl
[cC
]*)
20145 # IBM XL 8.0, 9.0 on PPC and BlueGene
20146 lt_prog_compiler_wl_CXX
='-Wl,'
20147 lt_prog_compiler_pic_CXX
='-qpic'
20148 lt_prog_compiler_static_CXX
='-qstaticlink'
20151 case `$CC -V 2>&1 | sed 5q` in
20154 lt_prog_compiler_pic_CXX
='-KPIC'
20155 lt_prog_compiler_static_CXX
='-Bstatic'
20156 lt_prog_compiler_wl_CXX
='-Qoption ld '
20167 case $cc_basename in
20169 lt_prog_compiler_pic_CXX
='-W c,exportall'
20178 # QNX uses GNU C++, but need to define -shared option too, otherwise
20179 # it will coredump.
20180 lt_prog_compiler_pic_CXX
='-fPIC -shared'
20182 osf3
* | osf4
* | osf5
*)
20183 case $cc_basename in
20185 lt_prog_compiler_wl_CXX
='--backend -Wl,'
20188 # Rational C++ 2.4.1
20189 lt_prog_compiler_pic_CXX
='-pic'
20192 # Digital/Compaq C++
20193 lt_prog_compiler_wl_CXX
='-Wl,'
20194 # Make sure the PIC flag is empty. It appears that all Alpha
20195 # Linux and Compaq Tru64 Unix objects are PIC.
20196 lt_prog_compiler_pic_CXX
=
20197 lt_prog_compiler_static_CXX
='-non_shared'
20206 case $cc_basename in
20208 # Sun C++ 4.2, 5.x and Centerline C++
20209 lt_prog_compiler_pic_CXX
='-KPIC'
20210 lt_prog_compiler_static_CXX
='-Bstatic'
20211 lt_prog_compiler_wl_CXX
='-Qoption ld '
20214 # Green Hills C++ Compiler
20215 lt_prog_compiler_pic_CXX
='-PIC'
20222 case $cc_basename in
20225 lt_prog_compiler_pic_CXX
='-pic'
20226 lt_prog_compiler_static_CXX
='-Bstatic'
20230 lt_prog_compiler_pic_CXX
='-pic'
20236 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
20237 case $cc_basename in
20239 lt_prog_compiler_wl_CXX
='-Wl,'
20240 lt_prog_compiler_pic_CXX
='-KPIC'
20241 lt_prog_compiler_static_CXX
='-Bstatic'
20246 case $cc_basename in
20248 # NonStop-UX NCC 3.20
20249 lt_prog_compiler_pic_CXX
='-KPIC'
20258 lt_prog_compiler_can_build_shared_CXX
=no
20264 # For platforms which do not support PIC, -DPIC is meaningless:
20266 lt_prog_compiler_pic_CXX
=
20269 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20273 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20278 # Check to make sure the PIC flag actually works.
20280 if test -n "$lt_prog_compiler_pic_CXX"; then
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20283 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20284 $as_echo_n "(cached) " >&6
20286 lt_cv_prog_compiler_pic_works_CXX
=no
20287 ac_outfile
=conftest.
$ac_objext
20288 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20289 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
20290 # Insert the option either (1) after the last *FLAGS variable, or
20291 # (2) before a word containing "conftest.", or (3) at the end.
20292 # Note that $ac_compile itself does not contain backslashes and begins
20293 # with a dollar sign (not a hyphen), so the echo should work correctly.
20294 # The option is referenced via a variable to avoid confusing sed.
20295 lt_compile
=`echo "$ac_compile" | $SED \
20296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20298 -e 's:$: $lt_compiler_flag:'`
20299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20300 (eval "$lt_compile" 2>conftest.err
)
20302 cat conftest.err
>&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 if (exit $ac_status) && test -s "$ac_outfile"; then
20305 # The compiler can only warn and ignore the option if not recognized
20306 # So say no if there are warnings other than the usual output.
20307 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
20308 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20309 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
20310 lt_cv_prog_compiler_pic_works_CXX
=yes
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20317 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20319 if test x
"$lt_cv_prog_compiler_pic_works_CXX" = xyes
; then
20320 case $lt_prog_compiler_pic_CXX in
20322 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
20325 lt_prog_compiler_pic_CXX
=
20326 lt_prog_compiler_can_build_shared_CXX
=no
20334 # Check to make sure the static flag actually works.
20336 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20339 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20342 lt_cv_prog_compiler_static_works_CXX
=no
20343 save_LDFLAGS
="$LDFLAGS"
20344 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
20345 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
20346 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
20347 # The linker can only warn and ignore the option if not recognized
20348 # So say no if there are warnings
20349 if test -s conftest.err
; then
20350 # Append any errors to the config.log.
20351 cat conftest.err
1>&5
20352 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
20353 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
20354 if diff conftest.exp conftest.er2
>/dev
/null
; then
20355 lt_cv_prog_compiler_static_works_CXX
=yes
20358 lt_cv_prog_compiler_static_works_CXX
=yes
20362 LDFLAGS
="$save_LDFLAGS"
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20366 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20368 if test x
"$lt_cv_prog_compiler_static_works_CXX" = xyes
; then
20371 lt_prog_compiler_static_CXX
=
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20380 $as_echo_n "(cached) " >&6
20382 lt_cv_prog_compiler_c_o_CXX
=no
20383 $RM -r conftest
2>/dev
/null
20387 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20389 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20390 # Insert the option either (1) after the last *FLAGS variable, or
20391 # (2) before a word containing "conftest.", or (3) at the end.
20392 # Note that $ac_compile itself does not contain backslashes and begins
20393 # with a dollar sign (not a hyphen), so the echo should work correctly.
20394 lt_compile
=`echo "$ac_compile" | $SED \
20395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20397 -e 's:$: $lt_compiler_flag:'`
20398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20399 (eval "$lt_compile" 2>out
/conftest.err
)
20401 cat out
/conftest.err
>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20405 # The compiler can only warn and ignore the option if not recognized
20406 # So say no if there are warnings
20407 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20408 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20409 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20410 lt_cv_prog_compiler_c_o_CXX
=yes
20415 # SGI C++ compiler will create directory out/ii_files/ for
20416 # template instantiation
20417 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20418 $RM out
/* && rmdir out
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20425 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20431 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20432 $as_echo_n "(cached) " >&6
20434 lt_cv_prog_compiler_c_o_CXX
=no
20435 $RM -r conftest
2>/dev
/null
20439 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20441 lt_compiler_flag
="-o out/conftest2.$ac_objext"
20442 # Insert the option either (1) after the last *FLAGS variable, or
20443 # (2) before a word containing "conftest.", or (3) at the end.
20444 # Note that $ac_compile itself does not contain backslashes and begins
20445 # with a dollar sign (not a hyphen), so the echo should work correctly.
20446 lt_compile
=`echo "$ac_compile" | $SED \
20447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20449 -e 's:$: $lt_compiler_flag:'`
20450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20451 (eval "$lt_compile" 2>out
/conftest.err
)
20453 cat out
/conftest.err
>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
20457 # The compiler can only warn and ignore the option if not recognized
20458 # So say no if there are warnings
20459 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
20460 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
20461 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
20462 lt_cv_prog_compiler_c_o_CXX
=yes
20467 # SGI C++ compiler will create directory out/ii_files/ for
20468 # template instantiation
20469 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
20470 $RM out
/* && rmdir out
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20477 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20482 hard_links
="nottested"
20483 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
20484 # do not overwrite the value of need_locks provided by the user
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20486 $as_echo_n "checking if we can lock with hard links... " >&6; }
20489 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20491 ln conftest.a conftest.b
2>&5 || hard_links
=no
20492 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20494 $as_echo "$hard_links" >&6; }
20495 if test "$hard_links" = no
; then
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20497 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20509 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20512 # If we're using GNU nm, then we don't want the "-C" option.
20513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20514 # Also, AIX nm treats weak defined symbols like other global defined
20515 # symbols, whereas GNU nm marks them as "W".
20516 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
20517 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'
20519 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'
20523 export_symbols_cmds_CXX
="$ltdll_cmds"
20525 cygwin
* | mingw
* | cegcc
*)
20526 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'
20529 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20532 exclude_expsyms_CXX
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20535 $as_echo "$ld_shlibs_CXX" >&6; }
20536 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
20538 with_gnu_ld_CXX
=$with_gnu_ld
20546 # Do we need to explicitly link libc?
20548 case "x$archive_cmds_need_lc_CXX" in
20550 # Assume -lc should be added
20551 archive_cmds_need_lc_CXX
=yes
20553 if test "$enable_shared" = yes && test "$GCC" = yes; then
20554 case $archive_cmds_CXX in
20556 # FIXME: we may have to deal with multi-command sequences.
20559 # Test whether the compiler implicitly links with -lc since on some
20560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20561 # to ld, don't add -lc before -lgcc.
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20563 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20564 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20565 $as_echo_n "(cached) " >&6
20568 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20571 (eval $ac_compile) 2>&5
20573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20574 test $ac_status = 0; } 2>conftest.err
; then
20577 libobjs
=conftest.
$ac_objext
20579 wl
=$lt_prog_compiler_wl_CXX
20580 pic_flag
=$lt_prog_compiler_pic_CXX
20586 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
20587 allow_undefined_flag_CXX
=
20588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20589 (eval $archive_cmds_CXX 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20592 test $ac_status = 0; }
20594 lt_cv_archive_cmds_need_lc_CXX
=no
20596 lt_cv_archive_cmds_need_lc_CXX
=yes
20598 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
20600 cat conftest.err
1>&5
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20606 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20607 archive_cmds_need_lc_CXX
=$lt_cv_archive_cmds_need_lc_CXX
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20680 library_names_spec
=
20681 libname_spec
='lib$name'
20685 postuninstall_cmds
=
20689 shlibpath_overrides_runpath
=unknown
20691 dynamic_linker
="$host_os ld.so"
20692 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20693 need_lib_prefix
=unknown
20694 hardcode_into_libs
=no
20696 # when you set need_version to no, make sure it does not cause -set_version
20697 # flags to be left without arguments
20698 need_version
=unknown
20703 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20704 shlibpath_var
=LIBPATH
20706 # AIX 3 has no versioning support, so we append a major version to the name.
20707 soname_spec
='${libname}${release}${shared_ext}$major'
20714 hardcode_into_libs
=yes
20715 if test "$host_cpu" = ia64
; then
20716 # AIX 5 supports IA64
20717 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20718 shlibpath_var
=LD_LIBRARY_PATH
20720 # With GCC up to 2.95.x, collect2 would create an import file
20721 # for dependence libraries. The import file would start with
20722 # the line `#! .'. This would cause the generated library to
20723 # depend on `.', always an invalid library. This was fixed in
20724 # development snapshots of GCC prior to 3.0.
20726 aix4 | aix4.
[01] | aix4.
[01].
*)
20727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20729 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
20732 can_build_shared
=no
20736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20737 # soname into executable. Probably we can add versioning support to
20738 # collect2, so additional links can be useful in future.
20739 if test "$aix_use_runtimelinking" = yes; then
20740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20741 # instead of lib<name>.a to let people know that these are not
20742 # typical AIX shared libraries.
20743 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20745 # We preserve .a as extension for shared libraries through AIX4.2
20746 # and later when we are not doing run time linking.
20747 library_names_spec
='${libname}${release}.a $libname.a'
20748 soname_spec
='${libname}${release}${shared_ext}$major'
20750 shlibpath_var
=LIBPATH
20757 # Since July 2007 AmigaOS4 officially supports .so libraries.
20758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20759 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20762 library_names_spec
='$libname.ixlibrary $libname.a'
20763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20764 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'
20770 library_names_spec
='${libname}${shared_ext}'
20771 dynamic_linker
="$host_os ld.so"
20772 shlibpath_var
=LIBRARY_PATH
20778 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20779 soname_spec
='${libname}${release}${shared_ext}$major'
20780 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20781 shlibpath_var
=LD_LIBRARY_PATH
20782 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20783 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20784 # the default ld.so.conf also contains /usr/contrib/lib and
20785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20786 # libtool to hard-code these into programs
20789 cygwin
* | mingw
* | pw32
* | cegcc
*)
20790 version_type
=windows
20795 case $GCC,$host_os in
20796 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
20797 library_names_spec
='$libname.dll.a'
20798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20799 postinstall_cmds
='base_file=`basename \${file}`~
20800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20801 dldir=$destdir/`dirname \$dlpath`~
20802 test -d \$dldir || mkdir -p \$dldir~
20803 $install_prog $dir/$dlname \$dldir/$dlname~
20804 chmod a+x \$dldir/$dlname~
20805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20808 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20809 dlpath=$dir/\$dldll~
20811 shlibpath_overrides_runpath
=yes
20815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20816 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20820 # MinGW DLLs use traditional 'lib' prefix
20821 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20824 # pw32 DLLs use 'pw' prefix rather than 'lib'
20825 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20831 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20834 dynamic_linker
='Win32 ld.exe'
20835 # FIXME: first we should search . and the directory the executable is in
20839 darwin
* | rhapsody
*)
20840 dynamic_linker
="$host_os dyld"
20841 version_type
=darwin
20844 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20845 soname_spec
='${libname}${release}${major}$shared_ext'
20846 shlibpath_overrides_runpath
=yes
20847 shlibpath_var
=DYLD_LIBRARY_PATH
20848 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20850 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20857 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20858 soname_spec
='${libname}${release}${shared_ext}$major'
20859 shlibpath_var
=LD_LIBRARY_PATH
20862 freebsd
* | dragonfly
*)
20863 # DragonFly does not have aout. When/if they implement a new
20864 # versioning mechanism, adjust this.
20865 if test -x /usr
/bin
/objformat
; then
20866 objformat
=`/usr/bin/objformat`
20869 freebsd
[23].
*) objformat
=aout
;;
20870 *) objformat
=elf
;;
20873 version_type
=freebsd-
$objformat
20874 case $version_type in
20876 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20881 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20885 shlibpath_var
=LD_LIBRARY_PATH
20888 shlibpath_overrides_runpath
=yes
20890 freebsd3.
[01]* | freebsdelf3.
[01]*)
20891 shlibpath_overrides_runpath
=yes
20892 hardcode_into_libs
=yes
20894 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20895 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20896 shlibpath_overrides_runpath
=no
20897 hardcode_into_libs
=yes
20899 *) # from 4.6 on, and DragonFly
20900 shlibpath_overrides_runpath
=yes
20901 hardcode_into_libs
=yes
20910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20911 soname_spec
='${libname}${release}${shared_ext}$major'
20912 shlibpath_var
=LD_LIBRARY_PATH
20913 hardcode_into_libs
=yes
20920 dynamic_linker
="$host_os runtime_loader"
20921 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20922 soname_spec
='${libname}${release}${shared_ext}$major'
20923 shlibpath_var
=LIBRARY_PATH
20924 shlibpath_overrides_runpath
=yes
20925 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20926 hardcode_into_libs
=yes
20929 hpux9
* | hpux10
* | hpux11
*)
20930 # Give a soname corresponding to the major version so that dld.sl refuses to
20931 # link against other versions.
20938 hardcode_into_libs
=yes
20939 dynamic_linker
="$host_os dld.so"
20940 shlibpath_var
=LD_LIBRARY_PATH
20941 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20943 soname_spec
='${libname}${release}${shared_ext}$major'
20944 if test "X$HPUX_IA64_MODE" = X32
; then
20945 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20947 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20949 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20953 hardcode_into_libs
=yes
20954 dynamic_linker
="$host_os dld.sl"
20955 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20956 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec
='${libname}${release}${shared_ext}$major'
20959 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20960 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20964 dynamic_linker
="$host_os dld.sl"
20965 shlibpath_var
=SHLIB_PATH
20966 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20968 soname_spec
='${libname}${release}${shared_ext}$major'
20971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20972 postinstall_cmds
='chmod 555 $lib'
20973 # or fails outright, so override atomically:
20974 install_override_mode
=555
20981 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20982 soname_spec
='${libname}${release}${shared_ext}$major'
20983 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20984 shlibpath_var
=LD_LIBRARY_PATH
20985 shlibpath_overrides_runpath
=no
20986 hardcode_into_libs
=yes
20989 irix5
* | irix6
* | nonstopux
*)
20991 nonstopux
*) version_type
=nonstopux
;;
20993 if test "$lt_cv_prog_gnu_ld" = yes; then
21001 soname_spec
='${libname}${release}${shared_ext}$major'
21002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21004 irix5
* | nonstopux
*)
21005 libsuff
= shlibsuff
=
21008 case $LD in # libtool.m4 will add one of these switches to LD
21009 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
21010 libsuff
= shlibsuff
= libmagic
=32-bit;;
21011 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
21012 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
21013 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
21014 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
21015 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
21019 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
21020 shlibpath_overrides_runpath
=no
21021 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21022 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
21023 hardcode_into_libs
=yes
21026 # No shared lib support for Linux oldld, aout, or coff.
21027 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
21031 # This must be Linux ELF.
21032 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
21036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21037 soname_spec
='${libname}${release}${shared_ext}$major'
21038 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21039 shlibpath_var
=LD_LIBRARY_PATH
21040 shlibpath_overrides_runpath
=no
21042 # Some binutils ld are patched to set DT_RUNPATH
21043 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
21044 $as_echo_n "(cached) " >&6
21046 lt_cv_shlibpath_overrides_runpath
=no
21047 save_LDFLAGS
=$LDFLAGS
21048 save_libdir
=$libdir
21049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h. */
21062 if ac_fn_cxx_try_link
"$LINENO"; then :
21063 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
21064 lt_cv_shlibpath_overrides_runpath
=yes
21067 rm -f core conftest.err conftest.
$ac_objext \
21068 conftest
$ac_exeext conftest.
$ac_ext
21069 LDFLAGS
=$save_LDFLAGS
21070 libdir
=$save_libdir
21074 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
21076 # This implies no fast_install, which is unacceptable.
21077 # Some rework will be needed to allow for fast_install
21078 # before this can be enabled.
21079 hardcode_into_libs
=yes
21081 # Append ld.so.conf contents to the search path
21082 if test -f /etc
/ld.so.conf
; then
21083 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' ' '`
21084 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
21087 # We used to test for /lib/ld.so.1 and disable shared libraries on
21088 # powerpc, because MkLinux only supported shared libraries with the
21089 # GNU dynamic linker. Since this was broken with cross compilers,
21090 # most powerpc-linux boxes support dynamic linking these days and
21091 # people can always --disable-shared, the test was removed, and we
21092 # assume the GNU/Linux dynamic linker is in use.
21093 dynamic_linker
='GNU/Linux ld.so'
21100 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
21101 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21102 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21103 dynamic_linker
='NetBSD (a.out) ld.so'
21105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21106 soname_spec
='${libname}${release}${shared_ext}$major'
21107 dynamic_linker
='NetBSD ld.elf_so'
21109 shlibpath_var
=LD_LIBRARY_PATH
21110 shlibpath_overrides_runpath
=yes
21111 hardcode_into_libs
=yes
21116 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21117 shlibpath_var
=LD_LIBRARY_PATH
21118 shlibpath_overrides_runpath
=yes
21125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21126 soname_spec
='${libname}${release}${shared_ext}$major'
21127 shlibpath_var
=LD_LIBRARY_PATH
21128 shlibpath_overrides_runpath
=no
21129 hardcode_into_libs
=yes
21130 dynamic_linker
='ldqnx.so'
21135 sys_lib_dlsearch_path_spec
="/usr/lib"
21137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21139 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
21140 *) need_version
=no
;;
21142 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21143 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21144 shlibpath_var
=LD_LIBRARY_PATH
21145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21147 openbsd2.
[89] | openbsd2.
[89].
*)
21148 shlibpath_overrides_runpath
=no
21151 shlibpath_overrides_runpath
=yes
21155 shlibpath_overrides_runpath
=yes
21160 libname_spec
='$name'
21163 library_names_spec
='$libname${shared_ext} $libname.a'
21164 dynamic_linker
='OS/2 ld.exe'
21165 shlibpath_var
=LIBPATH
21168 osf3
* | osf4
* | osf5
*)
21172 soname_spec
='${libname}${release}${shared_ext}$major'
21173 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21174 shlibpath_var
=LD_LIBRARY_PATH
21175 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21176 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
21187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21188 soname_spec
='${libname}${release}${shared_ext}$major'
21189 shlibpath_var
=LD_LIBRARY_PATH
21190 shlibpath_overrides_runpath
=yes
21191 hardcode_into_libs
=yes
21192 # ldd complains unless libraries are executable
21193 postinstall_cmds
='chmod +x $lib'
21198 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21199 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21200 shlibpath_var
=LD_LIBRARY_PATH
21201 shlibpath_overrides_runpath
=yes
21202 if test "$with_gnu_ld" = yes; then
21210 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21211 soname_spec
='${libname}${release}${shared_ext}$major'
21212 shlibpath_var
=LD_LIBRARY_PATH
21213 case $host_vendor in
21215 shlibpath_overrides_runpath
=no
21217 runpath_var
=LD_RUN_PATH
21225 shlibpath_overrides_runpath
=no
21226 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
21232 if test -d /usr
/nec
;then
21234 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21235 soname_spec
='$libname${shared_ext}.$major'
21236 shlibpath_var
=LD_LIBRARY_PATH
21240 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
21241 version_type
=freebsd-elf
21244 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21245 soname_spec
='${libname}${release}${shared_ext}$major'
21246 shlibpath_var
=LD_LIBRARY_PATH
21247 shlibpath_overrides_runpath
=yes
21248 hardcode_into_libs
=yes
21249 if test "$with_gnu_ld" = yes; then
21250 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21252 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
21255 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
21259 sys_lib_dlsearch_path_spec
='/usr/lib'
21263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21267 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21268 shlibpath_var
=LD_LIBRARY_PATH
21269 shlibpath_overrides_runpath
=no
21270 hardcode_into_libs
=yes
21275 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21276 soname_spec
='${libname}${release}${shared_ext}$major'
21277 shlibpath_var
=LD_LIBRARY_PATH
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21285 $as_echo "$dynamic_linker" >&6; }
21286 test "$dynamic_linker" = no
&& can_build_shared
=no
21288 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
21289 if test "$GCC" = yes; then
21290 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21293 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21294 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
21296 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21297 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21339 hardcode_action_CXX
=
21340 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21341 test -n "$runpath_var_CXX" ||
21342 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21344 # We can hardcode non-existent directories.
21345 if test "$hardcode_direct_CXX" != no
&&
21346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21347 # have to relink, otherwise we might link with an installed library
21348 # when we should be linking with a yet-to-be-installed one
21349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21350 test "$hardcode_minus_L_CXX" != no
; then
21351 # Linking always hardcodes the temporary library directory.
21352 hardcode_action_CXX
=relink
21354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21355 hardcode_action_CXX
=immediate
21358 # We cannot hardcode anything, or else we can only hardcode existing
21360 hardcode_action_CXX
=unsupported
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21363 $as_echo "$hardcode_action_CXX" >&6; }
21365 if test "$hardcode_action_CXX" = relink ||
21366 test "$inherit_rpath_CXX" = yes; then
21367 # Fast installation is not supported
21368 enable_fast_install
=no
21369 elif test "$shlibpath_overrides_runpath" = yes ||
21370 test "$enable_shared" = no
; then
21371 # Fast installation is not necessary
21372 enable_fast_install
=needless
21381 fi # test -n "$compiler"
21387 with_gnu_ld
=$lt_save_with_gnu_ld
21388 lt_cv_path_LDCXX
=$lt_cv_path_LD
21389 lt_cv_path_LD
=$lt_save_path_LD
21390 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
21391 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
21392 fi # test "$_lt_caught_CXX_error" != yes
21395 ac_cpp
='$CPP $CPPFLAGS'
21396 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21397 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21398 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21415 # Only expand once:
21421 # Identify the assembler which will work hand-in-glove with the newly
21422 # built GCC, so that we can examine its features. This is the assembler
21423 # which will be driven by the driver program.
21425 # If build != host, and we aren't building gas in-tree, we identify a
21426 # build->target assembler and hope that it will have the same features
21427 # as the host->target assembler we'll be using.
21428 gcc_cv_gas_major_version
=
21429 gcc_cv_gas_minor_version
=
21430 gcc_cv_as_gas_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21432 if test "${gcc_cv_as+set}" = set; then :
21436 if test -x "$DEFAULT_ASSEMBLER"; then
21437 gcc_cv_as
="$DEFAULT_ASSEMBLER"
21438 elif test -f $gcc_cv_as_gas_srcdir/configure.
in \
21439 && test -f ..
/gas
/Makefile \
21440 && test x
$build = x
$host; then
21441 gcc_cv_as
=..
/gas
/as-new
$build_exeext
21442 elif test -x as
$build_exeext; then
21443 # Build using assembler in the current directory.
21444 gcc_cv_as
=.
/as
$build_exeext
21445 elif ( set dummy
$AS_FOR_TARGET; test -x $2 ); then
21446 gcc_cv_as
="$AS_FOR_TARGET"
21448 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21449 set dummy
$AS_FOR_TARGET; ac_word
=$2
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21451 $as_echo_n "checking for $ac_word... " >&6; }
21452 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21453 $as_echo_n "(cached) " >&6
21457 ac_cv_path_gcc_cv_as
="$gcc_cv_as" # Let the user override the test with a path.
21460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21461 for as_dir
in $PATH
21464 test -z "$as_dir" && as_dir
=.
21465 for ac_exec_ext
in '' $ac_executable_extensions; do
21466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21467 ac_cv_path_gcc_cv_as
="$as_dir/$ac_word$ac_exec_ext"
21468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21478 gcc_cv_as
=$ac_cv_path_gcc_cv_as
21479 if test -n "$gcc_cv_as"; then
21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21481 $as_echo "$gcc_cv_as" >&6; }
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21484 $as_echo "no" >&6; }
21491 ORIGINAL_AS_FOR_TARGET
=$gcc_cv_as
21493 case "$ORIGINAL_AS_FOR_TARGET" in
21494 .
/as | .
/as
$build_exeext) ;;
21495 *) ac_config_files
="$ac_config_files as:exec-tool.in"
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21500 $as_echo_n "checking what assembler to use... " >&6; }
21501 if test "$gcc_cv_as" = ..
/gas
/as-new
$build_exeext; then
21502 # Single tree build which includes gas. We want to prefer it
21503 # over whatever linker top-level may have detected, since
21504 # we'll use what we're building after installation anyway.
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21506 $as_echo "newly built gas" >&6; }
21508 gcc_cv_as_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21509 for f
in $gcc_cv_as_bfd_srcdir/configure \
21510 $gcc_cv_as_gas_srcdir/configure \
21511 $gcc_cv_as_gas_srcdir/configure.
in \
21512 $gcc_cv_as_gas_srcdir/Makefile.
in ; do
21513 gcc_cv_gas_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21514 if test x
$gcc_cv_gas_version != x
; then
21518 case $gcc_cv_gas_version in
21520 *) as_fn_error
"cannot find version of in-tree assembler" "$LINENO" 5;;
21522 gcc_cv_gas_major_version
=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21523 gcc_cv_gas_minor_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21524 gcc_cv_gas_patch_version
=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21525 case $gcc_cv_gas_patch_version in
21526 "") gcc_cv_gas_patch_version
="0" ;;
21528 gcc_cv_gas_vers
=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21529 + $gcc_cv_gas_minor_version \) \* 1000 \
21530 + $gcc_cv_gas_patch_version`
21532 in_tree_gas_is_elf
=no
21533 if grep 'obj_format = elf' ..
/gas
/Makefile
> /dev
/null \
21534 ||
(grep 'obj_format = multi' ..
/gas
/Makefile \
21535 && grep 'extra_objects =.* obj-elf' ..
/gas
/Makefile
) > /dev
/null
21537 in_tree_gas_is_elf
=yes
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21541 $as_echo "$gcc_cv_as" >&6; }
21546 # Check whether --enable-ld was given.
21547 if test "${enable_ld+set}" = set; then :
21548 enableval
=$enable_ld; case "${enableval}" in
21556 install_gold_as_default
=no
21557 # Check whether --enable-gold was given.
21558 if test "${enable_gold+set}" = set; then :
21559 enableval
=$enable_gold; case "${enableval}" in
21561 install_gold_as_default
=yes
21564 if test x
${default_ld} != x
; then
21565 install_gold_as_default
=yes
21571 as_fn_error
"invalid --enable-gold argument" "$LINENO" 5
21577 # Identify the linker which will work hand-in-glove with the newly
21578 # built GCC, so that we can examine its features. This is the linker
21579 # which will be driven by the driver program.
21581 # If build != host, and we aren't building gas in-tree, we identify a
21582 # build->target linker and hope that it will have the same features
21583 # as the host->target linker we'll be using.
21584 gcc_cv_gld_major_version
=
21585 gcc_cv_gld_minor_version
=
21586 gcc_cv_ld_gld_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21587 gcc_cv_ld_gold_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/gold
21588 gcc_cv_ld_bfd_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21590 if test "${gcc_cv_ld+set}" = set; then :
21594 if test -x "$DEFAULT_LINKER"; then
21595 gcc_cv_ld
="$DEFAULT_LINKER"
21596 elif test $install_gold_as_default = yes \
21597 && test -f $gcc_cv_ld_gold_srcdir/configure.ac \
21598 && test -f ..
/gold
/Makefile \
21599 && test x
$build = x
$host; then
21600 gcc_cv_ld
=..
/gold
/ld-new
$build_exeext
21601 elif test -f $gcc_cv_ld_gld_srcdir/configure.
in \
21602 && test -f ..
/ld
/Makefile \
21603 && test x
$build = x
$host; then
21604 gcc_cv_ld
=..
/ld
/ld-new
$build_exeext
21605 elif test -x collect-ld
$build_exeext; then
21606 # Build using linker in the current directory.
21607 gcc_cv_ld
=.
/collect-ld
$build_exeext
21608 elif ( set dummy
$LD_FOR_TARGET; test -x $2 ); then
21609 gcc_cv_ld
="$LD_FOR_TARGET"
21611 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21612 set dummy
$LD_FOR_TARGET; ac_word
=$2
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21614 $as_echo_n "checking for $ac_word... " >&6; }
21615 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21616 $as_echo_n "(cached) " >&6
21620 ac_cv_path_gcc_cv_ld
="$gcc_cv_ld" # Let the user override the test with a path.
21623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21624 for as_dir
in $PATH
21627 test -z "$as_dir" && as_dir
=.
21628 for ac_exec_ext
in '' $ac_executable_extensions; do
21629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21630 ac_cv_path_gcc_cv_ld
="$as_dir/$ac_word$ac_exec_ext"
21631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21641 gcc_cv_ld
=$ac_cv_path_gcc_cv_ld
21642 if test -n "$gcc_cv_ld"; then
21643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21644 $as_echo "$gcc_cv_ld" >&6; }
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21647 $as_echo "no" >&6; }
21654 ORIGINAL_PLUGIN_LD_FOR_TARGET
=$gcc_cv_ld
21655 PLUGIN_LD_SUFFIX
=`basename $gcc_cv_ld | sed -e "s,$target_alias-,,"`
21656 # if the PLUGIN_LD is set ld-new, just have it as ld
21657 # as that is the installed named.
21658 if test x
$PLUGIN_LD_SUFFIX = xld-new \
21659 ||
test x
$PLUGIN_LD_SUFFIX = xcollect-ld
; then
21660 PLUGIN_LD_SUFFIX
=ld
21663 # Check whether --with-plugin-ld was given.
21664 if test "${with_plugin_ld+set}" = set; then :
21665 withval
=$with_plugin_ld; if test x
"$withval" != x
; then
21666 ORIGINAL_PLUGIN_LD_FOR_TARGET
="$withval"
21667 PLUGIN_LD_SUFFIX
=`echo $withval | sed -e "s,$target_alias-,,"`
21673 cat >>confdefs.h
<<_ACEOF
21674 #define PLUGIN_LD_SUFFIX "$PLUGIN_LD_SUFFIX"
21678 # Check to see if we are using gold instead of ld
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21680 $as_echo_n "checking whether we are using gold... " >&6; }
21682 if test x
$gcc_cv_ld != x
; then
21683 if $gcc_cv_ld --version 2>/dev
/null |
sed 1q \
21684 |
grep "GNU gold" > /dev
/null
; then
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21689 $as_echo "$ld_is_gold" >&6; }
21691 ORIGINAL_LD_FOR_TARGET
=$gcc_cv_ld
21693 case "$ORIGINAL_LD_FOR_TARGET" in
21694 .
/collect-ld | .
/collect-ld
$build_exeext) ;;
21695 *) ac_config_files
="$ac_config_files collect-ld:exec-tool.in"
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21700 $as_echo_n "checking what linker to use... " >&6; }
21701 if test "$gcc_cv_ld" = ..
/ld
/ld-new
$build_exeext \
21702 ||
test "$gcc_cv_ld" = ..
/gold
/ld-new
$build_exeext; then
21703 # Single tree build which includes ld. We want to prefer it
21704 # over whatever linker top-level may have detected, since
21705 # we'll use what we're building after installation anyway.
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21707 $as_echo "newly built ld" >&6; }
21709 in_tree_ld_is_elf
=no
21710 if (grep 'EMUL = .*elf' ..
/ld
/Makefile \
21711 ||
grep 'EMUL = .*linux' ..
/ld
/Makefile \
21712 ||
grep 'EMUL = .*lynx' ..
/ld
/Makefile
) > /dev
/null
; then
21713 in_tree_ld_is_elf
=yes
21714 elif test "$ld_is_gold" = yes; then
21715 in_tree_ld_is_elf
=yes
21717 for f
in $gcc_cv_ld_bfd_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure
$gcc_cv_ld_gld_srcdir/configure.
in $gcc_cv_ld_gld_srcdir/Makefile.
in
21719 gcc_cv_gld_version
=`sed -n -e 's/^[ ]*VERSION=[^0-9A-Za-z_]*\([0-9]*\.[0-9]*.*\)/VERSION=\1/p' < $f`
21720 if test x
$gcc_cv_gld_version != x
; then
21724 case $gcc_cv_gld_version in
21726 *) as_fn_error
"cannot find version of in-tree linker" "$LINENO" 5 ;;
21728 gcc_cv_gld_major_version
=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21729 gcc_cv_gld_minor_version
=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21730 ORIGINAL_LD_BFD_FOR_TARGET
=..
/ld
/ld-new
$build_exeext
21731 ORIGINAL_LD_GOLD_FOR_TARGET
=..
/gold
/ld-new
$build_exeext
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21734 $as_echo "$gcc_cv_ld" >&6; }
21736 gcc_cvs_ld_program
=`dirname $gcc_cv_ld`/`basename $gcc_cv_ld $host_exeext`
21737 ORIGINAL_LD_BFD_FOR_TARGET
=${gcc_cvs_ld_program}.bfd
$host_exeext
21738 ORIGINAL_LD_GOLD_FOR_TARGET
=${gcc_cvs_ld_program}.gold
$host_exeext
21744 # Figure out what nm we will be using.
21745 gcc_cv_binutils_srcdir
=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21746 if test "${gcc_cv_nm+set}" = set; then :
21750 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21751 && test -f ..
/binutils
/Makefile \
21752 && test x
$build = x
$host; then
21753 gcc_cv_nm
=..
/binutils
/nm-new
$build_exeext
21754 elif test -x nm
$build_exeext; then
21755 gcc_cv_nm
=.
/nm
$build_exeext
21756 elif ( set dummy
$NM_FOR_TARGET; test -x $2 ); then
21757 gcc_cv_nm
="$NM_FOR_TARGET"
21759 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21760 set dummy
$NM_FOR_TARGET; ac_word
=$2
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21762 $as_echo_n "checking for $ac_word... " >&6; }
21763 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21768 ac_cv_path_gcc_cv_nm
="$gcc_cv_nm" # Let the user override the test with a path.
21771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21772 for as_dir
in $PATH
21775 test -z "$as_dir" && as_dir
=.
21776 for ac_exec_ext
in '' $ac_executable_extensions; do
21777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21778 ac_cv_path_gcc_cv_nm
="$as_dir/$ac_word$ac_exec_ext"
21779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21789 gcc_cv_nm
=$ac_cv_path_gcc_cv_nm
21790 if test -n "$gcc_cv_nm"; then
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21792 $as_echo "$gcc_cv_nm" >&6; }
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21795 $as_echo "no" >&6; }
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21803 $as_echo_n "checking what nm to use... " >&6; }
21804 if test "$gcc_cv_nm" = ..
/binutils
/nm-new
$build_exeext; then
21805 # Single tree build which includes binutils.
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21807 $as_echo "newly built nm" >&6; }
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21811 $as_echo "$gcc_cv_nm" >&6; }
21815 ORIGINAL_NM_FOR_TARGET
=$gcc_cv_nm
21817 case "$ORIGINAL_NM_FOR_TARGET" in
21818 .
/nm | .
/nm
$build_exeext) ;;
21819 *) ac_config_files
="$ac_config_files nm:exec-tool.in"
21824 # Figure out what objdump we will be using.
21825 if test "${gcc_cv_objdump+set}" = set; then :
21829 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21830 && test -f ..
/binutils
/Makefile \
21831 && test x
$build = x
$host; then
21832 # Single tree build which includes binutils.
21833 gcc_cv_objdump
=..
/binutils
/objdump
$build_exeext
21834 elif test -x objdump
$build_exeext; then
21835 gcc_cv_objdump
=.
/objdump
$build_exeext
21836 elif ( set dummy
$OBJDUMP_FOR_TARGET; test -x $2 ); then
21837 gcc_cv_objdump
="$OBJDUMP_FOR_TARGET"
21839 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21840 set dummy
$OBJDUMP_FOR_TARGET; ac_word
=$2
21841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21842 $as_echo_n "checking for $ac_word... " >&6; }
21843 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21844 $as_echo_n "(cached) " >&6
21846 case $gcc_cv_objdump in
21848 ac_cv_path_gcc_cv_objdump
="$gcc_cv_objdump" # Let the user override the test with a path.
21851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21852 for as_dir
in $PATH
21855 test -z "$as_dir" && as_dir
=.
21856 for ac_exec_ext
in '' $ac_executable_extensions; do
21857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21858 ac_cv_path_gcc_cv_objdump
="$as_dir/$ac_word$ac_exec_ext"
21859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21869 gcc_cv_objdump
=$ac_cv_path_gcc_cv_objdump
21870 if test -n "$gcc_cv_objdump"; then
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21872 $as_echo "$gcc_cv_objdump" >&6; }
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875 $as_echo "no" >&6; }
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21883 $as_echo_n "checking what objdump to use... " >&6; }
21884 if test "$gcc_cv_objdump" = ..
/binutils
/objdump
$build_exeext; then
21885 # Single tree build which includes binutils.
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21887 $as_echo "newly built objdump" >&6; }
21888 elif test x
$gcc_cv_objdump = x
; then
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21890 $as_echo "not found" >&6; }
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21893 $as_echo "$gcc_cv_objdump" >&6; }
21896 # Figure out what readelf we will be using.
21897 if test "${gcc_cv_readelf+set}" = set; then :
21901 if test -f $gcc_cv_binutils_srcdir/configure.
in \
21902 && test -f ..
/binutils
/Makefile \
21903 && test x
$build = x
$host; then
21904 # Single tree build which includes binutils.
21905 gcc_cv_readelf
=..
/binutils
/readelf
$build_exeext
21906 elif test -x readelf
$build_exeext; then
21907 gcc_cv_readelf
=.
/readelf
$build_exeext
21909 # Extract the first word of "readelf", so it can be a program name with args.
21910 set dummy readelf
; ac_word
=$2
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21912 $as_echo_n "checking for $ac_word... " >&6; }
21913 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21916 case $gcc_cv_readelf in
21918 ac_cv_path_gcc_cv_readelf
="$gcc_cv_readelf" # Let the user override the test with a path.
21921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21922 for as_dir
in $PATH
21925 test -z "$as_dir" && as_dir
=.
21926 for ac_exec_ext
in '' $ac_executable_extensions; do
21927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21928 ac_cv_path_gcc_cv_readelf
="$as_dir/$ac_word$ac_exec_ext"
21929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21939 gcc_cv_readelf
=$ac_cv_path_gcc_cv_readelf
21940 if test -n "$gcc_cv_readelf"; then
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21942 $as_echo "$gcc_cv_readelf" >&6; }
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21945 $as_echo "no" >&6; }
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21953 $as_echo_n "checking what readelf to use... " >&6; }
21954 if test "$gcc_cv_readelf" = ..
/binutils
/readelf
$build_exeext; then
21955 # Single tree build which includes binutils.
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21957 $as_echo "newly built readelf" >&6; }
21958 elif test x
$gcc_cv_readelf = x
; then
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21960 $as_echo "not found" >&6; }
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21963 $as_echo "$gcc_cv_readelf" >&6; }
21966 # Figure out what assembler alignment features are present.
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21968 $as_echo_n "checking assembler flags... " >&6; }
21969 if test "${gcc_cv_as_flags+set}" = set; then :
21970 $as_echo_n "(cached) " >&6
21973 i
[34567]86-*-linux*)
21974 gcc_cv_as_flags
=--32
21976 x86_64-
*-linux-gnux32)
21977 gcc_cv_as_flags
=--x32
21980 gcc_cv_as_flags
=--64
21982 powerpc
*-*-darwin*)
21983 gcc_cv_as_flags
="-arch ppc"
21986 gcc_cv_as_flags
=" "
21990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21991 $as_echo "$gcc_cv_as_flags" >&6; }
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21994 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21995 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21996 $as_echo_n "(cached) " >&6
21998 gcc_cv_as_balign_and_p2align
=no
21999 if test $in_tree_gas = yes; then
22000 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
22001 then gcc_cv_as_balign_and_p2align
=yes
22003 elif test x
$gcc_cv_as != x
; then
22004 $as_echo '.balign 4
22005 .p2align 2' > conftest.s
22006 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22008 (eval $ac_try) 2>&5
22010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22011 test $ac_status = 0; }; }
22013 gcc_cv_as_balign_and_p2align
=yes
22015 echo "configure: failed program was" >&5
22018 rm -f conftest.o conftest.s
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
22022 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
22023 if test $gcc_cv_as_balign_and_p2align = yes; then
22025 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
22030 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
22031 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22034 gcc_cv_as_max_skip_p2align
=no
22035 if test $in_tree_gas = yes; then
22036 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22037 then gcc_cv_as_max_skip_p2align
=yes
22039 elif test x
$gcc_cv_as != x
; then
22040 $as_echo '.p2align 4,,7' > conftest.s
22041 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22043 (eval $ac_try) 2>&5
22045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22046 test $ac_status = 0; }; }
22048 gcc_cv_as_max_skip_p2align
=yes
22050 echo "configure: failed program was" >&5
22053 rm -f conftest.o conftest.s
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
22057 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
22058 if test $gcc_cv_as_max_skip_p2align = yes; then
22060 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
22065 $as_echo_n "checking assembler for .literal16... " >&6; }
22066 if test "${gcc_cv_as_literal16+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22069 gcc_cv_as_literal16
=no
22070 if test $in_tree_gas = yes; then
22071 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
22072 then gcc_cv_as_literal16
=yes
22074 elif test x
$gcc_cv_as != x
; then
22075 $as_echo '.literal16' > conftest.s
22076 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22078 (eval $ac_try) 2>&5
22080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22081 test $ac_status = 0; }; }
22083 gcc_cv_as_literal16
=yes
22085 echo "configure: failed program was" >&5
22088 rm -f conftest.o conftest.s
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
22092 $as_echo "$gcc_cv_as_literal16" >&6; }
22093 if test $gcc_cv_as_literal16 = yes; then
22095 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
22100 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
22101 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
22102 $as_echo_n "(cached) " >&6
22104 gcc_cv_as_subsection_m1
=no
22105 if test $in_tree_gas = yes; then
22106 if test $in_tree_gas_is_elf = yes \
22107 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
22108 then gcc_cv_as_subsection_m1
=yes
22110 elif test x
$gcc_cv_as != x
; then
22111 $as_echo 'conftest_label1: .word 0
22113 conftest_label2: .word 0
22114 .previous' > conftest.s
22115 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22117 (eval $ac_try) 2>&5
22119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22120 test $ac_status = 0; }; }
22122 if test x
$gcc_cv_nm != x
; then
22123 $gcc_cv_nm conftest.o |
grep conftest_label1
> conftest.nm1
22124 $gcc_cv_nm conftest.o |
grep conftest_label2 |
sed -e 's/label2/label1/' > conftest.nm2
22125 if cmp conftest.nm1 conftest.nm2
> /dev
/null
2>&1
22127 else gcc_cv_as_subsection_m1
=yes
22129 rm -f conftest.nm1 conftest.nm2
22132 echo "configure: failed program was" >&5
22135 rm -f conftest.o conftest.s
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
22139 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
22140 if test $gcc_cv_as_subsection_m1 = yes; then
22142 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
22147 $as_echo_n "checking assembler for .weak... " >&6; }
22148 if test "${gcc_cv_as_weak+set}" = set; then :
22149 $as_echo_n "(cached) " >&6
22152 if test $in_tree_gas = yes; then
22153 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
22154 then gcc_cv_as_weak
=yes
22156 elif test x
$gcc_cv_as != x
; then
22157 $as_echo ' .weak foobar' > conftest.s
22158 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22160 (eval $ac_try) 2>&5
22162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22163 test $ac_status = 0; }; }
22167 echo "configure: failed program was" >&5
22170 rm -f conftest.o conftest.s
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
22174 $as_echo "$gcc_cv_as_weak" >&6; }
22175 if test $gcc_cv_as_weak = yes; then
22177 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
22182 $as_echo_n "checking assembler for .weakref... " >&6; }
22183 if test "${gcc_cv_as_weakref+set}" = set; then :
22184 $as_echo_n "(cached) " >&6
22186 gcc_cv_as_weakref
=no
22187 if test $in_tree_gas = yes; then
22188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22189 then gcc_cv_as_weakref
=yes
22191 elif test x
$gcc_cv_as != x
; then
22192 $as_echo ' .weakref foobar, barfnot' > conftest.s
22193 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22195 (eval $ac_try) 2>&5
22197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22198 test $ac_status = 0; }; }
22200 gcc_cv_as_weakref
=yes
22202 echo "configure: failed program was" >&5
22205 rm -f conftest.o conftest.s
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
22209 $as_echo "$gcc_cv_as_weakref" >&6; }
22210 if test $gcc_cv_as_weakref = yes; then
22212 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
22217 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
22218 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
22219 $as_echo_n "(cached) " >&6
22221 gcc_cv_as_nsubspa_comdat
=no
22222 if test $in_tree_gas = yes; then
22223 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22224 then gcc_cv_as_nsubspa_comdat
=yes
22226 elif test x
$gcc_cv_as != x
; then
22227 $as_echo ' .SPACE $TEXT$
22228 .NSUBSPA $CODE$,COMDAT' > conftest.s
22229 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22231 (eval $ac_try) 2>&5
22233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22234 test $ac_status = 0; }; }
22236 gcc_cv_as_nsubspa_comdat
=yes
22238 echo "configure: failed program was" >&5
22241 rm -f conftest.o conftest.s
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
22245 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
22246 if test $gcc_cv_as_nsubspa_comdat = yes; then
22248 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
22252 # .hidden needs to be supported in both the assembler and the linker,
22253 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
22254 # This is irritatingly difficult to feature test for; we have to check the
22255 # date string after the version number. If we've got an in-tree
22256 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
22258 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
22260 $as_echo_n "checking assembler for .hidden... " >&6; }
22261 if test "${gcc_cv_as_hidden+set}" = set; then :
22262 $as_echo_n "(cached) " >&6
22264 gcc_cv_as_hidden
=no
22265 if test $in_tree_gas = yes; then
22266 if test $in_tree_gas_is_elf = yes \
22267 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
22268 then gcc_cv_as_hidden
=yes
22270 elif test x
$gcc_cv_as != x
; then
22271 $as_echo ' .hidden foobar
22272 foobar:' > conftest.s
22273 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22275 (eval $ac_try) 2>&5
22277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22278 test $ac_status = 0; }; }
22280 gcc_cv_as_hidden
=yes
22282 echo "configure: failed program was" >&5
22285 rm -f conftest.o conftest.s
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
22289 $as_echo "$gcc_cv_as_hidden" >&6; }
22291 case "${target}" in
22293 # Darwin as has some visibility support, though with a different syntax.
22294 gcc_cv_as_hidden
=yes
22298 # gnu_indirect_function type is an extension proposed at
22299 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
22300 # selection of function implementation
22301 # Check whether --enable-gnu-indirect-function was given.
22302 if test "${enable_gnu_indirect_function+set}" = set; then :
22303 enableval
=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
22305 *) as_fn_error
"'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
22306 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
22309 enable_gnu_indirect_function
="$default_gnu_indirect_function"
22313 gif
=`if test x$enable_gnu_indirect_function = xyes; then echo 1; else echo 0; fi`
22315 cat >>confdefs.h
<<_ACEOF
22316 #define HAVE_GNU_INDIRECT_FUNCTION $gif
22321 if test $in_tree_ld != yes ; then
22322 ld_ver
=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
22323 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22324 if test x
"$ld_is_gold" = xyes
; then
22325 # GNU gold --version looks like this:
22327 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
22329 # We extract the binutils version which is more familiar and specific
22330 # than the gold version.
22331 ld_vers
=`echo $ld_ver | sed -n \
22332 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
22334 # GNU ld --version looks like this:
22336 # GNU ld (GNU Binutils) 2.21.51.20110225
22337 ld_vers
=`echo $ld_ver | sed -n \
22338 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22340 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'`
22341 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22342 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22343 ld_vers_patch
=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
22345 case "${target}" in
22347 # See acinclude.m4 (gcc_SUN_LD_VERSION) for the version number
22350 # Don't reuse gcc_gv_sun_ld_vers_* in case a linker other than
22351 # /usr/ccs/bin/ld has been configured.
22352 ld_ver
=`$gcc_cv_ld -V 2>&1`
22353 if echo "$ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22354 ld_vers
=`echo $ld_ver | sed -n \
22355 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22356 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
22357 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
22365 $as_echo_n "checking linker for .hidden support... " >&6; }
22366 if test "${gcc_cv_ld_hidden+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22369 if test $in_tree_ld = yes ; then
22370 gcc_cv_ld_hidden
=no
22371 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 \
22372 && test $in_tree_ld_is_elf = yes; then
22373 gcc_cv_ld_hidden
=yes
22376 gcc_cv_ld_hidden
=yes
22377 if test x
"$ld_is_gold" = xyes
; then
22379 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
22380 case "${target}" in
22381 mmix-knuth-mmixware
)
22382 # The linker emits by default mmo, not ELF, so "no" is appropriate.
22383 gcc_cv_ld_hidden
=no
22386 if test 0"$ld_date" -lt 20020404; then
22387 if test -n "$ld_date"; then
22388 # If there was date string, but was earlier than 2002-04-04, fail
22389 gcc_cv_ld_hidden
=no
22390 elif test -z "$ld_vers"; then
22391 # If there was no date string nor ld version number, something is wrong
22392 gcc_cv_ld_hidden
=no
22394 test -z "$ld_vers_patch" && ld_vers_patch
=0
22395 if test "$ld_vers_major" -lt 2; then
22396 gcc_cv_ld_hidden
=no
22397 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
22398 gcc_cv_ld_hidden
="no"
22399 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
22400 gcc_cv_ld_hidden
=no
22405 case "${target}" in
22407 # Darwin ld has some visibility support.
22408 gcc_cv_ld_hidden
=yes
22410 hppa64
*-*-hpux* | ia64
*-*-hpux*)
22411 gcc_cv_ld_hidden
=yes
22413 *-*-solaris2.1
[0-9]*)
22414 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
22415 # .symbolic was only added in Solaris 9 12/02.
22416 gcc_cv_ld_hidden
=yes
22419 gcc_cv_ld_hidden
=no
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
22426 $as_echo "$gcc_cv_ld_hidden" >&6; }
22427 libgcc_visibility
=no
22430 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
22431 libgcc_visibility
=yes
22433 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
22438 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
22439 gcc_cv_ld_ro_rw_mix
=unknown
22440 if test $in_tree_ld = yes ; then
22441 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 \
22442 && test $in_tree_ld_is_elf = yes; then
22443 gcc_cv_ld_ro_rw_mix
=read-write
22445 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22446 echo '.section myfoosect, "a"' > conftest1.s
22447 echo '.section myfoosect, "aw"' > conftest2.s
22448 echo '.byte 1' >> conftest2.s
22449 echo '.section myfoosect, "a"' > conftest3.s
22450 echo '.byte 0' >> conftest3.s
22451 if $gcc_cv_as -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
22452 && $gcc_cv_as -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
22453 && $gcc_cv_as -o conftest3.o conftest3.s
> /dev
/null
2>&1 \
22454 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
22455 conftest2.o conftest3.o
> /dev
/null
2>&1; then
22456 gcc_cv_ld_ro_rw_mix
=`$gcc_cv_objdump -h conftest1.so \
22457 | sed -e '/myfoosect/!d' -e N`
22458 if echo "$gcc_cv_ld_ro_rw_mix" |
grep CONTENTS
> /dev
/null
; then
22459 if echo "$gcc_cv_ld_ro_rw_mix" |
grep READONLY
> /dev
/null
; then
22460 gcc_cv_ld_ro_rw_mix
=read-only
22462 gcc_cv_ld_ro_rw_mix
=read-write
22466 rm -f conftest.
* conftest
[123].
*
22468 if test x
$gcc_cv_ld_ro_rw_mix = xread-write
; then
22470 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22474 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22476 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22477 case "${target}" in
22480 # Solaris 2 ld -V output looks like this for a regular version:
22482 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
22484 # but test versions add stuff at the end:
22486 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
22488 gcc_cv_sun_ld_ver
=`/usr/ccs/bin/ld -V 2>&1`
22489 if echo "$gcc_cv_sun_ld_ver" |
grep 'Solaris Link Editors' > /dev
/null
; then
22490 gcc_cv_sun_ld_vers
=`echo $gcc_cv_sun_ld_ver | sed -n \
22491 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
22492 gcc_cv_sun_ld_vers_major
=`expr "$gcc_cv_sun_ld_vers" : '\([0-9]*\)'`
22493 gcc_cv_sun_ld_vers_minor
=`expr "$gcc_cv_sun_ld_vers" : '[0-9]*\.\([0-9]*\)'`
22499 # Check whether --enable-initfini-array was given.
22500 if test "${enable_initfini_array+set}" = set; then :
22501 enableval
=$enable_initfini_array;
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
22505 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
22506 if test "${gcc_cv_initfini_array+set}" = set; then :
22507 $as_echo_n "(cached) " >&6
22509 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
22510 case "${target}" in
22512 if test "$cross_compiling" = yes; then :
22513 gcc_cv_initfini_array
=no
22515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22516 /* end confdefs.h. */
22519 #error Not an ELF OS
22521 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
22522 if it can be used. */
22524 int main (void) { return x; }
22525 int foo (void) { x = 0; }
22526 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
22529 if ac_fn_c_try_run
"$LINENO"; then :
22530 gcc_cv_initfini_array
=yes
22532 gcc_cv_initfini_array
=no
22534 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22535 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22539 gcc_cv_initfini_array
=no
22540 if test $in_tree_ld = yes ; then
22541 if test "$gcc_cv_gld_major_version" -eq 2 \
22542 -a "$gcc_cv_gld_minor_version" -ge 22 \
22543 -o "$gcc_cv_gld_major_version" -gt 2 \
22544 && test $in_tree_ld_is_elf = yes; then
22545 gcc_cv_initfini_array
=yes
22547 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
22548 cat > conftest.s
<<\EOF
22549 .section .dtors
,"a",%progbits
22551 .byte
'A', 'A', 'A', 'A'
22552 .section .ctors
,"a",%progbits
22554 .byte
'B', 'B', 'B', 'B'
22555 .section .fini_array
.65530,"a",%progbits
22557 .byte
'C', 'C', 'C', 'C'
22558 .section .init_array
.65530,"a",%progbits
22560 .byte
'D', 'D', 'D', 'D'
22561 .section .dtors
.64528,"a",%progbits
22563 .byte
'E', 'E', 'E', 'E'
22564 .section .ctors
.64528,"a",%progbits
22566 .byte
'F', 'F', 'F', 'F'
22567 .section .fini_array
.01005,"a",%progbits
22569 .byte
'G', 'G', 'G', 'G'
22570 .section .init_array
.01005,"a",%progbits
22572 .byte
'H', 'H', 'H', 'H'
22577 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1 \
22578 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1 \
22579 && $gcc_cv_objdump -s -j .init_array conftest \
22580 |
grep HHHHFFFFDDDDBBBB
> /dev
/null
2>&1 \
22581 && $gcc_cv_objdump -s -j .fini_array conftest \
22582 |
grep GGGGEEEECCCCAAAA
> /dev
/null
2>&1; then
22583 gcc_cv_initfini_array
=yes
22585 rm -f conftest conftest.
*
22587 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22591 # error Not an ELF OS
22593 #include <stdlib.h>
22594 #if defined __GLIBC_PREREQ
22595 # if __GLIBC_PREREQ (2, 4)
22597 # error GLIBC 2.4 required
22600 # if defined __sun__ && defined __svr4__
22601 /* Solaris ld.so.1 supports .init_array/.fini_array since Solaris 8. */
22603 # error The C library not known to support .init_array/.fini_array
22608 if ac_fn_c_try_cpp
"$LINENO"; then :
22611 gcc_cv_initfini_array
=no
22613 rm -f conftest.err conftest.
$ac_ext;;
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
22617 $as_echo_n "checking cross compile... guessing... " >&6; }
22618 gcc_cv_initfini_array
=no
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
22622 $as_echo "$gcc_cv_initfini_array" >&6; }
22623 enable_initfini_array
=$gcc_cv_initfini_array
22627 if test $enable_initfini_array = yes; then
22629 $as_echo "#define HAVE_INITFINI_ARRAY_SUPPORT 1" >>confdefs.h
22633 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22635 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22636 if test "${gcc_cv_as_leb128+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22639 gcc_cv_as_leb128
=no
22640 if test $in_tree_gas = yes; then
22641 if test $in_tree_gas_is_elf = yes \
22642 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22643 then gcc_cv_as_leb128
=yes
22645 elif test x
$gcc_cv_as != x
; then
22652 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22654 (eval $ac_try) 2>&5
22656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22657 test $ac_status = 0; }; }
22659 # GAS versions before 2.11 do not support uleb128,
22660 # despite appearing to.
22661 # ??? There exists an elf-specific test that will crash
22662 # the assembler. Perhaps it's better to figure out whether
22663 # arbitrary sections are supported and try the test.
22664 as_ver
=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22665 if echo "$as_ver" |
grep GNU
> /dev
/null
; then
22666 as_vers
=`echo $as_ver | sed -n \
22667 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22668 as_major
=`expr "$as_vers" : '\([0-9]*\)'`
22669 as_minor
=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22670 if test $as_major -eq 2 && test $as_minor -lt 11
22672 else gcc_cv_as_leb128
=yes
22676 echo "configure: failed program was" >&5
22679 rm -f conftest.o conftest.s
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22683 $as_echo "$gcc_cv_as_leb128" >&6; }
22684 if test $gcc_cv_as_leb128 = yes; then
22686 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22690 # Check if we have assembler support for unwind directives.
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22692 $as_echo_n "checking assembler for cfi directives... " >&6; }
22693 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22694 $as_echo_n "(cached) " >&6
22696 gcc_cv_as_cfi_directive
=no
22697 if test x
$gcc_cv_as != x
; then
22703 .cfi_escape 1, 2, 3, 4, 5
22704 .cfi_endproc' > conftest.s
22705 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22707 (eval $ac_try) 2>&5
22709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22710 test $ac_status = 0; }; }
22714 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22715 # read-only and read-write sections, we need to make sure that the
22716 # assembler used emits read-write .eh_frame sections.
22717 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write
; then
22718 if test "x$gcc_cv_objdump" != x
; then
22719 if $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22720 sed -e /.eh_frame
/!d
-e N |
grep READONLY
> /dev
/null
; then
22721 gcc_cv_as_cfi_directive
=no
22724 i?
86-*-solaris2.1
[0-9]* | x86_64-
*-solaris2.1
[0-9]*)
22725 # On Solaris/x86, make sure that GCC and assembler agree on using
22726 # read-only .eh_frame sections for 64-bit.
22727 if test x
$gas = xyes
; then
22728 as_ix86_64_opt
="--64"
22730 as_ix86_64_opt
="-xarch=amd64"
22732 if $gcc_cv_as $as_ix86_64_opt -o conftest.o conftest.s
> /dev
/null
2>&1 && \
22733 $gcc_cv_objdump -h conftest.o
2>/dev
/null | \
22734 sed -e /.eh_frame
/!d
-e N | \
22735 grep READONLY
> /dev
/null
; then
22736 gcc_cv_as_cfi_directive
=yes
22738 gcc_cv_as_cfi_directive
=no
22742 gcc_cv_as_cfi_directive
=yes
22747 # no objdump, err on the side of caution
22748 gcc_cv_as_cfi_directive
=no
22751 gcc_cv_as_cfi_directive
=yes
22755 gcc_cv_as_cfi_directive
=yes
22759 echo "configure: failed program was" >&5
22762 rm -f conftest.o conftest.s
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22766 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22768 if test $gcc_cv_as_cfi_directive = yes && test x
$gcc_cv_objdump != x
; then
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22770 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22771 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22772 $as_echo_n "(cached) " >&6
22774 gcc_cv_as_cfi_advance_working
=no
22775 if test x
$gcc_cv_as != x
; then
22778 .cfi_adjust_cfa_offset 64
22780 .cfi_adjust_cfa_offset 128
22781 .cfi_endproc' > conftest.s
22782 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22784 (eval $ac_try) 2>&5
22786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22787 test $ac_status = 0; }; }
22790 if $gcc_cv_objdump -Wf conftest.o
2>/dev
/null \
22791 |
grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev
/null
; then
22792 gcc_cv_as_cfi_advance_working
=yes
22796 echo "configure: failed program was" >&5
22799 rm -f conftest.o conftest.s
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22803 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22806 # no objdump, err on the side of caution
22807 gcc_cv_as_cfi_advance_working
=no
22811 cat >>confdefs.h
<<_ACEOF
22812 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22813 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22819 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22820 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22821 $as_echo_n "(cached) " >&6
22823 gcc_cv_as_cfi_personality_directive
=no
22824 if test x
$gcc_cv_as != x
; then
22827 .cfi_personality 0, symbol
22828 .cfi_endproc' > conftest.s
22829 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22831 (eval $ac_try) 2>&5
22833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22834 test $ac_status = 0; }; }
22836 gcc_cv_as_cfi_personality_directive
=yes
22838 echo "configure: failed program was" >&5
22841 rm -f conftest.o conftest.s
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22845 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22848 cat >>confdefs.h
<<_ACEOF
22849 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22850 then echo 1; else echo 0; fi`
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22855 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22856 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22859 gcc_cv_as_cfi_sections_directive
=no
22860 if test x
$gcc_cv_as != x
; then
22862 .cfi_sections .debug_frame, .eh_frame
22864 .cfi_endproc' > conftest.s
22865 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }
22873 win32 | pe | cygwin
* | mingw32
* | uwin
*)
22874 # Need to check that we generated the correct relocation for the
22875 # .debug_frame section. This was fixed for binutils 2.21.
22876 gcc_cv_as_cfi_sections_directive
=no
22877 if test "x$gcc_cv_objdump" != x
; then
22878 if $gcc_cv_objdump -j .debug_frame
-r conftest.o
2>/dev
/null | \
22879 grep secrel
> /dev
/null
; then
22880 gcc_cv_as_cfi_sections_directive
=yes
22885 gcc_cv_as_cfi_sections_directive
=yes
22889 echo "configure: failed program was" >&5
22892 rm -f conftest.o conftest.s
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22896 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22900 cat >>confdefs.h
<<_ACEOF
22901 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22902 then echo 1; else echo 0; fi`
22906 # GAS versions up to and including 2.11.0 may mis-optimize
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22909 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22910 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22913 gcc_cv_as_eh_frame
=no
22914 if test $in_tree_gas = yes; then
22915 if test $in_tree_gas_is_elf = yes \
22916 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22917 then gcc_cv_as_eh_frame
=yes
22919 elif test x
$gcc_cv_as != x
; then
22926 .section .eh_frame,"aw",@progbits
22928 .4byte .LECIE1-.LSCIE1
22942 .4byte .LEFDE1-.LASFDE1
22944 .4byte .LASFDE1-__FRAME_BEGIN__
22951 .LEFDE1:' > conftest.s
22952 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22954 (eval $ac_try) 2>&5
22956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957 test $ac_status = 0; }; }
22959 cat > conftest.lit
<<EOF
22960 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22961 0010 01000000 12000000 18000000 00000000 ................
22962 0020 08000000 04080000 0044 .........D
22964 cat > conftest.big
<<EOF
22965 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22966 0010 00000001 00000012 00000018 00000000 ................
22967 0020 00000008 04000000 0844 .........D
22969 # If the assembler didn't choke, and we can objdump,
22970 # and we got the correct data, then succeed.
22971 # The text in the here-document typically retains its unix-style line
22972 # endings, while the output of objdump will use host line endings.
22973 # Therefore, use diff -b for the comparisons.
22974 if test x
$gcc_cv_objdump != x \
22975 && $gcc_cv_objdump -s -j .eh_frame conftest.o
2>/dev
/null \
22976 |
tail -3 > conftest.got \
22977 && { diff -b conftest.lit conftest.got
> /dev
/null
2>&1 \
22978 ||
diff -b conftest.big conftest.got
> /dev
/null
2>&1; }
22980 gcc_cv_as_eh_frame
=yes
22981 elif { ac_try
='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22983 (eval $ac_try) 2>&5
22985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22986 test $ac_status = 0; }; }; then
22987 gcc_cv_as_eh_frame
=buggy
22989 # Uh oh, what do we do now?
22990 gcc_cv_as_eh_frame
=no
22993 echo "configure: failed program was" >&5
22996 rm -f conftest.o conftest.s
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
23000 $as_echo "$gcc_cv_as_eh_frame" >&6; }
23003 if test $gcc_cv_as_eh_frame = buggy
; then
23005 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23010 $as_echo_n "checking assembler for section merging support... " >&6; }
23011 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23012 $as_echo_n "(cached) " >&6
23014 gcc_cv_as_shf_merge
=no
23015 if test $in_tree_gas = yes; then
23016 if test $in_tree_gas_is_elf = yes \
23017 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23018 then gcc_cv_as_shf_merge
=yes
23020 elif test x
$gcc_cv_as != x
; then
23021 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
23022 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23024 (eval $ac_try) 2>&5
23026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23027 test $ac_status = 0; }; }
23029 gcc_cv_as_shf_merge
=yes
23031 echo "configure: failed program was" >&5
23034 rm -f conftest.o conftest.s
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23038 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23040 if test $gcc_cv_as_shf_merge = no
; then
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
23042 $as_echo_n "checking assembler for section merging support... " >&6; }
23043 if test "${gcc_cv_as_shf_merge+set}" = set; then :
23044 $as_echo_n "(cached) " >&6
23046 gcc_cv_as_shf_merge
=no
23047 if test $in_tree_gas = yes; then
23048 if test $in_tree_gas_is_elf = yes \
23049 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23050 then gcc_cv_as_shf_merge
=yes
23052 elif test x
$gcc_cv_as != x
; then
23053 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
23054 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23056 (eval $ac_try) 2>&5
23058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23059 test $ac_status = 0; }; }
23061 gcc_cv_as_shf_merge
=yes
23063 echo "configure: failed program was" >&5
23066 rm -f conftest.o conftest.s
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
23070 $as_echo "$gcc_cv_as_shf_merge" >&6; }
23074 cat >>confdefs.h
<<_ACEOF
23075 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
23080 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
23081 if test "${gcc_cv_as_comdat_group+set}" = set; then :
23082 $as_echo_n "(cached) " >&6
23084 gcc_cv_as_comdat_group
=no
23085 if test $in_tree_gas = yes; then
23086 if test $in_tree_gas_is_elf = yes \
23087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23088 then gcc_cv_as_comdat_group
=yes
23090 elif test x
$gcc_cv_as != x
; then
23091 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
23092 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23094 (eval $ac_try) 2>&5
23096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23097 test $ac_status = 0; }; }
23099 gcc_cv_as_comdat_group
=yes
23101 echo "configure: failed program was" >&5
23104 rm -f conftest.o conftest.s
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
23108 $as_echo "$gcc_cv_as_comdat_group" >&6; }
23110 if test $gcc_cv_as_comdat_group = yes; then
23111 gcc_cv_as_comdat_group_percent
=no
23112 gcc_cv_as_comdat_group_group
=no
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
23115 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
23116 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
23117 $as_echo_n "(cached) " >&6
23119 gcc_cv_as_comdat_group_percent
=no
23120 if test $in_tree_gas = yes; then
23121 if test $in_tree_gas_is_elf = yes \
23122 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23123 then gcc_cv_as_comdat_group_percent
=yes
23125 elif test x
$gcc_cv_as != x
; then
23126 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
23127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
23128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23129 (eval $ac_try) 2>&5
23131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23132 test $ac_status = 0; }; }
23134 gcc_cv_as_comdat_group_percent
=yes
23136 echo "configure: failed program was" >&5
23139 rm -f conftest.o conftest.s
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
23143 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
23145 if test $gcc_cv_as_comdat_group_percent = yes; then
23146 gcc_cv_as_comdat_group_group
=no
23148 case "${target}" in
23149 # Sun as uses a completely different syntax.
23151 case "${target}" in
23152 sparc
*-*-solaris2*)
23154 .group foo,".text%foo",#comdat
23155 .section ".text%foo", #alloc,#execinstr,#progbits
23160 i?
86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
23162 .group foo,.text%foo,#comdat
23163 .section .text%foo, "ax", @progbits
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
23170 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
23171 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
23172 $as_echo_n "(cached) " >&6
23174 gcc_cv_as_comdat_group_group
=no
23175 if test x
$gcc_cv_as != x
; then
23176 $as_echo "$conftest_s" > conftest.s
23177 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23179 (eval $ac_try) 2>&5
23181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23182 test $ac_status = 0; }; }
23184 gcc_cv_as_comdat_group_group
=yes
23186 echo "configure: failed program was" >&5
23189 rm -f conftest.o conftest.s
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
23193 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
23197 if test -z "${gcc_cv_as_comdat_group_group+set}"; then
23198 gcc_cv_as_comdat_group_group
=no
23202 if test x
"$ld_is_gold" = xyes
; then
23204 elif test $in_tree_ld = yes ; then
23206 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 \
23207 && test $in_tree_ld_is_elf = yes; then
23210 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23212 if test 0"$ld_date" -lt 20050308; then
23213 if test -n "$ld_date"; then
23214 # If there was date string, but was earlier than 2005-03-08, fail
23216 elif test "$ld_vers_major" -lt 2; then
23218 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
23223 case "${target}" in
23224 *-*-solaris2.1
[1-9]*)
23226 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
23227 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
23230 # If using Sun as for COMDAT group as emitted by GCC, one needs at
23231 # least ld version 1.2267.
23232 if test "$ld_vers_major" -gt 1; then
23234 elif test "x$gas_flag" = xyes
&& test "$ld_vers_minor" -ge 1688; then
23236 elif test "$ld_vers_minor" -ge 2267; then
23241 # Assume linkers other than GNU ld don't support COMDAT group.
23246 # Allow overriding the automatic COMDAT group tests above.
23247 # Check whether --enable-comdat was given.
23248 if test "${enable_comdat+set}" = set; then :
23249 enableval
=$enable_comdat; comdat_group
="$enable_comdat"
23252 if test $comdat_group = no
; then
23253 gcc_cv_as_comdat_group
=no
23254 gcc_cv_as_comdat_group_percent
=no
23255 gcc_cv_as_comdat_group_group
=no
23258 cat >>confdefs.h
<<_ACEOF
23259 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
23260 || test $gcc_cv_as_comdat_group_percent = yes \
23261 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
23266 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
23267 if test "${gcc_cv_as_discriminator+set}" = set; then :
23268 $as_echo_n "(cached) " >&6
23270 gcc_cv_as_discriminator
=no
23271 if test $in_tree_gas = yes; then
23272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
23273 then gcc_cv_as_discriminator
=yes
23275 elif test x
$gcc_cv_as != x
; then
23278 .loc 1 1 0 discriminator 1' > conftest.s
23279 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; }
23286 gcc_cv_as_discriminator
=yes
23288 echo "configure: failed program was" >&5
23291 rm -f conftest.o conftest.s
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
23295 $as_echo "$gcc_cv_as_discriminator" >&6; }
23296 if test $gcc_cv_as_discriminator = yes; then
23298 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
23302 # Thread-local storage - the check is heavily parameterized.
23310 .section ".tdata","awT",@progbits
23313 ldq $27,__tls_get_addr($29) !literal!1
23314 lda $16,foo($29) !tlsgd!1
23315 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
23316 ldq $27,__tls_get_addr($29) !literal!2
23317 lda $16,foo($29) !tlsldm!2
23318 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
23319 ldq $1,foo($29) !gotdtprel
23320 ldah $2,foo($29) !dtprelhi
23321 lda $3,foo($2) !dtprello
23322 lda $4,foo($29) !dtprel
23323 ldq $1,foo($29) !gottprel
23324 ldah $2,foo($29) !tprelhi
23325 lda $3,foo($2) !tprello
23326 lda $4,foo($29) !tprel'
23329 tls_as_opt
=--fatal-warnings
23331 cris-
*-*|crisv32-
*-*)
23333 .section ".tdata","awT",@progbits
23340 tls_as_opt
=--fatal-warnings
23344 .section ".tdata","awT",@progbits
23347 call #gettlsoff(x)'
23356 .section ".tdata","awT",@progbits
23360 addil LT%foo-$tls_gdidx$,gp
23361 ldo RT%foo-$tls_gdidx$(%r1),%arg0
23364 addil LT%foo-$tls_ldidx$,gp
23366 ldo RT%foo-$tls_ldidx$(%r1),%arg0
23367 addil LR%foo-$tls_dtpoff$,%ret0
23368 ldo RR%foo-$tls_dtpoff$(%r1),%t1
23370 addil LT%foo-$tls_ieoff$,gp
23371 ldw RT%foo-$tls_ieoff$(%r1),%t2
23374 addil LR%foo-$tls_leoff$,%t1
23375 ldo RR%foo-$tls_leoff$(%r1),%t2'
23378 tls_as_opt
=--fatal-warnings
23382 .section ".tdata","awT",%progbits
23385 .word foo(gottpoff)
23393 i
[34567]86-*-* | x86_64-
*-*)
23395 i
[34567]86-*-solaris2.
* | x86_64-
*-solaris2.1
[0-9]*)
23402 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23404 .section .tdata,"awt",@progbits'
23409 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
23413 .section ".tdata","awT",@progbits'
23417 tls_as_opt
="--fatal-warnings"
23421 conftest_s
="$conftest_s
23425 leal foo@tlsgd(,%ebx,1), %eax
23426 leal foo@tlsldm(%ebx), %eax
23427 leal foo@dtpoff(%eax), %edx
23428 movl foo@gottpoff(%ebx), %eax
23429 subl foo@gottpoff(%ebx), %eax
23430 addl foo@gotntpoff(%ebx), %eax
23431 movl foo@indntpoff, %eax
23432 movl \$foo@tpoff, %eax
23433 subl \$foo@tpoff, %eax
23434 leal foo@ntpoff(%ecx), %eax"
23437 if test x
$on_solaris = xyes
; then
23439 yes) tls_as_opt
="$tls_as_opt --64" ;;
23440 no
) tls_as_opt
="$tls_as_opt -xarch=amd64" ;;
23443 conftest_s
="$conftest_s
23447 leaq foo@tlsgd(%rip), %rdi
23448 leaq foo@tlsld(%rip), %rdi
23449 leaq foo@dtpoff(%rax), %rdx
23450 movq foo@gottpoff(%rip), %rax
23451 movq \$foo@tpoff, %rax"
23457 .section ".tdata","awT",@progbits
23460 addl r16 = @ltoff(@dtpmod(foo#)), gp
23461 addl r17 = @ltoff(@dtprel(foo#)), gp
23462 addl r18 = @ltoff(@tprel(foo#)), gp
23463 addl r19 = @dtprel(foo#), gp
23464 adds r21 = @dtprel(foo#), r13
23465 movl r23 = @dtprel(foo#)
23466 addl r20 = @tprel(foo#), gp
23467 adds r22 = @tprel(foo#), r13
23468 movl r24 = @tprel(foo#)'
23471 tls_as_opt
=--fatal-warnings
23475 .section .tdata,"awT",@progbits
23479 addik r5,r20,x@TLSGD
23480 addik r5,r20,x@TLSLDM'
23483 tls_as_opt
='--fatal-warnings'
23487 .section .tdata,"awT",@progbits
23491 addiu $4, $28, %tlsgd(x)
23492 addiu $4, $28, %tlsldm(x)
23493 lui $4, %dtprel_hi(x)
23494 addiu $4, $4, %dtprel_lo(x)
23495 lw $4, %gottprel(x)($28)
23496 lui $4, %tprel_hi(x)
23497 addiu $4, $4, %tprel_lo(x)'
23500 tls_as_opt
='-32 --fatal-warnings'
23504 .section .tdata,"awT",@progbits
23509 move.l x@TLSGD(%a5),%a0
23510 move.l x@TLSLDM(%a5),%a0
23511 move.l x@TLSLDO(%a5),%a0
23512 move.l x@TLSIE(%a5),%a0
23513 move.l x@TLSLE(%a5),%a0'
23516 tls_as_opt
='--fatal-warnings'
23520 .section ".tdata","awT",@progbits'
23523 tls_as_opt
="--fatal-warnings"
23527 .section ".tdata","awT",%progbits
23531 add x0, x0, #:tlsgd_lo12:x
23536 tls_as_opt
='--fatal-warnings'
23540 .extern __get_tpointer
23558 .section ".tdata","awT",@progbits
23566 addi 3,2,ld0@got@tlsgd
23572 addi 3,2,x1@got@tlsld
23578 addis 9,3,x2@dtprel@ha
23579 addi 9,9,x2@dtprel@l
23582 ld 9,x3@got@dtprel(2)
23588 tls_as_opt
="-a64 --fatal-warnings"
23592 .section ".tdata","awT",@progbits
23600 addi 3,31,ld0@got@tlsgd
23602 addi 3,31,x1@got@tlsld
23605 addis 9,3,x2@dtprel@ha
23606 addi 9,9,x2@dtprel@l
23607 lwz 9,x3@got@tprel(31)
23610 addis 9,2,x2@tprel@ha
23611 addi 9,9,x2@tprel@l'
23614 tls_as_opt
="-a32 --fatal-warnings"
23618 .section ".tdata","awT",@progbits
23625 .long foo@GOTNTPOFF
23626 .long foo@INDNTPOFF
23627 l %r1,foo@GOTNTPOFF(%r12)
23628 l %r1,0(%r1):tls_load:foo
23629 bas %r14,0(%r1,%r13):tls_gdcall:foo
23630 bas %r14,0(%r1,%r13):tls_ldcall:foo'
23633 tls_as_opt
="-m31 --fatal-warnings"
23637 .section ".tdata","awT",@progbits
23644 .quad foo@GOTNTPOFF
23645 lg %r1,foo@GOTNTPOFF(%r12)
23646 larl %r1,foo@INDNTPOFF
23647 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
23648 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
23651 tls_as_opt
="-m64 -Aesame --fatal-warnings"
23653 sh-
*-* | sh
[34]-*-*)
23655 .section ".tdata","awT",@progbits
23665 tls_as_opt
=--fatal-warnings
23669 sparc
*-sun-solaris2.
*)
23676 if test x
$on_solaris = xyes
&& test x
$gas_flag = xno
; then
23678 .section ".tdata",#alloc,#write,#tls'
23683 .section ".tdata","awT",@progbits'
23686 tls_as_opt
="-32 --fatal-warnings"
23688 conftest_s
="$conftest_s
23691 sethi %tgd_hi22(foo), %o0
23692 add %o0, %tgd_lo10(foo), %o1
23693 add %l7, %o1, %o0, %tgd_add(foo)
23694 call __tls_get_addr, %tgd_call(foo)
23695 sethi %tldm_hi22(foo), %l1
23696 add %l1, %tldm_lo10(foo), %l2
23697 add %l7, %l2, %o0, %tldm_add(foo)
23698 call __tls_get_addr, %tldm_call(foo)
23699 sethi %tldo_hix22(foo), %l3
23700 xor %l3, %tldo_lox10(foo), %l4
23701 add %o0, %l4, %l5, %tldo_add(foo)
23702 sethi %tie_hi22(foo), %o3
23703 add %o3, %tie_lo10(foo), %o3
23704 ld [%l7 + %o3], %o2, %tie_ld(foo)
23705 add %g7, %o2, %o4, %tie_add(foo)
23706 sethi %tle_hix22(foo), %l1
23707 xor %l1, %tle_lox10(foo), %o5
23708 ld [%g7 + %o5], %o1"
23712 .section ".tdata","awT",@progbits
23715 addli r0, zero, tls_gd(foo)
23716 auli r0, zero, tls_gd_ha16(foo)
23717 addli r0, r0, tls_gd_lo16(foo)
23719 addli r0, zero, tls_ie(foo)
23720 auli r0, r0, tls_ie_ha16(foo)
23721 addli r0, r0, tls_ie_lo16(foo)'
23724 tls_as_opt
="--fatal-warnings"
23728 .section ".tdata","awT",@progbits
23731 shl16insli r0, zero, hw0_last_tls_gd(foo)
23732 shl16insli r0, zero, hw1_last_tls_gd(foo)
23733 shl16insli r0, r0, hw0_tls_gd(foo)
23735 shl16insli r0, zero, hw1_last_tls_ie(foo)
23736 shl16insli r0, r0, hw0_tls_ie(foo)'
23739 tls_as_opt
="--fatal-warnings"
23743 .section ".tdata","awT",@progbits
23746 movi a8, foo@TLSFUNC
23747 movi a10, foo@TLSARG
23748 callx8.tls a8, foo@TLSCALL'
23754 if test "x$enable_tls" = xno
; then
23755 : # TLS explicitly disabled.
23756 elif test "x$enable_tls" = xyes
; then
23757 set_have_as_tls
=yes # TLS explicitly enabled.
23758 elif test -z "$tls_first_major"; then
23759 : # If we don't have a check, assume no support.
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23762 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23763 if test "${gcc_cv_as_tls+set}" = set; then :
23764 $as_echo_n "(cached) " >&6
23767 if test $in_tree_gas = yes; then
23768 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23769 then gcc_cv_as_tls
=yes
23771 elif test x
$gcc_cv_as != x
; then
23772 $as_echo "$conftest_s" > conftest.s
23773 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23775 (eval $ac_try) 2>&5
23777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23778 test $ac_status = 0; }; }
23782 echo "configure: failed program was" >&5
23785 rm -f conftest.o conftest.s
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23789 $as_echo "$gcc_cv_as_tls" >&6; }
23790 if test $gcc_cv_as_tls = yes; then
23791 set_have_as_tls
=yes
23794 if test $set_have_as_tls = yes ; then
23796 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23800 # Target-specific assembler checks.
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23803 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23804 gcc_cv_ld_static_dynamic
=no
23805 gcc_cv_ld_static_option
='-Bstatic'
23806 gcc_cv_ld_dynamic_option
='-Bdynamic'
23807 if test $in_tree_ld = yes ; then
23808 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
23809 gcc_cv_ld_static_dynamic
=yes
23811 elif test x
$gcc_cv_ld != x
; then
23812 # Check if linker supports -Bstatic/-Bdynamic option
23813 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bstatic > /dev
/null \
23814 && $gcc_cv_ld --help 2>/dev
/null |
grep -- -Bdynamic > /dev
/null
; then
23815 gcc_cv_ld_static_dynamic
=yes
23818 # AIX ld uses -b flags
23819 *-*-aix4.
[23]* |
*-*-aix[5-9]*)
23820 gcc_cv_ld_static_dynamic
=yes
23821 gcc_cv_ld_static_option
="-bstatic"
23822 gcc_cv_ld_dynamic_option
="-bdynamic"
23824 # HP-UX ld uses -a flags to select between shared and archive.
23826 if test x
"$gnu_ld" = xno
; then
23827 gcc_cv_ld_static_dynamic
=yes
23828 gcc_cv_ld_static_option
="-aarchive_shared"
23829 gcc_cv_ld_dynamic_option
="-adefault"
23832 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23834 gcc_cv_ld_static_dynamic
=yes
23839 if test x
"$gcc_cv_ld_static_dynamic" = xyes
; then
23841 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23844 cat >>confdefs.h
<<_ACEOF
23845 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23849 cat >>confdefs.h
<<_ACEOF
23850 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23855 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23857 if test x
"$demangler_in_ld" = xyes
; then
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23859 $as_echo_n "checking linker --demangle support... " >&6; }
23860 gcc_cv_ld_demangle
=no
23861 if test $in_tree_ld = yes; then
23862 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 \
23863 gcc_cv_ld_demangle
=yes
23865 elif test x
$gcc_cv_ld != x
-a x
"$gnu_ld" = xyes
; then
23866 # Check if the GNU linker supports --demangle option
23867 if $gcc_cv_ld --help 2>/dev
/null |
grep no-demangle
> /dev
/null
; then
23868 gcc_cv_ld_demangle
=yes
23871 if test x
"$gcc_cv_ld_demangle" = xyes
; then
23873 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23877 $as_echo "$gcc_cv_ld_demangle" >&6; }
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23881 $as_echo_n "checking linker plugin support... " >&6; }
23882 gcc_cv_lto_plugin
=0
23883 if test -f liblto_plugin.la
; then
23884 save_ld_ver
="$ld_ver"
23885 save_ld_vers_major
="$ld_vers_major"
23886 save_ld_vers_minor
="$ld_vers_minor"
23887 save_ld_is_gold
="$ld_is_gold"
23891 if test $in_tree_ld = yes -a x
"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x
"$gcc_cv_ld"; then
23893 # FIXME: ld_is_gold?
23894 ld_vers_major
="$gcc_cv_gld_major_version"
23895 ld_vers_minor
="$gcc_cv_gld_minor_version"
23897 # Determine plugin linker version.
23898 # FIXME: Partial duplicate from above, generalize.
23899 ld_ver
=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23900 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23901 if echo "$ld_ver" |
grep "GNU gold" > /dev
/null
; then
23903 ld_vers
=`echo $ld_ver | sed -n \
23904 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23906 ld_vers
=`echo $ld_ver | sed -n \
23907 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23909 ld_vers_major
=`expr "$ld_vers" : '\([0-9]*\)'`
23910 ld_vers_minor
=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23914 # Determine plugin support.
23915 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
23916 # Require GNU ld or gold 2.21+ for plugin support by default.
23917 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23918 gcc_cv_lto_plugin
=2
23919 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23920 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23921 gcc_cv_lto_plugin
=1
23925 ld_ver
="$save_ld_ver"
23926 ld_vers_major
="$save_ld_vers_major"
23927 ld_vers_minor
="$save_ld_vers_minor"
23928 ld_is_gold
="$save_ld_is_gold"
23931 cat >>confdefs.h
<<_ACEOF
23932 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23936 $as_echo "$gcc_cv_lto_plugin" >&6; }
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
23941 $as_echo_n "checking assembler for -mabi option... " >&6; }
23942 if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
23943 $as_echo_n "(cached) " >&6
23945 gcc_cv_as_aarch64_mabi
=no
23946 if test x
$gcc_cv_as != x
; then
23947 $as_echo '.text' > conftest.s
23948 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
23949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950 (eval $ac_try) 2>&5
23952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953 test $ac_status = 0; }; }
23955 gcc_cv_as_aarch64_mabi
=yes
23957 echo "configure: failed program was" >&5
23960 rm -f conftest.o conftest.s
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
23964 $as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
23966 if test x
$gcc_cv_as_aarch64_mabi = xyes
; then
23968 $as_echo "#define HAVE_AS_MABI_OPTION 1" >>confdefs.h
23971 if test x
$with_abi = xilp32
; then
23972 as_fn_error
"Assembler does not support -mabi=ilp32.\
23973 Upgrade the Assembler." "$LINENO" 5
23975 if test x
"$with_multilib_list" = xdefault
; then
23976 TM_MULTILIB_CONFIG
=lp64
23978 aarch64_multilibs
=`echo $with_multilib_list | sed -e 's/,/ /g'`
23979 for aarch64_multilib
in ${aarch64_multilibs}; do
23980 case ${aarch64_multilib} in
23982 as_fn_error
"Assembler does not support -mabi=ilp32.\
23983 Upgrade the Assembler." "$LINENO" 5
23991 # Enable default workaround for AArch64 Cortex-A53 erratum 835769.
23992 # Check whether --enable-fix-cortex-a53-835769 was given.
23993 if test "${enable_fix_cortex_a53_835769+set}" = set; then :
23994 enableval
=$enable_fix_cortex_a53_835769;
23997 tm_defines
="${tm_defines} TARGET_FIX_ERR_A53_835769_DEFAULT=1"
24002 as_fn_error
"'$enableval' is an invalid value for --enable-fix-cortex-a53-835769.\
24003 Valid choices are 'yes' and 'no'." "$LINENO" 5
24012 # All TARGET_ABI_OSF targets.
24013 alpha
*-*-linux* | alpha
*-*-*bsd
*)
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24015 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24016 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
24017 $as_echo_n "(cached) " >&6
24019 gcc_cv_as_alpha_explicit_relocs
=no
24020 if test $in_tree_gas = yes; then
24021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
24022 then gcc_cv_as_alpha_explicit_relocs
=yes
24024 elif test x
$gcc_cv_as != x
; then
24025 $as_echo ' .set nomacro
24027 extbl $3, $2, $3 !lituse_bytoff!1
24028 ldq $2, a($29) !literal!1
24029 ldq $4, b($29) !literal!2
24030 ldq_u $3, 0($2) !lituse_base!1
24031 ldq $27, f($29) !literal!5
24032 jsr $26, ($27), f !lituse_jsr!5
24033 ldah $29, 0($26) !gpdisp!3
24034 lda $0, c($29) !gprel
24035 ldah $1, d($29) !gprelhigh
24036 lda $1, d($1) !gprellow
24037 lda $29, 0($29) !gpdisp!3' > conftest.s
24038 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24040 (eval $ac_try) 2>&5
24042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24043 test $ac_status = 0; }; }
24045 gcc_cv_as_alpha_explicit_relocs
=yes
24047 echo "configure: failed program was" >&5
24050 rm -f conftest.o conftest.s
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
24054 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
24055 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
24057 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
24061 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
24062 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
24063 $as_echo_n "(cached) " >&6
24065 gcc_cv_as_alpha_jsrdirect_relocs
=no
24066 if test $in_tree_gas = yes; then
24067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
24068 then gcc_cv_as_alpha_jsrdirect_relocs
=yes
24070 elif test x
$gcc_cv_as != x
; then
24071 $as_echo ' .set nomacro
24073 ldq $27, a($29) !literal!1
24074 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
24075 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24077 (eval $ac_try) 2>&5
24079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24080 test $ac_status = 0; }; }
24082 gcc_cv_as_alpha_jsrdirect_relocs
=yes
24084 echo "configure: failed program was" >&5
24087 rm -f conftest.o conftest.s
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
24091 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
24092 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
24094 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
24101 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
24102 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
24103 $as_echo_n "(cached) " >&6
24105 gcc_cv_as_cris_no_mul_bug
=no
24106 if test $in_tree_gas = yes; then
24107 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24108 then gcc_cv_as_cris_no_mul_bug
=yes
24110 elif test x
$gcc_cv_as != x
; then
24111 $as_echo '.text' > conftest.s
24112 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
24113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24114 (eval $ac_try) 2>&5
24116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24117 test $ac_status = 0; }; }
24119 gcc_cv_as_cris_no_mul_bug
=yes
24121 echo "configure: failed program was" >&5
24124 rm -f conftest.o conftest.s
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
24128 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
24129 if test $gcc_cv_as_cris_no_mul_bug = yes; then
24131 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
24138 $as_echo_n "checking assembler for .register... " >&6; }
24139 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
24140 $as_echo_n "(cached) " >&6
24142 gcc_cv_as_sparc_register_op
=no
24143 if test x
$gcc_cv_as != x
; then
24144 $as_echo '.register %g2, #scratch' > conftest.s
24145 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24147 (eval $ac_try) 2>&5
24149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24150 test $ac_status = 0; }; }
24152 gcc_cv_as_sparc_register_op
=yes
24154 echo "configure: failed program was" >&5
24157 rm -f conftest.o conftest.s
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
24161 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
24162 if test $gcc_cv_as_sparc_register_op = yes; then
24164 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
24168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5
24169 $as_echo_n "checking assembler for #nobits... " >&6; }
24170 if test "${gcc_cv_as_sparc_nobits+set}" = set; then :
24171 $as_echo_n "(cached) " >&6
24173 gcc_cv_as_sparc_nobits
=no
24174 if test x
$gcc_cv_as != x
; then
24175 $as_echo '.section "nobits",#alloc,#write,#nobits
24176 .section "progbits",#alloc,#write,#progbits' > conftest.s
24177 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24179 (eval $ac_try) 2>&5
24181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24182 test $ac_status = 0; }; }
24184 gcc_cv_as_sparc_nobits
=yes
24186 echo "configure: failed program was" >&5
24189 rm -f conftest.o conftest.s
24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5
24193 $as_echo "$gcc_cv_as_sparc_nobits" >&6; }
24196 cat >>confdefs.h
<<_ACEOF
24197 #define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi`
24201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
24202 $as_echo_n "checking assembler for -relax option... " >&6; }
24203 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
24204 $as_echo_n "(cached) " >&6
24206 gcc_cv_as_sparc_relax
=no
24207 if test x
$gcc_cv_as != x
; then
24208 $as_echo '.text' > conftest.s
24209 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
24210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211 (eval $ac_try) 2>&5
24213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214 test $ac_status = 0; }; }
24216 gcc_cv_as_sparc_relax
=yes
24218 echo "configure: failed program was" >&5
24221 rm -f conftest.o conftest.s
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
24225 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
24226 if test $gcc_cv_as_sparc_relax = yes; then
24228 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
24233 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
24234 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
24235 $as_echo_n "(cached) " >&6
24237 gcc_cv_as_sparc_gotdata_op
=no
24238 if test x
$gcc_cv_as != x
; then
24244 sethi %gdop_hix22(foo), %g1
24245 xor %g1, %gdop_lox10(foo), %g1
24246 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
24247 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24249 (eval $ac_try) 2>&5
24251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24252 test $ac_status = 0; }; }
24254 if test x
$gcc_cv_ld != x \
24255 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24256 if test x
$gcc_cv_objdump != x
; then
24257 if $gcc_cv_objdump -s -j .text conftest
2> /dev
/null \
24258 |
grep ' 03000004 82186004 c405c001'> /dev
/null
2>&1; then
24259 gcc_cv_as_sparc_gotdata_op
=no
24261 gcc_cv_as_sparc_gotdata_op
=yes
24267 echo "configure: failed program was" >&5
24270 rm -f conftest.o conftest.s
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
24274 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
24275 if test $gcc_cv_as_sparc_gotdata_op = yes; then
24277 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
24282 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
24283 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24286 gcc_cv_as_sparc_ua_pcrel
=no
24287 if test x
$gcc_cv_as != x
; then
24294 .uaword %r_disp32(foo)' > conftest.s
24295 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24297 (eval $ac_try) 2>&5
24299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24300 test $ac_status = 0; }; }
24302 if test x
$gcc_cv_ld != x \
24303 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
24304 gcc_cv_as_sparc_ua_pcrel
=yes
24308 echo "configure: failed program was" >&5
24311 rm -f conftest.o conftest.s
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
24315 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
24316 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
24318 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
24322 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
24323 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
24324 $as_echo_n "(cached) " >&6
24326 gcc_cv_as_sparc_ua_pcrel_hidden
=no
24327 if test x
$gcc_cv_as != x
; then
24331 .uaword %r_disp32(foo)
24332 .byte 0x32, 0x33, 0x34
24336 .skip 4' > conftest.s
24337 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
24338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24339 (eval $ac_try) 2>&5
24341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24342 test $ac_status = 0; }; }
24344 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
24345 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1 \
24346 && $gcc_cv_objdump -s -j .data conftest
2> /dev
/null \
24347 |
grep ' 31000000 07323334' > /dev
/null
2>&1; then
24348 if $gcc_cv_objdump -R conftest
2> /dev
/null \
24349 |
grep 'DISP32' > /dev
/null
2>&1; then
24352 gcc_cv_as_sparc_ua_pcrel_hidden
=yes
24357 echo "configure: failed program was" >&5
24360 rm -f conftest.o conftest.s
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
24364 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
24365 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
24367 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
24371 fi # unaligned pcrel relocs
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
24374 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
24375 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
24376 $as_echo_n "(cached) " >&6
24378 gcc_cv_as_sparc_offsetable_lo10
=no
24379 if test x
$gcc_cv_as != x
; then
24381 or %g1, %lo(ab) + 12, %g1
24382 or %g1, %lo(ab + 12), %g1' > conftest.s
24383 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
24384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24385 (eval $ac_try) 2>&5
24387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24388 test $ac_status = 0; }; }
24390 if test x
$gcc_cv_objdump != x \
24391 && $gcc_cv_objdump -s -j .text conftest.o
2> /dev
/null \
24392 |
grep ' 82106000 82106000' > /dev
/null
2>&1; then
24393 gcc_cv_as_sparc_offsetable_lo10
=yes
24396 echo "configure: failed program was" >&5
24399 rm -f conftest.o conftest.s
24402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
24403 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
24404 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
24406 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for FMAF, HPC, and VIS 3.0 instructions" >&5
24411 $as_echo_n "checking assembler for FMAF, HPC, and VIS 3.0 instructions... " >&6; }
24412 if test "${gcc_cv_as_sparc_fmaf+set}" = set; then :
24413 $as_echo_n "(cached) " >&6
24415 gcc_cv_as_sparc_fmaf
=no
24416 if test x
$gcc_cv_as != x
; then
24418 .register %g2, #scratch
24419 .register %g3, #scratch
24421 fmaddd %f0, %f2, %f4, %f6
24422 addxccc %g1, %g2, %g3
24423 fsrl32 %f2, %f4, %f8
24424 fnaddd %f10, %f12, %f14' > conftest.s
24425 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=v9d -o conftest.o conftest.s >&5'
24426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24427 (eval $ac_try) 2>&5
24429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24430 test $ac_status = 0; }; }
24432 gcc_cv_as_sparc_fmaf
=yes
24434 echo "configure: failed program was" >&5
24437 rm -f conftest.o conftest.s
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_fmaf" >&5
24441 $as_echo "$gcc_cv_as_sparc_fmaf" >&6; }
24442 if test $gcc_cv_as_sparc_fmaf = yes; then
24444 $as_echo "#define HAVE_AS_FMAF_HPC_VIS3 1" >>confdefs.h
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for SPARC4 instructions" >&5
24449 $as_echo_n "checking assembler for SPARC4 instructions... " >&6; }
24450 if test "${gcc_cv_as_sparc_sparc4+set}" = set; then :
24451 $as_echo_n "(cached) " >&6
24453 gcc_cv_as_sparc_sparc4
=no
24454 if test x
$gcc_cv_as != x
; then
24456 .register %g2, #scratch
24457 .register %g3, #scratch
24460 1: cwbneg %g2, %g3, 1f
24463 aes_kexpand0 %f4, %f6, %f8
24464 des_round %f38, %f40, %f42, %f44
24465 camellia_f %f54, %f56, %f58, %f60
24466 kasumi_fi_xor %f46, %f48, %f50, %f52' > conftest.s
24467 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -xarch=sparc4 -o conftest.o conftest.s >&5'
24468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24469 (eval $ac_try) 2>&5
24471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24472 test $ac_status = 0; }; }
24474 gcc_cv_as_sparc_sparc4
=yes
24476 echo "configure: failed program was" >&5
24479 rm -f conftest.o conftest.s
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_sparc4" >&5
24483 $as_echo "$gcc_cv_as_sparc_sparc4" >&6; }
24484 if test $gcc_cv_as_sparc_sparc4 = yes; then
24486 $as_echo "#define HAVE_AS_SPARC4 1" >>confdefs.h
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for LEON instructions" >&5
24491 $as_echo_n "checking assembler for LEON instructions... " >&6; }
24492 if test "${gcc_cv_as_sparc_leon+set}" = set; then :
24493 $as_echo_n "(cached) " >&6
24495 gcc_cv_as_sparc_leon
=no
24496 if test x
$gcc_cv_as != x
; then
24498 .register %g2, #scratch
24499 .register %g3, #scratch
24503 casa [%g2] 0xb, %g3, %g1' > conftest.s
24504 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -Aleon -o conftest.o conftest.s >&5'
24505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24506 (eval $ac_try) 2>&5
24508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24509 test $ac_status = 0; }; }
24511 gcc_cv_as_sparc_leon
=yes
24513 echo "configure: failed program was" >&5
24516 rm -f conftest.o conftest.s
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_leon" >&5
24520 $as_echo "$gcc_cv_as_sparc_leon" >&6; }
24521 if test $gcc_cv_as_sparc_leon = yes; then
24523 $as_echo "#define HAVE_AS_LEON 1" >>confdefs.h
24528 i
[34567]86-*-* | x86_64-
*-*)
24531 # Full C++ conformance when using a shared libstdc++-v3 requires some
24532 # support from the Cygwin DLL, which in more recent versions exports
24533 # wrappers to aid in interposing and redirecting operators new, delete,
24534 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
24535 # are configuring for a version of Cygwin that exports the wrappers.
24536 if test x
$host = x
$target && test x
$host_cpu = xi686
; then
24537 ac_fn_c_check_func
"$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
24538 if test "x$ac_cv_func___wrap__Znaj" = x
""yes; then :
24539 gcc_ac_cygwin_dll_wrappers
=yes
24541 gcc_ac_cygwin_dll_wrappers
=no
24545 # Can't check presence of libc functions during cross-compile, so
24546 # we just have to assume we're building for an up-to-date target.
24547 gcc_ac_cygwin_dll_wrappers
=yes
24550 cat >>confdefs.h
<<_ACEOF
24551 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
24556 cygwin
* | pe | mingw32
* | interix
*)
24557 # Recent binutils allows the three-operand form of ".comm" on PE. This
24558 # definition is used unconditionally to initialise the default state of
24559 # the target option variable that governs usage of the feature.
24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
24561 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
24562 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
24563 $as_echo_n "(cached) " >&6
24565 gcc_cv_as_comm_has_align
=no
24566 if test $in_tree_gas = yes; then
24567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24568 then gcc_cv_as_comm_has_align
=yes
24570 elif test x
$gcc_cv_as != x
; then
24571 $as_echo '.comm foo,1,32' > conftest.s
24572 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24574 (eval $ac_try) 2>&5
24576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24577 test $ac_status = 0; }; }
24579 gcc_cv_as_comm_has_align
=yes
24581 echo "configure: failed program was" >&5
24584 rm -f conftest.o conftest.s
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
24588 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
24591 cat >>confdefs.h
<<_ACEOF
24592 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
24595 # Used for DWARF 2 in PE
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
24597 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
24598 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
24599 $as_echo_n "(cached) " >&6
24601 gcc_cv_as_ix86_pe_secrel32
=no
24602 if test $in_tree_gas = yes; then
24603 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
24604 then gcc_cv_as_ix86_pe_secrel32
=yes
24606 elif test x
$gcc_cv_as != x
; then
24610 .secrel32 foo' > conftest.s
24611 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24613 (eval $ac_try) 2>&5
24615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24616 test $ac_status = 0; }; }
24618 if test x
$gcc_cv_ld != x \
24619 && $gcc_cv_ld -o conftest conftest.o
> /dev
/null
2>&1; then
24620 gcc_cv_as_ix86_pe_secrel32
=yes
24624 echo "configure: failed program was" >&5
24627 rm -f conftest.o conftest.s
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
24631 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
24632 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
24634 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
24637 # Test if the assembler supports the extended form of the .section
24638 # directive that specifies section alignment. LTO support uses this,
24639 # but normally only after installation, so we warn but don't fail the
24640 # configure if LTO is enabled but the assembler does not support it.
24641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
24642 $as_echo_n "checking assembler for .section with alignment... " >&6; }
24643 if test "${gcc_cv_as_section_has_align+set}" = set; then :
24644 $as_echo_n "(cached) " >&6
24646 gcc_cv_as_section_has_align
=no
24647 if test $in_tree_gas = yes; then
24648 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
24649 then gcc_cv_as_section_has_align
=yes
24651 elif test x
$gcc_cv_as != x
; then
24652 $as_echo '.section lto_test,"dr0"' > conftest.s
24653 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
24654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24655 (eval $ac_try) 2>&5
24657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24658 test $ac_status = 0; }; }
24660 gcc_cv_as_section_has_align
=yes
24662 echo "configure: failed program was" >&5
24665 rm -f conftest.o conftest.s
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
24669 $as_echo "$gcc_cv_as_section_has_align" >&6; }
24671 if test x
$gcc_cv_as_section_has_align != xyes
; then
24672 case ",$enable_languages," in
24674 { $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
24675 $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;}
24682 # Test if the assembler supports the section flag 'e' for specifying
24683 # an excluded section.
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with e" >&5
24685 $as_echo_n "checking assembler for .section with e... " >&6; }
24686 if test "${gcc_cv_as_section_has_e+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24689 gcc_cv_as_section_has_e
=no
24690 if test $in_tree_gas = yes; then
24691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 22 \) \* 1000 + 51`
24692 then gcc_cv_as_section_has_e
=yes
24694 elif test x
$gcc_cv_as != x
; then
24695 $as_echo '.section foo1,"e"
24696 .byte 0,0,0,0' > conftest.s
24697 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
24698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24699 (eval $ac_try) 2>&5
24701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24702 test $ac_status = 0; }; }
24704 gcc_cv_as_section_has_e
=yes
24706 echo "configure: failed program was" >&5
24709 rm -f conftest.o conftest.s
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_e" >&5
24713 $as_echo "$gcc_cv_as_section_has_e" >&6; }
24716 cat >>confdefs.h
<<_ACEOF
24717 #define HAVE_GAS_SECTION_EXCLUDE `if test $gcc_cv_as_section_has_e = yes; then echo 1; else echo 0; fi`
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
24722 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
24723 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
24724 $as_echo_n "(cached) " >&6
24726 gcc_cv_as_ix86_filds
=no
24727 if test x
$gcc_cv_as != x
; then
24728 $as_echo 'filds mem; fists mem' > conftest.s
24729 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24731 (eval $ac_try) 2>&5
24733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24734 test $ac_status = 0; }; }
24736 gcc_cv_as_ix86_filds
=yes
24738 echo "configure: failed program was" >&5
24741 rm -f conftest.o conftest.s
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
24745 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
24746 if test $gcc_cv_as_ix86_filds = yes; then
24748 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
24753 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
24754 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
24755 $as_echo_n "(cached) " >&6
24757 gcc_cv_as_ix86_fildq
=no
24758 if test x
$gcc_cv_as != x
; then
24759 $as_echo 'fildq mem; fistpq mem' > conftest.s
24760 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24762 (eval $ac_try) 2>&5
24764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24765 test $ac_status = 0; }; }
24767 gcc_cv_as_ix86_fildq
=yes
24769 echo "configure: failed program was" >&5
24772 rm -f conftest.o conftest.s
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
24776 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
24777 if test $gcc_cv_as_ix86_fildq = yes; then
24779 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
24784 $as_echo_n "checking assembler for cmov syntax... " >&6; }
24785 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
24786 $as_echo_n "(cached) " >&6
24788 gcc_cv_as_ix86_cmov_sun_syntax
=no
24789 if test x
$gcc_cv_as != x
; then
24790 $as_echo 'cmovl.l %edx, %eax' > conftest.s
24791 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24793 (eval $ac_try) 2>&5
24795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24796 test $ac_status = 0; }; }
24798 gcc_cv_as_ix86_cmov_sun_syntax
=yes
24800 echo "configure: failed program was" >&5
24803 rm -f conftest.o conftest.s
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
24807 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
24808 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
24810 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24815 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24816 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24817 $as_echo_n "(cached) " >&6
24819 gcc_cv_as_ix86_ffreep
=no
24820 if test x
$gcc_cv_as != x
; then
24821 $as_echo 'ffreep %st(1)' > conftest.s
24822 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24824 (eval $ac_try) 2>&5
24826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24827 test $ac_status = 0; }; }
24829 gcc_cv_as_ix86_ffreep
=yes
24831 echo "configure: failed program was" >&5
24834 rm -f conftest.o conftest.s
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24838 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24839 if test $gcc_cv_as_ix86_ffreep = yes; then
24841 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24846 $as_echo_n "checking assembler for .quad directive... " >&6; }
24847 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24848 $as_echo_n "(cached) " >&6
24850 gcc_cv_as_ix86_quad
=no
24851 if test x
$gcc_cv_as != x
; then
24852 $as_echo '.quad 0' > conftest.s
24853 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24855 (eval $ac_try) 2>&5
24857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24858 test $ac_status = 0; }; }
24860 gcc_cv_as_ix86_quad
=yes
24862 echo "configure: failed program was" >&5
24865 rm -f conftest.o conftest.s
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24869 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24870 if test $gcc_cv_as_ix86_quad = yes; then
24872 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24877 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24878 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24879 $as_echo_n "(cached) " >&6
24881 gcc_cv_as_ix86_sahf
=no
24882 if test x
$gcc_cv_as != x
; then
24885 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24887 (eval $ac_try) 2>&5
24889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24890 test $ac_status = 0; }; }
24892 gcc_cv_as_ix86_sahf
=yes
24894 echo "configure: failed program was" >&5
24897 rm -f conftest.o conftest.s
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24901 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24902 if test $gcc_cv_as_ix86_sahf = yes; then
24904 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for interunit movq mnemonic" >&5
24909 $as_echo_n "checking assembler for interunit movq mnemonic... " >&6; }
24910 if test "${gcc_cv_as_ix86_interunit_movq+set}" = set; then :
24911 $as_echo_n "(cached) " >&6
24913 gcc_cv_as_ix86_interunit_movq
=no
24914 if test x
$gcc_cv_as != x
; then
24917 movq %rax, %xmm0' > conftest.s
24918 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24920 (eval $ac_try) 2>&5
24922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24923 test $ac_status = 0; }; }
24925 gcc_cv_as_ix86_interunit_movq
=yes
24927 echo "configure: failed program was" >&5
24930 rm -f conftest.o conftest.s
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_interunit_movq" >&5
24934 $as_echo "$gcc_cv_as_ix86_interunit_movq" >&6; }
24937 cat >>confdefs.h
<<_ACEOF
24938 #define HAVE_AS_IX86_INTERUNIT_MOVQ `if test $gcc_cv_as_ix86_interunit_movq = yes; then echo 1; else echo 0; fi`
24942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for hle prefixes" >&5
24943 $as_echo_n "checking assembler for hle prefixes... " >&6; }
24944 if test "${gcc_cv_as_ix86_hle+set}" = set; then :
24945 $as_echo_n "(cached) " >&6
24947 gcc_cv_as_ix86_hle
=no
24948 if test x
$gcc_cv_as != x
; then
24949 $as_echo 'lock xacquire cmpxchg %esi, (%ecx)' > conftest.s
24950 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24952 (eval $ac_try) 2>&5
24954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24955 test $ac_status = 0; }; }
24957 gcc_cv_as_ix86_hle
=yes
24959 echo "configure: failed program was" >&5
24962 rm -f conftest.o conftest.s
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_hle" >&5
24966 $as_echo "$gcc_cv_as_ix86_hle" >&6; }
24967 if test $gcc_cv_as_ix86_hle = yes; then
24969 $as_echo "#define HAVE_AS_IX86_HLE 1" >>confdefs.h
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24974 $as_echo_n "checking assembler for swap suffix... " >&6; }
24975 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24976 $as_echo_n "(cached) " >&6
24978 gcc_cv_as_ix86_swap
=no
24979 if test x
$gcc_cv_as != x
; then
24980 $as_echo 'movl.s %esp, %ebp' > conftest.s
24981 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24983 (eval $ac_try) 2>&5
24985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24986 test $ac_status = 0; }; }
24988 gcc_cv_as_ix86_swap
=yes
24990 echo "configure: failed program was" >&5
24993 rm -f conftest.o conftest.s
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24997 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24998 if test $gcc_cv_as_ix86_swap = yes; then
25000 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
25005 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
25006 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
25007 $as_echo_n "(cached) " >&6
25009 gcc_cv_as_ix86_diff_sect_delta
=no
25010 if test x
$gcc_cv_as != x
; then
25011 $as_echo '.section .rodata
25017 .L2: nop' > conftest.s
25018 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25020 (eval $ac_try) 2>&5
25022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25023 test $ac_status = 0; }; }
25025 gcc_cv_as_ix86_diff_sect_delta
=yes
25027 echo "configure: failed program was" >&5
25030 rm -f conftest.o conftest.s
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
25034 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
25035 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
25037 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
25041 # These two are used unconditionally by i386.[ch]; it is to be defined
25042 # to 1 if the feature is present, 0 otherwise.
25043 as_ix86_gotoff_in_data_opt
=
25044 if test x
$gas = xyes
; then
25045 as_ix86_gotoff_in_data_opt
="--32"
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
25048 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
25049 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
25050 $as_echo_n "(cached) " >&6
25052 gcc_cv_as_ix86_gotoff_in_data
=no
25053 if test $in_tree_gas = yes; then
25054 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25055 then gcc_cv_as_ix86_gotoff_in_data
=yes
25057 elif test x
$gcc_cv_as != x
; then
25062 .long .L0@GOTOFF' > conftest.s
25063 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_gotoff_in_data_opt -o conftest.o conftest.s >&5'
25064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25065 (eval $ac_try) 2>&5
25067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25068 test $ac_status = 0; }; }
25070 gcc_cv_as_ix86_gotoff_in_data
=yes
25072 echo "configure: failed program was" >&5
25075 rm -f conftest.o conftest.s
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
25079 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
25082 cat >>confdefs.h
<<_ACEOF
25083 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
25087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
25088 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
25089 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
25090 $as_echo_n "(cached) " >&6
25092 gcc_cv_as_ix86_rep_lock_prefix
=no
25093 if test x
$gcc_cv_as != x
; then
25094 $as_echo 'rep movsl
25099 lock addl %edi, (%eax,%esi)
25100 lock orl $0, (%esp)' > conftest.s
25101 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25103 (eval $ac_try) 2>&5
25105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25106 test $ac_status = 0; }; }
25108 gcc_cv_as_ix86_rep_lock_prefix
=yes
25110 echo "configure: failed program was" >&5
25113 rm -f conftest.o conftest.s
25116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
25117 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
25118 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
25120 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ud2 mnemonic" >&5
25125 $as_echo_n "checking assembler for ud2 mnemonic... " >&6; }
25126 if test "${gcc_cv_as_ix86_ud2+set}" = set; then :
25127 $as_echo_n "(cached) " >&6
25129 gcc_cv_as_ix86_ud2
=no
25130 if test x
$gcc_cv_as != x
; then
25131 $as_echo 'ud2' > conftest.s
25132 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25134 (eval $ac_try) 2>&5
25136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25137 test $ac_status = 0; }; }
25139 gcc_cv_as_ix86_ud2
=yes
25141 echo "configure: failed program was" >&5
25144 rm -f conftest.o conftest.s
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ud2" >&5
25148 $as_echo "$gcc_cv_as_ix86_ud2" >&6; }
25149 if test $gcc_cv_as_ix86_ud2 = yes; then
25151 $as_echo "#define HAVE_AS_IX86_UD2 1" >>confdefs.h
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
25156 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
25157 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
25158 $as_echo_n "(cached) " >&6
25160 gcc_cv_as_ix86_tlsgdplt
=no
25161 if test x
$gcc_cv_as != x
; then
25162 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
25163 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25165 (eval $ac_try) 2>&5
25167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25168 test $ac_status = 0; }; }
25170 if test x
$gcc_cv_ld != x \
25171 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25172 gcc_cv_as_ix86_tlsgdplt
=yes
25176 echo "configure: failed program was" >&5
25179 rm -f conftest.o conftest.s
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
25183 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
25184 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
25186 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
25191 .section .tdata,"aw'$tls_section_flag'",@progbits
25193 .section .text,"ax",@progbits
25194 call tls_ld@tlsldmplt'
25195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
25196 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
25197 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
25198 $as_echo_n "(cached) " >&6
25200 gcc_cv_as_ix86_tlsldmplt
=no
25201 if test x
$gcc_cv_as != x
; then
25202 $as_echo "$conftest_s" > conftest.s
25203 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25205 (eval $ac_try) 2>&5
25207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25208 test $ac_status = 0; }; }
25210 if test x
$gcc_cv_ld != x \
25211 && $gcc_cv_ld -o conftest conftest.o
-G > /dev
/null
2>&1; then
25212 gcc_cv_as_ix86_tlsldmplt
=yes
25216 echo "configure: failed program was" >&5
25219 rm -f conftest.o conftest.s
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
25223 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
25226 cat >>confdefs.h
<<_ACEOF
25227 #define HAVE_AS_IX86_TLSLDMPLT `if test $gcc_cv_as_ix86_tlsldmplt = yes; then echo 1; else echo 0; fi`
25231 # Enforce 32-bit output with gas and gld.
25232 if test x
$gas = xyes
; then
25233 as_ix86_tls_ldm_opt
="--32"
25235 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
25236 if $gcc_cv_ld -V 2>/dev
/null |
grep elf_i386_sol2
> /dev
/null
; then
25237 ld_ix86_tls_ldm_opt
="-melf_i386_sol2"
25239 ld_ix86_tls_ldm_opt
="-melf_i386"
25243 .section .text,"ax",@progbits
25245 .type _start, @function
25247 leal value@tlsldm(%ebx), %eax
25248 call ___tls_get_addr@plt
25250 .section .tdata,"aw'$tls_section_flag'",@progbits
25251 .type value, @object
25253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM reloc" >&5
25254 $as_echo_n "checking assembler for R_386_TLS_LDM reloc... " >&6; }
25255 if test "${gcc_cv_as_ix86_tlsldm+set}" = set; then :
25256 $as_echo_n "(cached) " >&6
25258 gcc_cv_as_ix86_tlsldm
=no
25259 if test x
$gcc_cv_as != x
; then
25260 $as_echo "$conftest_s" > conftest.s
25261 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags $as_ix86_tls_ldm_opt -o conftest.o conftest.s >&5'
25262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25263 (eval $ac_try) 2>&5
25265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25266 test $ac_status = 0; }; }
25268 if test x
$gcc_cv_ld != x
&& test x
$gcc_cv_objdump != x \
25269 && $gcc_cv_ld $ld_ix86_tls_ldm_opt -o conftest conftest.o
$ld_tls_libs -lc > /dev
/null
2>&1; then
25270 if $gcc_cv_objdump -d conftest
2>/dev
/null |
grep nop
> /dev
/null \
25271 || dis conftest
2>/dev
/null |
grep nop
> /dev
/null
; then
25272 gcc_cv_as_ix86_tlsldm
=yes
25277 echo "configure: failed program was" >&5
25280 rm -f conftest.o conftest.s
25283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldm" >&5
25284 $as_echo "$gcc_cv_as_ix86_tlsldm" >&6; }
25287 cat >>confdefs.h
<<_ACEOF
25288 #define HAVE_AS_IX86_TLSLDM `if test $gcc_cv_as_ix86_tlsldm = yes; then echo 1; else echo 0; fi`
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
25296 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
25297 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
25298 $as_echo_n "(cached) " >&6
25300 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=no
25301 if test $in_tree_gas = yes; then
25302 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25303 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25305 elif test x
$gcc_cv_as != x
; then
25307 addl r15 = @ltoffx(x#), gp
25309 ld8.mov r16 = [r15], x#' > conftest.s
25310 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25311 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25312 (eval $ac_try) 2>&5
25314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25315 test $ac_status = 0; }; }
25317 gcc_cv_as_ia64_ltoffx_ldxmov_relocs
=yes
25319 echo "configure: failed program was" >&5
25322 rm -f conftest.o conftest.s
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
25326 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
25327 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
25329 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
25337 *-*-aix*) conftest_s
=' .machine "pwr5"
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
25342 $as_echo_n "checking assembler for .machine directive support... " >&6; }
25343 if test "${gcc_cv_as_machine_directive+set}" = set; then :
25344 $as_echo_n "(cached) " >&6
25346 gcc_cv_as_machine_directive
=no
25347 if test x
$gcc_cv_as != x
; then
25348 $as_echo ' .machine ppc7400' > conftest.s
25349 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25351 (eval $ac_try) 2>&5
25353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25354 test $ac_status = 0; }; }
25356 gcc_cv_as_machine_directive
=yes
25358 echo "configure: failed program was" >&5
25361 rm -f conftest.o conftest.s
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
25365 $as_echo "$gcc_cv_as_machine_directive" >&6; }
25367 if test x
$gcc_cv_as_machine_directive != xyes
; then
25368 echo "*** This target requires an assembler supporting \".machine\"" >&2
25369 echo you can get it from
: ftp://gcc.gnu.org
/pub
/gcc
/infrastructure
/cctools-528.5.dmg
>&2
25370 test x
$build = x
$target && exit 1
25374 *) conftest_s
=' .machine power4
25379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
25380 $as_echo_n "checking assembler for mfcr field support... " >&6; }
25381 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
25382 $as_echo_n "(cached) " >&6
25384 gcc_cv_as_powerpc_mfcrf
=no
25385 if test $in_tree_gas = yes; then
25386 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
25387 then gcc_cv_as_powerpc_mfcrf
=yes
25389 elif test x
$gcc_cv_as != x
; then
25390 $as_echo "$conftest_s" > conftest.s
25391 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; }
25398 gcc_cv_as_powerpc_mfcrf
=yes
25400 echo "configure: failed program was" >&5
25403 rm -f conftest.o conftest.s
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
25407 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
25408 if test $gcc_cv_as_powerpc_mfcrf = yes; then
25410 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
25415 *-*-aix*) conftest_s
=' .machine "pwr5"
25418 *) conftest_s
=' .machine power5
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
25424 $as_echo_n "checking assembler for popcntb support... " >&6; }
25425 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
25426 $as_echo_n "(cached) " >&6
25428 gcc_cv_as_powerpc_popcntb
=no
25429 if test $in_tree_gas = yes; then
25430 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25431 then gcc_cv_as_powerpc_popcntb
=yes
25433 elif test x
$gcc_cv_as != x
; then
25434 $as_echo "$conftest_s" > conftest.s
25435 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25437 (eval $ac_try) 2>&5
25439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25440 test $ac_status = 0; }; }
25442 gcc_cv_as_powerpc_popcntb
=yes
25444 echo "configure: failed program was" >&5
25447 rm -f conftest.o conftest.s
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
25451 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
25452 if test $gcc_cv_as_powerpc_popcntb = yes; then
25454 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
25459 *-*-aix*) conftest_s
=' .machine "pwr5x"
25462 *) conftest_s
=' .machine power5
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
25468 $as_echo_n "checking assembler for fp round support... " >&6; }
25469 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25472 gcc_cv_as_powerpc_fprnd
=no
25473 if test $in_tree_gas = yes; then
25474 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25475 then gcc_cv_as_powerpc_fprnd
=yes
25477 elif test x
$gcc_cv_as != x
; then
25478 $as_echo "$conftest_s" > conftest.s
25479 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25481 (eval $ac_try) 2>&5
25483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25484 test $ac_status = 0; }; }
25486 gcc_cv_as_powerpc_fprnd
=yes
25488 echo "configure: failed program was" >&5
25491 rm -f conftest.o conftest.s
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
25495 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
25496 if test $gcc_cv_as_powerpc_fprnd = yes; then
25498 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
25503 *-*-aix*) conftest_s
=' .machine "pwr6"
25506 *) conftest_s
=' .machine power6
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
25512 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
25513 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
25514 $as_echo_n "(cached) " >&6
25516 gcc_cv_as_powerpc_mfpgpr
=no
25517 if test $in_tree_gas = yes; then
25518 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25519 then gcc_cv_as_powerpc_mfpgpr
=yes
25521 elif test x
$gcc_cv_as != x
; then
25522 $as_echo "$conftest_s" > conftest.s
25523 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25525 (eval $ac_try) 2>&5
25527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25528 test $ac_status = 0; }; }
25530 gcc_cv_as_powerpc_mfpgpr
=yes
25532 echo "configure: failed program was" >&5
25535 rm -f conftest.o conftest.s
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
25539 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
25540 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
25542 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
25547 *-*-aix*) conftest_s
=' .csect .text[PR]
25549 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
25553 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
25554 *) conftest_s
=' .text
25556 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
25559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
25560 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
25561 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
25562 $as_echo_n "(cached) " >&6
25564 gcc_cv_as_powerpc_rel16
=no
25565 if test $in_tree_gas = yes; then
25566 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
25567 then gcc_cv_as_powerpc_rel16
=yes
25569 elif test x
$gcc_cv_as != x
; then
25570 $as_echo "$conftest_s" > conftest.s
25571 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25573 (eval $ac_try) 2>&5
25575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25576 test $ac_status = 0; }; }
25578 gcc_cv_as_powerpc_rel16
=yes
25580 echo "configure: failed program was" >&5
25583 rm -f conftest.o conftest.s
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
25587 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
25588 if test $gcc_cv_as_powerpc_rel16 = yes; then
25590 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
25595 *-*-aix*) conftest_s
=' .machine "pwr6"
25598 *) conftest_s
=' .machine power6
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
25604 $as_echo_n "checking assembler for compare bytes support... " >&6; }
25605 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
25606 $as_echo_n "(cached) " >&6
25608 gcc_cv_as_powerpc_cmpb
=no
25609 if test $in_tree_gas = yes; then
25610 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25611 then gcc_cv_as_powerpc_cmpb
=yes
25613 elif test x
$gcc_cv_as != x
; then
25614 $as_echo "$conftest_s" > conftest.s
25615 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25617 (eval $ac_try) 2>&5
25619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25620 test $ac_status = 0; }; }
25622 gcc_cv_as_powerpc_cmpb
=yes
25624 echo "configure: failed program was" >&5
25627 rm -f conftest.o conftest.s
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
25631 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
25632 if test $gcc_cv_as_powerpc_cmpb = yes; then
25634 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
25639 *-*-aix*) conftest_s
=' .machine "pwr6"
25642 *) conftest_s
=' .machine power6
25647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
25648 $as_echo_n "checking assembler for decimal float support... " >&6; }
25649 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
25650 $as_echo_n "(cached) " >&6
25652 gcc_cv_as_powerpc_dfp
=no
25653 if test $in_tree_gas = yes; then
25654 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25655 then gcc_cv_as_powerpc_dfp
=yes
25657 elif test x
$gcc_cv_as != x
; then
25658 $as_echo "$conftest_s" > conftest.s
25659 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25661 (eval $ac_try) 2>&5
25663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25664 test $ac_status = 0; }; }
25666 gcc_cv_as_powerpc_dfp
=yes
25668 echo "configure: failed program was" >&5
25671 rm -f conftest.o conftest.s
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
25675 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
25676 if test $gcc_cv_as_powerpc_dfp = yes; then
25678 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
25683 *-*-aix*) conftest_s
=' .machine "pwr7"
25686 *) conftest_s
=' .machine power7
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
25692 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
25693 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
25694 $as_echo_n "(cached) " >&6
25696 gcc_cv_as_powerpc_vsx
=no
25697 if test $in_tree_gas = yes; then
25698 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25699 then gcc_cv_as_powerpc_vsx
=yes
25701 elif test x
$gcc_cv_as != x
; then
25702 $as_echo "$conftest_s" > conftest.s
25703 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25705 (eval $ac_try) 2>&5
25707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25708 test $ac_status = 0; }; }
25710 gcc_cv_as_powerpc_vsx
=yes
25712 echo "configure: failed program was" >&5
25715 rm -f conftest.o conftest.s
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
25719 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
25720 if test $gcc_cv_as_powerpc_vsx = yes; then
25722 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
25727 *-*-aix*) conftest_s
=' .machine "pwr7"
25730 *) conftest_s
=' .machine power7
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
25736 $as_echo_n "checking assembler for popcntd support... " >&6; }
25737 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
25738 $as_echo_n "(cached) " >&6
25740 gcc_cv_as_powerpc_popcntd
=no
25741 if test $in_tree_gas = yes; then
25742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25743 then gcc_cv_as_powerpc_popcntd
=yes
25745 elif test x
$gcc_cv_as != x
; then
25746 $as_echo "$conftest_s" > conftest.s
25747 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25749 (eval $ac_try) 2>&5
25751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25752 test $ac_status = 0; }; }
25754 gcc_cv_as_powerpc_popcntd
=yes
25756 echo "configure: failed program was" >&5
25759 rm -f conftest.o conftest.s
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
25763 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
25764 if test $gcc_cv_as_powerpc_popcntd = yes; then
25766 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
25771 *-*-aix*) conftest_s
=' .machine "pwr8"
25772 .csect .text[PR]';;
25773 *) conftest_s
=' .machine power8
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for power8 support" >&5
25778 $as_echo_n "checking assembler for power8 support... " >&6; }
25779 if test "${gcc_cv_as_powerpc_power8+set}" = set; then :
25780 $as_echo_n "(cached) " >&6
25782 gcc_cv_as_powerpc_power8
=no
25783 if test $in_tree_gas = yes; then
25784 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25785 then gcc_cv_as_powerpc_power8
=yes
25787 elif test x
$gcc_cv_as != x
; then
25788 $as_echo "$conftest_s" > conftest.s
25789 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25791 (eval $ac_try) 2>&5
25793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25794 test $ac_status = 0; }; }
25796 gcc_cv_as_powerpc_power8
=yes
25798 echo "configure: failed program was" >&5
25801 rm -f conftest.o conftest.s
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_power8" >&5
25805 $as_echo "$gcc_cv_as_powerpc_power8" >&6; }
25806 if test $gcc_cv_as_powerpc_power8 = yes; then
25808 $as_echo "#define HAVE_AS_POWER8 1" >>confdefs.h
25813 *-*-aix*) conftest_s
=' .csect .text[PR]
25815 *) conftest_s
=' .text
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
25820 $as_echo_n "checking assembler for lwsync support... " >&6; }
25821 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
25822 $as_echo_n "(cached) " >&6
25824 gcc_cv_as_powerpc_lwsync
=no
25825 if test $in_tree_gas = yes; then
25826 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
25827 then gcc_cv_as_powerpc_lwsync
=yes
25829 elif test x
$gcc_cv_as != x
; then
25830 $as_echo "$conftest_s" > conftest.s
25831 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25833 (eval $ac_try) 2>&5
25835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25836 test $ac_status = 0; }; }
25838 gcc_cv_as_powerpc_lwsync
=yes
25840 echo "configure: failed program was" >&5
25843 rm -f conftest.o conftest.s
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
25847 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
25848 if test $gcc_cv_as_powerpc_lwsync = yes; then
25850 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
25855 *-*-aix*) conftest_s
=' .machine "476"
25858 *) conftest_s
=' .machine "476"
25863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
25864 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
25865 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
25866 $as_echo_n "(cached) " >&6
25868 gcc_cv_as_powerpc_dci
=no
25869 if test $in_tree_gas = yes; then
25870 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
25871 then gcc_cv_as_powerpc_dci
=yes
25873 elif test x
$gcc_cv_as != x
; then
25874 $as_echo "$conftest_s" > conftest.s
25875 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
25876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25877 (eval $ac_try) 2>&5
25879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25880 test $ac_status = 0; }; }
25882 gcc_cv_as_powerpc_dci
=yes
25884 echo "configure: failed program was" >&5
25887 rm -f conftest.o conftest.s
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
25891 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
25892 if test $gcc_cv_as_powerpc_dci = yes; then
25894 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25899 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25900 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
25901 $as_echo_n "(cached) " >&6
25903 gcc_cv_as_powerpc_gnu_attribute
=no
25904 if test $in_tree_gas = yes; then
25905 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25906 then gcc_cv_as_powerpc_gnu_attribute
=yes
25908 elif test x
$gcc_cv_as != x
; then
25909 $as_echo '.gnu_attribute 4,1' > conftest.s
25910 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25912 (eval $ac_try) 2>&5
25914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25915 test $ac_status = 0; }; }
25917 gcc_cv_as_powerpc_gnu_attribute
=yes
25919 echo "configure: failed program was" >&5
25922 rm -f conftest.o conftest.s
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
25926 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
25927 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
25929 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
25934 $as_echo_n "checking assembler for tls marker support... " >&6; }
25935 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
25936 $as_echo_n "(cached) " >&6
25938 gcc_cv_as_powerpc_tls_markers
=no
25939 if test $in_tree_gas = yes; then
25940 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
25941 then gcc_cv_as_powerpc_tls_markers
=yes
25943 elif test x
$gcc_cv_as != x
; then
25944 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
25945 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25947 (eval $ac_try) 2>&5
25949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25950 test $ac_status = 0; }; }
25952 gcc_cv_as_powerpc_tls_markers
=yes
25954 echo "configure: failed program was" >&5
25957 rm -f conftest.o conftest.s
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
25961 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
25962 if test $gcc_cv_as_powerpc_tls_markers = yes; then
25964 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
25971 $as_echo_n "checking assembler for .ref support... " >&6; }
25972 if test "${gcc_cv_as_aix_ref+set}" = set; then :
25973 $as_echo_n "(cached) " >&6
25975 gcc_cv_as_aix_ref
=no
25976 if test $in_tree_gas = yes; then
25977 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
25978 then gcc_cv_as_aix_ref
=yes
25980 elif test x
$gcc_cv_as != x
; then
25981 $as_echo ' .csect stuff[rw]
25987 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25989 (eval $ac_try) 2>&5
25991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25992 test $ac_status = 0; }; }
25994 gcc_cv_as_aix_ref
=yes
25996 echo "configure: failed program was" >&5
25999 rm -f conftest.o conftest.s
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
26003 $as_echo "$gcc_cv_as_aix_ref" >&6; }
26004 if test $gcc_cv_as_aix_ref = yes; then
26006 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
26014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
26015 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
26016 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
26017 $as_echo_n "(cached) " >&6
26019 gcc_cv_as_mips_explicit_relocs
=no
26020 if test $in_tree_gas = yes; then
26021 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
26022 then gcc_cv_as_mips_explicit_relocs
=yes
26024 elif test x
$gcc_cv_as != x
; then
26025 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
26026 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26028 (eval $ac_try) 2>&5
26030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26031 test $ac_status = 0; }; }
26033 gcc_cv_as_mips_explicit_relocs
=yes
26035 echo "configure: failed program was" >&5
26038 rm -f conftest.o conftest.s
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
26042 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
26043 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26044 if test x
$target_cpu_default = x
26045 then target_cpu_default
=MASK_EXPLICIT_RELOCS
26046 else target_cpu_default
="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
26050 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
26051 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
26052 $as_echo_n "(cached) " >&6
26054 gcc_cv_as_mips_no_shared
=no
26055 if test $in_tree_gas = yes; then
26056 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
26057 then gcc_cv_as_mips_no_shared
=yes
26059 elif test x
$gcc_cv_as != x
; then
26060 $as_echo 'nop' > conftest.s
26061 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
26062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26063 (eval $ac_try) 2>&5
26065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26066 test $ac_status = 0; }; }
26068 gcc_cv_as_mips_no_shared
=yes
26070 echo "configure: failed program was" >&5
26073 rm -f conftest.o conftest.s
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
26077 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
26078 if test $gcc_cv_as_mips_no_shared = yes; then
26080 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
26085 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
26086 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
26087 $as_echo_n "(cached) " >&6
26089 gcc_cv_as_mips_gnu_attribute
=no
26090 if test $in_tree_gas = yes; then
26091 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26092 then gcc_cv_as_mips_gnu_attribute
=yes
26094 elif test x
$gcc_cv_as != x
; then
26095 $as_echo '.gnu_attribute 4,1' > conftest.s
26096 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26098 (eval $ac_try) 2>&5
26100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26101 test $ac_status = 0; }; }
26103 gcc_cv_as_mips_gnu_attribute
=yes
26105 echo "configure: failed program was" >&5
26108 rm -f conftest.o conftest.s
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
26112 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
26113 if test $gcc_cv_as_mips_gnu_attribute = yes; then
26115 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .micromips support" >&5
26120 $as_echo_n "checking assembler for .micromips support... " >&6; }
26121 if test "${gcc_cv_as_micromips_support+set}" = set; then :
26122 $as_echo_n "(cached) " >&6
26124 gcc_cv_as_micromips_support
=no
26125 if test x
$gcc_cv_as != x
; then
26126 $as_echo '.set micromips' > conftest.s
26127 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
26128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26129 (eval $ac_try) 2>&5
26131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26132 test $ac_status = 0; }; }
26134 gcc_cv_as_micromips_support
=yes
26136 echo "configure: failed program was" >&5
26139 rm -f conftest.o conftest.s
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_micromips_support" >&5
26143 $as_echo "$gcc_cv_as_micromips_support" >&6; }
26144 if test $gcc_cv_as_micromips_support = yes; then
26146 $as_echo "#define HAVE_GAS_MICROMIPS 1" >>confdefs.h
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
26151 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
26152 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
26153 $as_echo_n "(cached) " >&6
26155 gcc_cv_as_mips_dtprelword
=no
26156 if test $in_tree_gas = yes; then
26157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26158 then gcc_cv_as_mips_dtprelword
=yes
26160 elif test x
$gcc_cv_as != x
; then
26161 $as_echo '.section .tdata,"awT",@progbits
26165 .dtprelword x+0x8000' > conftest.s
26166 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26168 (eval $ac_try) 2>&5
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; }
26173 gcc_cv_as_mips_dtprelword
=yes
26175 echo "configure: failed program was" >&5
26178 rm -f conftest.o conftest.s
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
26182 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
26183 if test $gcc_cv_as_mips_dtprelword = yes; then
26185 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
26190 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
26191 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
26192 $as_echo_n "(cached) " >&6
26194 gcc_cv_as_mips_dspr1_mult
=no
26195 if test x
$gcc_cv_as != x
; then
26196 $as_echo ' .set mips32r2
26204 multu $ac3,$4,$5' > conftest.s
26205 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26207 (eval $ac_try) 2>&5
26209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26210 test $ac_status = 0; }; }
26212 gcc_cv_as_mips_dspr1_mult
=yes
26214 echo "configure: failed program was" >&5
26217 rm -f conftest.o conftest.s
26220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
26221 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
26222 if test $gcc_cv_as_mips_dspr1_mult = yes; then
26224 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
26229 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
26230 gcc_cv_as_ld_jalr_reloc
=no
26231 if test $gcc_cv_as_mips_explicit_relocs = yes; then
26232 if test $in_tree_ld = yes ; then
26233 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 \
26234 && test $in_tree_ld_is_elf = yes; then
26235 gcc_cv_as_ld_jalr_reloc
=yes
26237 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26238 echo ' .ent x' > conftest.s
26239 echo 'x: lw $2,%got_disp(y)($3)' >> conftest.s
26240 echo ' lw $25,%call16(y)($28)' >> conftest.s
26241 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
26242 echo '1: jalr $25' >> conftest.s
26243 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
26244 echo '1: jalr $25' >> conftest.s
26245 echo ' .end x' >> conftest.s
26246 if $gcc_cv_as -o conftest.o conftest.s
>/dev
/null
2>&5 \
26247 && $gcc_cv_ld -shared -o conftest.so conftest.o
>/dev
/null
2>&5; then
26248 if $gcc_cv_objdump -d conftest.so |
grep jalr
>/dev
/null
2>&1 \
26249 && $gcc_cv_objdump -d conftest.so |
grep "bal.*<x>" >/dev
/null
2>&1; then
26250 gcc_cv_as_ld_jalr_reloc
=yes
26256 if test $gcc_cv_as_ld_jalr_reloc = yes; then
26257 if test x
$target_cpu_default = x
; then
26258 target_cpu_default
=MASK_RELAX_PIC_CALLS
26260 target_cpu_default
="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
26264 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
26267 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
26268 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
26269 $as_echo_n "(cached) " >&6
26271 gcc_cv_ld_mips_personality_relaxation
=no
26272 if test $in_tree_ld = yes ; then
26273 if test "$gcc_cv_gld_major_version" -eq 2 \
26274 -a "$gcc_cv_gld_minor_version" -ge 21 \
26275 -o "$gcc_cv_gld_major_version" -gt 2; then
26276 gcc_cv_ld_mips_personality_relaxation
=yes
26278 elif test x
$gcc_cv_as != x \
26279 -a x
$gcc_cv_ld != x \
26280 -a x
$gcc_cv_readelf != x
; then
26281 cat > conftest.s
<<EOF
26283 .cfi_personality 0x80,indirect_ptr
26290 .section .data,"aw",@progbits
26294 if $gcc_cv_as -KPIC -o conftest.o conftest.s
> /dev
/null
2>&1 \
26295 && $gcc_cv_ld -o conftest conftest.o
-shared > /dev
/null
2>&1; then
26296 if $gcc_cv_readelf -d conftest
2>&1 \
26297 |
grep TEXTREL
> /dev
/null
2>&1; then
26299 elif $gcc_cv_readelf --relocs conftest
2>&1 \
26300 |
grep 'R_MIPS_REL32 *$' > /dev
/null
2>&1; then
26303 gcc_cv_ld_mips_personality_relaxation
=yes
26307 rm -f conftest.s conftest.o conftest
26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
26310 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
26311 if test x
$gcc_cv_ld_mips_personality_relaxation = xyes
; then
26313 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mnan= support" >&5
26318 $as_echo_n "checking assembler for -mnan= support... " >&6; }
26319 if test "${gcc_cv_as_mips_nan+set}" = set; then :
26320 $as_echo_n "(cached) " >&6
26322 gcc_cv_as_mips_nan
=no
26323 if test x
$gcc_cv_as != x
; then
26324 $as_echo '' > conftest.s
26325 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -mnan=2008 -o conftest.o conftest.s >&5'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }
26332 gcc_cv_as_mips_nan
=yes
26334 echo "configure: failed program was" >&5
26337 rm -f conftest.o conftest.s
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_nan" >&5
26341 $as_echo "$gcc_cv_as_mips_nan" >&6; }
26342 if test $gcc_cv_as_mips_nan = yes; then
26344 $as_echo "#define HAVE_AS_NAN 1" >>confdefs.h
26347 if test x
$gcc_cv_as_mips_nan = xno \
26348 && test x
$with_nan != x
; then
26349 as_fn_error
"Requesting --with-nan= requires assembler support for -mnan=" "$LINENO" 5
26354 # Mips and HP-UX need the GNU assembler.
26355 # Linux on IA64 might be able to use the Intel assembler.
26358 mips
*-*-* |
*-*-hpux* )
26359 if test x
$gas_flag = xyes \
26360 ||
test x
"$host" != x
"$build" \
26361 ||
test ! -x "$gcc_cv_as" \
26362 ||
"$gcc_cv_as" -v < /dev
/null
2>&1 |
grep GNU
> /dev
/null
; then
26365 echo "*** This configuration requires the GNU assembler" >&2
26371 # ??? Not all targets support dwarf2 debug_line, even within a version
26372 # of gas. Moreover, we need to emit a valid instruction to trigger any
26373 # info to the output file. So, as supported targets are added to gas 2.11,
26374 # add some instruction here to (also) show we expect this might work.
26375 # ??? Once 2.11 is released, probably need to add first known working
26376 # version to the per-target configury.
26377 case "$cpu_type" in
26378 aarch64 | alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze \
26379 | mips | nios2 | pa | rs6000 | score | sparc | spu | tilegx | tilepro \
26380 | xstormy16 | xtensa
)
26390 if test x
"$insn" != x
; then
26392 .file 1 \"conftest.s\"
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
26396 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
26397 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
26398 $as_echo_n "(cached) " >&6
26400 gcc_cv_as_dwarf2_debug_line
=no
26401 if test $in_tree_gas = yes; then
26402 if test $in_tree_gas_is_elf = yes \
26403 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26404 then gcc_cv_as_dwarf2_debug_line
=yes
26406 elif test x
$gcc_cv_as != x
; then
26407 $as_echo "$conftest_s" > conftest.s
26408 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26410 (eval $ac_try) 2>&5
26412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26413 test $ac_status = 0; }; }
26415 if test x
$gcc_cv_objdump != x \
26416 && $gcc_cv_objdump -h conftest.o
2> /dev
/null \
26417 |
grep debug_line
> /dev
/null
2>&1; then
26418 gcc_cv_as_dwarf2_debug_line
=yes
26421 echo "configure: failed program was" >&5
26424 rm -f conftest.o conftest.s
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
26428 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
26431 # The .debug_line file table must be in the exact order that
26432 # we specified the files, since these indices are also used
26433 # by DW_AT_decl_file. Approximate this test by testing if
26434 # the assembler bitches if the same index is assigned twice.
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
26436 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
26437 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
26438 $as_echo_n "(cached) " >&6
26440 gcc_cv_as_dwarf2_file_buggy
=no
26441 if test x
$gcc_cv_as != x
; then
26442 $as_echo ' .file 1 "foo.s"
26443 .file 1 "bar.s"' > conftest.s
26444 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26446 (eval $ac_try) 2>&5
26448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26449 test $ac_status = 0; }; }
26451 gcc_cv_as_dwarf2_file_buggy
=yes
26453 echo "configure: failed program was" >&5
26456 rm -f conftest.o conftest.s
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
26460 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
26463 if test $gcc_cv_as_dwarf2_debug_line = yes \
26464 && test $gcc_cv_as_dwarf2_file_buggy = no
; then
26466 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
26471 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
26472 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
26473 $as_echo_n "(cached) " >&6
26475 gcc_cv_as_gdwarf2_flag
=no
26476 if test $in_tree_gas = yes; then
26477 if test $in_tree_gas_is_elf = yes \
26478 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26479 then gcc_cv_as_gdwarf2_flag
=yes
26481 elif test x
$gcc_cv_as != x
; then
26482 $as_echo "$insn" > conftest.s
26483 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
26484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26485 (eval $ac_try) 2>&5
26487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26488 test $ac_status = 0; }; }
26490 gcc_cv_as_gdwarf2_flag
=yes
26492 echo "configure: failed program was" >&5
26495 rm -f conftest.o conftest.s
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
26499 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
26500 if test $gcc_cv_as_gdwarf2_flag = yes; then
26502 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
26506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
26507 $as_echo_n "checking assembler for --gstabs option... " >&6; }
26508 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
26509 $as_echo_n "(cached) " >&6
26511 gcc_cv_as_gstabs_flag
=no
26512 if test $in_tree_gas = yes; then
26513 if test $in_tree_gas_is_elf = yes \
26514 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
26515 then gcc_cv_as_gstabs_flag
=yes
26517 elif test x
$gcc_cv_as != x
; then
26518 $as_echo "$insn" > conftest.s
26519 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
26520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26521 (eval $ac_try) 2>&5
26523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26524 test $ac_status = 0; }; }
26526 gcc_cv_as_gstabs_flag
=yes
26528 echo "configure: failed program was" >&5
26531 rm -f conftest.o conftest.s
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
26535 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
26536 if test $gcc_cv_as_gstabs_flag = yes; then
26538 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
26543 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
26544 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
26545 $as_echo_n "(cached) " >&6
26547 gcc_cv_as_debug_prefix_map_flag
=no
26548 if test $in_tree_gas = yes; then
26549 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
26550 then gcc_cv_as_debug_prefix_map_flag
=yes
26552 elif test x
$gcc_cv_as != x
; then
26553 $as_echo "$insn" > conftest.s
26554 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
26555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26556 (eval $ac_try) 2>&5
26558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26559 test $ac_status = 0; }; }
26561 gcc_cv_as_debug_prefix_map_flag
=yes
26563 echo "configure: failed program was" >&5
26566 rm -f conftest.o conftest.s
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
26570 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
26571 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
26573 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compressed debug sections" >&5
26579 $as_echo_n "checking assembler for compressed debug sections... " >&6; }
26580 if test "${gcc_cv_as_compress_debug+set}" = set; then :
26581 $as_echo_n "(cached) " >&6
26583 gcc_cv_as_compress_debug
=no
26584 if test x
$gcc_cv_as != x
; then
26585 $as_echo '' > conftest.s
26586 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags --compress-debug-sections -o conftest.o conftest.s >&5'
26587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26588 (eval $ac_try) 2>&5
26590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26591 test $ac_status = 0; }; }
26593 # gas compiled without zlib cannot compress debug sections and warns
26594 # about it, but still exits successfully. So check for this, too.
26595 if $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
2>&1 |
grep -i warning
> /dev
/null
26597 gcc_cv_as_compress_debug
=0
26598 elif $gcc_cv_as --compress-debug-sections -o conftest.o conftest.s
> /dev
/null
2>&1
26600 gcc_cv_as_compress_debug
=1
26601 gcc_cv_as_compress_debug_option
="--compress-debug-sections"
26602 gcc_cv_as_no_compress_debug_option
="--nocompress-debug-sections"
26604 gcc_cv_as_compress_debug
=0
26605 # FIXME: Future gas versions will support ELF gABI style via
26606 # --compress-debug-sections[=type].
26609 echo "configure: failed program was" >&5
26612 rm -f conftest.o conftest.s
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_compress_debug" >&5
26616 $as_echo "$gcc_cv_as_compress_debug" >&6; }
26619 cat >>confdefs.h
<<_ACEOF
26620 #define HAVE_AS_COMPRESS_DEBUG $gcc_cv_as_compress_debug
26624 cat >>confdefs.h
<<_ACEOF
26625 #define AS_COMPRESS_DEBUG_OPTION "$gcc_cv_as_compress_debug_option"
26629 cat >>confdefs.h
<<_ACEOF
26630 #define AS_NO_COMPRESS_DEBUG_OPTION "$gcc_cv_as_no_compress_debug_option"
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
26635 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
26636 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
26637 $as_echo_n "(cached) " >&6
26639 gcc_cv_as_lcomm_with_alignment
=no
26640 if test x
$gcc_cv_as != x
; then
26641 $as_echo '.lcomm bar,4,16' > conftest.s
26642 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26644 (eval $ac_try) 2>&5
26646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26647 test $ac_status = 0; }; }
26649 gcc_cv_as_lcomm_with_alignment
=yes
26651 echo "configure: failed program was" >&5
26654 rm -f conftest.o conftest.s
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
26658 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
26659 if test $gcc_cv_as_lcomm_with_alignment = yes; then
26661 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
26665 if test x
$with_sysroot = x
&& test x
$host = x
$target \
26666 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26667 && test "$prefix" != "NONE"; then
26669 cat >>confdefs.h
<<_ACEOF
26670 #define PREFIX_INCLUDE_DIR "$prefix/include"
26675 # Determine the version of glibc, if any, used on the target.
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target glibc version" >&5
26677 $as_echo_n "checking for target glibc version... " >&6; }
26679 # Check whether --with-glibc-version was given.
26680 if test "${with_glibc_version+set}" = set; then :
26681 withval
=$with_glibc_version;
26682 if echo "$with_glibc_version" |
grep '^[0-9][0-9]*\.[0-9][0-9]*$'; then
26683 glibc_version_major
=`echo "$with_glibc_version" | sed -e 's/\..*//'`
26684 glibc_version_minor
=`echo "$with_glibc_version" | sed -e 's/.*\.//'`
26686 as_fn_error
"option --with-glibc-version requires a version number M.N" "$LINENO" 5
26690 glibc_version_major
=0
26691 glibc_version_minor
=0
26692 if test -f $target_header_dir/features.h \
26693 && glibc_version_major_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+[0-9]' $target_header_dir/features.h` \
26694 && glibc_version_minor_define
=`$EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+[0-9]' $target_header_dir/features.h`; then
26695 glibc_version_major
=`echo "$glibc_version_major_define" | sed -e 's/.*__GLIBC__[ ]*//'`
26696 glibc_version_minor
=`echo "$glibc_version_minor_define" | sed -e 's/.*__GLIBC_MINOR__[ ]*//'`
26700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glibc_version_major.$glibc_version_minor" >&5
26701 $as_echo "$glibc_version_major.$glibc_version_minor" >&6; }
26703 # Check whether --enable-gnu-unique-object was given.
26704 if test "${enable_gnu_unique_object+set}" = set; then :
26705 enableval
=$enable_gnu_unique_object; case $enable_gnu_unique_object in
26707 *) as_fn_error
"'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
26708 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
26712 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
26713 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
26714 $as_echo_n "(cached) " >&6
26716 gcc_cv_as_gnu_unique_object
=no
26717 if test $in_tree_gas = yes; then
26718 if test $in_tree_gas_is_elf = yes \
26719 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
26720 then gcc_cv_as_gnu_unique_object
=yes
26722 elif test x
$gcc_cv_as != x
; then
26723 $as_echo '.type foo, '$target_type_format_char'gnu_unique_object' > conftest.s
26724 if { ac_try
='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
26725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26726 (eval $ac_try) 2>&5
26728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26729 test $ac_status = 0; }; }
26731 gcc_cv_as_gnu_unique_object
=yes
26733 echo "configure: failed program was" >&5
26736 rm -f conftest.o conftest.s
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
26740 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
26741 if test $gcc_cv_as_gnu_unique_object = yes; then
26742 # We need to unquote above to to use the definition from config.gcc.
26743 # Also check for ld.so support, i.e. glibc 2.11 or higher.
26745 if test $glibc_version_major -gt 2 \
26746 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 11 ); then :
26747 enable_gnu_unique_object
=yes
26753 if test x
$enable_gnu_unique_object = xyes
; then
26755 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
26760 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
26761 if test "${gcc_cv_as_line_zero+set}" = set; then :
26762 $as_echo_n "(cached) " >&6
26764 gcc_cv_as_line_zero
=no
26765 if test $in_tree_gas = yes; then
26766 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
26767 then gcc_cv_as_line_zero
=yes
26769 elif test "x$gcc_cv_as" != x
; then
26770 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
26771 if { ac_try
='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
26772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26773 (eval $ac_try) 2>&5
26775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26776 test $ac_status = 0; }; } &&
26777 test "x`cat conftest.out`" = x
26779 gcc_cv_as_line_zero
=yes
26781 echo "configure: failed program was" >&5
26783 echo "configure: error output was" >&5
26784 cat conftest.out
>&5
26786 rm -f conftest.o conftest.s conftest.out
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
26790 $as_echo "$gcc_cv_as_line_zero" >&6; }
26791 if test "x$gcc_cv_as_line_zero" = xyes
; then
26793 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
26797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
26798 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
26799 gcc_cv_ld_eh_frame_hdr
=no
26800 if test $in_tree_ld = yes ; then
26801 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 \
26802 && test $in_tree_ld_is_elf = yes; then
26803 gcc_cv_ld_eh_frame_hdr
=yes
26805 elif test x
$gcc_cv_ld != x
; then
26806 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26807 # Check if linker supports --eh-frame-hdr option
26808 if $gcc_cv_ld --help 2>/dev
/null |
grep eh-frame-hdr
> /dev
/null
; then
26809 gcc_cv_ld_eh_frame_hdr
=yes
26814 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
26815 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2251; then
26816 gcc_cv_ld_eh_frame_hdr
=yes
26823 if test x
"$gcc_cv_ld_eh_frame_hdr" = xyes
; then
26825 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
26829 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
26831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker CIEv3 in .eh_frame support" >&5
26832 $as_echo_n "checking linker CIEv3 in .eh_frame support... " >&6; }
26833 gcc_cv_ld_eh_frame_ciev3
=no
26834 if test $in_tree_ld = yes ; then
26835 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 \
26836 && test $in_tree_ld_is_elf = yes; then
26837 gcc_cv_ld_eh_frame_ciev3
=yes
26839 elif test x
$gcc_cv_ld != x
; then
26840 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
26841 gcc_cv_ld_eh_frame_ciev3
=yes
26842 if test 0"$ld_date" -lt 20040513; then
26843 if test -n "$ld_date"; then
26844 # If there was date string, but was earlier than 2004-05-13, fail
26845 gcc_cv_ld_eh_frame_ciev3
=no
26846 elif test "$ld_vers_major" -lt 2; then
26847 gcc_cv_ld_eh_frame_ciev3
=no
26848 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
26849 gcc_cv_ld_eh_frame_ciev3
=no
26855 # Sun ld added support for CIE v3 in .eh_frame in Solaris 11.1.
26856 if test "$ld_vers_major" -gt 1 ||
test "$ld_vers_minor" -ge 2324; then
26857 gcc_cv_ld_eh_frame_ciev3
=yes
26864 cat >>confdefs.h
<<_ACEOF
26865 #define HAVE_LD_EH_FRAME_CIEV3 `if test x"$gcc_cv_ld_eh_frame_ciev3" = xyes; then echo 1; else echo 0; fi`
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_ciev3" >&5
26869 $as_echo "$gcc_cv_ld_eh_frame_ciev3" >&6; }
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
26872 $as_echo_n "checking linker position independent executable support... " >&6; }
26874 if test $in_tree_ld = yes ; then
26875 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 \
26876 && test $in_tree_ld_is_elf = yes; then
26879 elif test x
$gcc_cv_ld != x
; then
26880 # Check if linker supports -pie option
26881 if $gcc_cv_ld --help 2>/dev
/null |
grep -- -pie > /dev
/null
; then
26885 if test x
"$gcc_cv_ld_pie" = xyes
; then
26887 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
26891 $as_echo "$gcc_cv_ld_pie" >&6; }
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
26894 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
26895 gcc_cv_ld_eh_gc_sections
=no
26896 if test $in_tree_ld = yes ; then
26897 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 \
26898 && test $in_tree_ld_is_elf = yes; then
26899 gcc_cv_ld_eh_gc_sections
=yes
26901 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
-a x
$gcc_cv_objdump != x
; then
26902 cat > conftest.s
<<EOF
26905 .type _start, @function
26908 .size _start, .-_start
26909 .section .text.foo,"ax",@progbits
26910 .type foo, @function
26914 .section .gcc_except_table.foo,"a",@progbits
26917 .section .eh_frame,"a",@progbits
26920 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26921 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26922 |
grep "gc-sections option ignored" > /dev
/null
; then
26923 gcc_cv_ld_eh_gc_sections
=no
26924 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26925 |
grep gcc_except_table
> /dev
/null
; then
26926 gcc_cv_ld_eh_gc_sections
=yes
26927 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
26928 if test x
$gcc_cv_as_comdat_group != xyes
; then
26929 gcc_cv_ld_eh_gc_sections
=no
26930 cat > conftest.s
<<EOF
26933 .type _start, @function
26936 .size _start, .-_start
26937 .section .gnu.linkonce.t.foo,"ax",@progbits
26938 .type foo, @function
26942 .section .gcc_except_table.foo,"a",@progbits
26945 .section .eh_frame,"a",@progbits
26948 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
26949 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
26950 |
grep "gc-sections option ignored" > /dev
/null
; then
26951 gcc_cv_ld_eh_gc_sections
=no
26952 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
26953 |
grep gcc_except_table
> /dev
/null
; then
26954 gcc_cv_ld_eh_gc_sections
=yes
26960 rm -f conftest.s conftest.o conftest
26964 # ??? This apparently exposes a binutils bug with PC-relative relocations.
26965 gcc_cv_ld_eh_gc_sections
=no
26968 if test x
$gcc_cv_ld_eh_gc_sections = xyes
; then
26970 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
26974 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
26977 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
26978 gcc_cv_ld_eh_gc_sections_bug
=no
26979 if test $in_tree_ld = yes ; then
26980 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 \
26981 && test $in_tree_ld_is_elf = yes; then
26982 gcc_cv_ld_eh_gc_sections_bug
=yes
26984 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
26985 gcc_cv_ld_eh_gc_sections_bug
=yes
26986 cat > conftest.s
<<EOF
26989 .type _start, @function
26992 .size _start, .-_start
26993 .section .text.startup.foo,"ax",@progbits
26994 .type foo, @function
26998 .section .gcc_except_table.foo,"a",@progbits
27001 .section .eh_frame,"a",@progbits
27004 if $gcc_cv_as -o conftest.o conftest.s
> /dev
/null
2>&1; then
27005 if $gcc_cv_ld -o conftest conftest.o
--entry=_start
--gc-sections 2>&1 \
27006 |
grep "gc-sections option ignored" > /dev
/null
; then
27008 elif $gcc_cv_objdump -h conftest
2> /dev
/null \
27009 |
grep gcc_except_table
> /dev
/null
; then
27010 gcc_cv_ld_eh_gc_sections_bug
=no
27013 rm -f conftest.s conftest.o conftest
27015 if test x
$gcc_cv_ld_eh_gc_sections_bug = xyes
; then
27017 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
27020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
27021 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for compressed debug sections" >&5
27024 $as_echo_n "checking linker for compressed debug sections... " >&6; }
27025 # gold/gld support compressed debug sections since binutils 2.19/2.21
27026 if test $in_tree_ld = yes ; then
27027 gcc_cv_ld_compress_debug
=0
27028 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 \
27029 && test $in_tree_ld_is_elf = yes && test $ld_is_gold = yes; then
27030 gcc_cv_ld_compress_debug
=2
27031 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27032 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 \
27033 && test $in_tree_ld_is_elf = yes; then
27034 gcc_cv_ld_compress_debug
=1
27036 elif echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27037 gcc_cv_ld_compress_debug
=1
27038 if test 0"$ld_date" -lt 20050308; then
27039 if test -n "$ld_date"; then
27040 # If there was date string, but was earlier than 2005-03-08, fail
27041 gcc_cv_ld_compress_debug
=0
27042 elif test "$ld_vers_major" -lt 2; then
27043 gcc_cv_ld_compress_debug
=0
27044 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 21; then
27045 gcc_cv_ld_compress_debug
=0
27048 if test $ld_is_gold = yes; then
27049 gcc_cv_ld_compress_debug
=2
27050 gcc_cv_ld_compress_debug_option
="--compress-debug-sections"
27053 case "${target}" in
27055 # Introduced in Solaris 11.2.
27056 if $gcc_cv_ld --help 2>&1 |
grep -- '-z compress-sections' > /dev
/null
; then
27057 gcc_cv_ld_compress_debug
=3
27058 gcc_cv_ld_compress_debug_option
="-z compress-sections"
27060 gcc_cv_ld_compress_debug
=0
27064 # Assume linkers other than GNU ld don't support compessed debug
27066 gcc_cv_ld_compress_debug
=0
27071 cat >>confdefs.h
<<_ACEOF
27072 #define HAVE_LD_COMPRESS_DEBUG $gcc_cv_ld_compress_debug
27076 cat >>confdefs.h
<<_ACEOF
27077 #define LD_COMPRESS_DEBUG_OPTION "$gcc_cv_ld_compress_debug_option"
27080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_compress_debug" >&5
27081 $as_echo "$gcc_cv_ld_compress_debug" >&6; }
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
27088 $as_echo_n "checking linker --as-needed support... " >&6; }
27089 if test "${gcc_cv_ld_as_needed+set}" = set; then :
27090 $as_echo_n "(cached) " >&6
27092 gcc_cv_ld_as_needed
=no
27093 gcc_cv_ld_as_needed_option
='--as-needed'
27094 gcc_cv_ld_no_as_needed_option
='--no-as-needed'
27095 if test $in_tree_ld = yes ; then
27096 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 \
27097 && test $in_tree_ld_is_elf = yes; then
27098 gcc_cv_ld_as_needed
=yes
27100 elif test x
$gcc_cv_ld != x
; then
27101 # Check if linker supports --as-needed and --no-as-needed options
27102 if $gcc_cv_ld --help 2>/dev
/null |
grep as-needed
> /dev
/null
; then
27103 gcc_cv_ld_as_needed
=yes
27106 # Solaris 2 ld always supports -z ignore/-z record.
27108 gcc_cv_ld_as_needed
=yes
27109 gcc_cv_ld_as_needed_option
="-z ignore"
27110 gcc_cv_ld_no_as_needed_option
="-z record"
27115 # --as-needed/-z ignore can only be used if libgcc_s.so.1 uses
27116 # dl_iterate_phdr, i.e. since Solaris 11.
27118 *-*-solaris2.1
[1-9]*)
27120 i?
86-*-* | x86_64-
*-*)
27121 if echo "$ld_ver" |
grep GNU
> /dev
/null
; then
27122 # Doesn't work with gld on Solaris/x86 due to PR ld/12320.
27123 gcc_cv_ld_as_needed
=no
27129 gcc_cv_ld_as_needed
=no
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
27135 $as_echo "$gcc_cv_ld_as_needed" >&6; }
27136 if test x
"$gcc_cv_ld_as_needed" = xyes
; then
27138 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
27141 cat >>confdefs.h
<<_ACEOF
27142 #define LD_AS_NEEDED_OPTION "$gcc_cv_ld_as_needed_option"
27146 cat >>confdefs.h
<<_ACEOF
27147 #define LD_NO_AS_NEEDED_OPTION "$gcc_cv_ld_no_as_needed_option"
27152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker mapfile support for clearing hardware capabilities" >&5
27153 $as_echo_n "checking linker mapfile support for clearing hardware capabilities... " >&6; }
27154 saved_LDFLAGS
="$LDFLAGS"
27155 for clearcap_map
in sol2-clearcapv2.map sol2-clearcap.map
; do
27156 LDFLAGS
="$saved_LDFLAGS -Wl,-M,${srcdir}/config/$clearcap_map"
27157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27158 /* end confdefs.h. */
27159 int main(void) {return 0;}
27161 if ac_fn_c_try_link
"$LINENO"; then :
27162 gcc_cv_ld_clearcap
=yes; break
27164 gcc_cv_ld_clearcap
=no
27166 rm -f core conftest.err conftest.
$ac_objext \
27167 conftest
$ac_exeext conftest.
$ac_ext
27169 LDFLAGS
="$saved_LDFLAGS"
27170 if test "x$gcc_cv_ld_clearcap" = xyes
; then
27172 $as_echo "#define HAVE_LD_CLEARCAP 1" >>confdefs.h
27174 ac_config_links
="$ac_config_links clearcap.map:${srcdir}/config/$clearcap_map"
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_clearcap" >&5
27178 $as_echo "$gcc_cv_ld_clearcap" >&6; }
27180 case "$target:$tm_file" in
27181 powerpc64-
*-freebsd* | powerpc64
*-*-linux* | powerpc
*-*-linux*rs6000
/biarch64.h
*)
27184 emul_name
="-melf64lppc"
27187 emul_name
="-melf64ppc"
27190 emul_name
="-melf64ppc_fbsd"
27193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
27194 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
27195 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
27196 $as_echo_n "(cached) " >&6
27198 gcc_cv_ld_no_dot_syms
=no
27199 if test x
"$ld_is_gold" = xyes
; then
27200 gcc_cv_ld_no_dot_syms
=yes
27201 elif test $in_tree_ld = yes ; then
27202 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
27203 gcc_cv_ld_no_dot_syms
=yes
27205 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27206 cat > conftest1.s
<<EOF
27210 cat > conftest2.s
<<EOF
27211 .section ".opd","aw"
27214 .type foo,@function
27216 .quad .LEfoo,.TOC.@tocbase,0
27222 if $gcc_cv_as -a64 -o conftest1.o conftest1.s
> /dev
/null
2>&1 \
27223 && $gcc_cv_as -a64 -o conftest2.o conftest2.s
> /dev
/null
2>&1 \
27224 && $gcc_cv_ld $emul_name -o conftest conftest1.o conftest2.o
> /dev
/null
2>&1; then
27225 gcc_cv_ld_no_dot_syms
=yes
27227 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
27232 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
27233 if test x
"$gcc_cv_ld_no_dot_syms" = xyes
; then
27235 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27240 $as_echo_n "checking linker large toc support... " >&6; }
27241 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27242 $as_echo_n "(cached) " >&6
27244 gcc_cv_ld_large_toc
=no
27245 if test x
"$ld_is_gold" = xyes
; then
27246 gcc_cv_ld_large_toc
=yes
27247 elif test $in_tree_ld = yes ; then
27248 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
27249 gcc_cv_ld_large_toc
=yes
27251 elif test x
$gcc_cv_as != x
-a x
$gcc_cv_ld != x
; then
27252 cat > conftest.s
<<EOF
27253 .section ".tbss","awT",@nobits
27259 addis 9,13,ie0@got@tprel@ha
27260 ld 9,ie0@got@tprel@l(9)
27262 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1 \
27263 && $gcc_cv_ld $emul_name --no-toc-sort -o conftest conftest.o
> /dev
/null
2>&1; then
27264 gcc_cv_ld_large_toc
=yes
27266 rm -f conftest conftest.o conftest.s
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27271 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27272 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27274 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
27283 $as_echo_n "checking linker large toc support... " >&6; }
27284 if test "${gcc_cv_ld_large_toc+set}" = set; then :
27285 $as_echo_n "(cached) " >&6
27287 gcc_cv_ld_large_toc
=no
27288 if test x
$gcc_cv_as != x
; then
27289 cat > conftest.s
<<EOF
27299 if $gcc_cv_as -a64 -o conftest.o conftest.s
> /dev
/null
2>&1; then
27300 gcc_cv_ld_large_toc
=yes
27302 rm -f conftest conftest.o conftest.s
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
27307 $as_echo "$gcc_cv_ld_large_toc" >&6; }
27308 if test x
"$gcc_cv_ld_large_toc" = xyes
; then
27310 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
27317 $as_echo_n "checking linker --build-id support... " >&6; }
27318 if test "${gcc_cv_ld_buildid+set}" = set; then :
27319 $as_echo_n "(cached) " >&6
27321 gcc_cv_ld_buildid
=no
27322 if test $in_tree_ld = yes ; then
27323 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27324 "$gcc_cv_gld_minor_version" -ge 18 -o \
27325 "$gcc_cv_gld_major_version" -gt 2 \
27326 && test $in_tree_ld_is_elf = yes; then
27327 gcc_cv_ld_buildid
=yes
27329 elif test x
$gcc_cv_ld != x
; then
27330 if $gcc_cv_ld --help 2>/dev
/null |
grep build-id
> /dev
/null
; then
27331 gcc_cv_ld_buildid
=yes
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
27336 $as_echo "$gcc_cv_ld_buildid" >&6; }
27337 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27339 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
27343 # Check whether --enable-linker-build-id was given.
27344 if test "${enable_linker_build_id+set}" = set; then :
27345 enableval
=$enable_linker_build_id;
27347 enable_linker_build_id
=no
27351 if test x
"$enable_linker_build_id" = xyes
; then
27352 if test x
"$gcc_cv_ld_buildid" = xyes
; then
27354 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
27358 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
27362 # In binutils 2.21, GNU ld gained support for new emulations fully
27363 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
27365 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
27366 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
27367 $as_echo_n "(cached) " >&6
27369 gcc_cv_ld_sol2_emulation
=no
27370 if test $in_tree_ld = yes ; then
27371 if test "$gcc_cv_gld_major_version" -eq 2 -a \
27372 "$gcc_cv_gld_minor_version" -ge 21 -o \
27373 "$gcc_cv_gld_major_version" -gt 2 \
27374 && test $in_tree_ld_is_elf = yes; then
27375 gcc_cv_ld_sol2_emulation
=yes
27377 elif test x
$gcc_cv_ld != x
; then
27378 if $gcc_cv_ld -V 2>/dev
/null |
sed -e '1,/Supported emulations/d;q' | \
27379 grep _sol2
> /dev
/null
; then
27380 gcc_cv_ld_sol2_emulation
=yes
27384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
27385 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
27386 if test x
"$gcc_cv_ld_sol2_emulation" = xyes
; then
27388 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
27392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
27393 $as_echo_n "checking linker --sysroot support... " >&6; }
27394 if test "${gcc_cv_ld_sysroot+set}" = set; then :
27395 $as_echo_n "(cached) " >&6
27397 gcc_cv_ld_sysroot
=no
27398 if test $in_tree_ld = yes ; then
27399 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
27400 gcc_cv_ld_sysroot
=yes
27402 elif test x
$gcc_cv_ld != x
; then
27403 if $gcc_cv_ld --help 2>/dev
/null |
grep sysroot
> /dev
/null
; then
27404 gcc_cv_ld_sysroot
=yes
27408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
27409 $as_echo "$gcc_cv_ld_sysroot" >&6; }
27410 if test x
"$gcc_cv_ld_sysroot" = xyes
; then
27412 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
27416 # Test for stack protector support in target C library.
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
27418 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
27419 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
27420 $as_echo_n "(cached) " >&6
27422 gcc_cv_libc_provides_ssp
=no
27424 *-*-linux* |
*-*-kfreebsd*-gnu |
*-*-knetbsd*-gnu)
27425 # glibc 2.4 and later provides __stack_chk_fail and
27426 # either __stack_chk_guard, or TLS access to stack guard canary.
27428 if test $glibc_version_major -gt 2 \
27429 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27430 gcc_cv_libc_provides_ssp
=yes
27433 if test -f $target_header_dir/features.h \
27434 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
27435 $target_header_dir/features.h
> /dev
/null
; then
27436 if $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
27437 $target_header_dir/features.h
> /dev
/null
&& \
27438 test -f $target_header_dir/bits
/uClibc_config.h
&& \
27439 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
27440 $target_header_dir/bits
/uClibc_config.h
> /dev
/null
; then
27441 gcc_cv_libc_provides_ssp
=yes
27443 # all versions of Bionic support stack protector
27444 elif test -f $target_header_dir/sys
/cdefs.h \
27445 && $EGREP '^[ ]*#[ ]*define[ ]+__BIONIC__[ ]+1' \
27446 $target_header_dir/sys
/cdefs.h
> /dev
/null
; then
27447 gcc_cv_libc_provides_ssp
=yes
27452 # Avoid complicated tests (see
27453 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
27454 # simply assert that glibc does provide this, which is true for all
27455 # realistically usable GNU/Hurd configurations.
27456 gcc_cv_libc_provides_ssp
=yes;;
27457 *-*-darwin* |
*-*-freebsd*)
27458 ac_fn_c_check_func
"$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
27459 if test "x$ac_cv_func___stack_chk_fail" = x
""yes; then :
27460 gcc_cv_libc_provides_ssp
=yes
27462 echo "no __stack_chk_fail on this target"
27466 *) gcc_cv_libc_provides_ssp
=no
;;
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
27470 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
27472 if test x
$gcc_cv_libc_provides_ssp = xyes
; then
27474 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
27478 # Test for <sys/sdt.h> on the target.
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
27481 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
27483 if test -f $target_header_dir/sys
/sdt.h
; then
27486 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
27490 $as_echo "$have_sys_sdt_h" >&6; }
27492 # Check if TFmode long double should be used by default or not.
27493 # Some glibc targets used DFmode long double, but with glibc 2.4
27494 # and later they can use TFmode.
27496 powerpc
*-*-linux* | \
27497 sparc
*-*-linux* | \
27501 # Check whether --with-long-double-128 was given.
27502 if test "${with_long_double_128+set}" = set; then :
27503 withval
=$with_long_double_128; gcc_cv_target_ldbl128
="$with_long_double_128"
27506 if test $glibc_version_major -gt 2 \
27507 ||
( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then :
27508 gcc_cv_target_ldbl128
=yes
27511 gcc_cv_target_ldbl128
=no
27512 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
27513 $target_header_dir/bits
/wordsize.h
> /dev
/null
2>&1 \
27514 && gcc_cv_target_ldbl128
=yes
27521 if test x
$gcc_cv_target_ldbl128 = xyes
; then
27523 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
27528 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
27529 gcc_cv_target_dl_iterate_phdr
=unknown
27531 # Restrict to Solaris 11+. While most of the Solaris 11 linker changes
27532 # were backported to Solaris 10 Update 10, dl_iterate_phdr only lives in
27533 # libdl there, both complicating its use and breaking compatibility
27534 # between Solaris 10 updates.
27535 *-*-solaris2.1
[1-9]*)
27536 # <link.h> needs both a dl_iterate_phdr declaration and support for
27537 # compilation with largefile support.
27538 if grep dl_iterate_phdr
$target_header_dir/link.h
> /dev
/null
2>&1 \
27539 && grep 'large file capable' $target_header_dir/link.h
> /dev
/null
2>&1; then
27540 gcc_cv_target_dl_iterate_phdr
=yes
27542 gcc_cv_target_dl_iterate_phdr
=no
27545 *-*-dragonfly* |
*-*-freebsd*)
27546 if grep dl_iterate_phdr
$target_header_dir/sys
/link_elf.h
> /dev
/null
2>&1; then
27547 gcc_cv_target_dl_iterate_phdr
=yes
27549 gcc_cv_target_dl_iterate_phdr
=no
27554 if test x
$gcc_cv_target_dl_iterate_phdr = xyes
; then
27556 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
27560 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
27562 # We no longer support different GC mechanisms. Emit an error if
27563 # the user configures with --with-gc.
27565 # Check whether --with-gc was given.
27566 if test "${with_gc+set}" = set; then :
27567 withval
=$with_gc; as_fn_error
"Configure option --with-gc is only supported up to GCC 4.7.x" "$LINENO" 5
27571 # Libraries to use on the host. This will normally be set by the top
27572 # level Makefile. Here we simply capture the value for our Makefile.
27573 if test -z "${HOST_LIBS+set}"; then
27578 # Use the system's zlib library.
27580 zlibinc
="-I\$(srcdir)/../zlib"
27582 # Check whether --with-system-zlib was given.
27583 if test "${with_system_zlib+set}" = set; then :
27584 withval
=$with_system_zlib; zlibdir
=
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
27594 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
27595 # Check whether --enable-maintainer-mode was given.
27596 if test "${enable_maintainer_mode+set}" = set; then :
27597 enableval
=$enable_maintainer_mode; maintainer_mode
=$enableval
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
27604 $as_echo "$maintainer_mode" >&6; }
27606 if test "$maintainer_mode" = "yes"; then
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to avoid linking multiple front-ends at once" >&5
27614 $as_echo_n "checking whether to avoid linking multiple front-ends at once... " >&6; }
27615 # Check whether --enable-link-mutex was given.
27616 if test "${enable_link_mutex+set}" = set; then :
27617 enableval
=$enable_link_mutex; do_link_mutex
=$enableval
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do_link_mutex" >&5
27623 $as_echo "$do_link_mutex" >&6; }
27625 if test "$do_link_mutex" = "yes"; then
27628 DO_LINK_MUTEX
=false
27636 # Make empty files to contain the specs and options for each language.
27637 # Then add #include lines to for a compiler that has specs and/or options.
27643 # These (without "all_") are set in each config-lang.in.
27644 # `language' must be a single word so is spelled singularly.
27647 all_outputs
='Makefile'
27648 # List of language makefile fragments.
27649 all_lang_makefrags
=
27650 # Additional files for gengtype
27651 all_gtfiles
="$target_gtfiles"
27653 # These are the languages that are set in --enable-languages,
27654 # and are available in the GCC tree.
27655 all_selected_languages
=
27657 # Add the language fragments.
27658 # Languages are added via two mechanisms. Some information must be
27659 # recorded in makefile variables, these are defined in config-lang.in.
27660 # We accumulate them and plug them into the main Makefile.
27661 # The other mechanism is a set of hooks for each of the main targets
27662 # like `clean', `install', etc.
27664 language_hooks
="Make-hooks"
27666 for lang
in ${srcdir}/*/config-lang.
in
27668 test "$lang" = "${srcdir}/*/config-lang.in" && continue
27670 lang_alias
=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
27671 if test "x$lang_alias" = x
27673 echo "$lang doesn't set \$language." 1>&2
27676 subdir
="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
27677 subdirs
="$subdirs $subdir"
27679 # $gcc_subdir is where the gcc integration files are to be found
27680 # for a language, both for internal compiler purposes (compiler
27681 # sources implementing front-end to GCC tree converters), and for
27682 # build infrastructure purposes (Make-lang.in, etc.)
27684 # This will be <subdir> (relative to $srcdir) if a line like
27685 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
27686 # is found in <langdir>/config-lang.in, and will remain <langdir>
27689 # Except for the language alias (fetched above), the regular
27690 # "config-lang.in" contents are always retrieved from $gcc_subdir,
27691 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
27692 # only this and the language alias.
27694 gcc_subdir
=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
27695 if [ "$gcc_subdir" = "" ]; then
27696 gcc_subdir
="$subdir"
27699 case ",$enable_languages," in
27701 all_selected_languages
="$all_selected_languages $lang_alias"
27702 if test -f $srcdir/$gcc_subdir/lang-specs.h
; then
27703 lang_specs_files
="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
27714 .
${srcdir}/$gcc_subdir/config-lang.
in
27715 if test "x$language" = x
27717 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
27722 case ",$enable_languages," in
27723 *,$lang_alias,*) ;;
27725 for i
in $subdir_requires; do
27726 test -f "${srcdir}/$i/config-lang.in" && continue
27734 all_lang_makefrags
="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
27735 if test -f $srcdir/$gcc_subdir/lang.opt
; then
27736 lang_opt_files
="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
27737 all_opt_files
="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
27739 if test -f $srcdir/$gcc_subdir/$subdir-tree.def
; then
27740 lang_tree_files
="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
27742 all_languages
="$all_languages $language"
27743 all_compilers
="$all_compilers $compilers"
27744 all_outputs
="$all_outputs $outputs"
27745 all_gtfiles
="$all_gtfiles [$subdir] $gtfiles"
27746 case ",$enable_languages," in
27749 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
27759 for language
in $all_selected_languages
27761 check_languages
="$check_languages check-$language"
27764 # We link each language in with a set of hooks, reached indirectly via
27765 # lang.${target}. Only do so for selected languages.
27769 target_list
="all.cross start.encap rest.encap tags \
27770 install-common install-man install-info install-pdf install-html dvi \
27771 pdf html uninstall info man srcextra srcman srcinfo \
27772 mostlyclean clean distclean maintainer-clean install-plugin"
27774 for t
in $target_list
27777 for lang
in $all_selected_languages
27781 echo "lang.$t: $x" >> Make-hooks
27785 # Option include files
27788 ${AWK} -f $srcdir/opt-include.
awk $all_opt_files > option-includes.mk
27789 option_includes
="option-includes.mk"
27798 echo "dir ." > .gdbinit
27799 echo "dir ${srcdir}" >> .gdbinit
27800 if test x
$gdb_needs_out_file_path = xyes
27802 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
27804 if test "x$subdirs" != x
; then
27807 echo "dir ${srcdir}/$s" >> .gdbinit
27810 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
27811 echo "python import sys; sys.path.append('${srcdir}'); import gdbhooks" >> .gdbinit
27813 # Put a breakpoint on __asan_report_error to help with debugging buffer
27816 *-fsanitize=address
*)
27817 echo "source ${srcdir}/gdbasan.in" >> .gdbinit
27821 gcc_tooldir
='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
27825 # Find a directory in which to install a shared libgcc.
27827 # Check whether --enable-version-specific-runtime-libs was given.
27828 if test "${enable_version_specific_runtime_libs+set}" = set; then :
27829 enableval
=$enable_version_specific_runtime_libs;
27833 # Substitute configuration variables
27897 if test x
${build} = x
${host} ; then
27898 if test x
${host} = x
${target} ; then
27899 echo "Links are now set up to build a native compiler for ${target}." 1>&2
27901 echo "Links are now set up to build a cross-compiler" 1>&2
27902 echo " from ${host} to ${target}." 1>&2
27905 if test x
${host} = x
${target} ; then
27906 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
27907 echo " for ${target}." 1>&2
27909 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
27910 echo " from ${host} to ${target}." 1>&2
27919 if test "x${ISLLIBS}" != "x" ; then
27921 $as_echo "#define HAVE_isl 1" >>confdefs.h
27927 if test "x${CLOOGLIBS}" != "x" ; then
27929 $as_echo "#define HAVE_cloog 1" >>confdefs.h
27933 # Check for plugin support
27934 # Check whether --enable-plugin was given.
27935 if test "${enable_plugin+set}" = set; then :
27936 enableval
=$enable_plugin; enable_plugin
=$enableval
27938 enable_plugin
=yes; default_plugin
=yes
27946 if test x
$build = x
$host; then
27947 export_sym_check
="nm${exeext} -g"
27948 elif test x
$host = x
$target; then
27949 export_sym_check
="$gcc_cv_nm -g"
27955 if test x
$build = x
$host; then
27956 export_sym_check
="objdump${exeext} -T"
27957 elif test x
$host = x
$target; then
27958 export_sym_check
="$gcc_cv_objdump -T"
27965 if test x
"$enable_plugin" = x
"yes"; then
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
27968 $as_echo_n "checking for exported symbols... " >&6; }
27969 if test "x$export_sym_check" != x
; then
27970 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
27971 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27972 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27973 : # No need to use a flag
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27975 $as_echo "yes" >&6; }
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27978 $as_echo "yes" >&6; }
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
27980 $as_echo_n "checking for -rdynamic... " >&6; }
27981 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c
-o conftest
$ac_exeext > /dev
/null
2>&1
27982 if $export_sym_check conftest
$ac_exeext |
grep -q foobar
> /dev
/null
; then
27983 plugin_rdynamic
=yes
27984 pluginlibs
="-rdynamic"
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
27990 $as_echo "$plugin_rdynamic" >&6; }
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
27994 $as_echo "unable to check" >&6; }
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
28000 $as_echo_n "checking for library containing dlopen... " >&6; }
28001 if test "${ac_cv_search_dlopen+set}" = set; then :
28002 $as_echo_n "(cached) " >&6
28004 ac_func_search_save_LIBS
=$LIBS
28005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28006 /* end confdefs.h. */
28008 /* Override any GCC internal prototype to avoid an error.
28009 Use char because int might match the return type of a GCC
28010 builtin and then its argument prototype would still apply. */
28023 for ac_lib
in '' dl
; do
28024 if test -z "$ac_lib"; then
28025 ac_res
="none required"
28028 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28030 if ac_fn_c_try_link
"$LINENO"; then :
28031 ac_cv_search_dlopen
=$ac_res
28033 rm -f core conftest.err conftest.
$ac_objext \
28035 if test "${ac_cv_search_dlopen+set}" = set; then :
28039 if test "${ac_cv_search_dlopen+set}" = set; then :
28042 ac_cv_search_dlopen
=no
28044 rm conftest.
$ac_ext
28045 LIBS
=$ac_func_search_save_LIBS
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
28048 $as_echo "$ac_cv_search_dlopen" >&6; }
28049 ac_res
=$ac_cv_search_dlopen
28050 if test "$ac_res" != no
; then :
28051 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28055 if test x
"$ac_cv_search_dlopen" = x
"-ldl"; then
28056 pluginlibs
="$pluginlibs -ldl"
28060 # Check that we can build shared objects with -fPIC -shared
28061 saved_LDFLAGS
="$LDFLAGS"
28062 saved_CFLAGS
="$CFLAGS"
28065 CFLAGS
=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
28066 CFLAGS
="$CFLAGS -fPIC"
28067 LDFLAGS
="$LDFLAGS -shared -undefined dynamic_lookup"
28070 CFLAGS
="$CFLAGS -fPIC"
28071 LDFLAGS
="$LDFLAGS -fPIC -shared"
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
28075 $as_echo_n "checking for -fPIC -shared... " >&6; }
28076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28077 /* end confdefs.h. */
28087 if ac_fn_c_try_link
"$LINENO"; then :
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28089 $as_echo "yes" >&6; }; have_pic_shared
=yes
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28092 $as_echo "no" >&6; }; have_pic_shared
=no
28094 rm -f core conftest.err conftest.
$ac_objext \
28095 conftest
$ac_exeext conftest.
$ac_ext
28096 if test x
"$have_pic_shared" != x
"yes" -o x
"$ac_cv_search_dlopen" = x
"no"; then
28100 LDFLAGS
="$saved_LDFLAGS"
28101 CFLAGS
="$saved_CFLAGS"
28103 # If plugin support had been requested but not available, fail.
28104 if test x
"$enable_plugin" = x
"no" ; then
28105 if test x
"$default_plugin" != x
"yes"; then
28107 Building GCC with plugin support requires a host that supports
28108 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
28115 if test x
"$enable_plugin" = x
"yes"; then
28117 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
28122 # Enable --enable-host-shared
28123 # Check whether --enable-host-shared was given.
28124 if test "${enable_host_shared+set}" = set; then :
28125 enableval
=$enable_host_shared; PICFLAG
=-fPIC
28134 # Check whether --enable-libquadmath-support was given.
28135 if test "${enable_libquadmath_support+set}" = set; then :
28136 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
28138 ENABLE_LIBQUADMATH_SUPPORT
=yes
28141 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
28143 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
28148 # Specify what hash style to use by default.
28150 # Check whether --with-linker-hash-style was given.
28151 if test "${with_linker_hash_style+set}" = set; then :
28152 withval
=$with_linker_hash_style; case x
"$withval" in
28154 LINKER_HASH_STYLE
=sysv
28157 LINKER_HASH_STYLE
=gnu
28160 LINKER_HASH_STYLE
=both
28163 as_fn_error
"$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
28167 LINKER_HASH_STYLE
=''
28170 if test x
"${LINKER_HASH_STYLE}" != x
; then
28172 cat >>confdefs.h
<<_ACEOF
28173 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
28178 # Configure the subdirectories
28179 # AC_CONFIG_SUBDIRS($subdirs)
28181 # Create the Makefile
28182 # and configure language subdirectories
28183 ac_config_files
="$ac_config_files $all_outputs"
28186 ac_config_commands
="$ac_config_commands default"
28188 cat >confcache
<<\_ACEOF
28189 # This file is a shell script that caches the results of configure
28190 # tests run on this system so they can be shared between configure
28191 # scripts and configure runs, see configure's option --config-cache.
28192 # It is not useful on other systems. If it contains results you don't
28193 # want to keep, you may remove or edit it.
28195 # config.status only pays attention to the cache file if you give it
28196 # the --recheck option to rerun configure.
28198 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28199 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28200 # following values.
28204 # The following way of writing the cache mishandles newlines in values,
28205 # but we know of no workaround that is simple, portable, and efficient.
28206 # So, we kill variables containing newlines.
28207 # Ultrix sh set writes to stderr and can't be redirected directly,
28208 # and sets the high bit in the cache file unless we assign to the vars.
28210 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28211 eval ac_val
=\$
$ac_var
28215 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28216 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28219 _ | IFS | as_nl
) ;; #(
28220 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
28221 *) { eval $ac_var=; unset $ac_var;} ;;
28227 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28228 *${as_nl}ac_space
=\
*)
28229 # `set' does not quote correctly, so add quotes: double-quote
28230 # substitution turns \\\\ into \\, and sed turns \\ into \.
28233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28236 # `set' quotes correctly as required by POSIX, so do not add quotes.
28237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28246 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28248 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28250 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
28251 if test -w "$cache_file"; then
28252 test "x$cache_file" != "x/dev/null" &&
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28254 $as_echo "$as_me: updating cache $cache_file" >&6;}
28255 cat confcache
>$cache_file
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28258 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28263 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
28264 # Let make expand exec_prefix.
28265 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
28267 DEFS
=-DHAVE_CONFIG_H
28271 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
28272 # 1. Remove the extension, and $U if already installed.
28273 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
28274 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
28275 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28276 # will be set to the directory where LIBOBJS objects are built.
28277 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28278 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
28280 LIBOBJS
=$ac_libobjs
28282 LTLIBOBJS
=$ac_ltlibobjs
28287 : ${CONFIG_STATUS=./config.status}
28289 ac_clean_files_save
=$ac_clean_files
28290 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
28291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28292 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28294 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28296 # Generated by $as_me.
28297 # Run this file to recreate the current configuration.
28298 # Compiler output produced by configure, useful for debugging
28299 # configure, is in config.log if it exists.
28302 ac_cs_recheck=false
28305 SHELL=\${CONFIG_SHELL-$SHELL}
28308 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
28309 ## -------------------- ##
28310 ## M4sh Initialization. ##
28311 ## -------------------- ##
28313 # Be more Bourne compatible
28314 DUALCASE
=1; export DUALCASE
# for MKS sh
28315 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
28318 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28319 # is contrary to our usage. Disable this feature.
28320 alias -g '${1+"$@"}'='"$@"'
28321 setopt NO_GLOB_SUBST
28323 case `(set -o) 2>/dev/null` in #(
28335 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28336 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28337 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28338 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28339 # Prefer a ksh shell builtin over an external printf program on Solaris,
28340 # but without wasting forks for bash or zsh.
28341 if test -z "$BASH_VERSION$ZSH_VERSION" \
28342 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28343 as_echo='print
-r --'
28344 as_echo_n='print
-rn --'
28345 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28346 as_echo='printf %s
\n'
28347 as_echo_n='printf %s
'
28349 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28350 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
28351 as_echo_n='/usr
/ucb
/echo -n'
28353 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28354 as_echo_n_body='eval
28358 expr "X$arg" : "X\\(.*\\)$as_nl";
28359 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28361 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
28363 export as_echo_n_body
28364 as_echo_n='sh
-c $as_echo_n_body as_echo
'
28366 export as_echo_body
28367 as_echo='sh
-c $as_echo_body as_echo
'
28370 # The user is always right.
28371 if test "${PATH_SEPARATOR+set}" != set; then
28373 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28374 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28381 # We need space, tab and new line, in precisely that order. Quoting is
28382 # there to prevent editors from complaining about space-tab.
28383 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28384 # splitting by setting IFS to empty value.)
28387 # Find who we are. Look in the path if we contain no directory separator.
28389 *[\\/]* ) as_myself=$0 ;;
28390 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28391 for as_dir in $PATH
28394 test -z "$as_dir" && as_dir=.
28395 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28401 # We did not find ourselves, most probably we were run as `sh COMMAND'
28402 # in which case we are not to be found in the path.
28403 if test "x$as_myself" = x
; then
28406 if test ! -f "$as_myself"; then
28407 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28411 # Unset variables that we do not need and which cause bugs (e.g. in
28412 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28413 # suppresses any "Segmentation fault" message there. '((' could
28414 # trigger a bug in pdksh 5.2.14.
28415 for as_var
in BASH_ENV ENV MAIL MAILPATH
28416 do eval test x\
${$as_var+set} = xset \
28417 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
28430 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
28433 # as_fn_error ERROR [LINENO LOG_FD]
28434 # ---------------------------------
28435 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28436 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28437 # script with status $?, using 1 if that was 0.
28440 as_status
=$?
; test $as_status -eq 0 && as_status
=1
28442 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
28443 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28445 $as_echo "$as_me: error: $1" >&2
28446 as_fn_exit
$as_status
28450 # as_fn_set_status STATUS
28451 # -----------------------
28452 # Set $? to STATUS, without forking.
28453 as_fn_set_status
()
28456 } # as_fn_set_status
28458 # as_fn_exit STATUS
28459 # -----------------
28460 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28464 as_fn_set_status
$1
28470 # Portably unset VAR.
28473 { eval $1=; unset $1;}
28475 as_unset
=as_fn_unset
28476 # as_fn_append VAR VALUE
28477 # ----------------------
28478 # Append the text in VALUE to the end of the definition contained in VAR. Take
28479 # advantage of any shell optimizations that allow amortized linear growth over
28480 # repeated appends, instead of the typical quadratic growth present in naive
28482 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
28483 eval 'as_fn_append ()
28494 # as_fn_arith ARG...
28495 # ------------------
28496 # Perform arithmetic evaluation on the ARGs, and store the result in the
28497 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28498 # must be portable across $(()) and expr.
28499 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
28500 eval 'as_fn_arith ()
28507 as_val
=`expr "$@" || test $? -eq 1`
28512 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
28513 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
28519 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28520 as_basename
=basename
28525 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
28531 as_me
=`$as_basename -- "$0" ||
28532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28533 X"$0" : 'X\(//\)$' \| \
28534 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28536 sed '/^.*\/\([^/][^/]*\)\/*$/{
28550 # Avoid depending upon Character Ranges.
28551 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
28552 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28553 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
28554 as_cr_digits
='0123456789'
28555 as_cr_alnum
=$as_cr_Letters$as_cr_digits
28557 ECHO_C
= ECHO_N
= ECHO_T
=
28558 case `echo -n x` in #(((((
28560 case `echo 'xy\c'` in
28561 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
28563 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
28570 rm -f conf$$ conf$$.exe conf$$.
file
28571 if test -d conf$$.dir
; then
28572 rm -f conf$$.dir
/conf$$.
file
28575 mkdir conf$$.dir
2>/dev
/null
28577 if (echo >conf$$.
file) 2>/dev
/null
; then
28578 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
28580 # ... but there are two gotchas:
28581 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28582 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28583 # In both cases, we have to default to `cp -p'.
28584 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
28586 elif ln conf$$.
file conf$$
2>/dev
/null
; then
28594 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
28595 rmdir conf$$.dir
2>/dev
/null
28600 # Create "$as_dir" as a directory, including parents if necessary.
28605 -*) as_dir
=.
/$as_dir;;
28607 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
28611 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28612 *) as_qdir
=$as_dir;;
28614 as_dirs
="'$as_qdir' $as_dirs"
28615 as_dir
=`$as_dirname -- "$as_dir" ||
28616 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28617 X"$as_dir" : 'X\(//\)[^/]' \| \
28618 X"$as_dir" : 'X\(//\)$' \| \
28619 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28620 $as_echo X"$as_dir" |
28621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28625 /^X\(\/\/\)[^/].*/{
28638 test -d "$as_dir" && break
28640 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28641 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
28645 if mkdir
-p .
2>/dev
/null
; then
28646 as_mkdir_p
='mkdir -p "$as_dir"'
28648 test -d .
/-p && rmdir .
/-p
28652 if test -x / >/dev
/null
2>&1; then
28653 as_test_x
='test -x'
28655 if ls -dL / >/dev
/null
2>&1; then
28662 if test -d "$1"; then
28668 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28669 ???[sx]*):;;*)false;;esac;fi
28673 as_executable_p
=$as_test_x
28675 # Sed expression to map a string onto a valid CPP name.
28676 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28678 # Sed expression to map a string onto a valid variable name.
28679 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28683 ## ----------------------------------- ##
28684 ## Main body of $CONFIG_STATUS script. ##
28685 ## ----------------------------------- ##
28687 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
28689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28690 # Save the log message, to keep $0 and so on meaningful, and to
28691 # report actual input values of CONFIG_FILES etc. instead of their
28692 # values after options handling.
28694 This file was extended by $as_me, which was
28695 generated by GNU Autoconf 2.64. Invocation command line was
28697 CONFIG_FILES = $CONFIG_FILES
28698 CONFIG_HEADERS = $CONFIG_HEADERS
28699 CONFIG_LINKS = $CONFIG_LINKS
28700 CONFIG_COMMANDS = $CONFIG_COMMANDS
28703 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28708 case $ac_config_files in *"
28709 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
28712 case $ac_config_headers in *"
28713 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
28717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28718 # Files that config.status was made for.
28719 config_files="$ac_config_files"
28720 config_headers="$ac_config_headers"
28721 config_links="$ac_config_links"
28722 config_commands="$ac_config_commands"
28726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28728 \`$as_me' instantiates files and other configuration actions
28729 from templates according to the current configuration. Unless the files
28730 and actions are specified as TAGs, all are instantiated by default.
28732 Usage: $0 [OPTION]... [TAG]...
28734 -h, --help print this help, then exit
28735 -V, --version print version number and configuration settings, then exit
28736 -q, --quiet, --silent
28737 do not print progress messages
28738 -d, --debug don't remove temporary files
28739 --recheck update $as_me by reconfiguring in the same conditions
28740 --file=FILE[:TEMPLATE]
28741 instantiate the configuration file FILE
28742 --header=FILE[:TEMPLATE]
28743 instantiate the configuration header FILE
28745 Configuration files:
28748 Configuration headers:
28751 Configuration links:
28754 Configuration commands:
28757 Report bugs to the package provider."
28760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28763 configured by $0, generated by GNU Autoconf 2.64,
28764 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28766 Copyright (C) 2009 Free Software Foundation, Inc.
28767 This config.status script is free software; the Free Software Foundation
28768 gives unlimited permission to copy, distribute and modify it."
28773 test -n "\$AWK" || AWK=awk
28776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28777 # The default lists apply if the user does not specify any file.
28783 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
28784 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
28795 # Handling of the options.
28796 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
28798 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
28799 $as_echo "$ac_cs_version"; exit ;;
28800 --debug |
--debu |
--deb |
--de |
--d |
-d )
28802 --file |
--fil |
--fi |
--f )
28805 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28807 as_fn_append CONFIG_FILES
" '$ac_optarg'"
28808 ac_need_defaults
=false
;;
28809 --header |
--heade |
--head |
--hea )
28812 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
28814 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
28815 ac_need_defaults
=false
;;
28817 # Conflict between --help and --header
28818 as_fn_error
"ambiguous option: \`$1'
28819 Try \`$0 --help' for more information.";;
28820 --help |
--hel |
-h )
28821 $as_echo "$ac_cs_usage"; exit ;;
28822 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
28823 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
28826 # This is an error.
28827 -*) as_fn_error
"unrecognized option: \`$1'
28828 Try \`$0 --help' for more information." ;;
28830 *) as_fn_append ac_config_targets
" $1"
28831 ac_need_defaults
=false
;;
28837 ac_configure_extra_args
=
28839 if $ac_cs_silent; then
28841 ac_configure_extra_args
="$ac_configure_extra_args --silent"
28845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28846 if \$ac_cs_recheck; then
28847 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28849 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
28850 CONFIG_SHELL='$SHELL'
28851 export CONFIG_SHELL
28856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28860 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28861 ## Running $as_me. ##
28867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28871 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28872 subdirs="$subdirs" ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
28877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
28879 # Handling of arguments.
28880 for ac_config_target
in $ac_config_targets
28882 case $ac_config_target in
28883 "auto-host.h") CONFIG_HEADERS
="$CONFIG_HEADERS auto-host.h:config.in" ;;
28884 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
28885 "gccdepdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS gccdepdir" ;;
28886 "as") CONFIG_FILES
="$CONFIG_FILES as:exec-tool.in" ;;
28887 "collect-ld") CONFIG_FILES
="$CONFIG_FILES collect-ld:exec-tool.in" ;;
28888 "nm") CONFIG_FILES
="$CONFIG_FILES nm:exec-tool.in" ;;
28889 "clearcap.map") CONFIG_LINKS
="$CONFIG_LINKS clearcap.map:${srcdir}/config/$clearcap_map" ;;
28890 "$all_outputs") CONFIG_FILES
="$CONFIG_FILES $all_outputs" ;;
28891 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
28893 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
28898 # If the user did not use the arguments to specify the items to instantiate,
28899 # then the envvar interface is used. Set only those that are not.
28900 # We use the long form for the default assignment because of an extremely
28901 # bizarre bug on SunOS 4.1.3.
28902 if $ac_need_defaults; then
28903 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28904 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28905 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
28906 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
28909 # Have a temporary directory for convenience. Make it in the build tree
28910 # simply because there is no reason against having it here, and in addition,
28911 # creating and moving files from /tmp can sometimes cause problems.
28912 # Hook for its removal unless debugging.
28913 # Note that there is a small window in which the directory will not be cleaned:
28914 # after its creation but before its name has been assigned to `$tmp'.
28918 trap 'exit_status=$?
28919 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28921 trap 'as_fn_exit 1' 1 2 13 15
28923 # Create a (secure) tmp directory for tmp files.
28926 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28927 test -n "$tmp" && test -d "$tmp"
28930 tmp
=.
/conf$$
-$RANDOM
28931 (umask 077 && mkdir
"$tmp")
28932 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
28934 # Set up the scripts for CONFIG_FILES section.
28935 # No need to generate them if there are no CONFIG_FILES.
28936 # This happens for instance with `./config.status config.h'.
28937 if test -n "$CONFIG_FILES"; then
28939 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
28940 ac_cs_awk_getline
=:
28941 ac_cs_awk_pipe_init
=
28942 ac_cs_awk_read_file
='
28943 while ((getline aline < (F[key])) > 0)
28946 ac_cs_awk_pipe_fini
=
28948 ac_cs_awk_getline
=false
28949 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
28950 ac_cs_awk_read_file
='
28952 print "cat " F[key] " &&"
28953 '$ac_cs_awk_pipe_init
28954 # The final `:' finishes the AND list.
28955 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
28957 ac_cr
=`echo X | tr X '\015'`
28958 # On cygwin, bash can eat \r inside `` if the user requested igncr.
28959 # But we know of no other shell where ac_cr would be empty at this
28960 # point, so we can use a bashism as a fallback.
28961 if test "x$ac_cr" = x
; then
28962 eval ac_cr
=\$
\'\\r
\'
28964 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
28965 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
28968 ac_cs_awk_cr
=$ac_cr
28971 echo 'BEGIN {' >"$tmp/subs1.awk" &&
28974 # Create commands to substitute file output variables.
28976 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
28977 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
28978 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
28981 } >conf$
$files.sh
&&
28982 . .
/conf$
$files.sh ||
28983 as_fn_error
"could not make $CONFIG_STATUS" "$LINENO" 5
28984 rm -f conf$
$files.sh
28987 echo "cat >conf$$subs.awk <<_ACEOF" &&
28988 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
28990 } >conf$$subs.sh ||
28991 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28992 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
28994 for ac_last_try in false false false false false :; do
28995 . ./conf$$subs.sh ||
28996 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
28998 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
28999 if test $ac_delim_n = $ac_delim_num; then
29001 elif $ac_last_try; then
29002 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
29004 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29007 rm -f conf$$subs.sh
29009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29010 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
29014 s/^/S["/; s
/!.
*/"]=/
29024 s/\(.\{148\}\).*/\1/
29026 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
29031 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29038 s/\(.\{148\}\).*/\1/
29040 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
29044 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
29049 ' <conf$$subs.awk | sed '
29054 ' >>$CONFIG_STATUS || ac_write_fail=1
29055 rm -f conf$$subs.awk
29056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29058 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
29059 for (key in S) S_is_set[key] = 1
29061 \$ac_cs_awk_pipe_init
29065 nfields = split(line, field, "@
")
29067 len = length(field[1])
29068 for (i = 2; i < nfields; i++) {
29070 keylen = length(key)
29071 if (S_is_set[key]) {
29073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29074 len += length(value) + length(field[++i])
29079 if (nfields == 3 && !substed) {
29081 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
29082 \$ac_cs_awk_read_file
29088 \$ac_cs_awk_pipe_fini
29091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29092 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29093 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
29096 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
29097 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
29100 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29101 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
29102 # trailing colons and then remove the whole line if VPATH becomes empty
29103 # (actually we leave an empty line to preserve line numbers).
29104 if test "x
$srcdir" = x.; then
29105 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29106 s/:*\$(srcdir):*/:/
29107 s/:*\${srcdir}:*/:/
29109 s/^\([^=]*=[ ]*\):*/\1/
29115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29116 fi # test -n "$CONFIG_FILES"
29118 # Set up the scripts for CONFIG_HEADERS section.
29119 # No need to generate them if there are no CONFIG_HEADERS.
29120 # This happens for instance with `./config.status Makefile'.
29121 if test -n "$CONFIG_HEADERS"; then
29122 cat >"$tmp/defines.
awk" <<\_ACAWK ||
29126 # Transform confdefs.h into an awk script `defines.awk', embedded as
29127 # here-document in config.status, that substitutes the proper values into
29128 # config.h.in to produce config.h.
29130 # Create a delimiter string that does not exist in confdefs.h, to ease
29131 # handling of long lines.
29133 for ac_last_try in false false :; do
29134 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
29135 if test -z "$ac_t"; then
29137 elif $ac_last_try; then
29138 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
29140 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
29144 # For the awk script, D is an array of macro values keyed by name,
29145 # likewise P contains macro parameters if any. Preserve backslash
29146 # newline sequences.
29148 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29150 s/.\{148\}/&'"$ac_delim"'/g
29153 s/^[ ]*#[ ]*define[ ][ ]*/ /
29160 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
29162 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
29166 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
29167 D["\
1"]=" \
3\\\\\\n
"\\/p
29169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
29174 s/.\{148\}/&'"$ac_delim"'/g
29179 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
29182 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
29184 ' <confdefs.h | sed '
29185 s/'"$ac_delim"'/"\\\
29186 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29189 for (key in D) D_is_set[key] = 1
29192 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29194 split(line, arg, " ")
29195 if (arg[1] == "#") {
29199 defundef
= substr
(arg
[1], 2)
29202 split(mac1
, mac2
, "(") #)
29204 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
29205 if (D_is_set
[macro
]) {
29206 # Preserve the white space surrounding the "#".
29207 print prefix
"define", macro P
[macro
] D
[macro
]
29210 # Replace #undef with comments. This is necessary, for example,
29211 # in the case of _POSIX_SOURCE, which is predefined and required
29212 # on some systems where configure will not decide to define it.
29213 if (defundef
== "undef") {
29214 print
"/*", prefix defundef
, macro
, "*/"
29222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29223 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
29224 fi # test -n "$CONFIG_HEADERS"
29227 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29232 :[FHLC
]) ac_mode
=$ac_tag; continue;;
29234 case $ac_mode$ac_tag in
29236 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
29237 :[FH
]-) ac_tag
=-:-;;
29238 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
29255 -) ac_f
="$tmp/stdin";;
29256 *) # Look for the file first in the build tree, then in the source tree
29257 # (if the path is not absolute). The absolute path cannot be DOS-style,
29258 # because $ac_f cannot contain `:'.
29262 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
29264 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
29266 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29267 as_fn_append ac_file_inputs
" '$ac_f'"
29270 # Let's still pretend it is `configure' which instantiates (i.e., don't
29271 # use $as_me), people would be surprised to read:
29272 # /* config.h. Generated by config.status. */
29273 configure_input
='Generated from '`
29274 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
29276 if test x
"$ac_file" != x-
; then
29277 configure_input
="$ac_file. $configure_input"
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
29279 $as_echo "$as_me: creating $ac_file" >&6;}
29281 # Neutralize special characters interpreted by sed in replacement strings.
29282 case $configure_input in #(
29283 *\
&* |
*\|
* |
*\\* )
29284 ac_sed_conf_input
=`$as_echo "$configure_input" |
29285 sed 's/[\\\\&|]/\\\\&/g'`;; #(
29286 *) ac_sed_conf_input
=$configure_input;;
29290 *:-:* |
*:-) cat >"$tmp/stdin" \
29291 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
29296 ac_dir
=`$as_dirname -- "$ac_file" ||
29297 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29298 X"$ac_file" : 'X\(//\)[^/]' \| \
29299 X"$ac_file" : 'X\(//\)$' \| \
29300 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29301 $as_echo X"$ac_file" |
29302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29306 /^X\(\/\/\)[^/].*/{
29319 as_dir
="$ac_dir"; as_fn_mkdir_p
29323 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29325 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
29326 # A ".." for each directory in $ac_dir_suffix.
29327 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
29328 case $ac_top_builddir_sub in
29329 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
29330 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
29333 ac_abs_top_builddir
=$ac_pwd
29334 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
29335 # for backward compatibility:
29336 ac_top_builddir
=$ac_top_build_prefix
29339 .
) # We are building in place.
29341 ac_top_srcdir
=$ac_top_builddir_sub
29342 ac_abs_top_srcdir
=$ac_pwd ;;
29343 [\\/]* | ?
:[\\/]* ) # Absolute name.
29344 ac_srcdir
=$srcdir$ac_dir_suffix;
29345 ac_top_srcdir
=$srcdir
29346 ac_abs_top_srcdir
=$srcdir ;;
29347 *) # Relative name.
29348 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
29349 ac_top_srcdir
=$ac_top_build_prefix$srcdir
29350 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
29352 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
29363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29364 # If the template does not know about datarootdir, expand it.
29365 # FIXME: This hack should be removed a few years after 2.60.
29366 ac_datarootdir_hack
=; ac_datarootdir_seen
=
29377 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
29378 *datarootdir
*) ac_datarootdir_seen
=yes;;
29379 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29381 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29384 ac_datarootdir_hack='
29385 s&@datadir@&$datadir&g
29386 s&@docdir@&$docdir&g
29387 s&@infodir@&$infodir&g
29388 s&@localedir@&$localedir&g
29389 s&@mandir@&$mandir&g
29390 s&\\\${datarootdir}&$datarootdir&g' ;;
29394 # Neutralize VPATH when `$srcdir' = `.'.
29395 # Shell code in configure.ac might set extrasub.
29396 # FIXME: do we really want to maintain this feature?
29397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29398 ac_sed_extra="$ac_vpsub
29401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
29403 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
29404 s|@configure_input@|
$ac_sed_conf_input|
;t t
29405 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
29406 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
29407 s
&@srcdir@
&$ac_srcdir&;t t
29408 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
29409 s
&@top_srcdir@
&$ac_top_srcdir&;t t
29410 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
29411 s
&@builddir@
&$ac_builddir&;t t
29412 s
&@abs_builddir@
&$ac_abs_builddir&;t t
29413 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
29414 $ac_datarootdir_hack
29416 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
29417 if $ac_cs_awk_getline; then
29418 $AWK -f "$tmp/subs.
awk"
29420 $AWK -f "$tmp/subs.
awk" | $SHELL
29422 || as_fn_error "could not create
$ac_file" "$LINENO" 5
29424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29425 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
29426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
29427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
29428 which seems to be undefined. Please make sure it is defined." >&5
29429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
29430 which seems to be undefined. Please make sure it is defined." >&2;}
29434 -) cat "$tmp/out" && rm -f "$tmp/out";;
29435 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
29437 || as_fn_error "could not create $ac_file" "$LINENO" 5
29443 if test x"$ac_file" != x-; then
29445 $as_echo "/* $configure_input */" \
29446 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
29447 } >"$tmp/config.h" \
29448 || as_fn_error "could not create $ac_file" "$LINENO" 5
29449 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
29451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
29454 mv "$tmp/config.h" "$ac_file" \
29455 || as_fn_error "could not create $ac_file" "$LINENO" 5
29458 $as_echo "/* $configure_input */" \
29459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
29460 || as_fn_error "could not create -" "$LINENO" 5
29468 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
29471 # Prefer the file from the source tree if names are identical.
29472 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
29473 ac_source=$srcdir/$ac_source
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
29477 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
29479 if test ! -r "$ac_source"; then
29480 as_fn_error "$ac_source: file not found" "$LINENO" 5
29484 # Try a relative symlink, then a hard link, then a copy.
29486 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
29487 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
29489 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29490 ln "$ac_source" "$ac_file" 2>/dev/null ||
29491 cp -p "$ac_source" "$ac_file" ||
29492 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
29495 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
29496 $as_echo "$as_me: executing $ac_file commands" >&6;}
29501 case $ac_file$ac_mode in
29502 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
29504 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs build/$DEPDIR
29505 for lang in $subdirs c-family common
29507 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/mkinstalldirs $lang/$DEPDIR
29509 "as":F) chmod +x as ;;
29510 "collect-ld":F) chmod +x collect-ld ;;
29511 "nm":F) chmod +x nm ;;
29513 case ${CONFIG_HEADERS} in
29514 *auto-host.h:config.in*)
29517 # Make sure all the subdirs exist.
29518 for d in $subdirs doc build common c-family
29520 test -d $d || mkdir $d
29530 ac_clean_files=$ac_clean_files_save
29532 test $ac_write_fail = 0 ||
29533 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29536 # configure is writing to config.log, and then calls config.status.
29537 # config.status does its own redirection, appending to config.log.
29538 # Unfortunately, on DOS this fails, as config.log is still kept open
29539 # by configure, so config.status won't be able to
write to it
; its
29540 # output is simply discarded. So we exec the FD to /dev/null,
29541 # effectively closing config.log, so it can be properly (re)opened and
29542 # appended to by config.status. When coming back to configure, we
29543 # need to make the FD available again.
29544 if test "$no_create" != yes; then
29546 ac_config_status_args
=
29547 test "$silent" = yes &&
29548 ac_config_status_args
="$ac_config_status_args --quiet"
29550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
29552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29553 # would make configure fail if this is the last instruction.
29554 $ac_cs_success || as_fn_exit $?
29556 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29558 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}